mirror of https://github.com/kiwix/libkiwix.git
+ fix for malayalam
This commit is contained in:
parent
3735f31946
commit
4178289614
|
@ -24,6 +24,7 @@ namespace kiwix {
|
||||||
|
|
||||||
/* Search strings in the database */
|
/* Search strings in the database */
|
||||||
void Searcher::search(string search, const unsigned int resultsCount, bool verbose) {
|
void Searcher::search(string search, const unsigned int resultsCount, bool verbose) {
|
||||||
|
|
||||||
/* Reset the results */
|
/* Reset the results */
|
||||||
this->results.clear();
|
this->results.clear();
|
||||||
this->resultOffset = this->results.begin();
|
this->resultOffset = this->results.begin();
|
||||||
|
@ -33,11 +34,11 @@ namespace kiwix {
|
||||||
|
|
||||||
/* Create the query term vector */
|
/* Create the query term vector */
|
||||||
/* I have the doublequote " because bug ID: 2939690 */
|
/* I have the doublequote " because bug ID: 2939690 */
|
||||||
std::vector<std::string> queryTerms = split(removeAccents(search), " #@%$0/\\_-*()[]{},;:\"´`'");
|
std::vector<std::string> queryTerms = split(removeAccents(search), " #@%$0/\\_-*()[]{},;:\"'");
|
||||||
|
|
||||||
/* Create query object */
|
/* Create query object */
|
||||||
Xapian::Query query(Xapian::Query::OP_OR, queryTerms.begin(), queryTerms.end());
|
Xapian::Query query(Xapian::Query::OP_OR, queryTerms.begin(), queryTerms.end());
|
||||||
|
|
||||||
/* Set the query in the enquire object */
|
/* Set the query in the enquire object */
|
||||||
enquire.set_query(query);
|
enquire.set_query(query);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue