From 417828961468f6dd187d695e66c310c3a951d437 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Sun, 27 Jun 2010 16:31:48 +0000 Subject: [PATCH] + fix for malayalam --- src/common/kiwix/searcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/kiwix/searcher.cpp b/src/common/kiwix/searcher.cpp index 5a2d0c5fe..8b69c5d8f 100644 --- a/src/common/kiwix/searcher.cpp +++ b/src/common/kiwix/searcher.cpp @@ -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 queryTerms = split(removeAccents(search), " #@%$0/\\_-*()[]{},;:\"ยด`'"); + std::vector 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);