blob: 7ea1f6ff9dd274b05bdb1d49bb7456d0ed9a1557 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <string>
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(std::string const & filename, bool forceRebuild,
uint32_t threadsCount);
void BuildSearchIndex(FilesContainerR & container, Writer & indexWriter);
} // namespace indexer
|