Update ftshelpers.cc

This commit is contained in:
xiaoyifang 2022-10-09 12:18:26 +08:00 committed by GitHub
parent df0622d216
commit ac522ebdd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1313,10 +1313,7 @@ void FTSResultsRequest::runXapian()
// Parse the query string to produce a Xapian::Query object.
Xapian::QueryParser qp;
Xapian::Stem stemmer( "english" );
qp.set_stemmer( stemmer );
qp.set_database( db );
qp.set_stemming_strategy( Xapian::QueryParser::STEM_SOME );
Xapian::QueryParser::feature_flag flag = Xapian::QueryParser::FLAG_DEFAULT;
if( searchMode == FTS::Wildcards )
flag = Xapian::QueryParser::FLAG_WILDCARD;