+ 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 */ /* 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,7 +34,7 @@ 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());