+ fix for malayalam

This commit is contained in:
kelson42 2010-06-27 16:31:48 +00:00
parent 3735f31946
commit 4178289614
1 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ namespace kiwix {
/* Search strings in the database */
void Searcher::search(string search, const unsigned int resultsCount, bool verbose) {
/* Reset the results */
this->results.clear();
this->resultOffset = this->results.begin();
@ -33,11 +34,11 @@ namespace kiwix {
/* Create the query term vector */
/* 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 */
Xapian::Query query(Xapian::Query::OP_OR, queryTerms.begin(), queryTerms.end());
/* Set the query in the enquire object */
enquire.set_query(query);