public function replaceOldIndex()
    {
        $this->searchDbHandle = null;
        $path = $this->storageDir . DIRECTORY_SEPARATOR;
        rename($path . self::SEARCH_TEMP_DB, $path . 'search.db');
    }