mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Only add a reader to the searcher if the reader as fulltext index.
`libzim` will not search in zim file without embedded fulltext index. If we don't want to mess up with result index, we must not store "wrong" reader. Fix #111
This commit is contained in:
@ -111,8 +111,10 @@ class Searcher
|
||||
*
|
||||
* @param reader The Reader for the zim containing the fulltext index.
|
||||
* @param humanReaderName The human readable name of the reader.
|
||||
* @return true if the reader has been added.
|
||||
* false if the reader cannot be added (no embedded fulltext index present)
|
||||
*/
|
||||
void add_reader(Reader* reader, const std::string& humanReaderName);
|
||||
bool add_reader(Reader* reader, const std::string& humanReaderName);
|
||||
|
||||
/**
|
||||
* Start a search on the zim associated to the Searcher.
|
||||
|
Reference in New Issue
Block a user