blob: ce647d0653609d8ede41d51d4fa576d9e0a3c4ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "std/string.hpp"
class FilesContainerR;
class Writer;
namespace indexer
{
// Builds the latest version of the search index section and writes it to the mwm file.
// An attempt to rewrite the search index of an old mwm may result in a future crash
// when using search because this function does not update mwm's version. This results
// in version mismatch when trying to read the index.
bool BuildSearchIndexFromDataFile(string const & filename, bool forceRebuild = false);
void BuildSearchIndex(FilesContainerR & container, Writer & indexWriter);
} // namespace indexer
|