mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Update ftshelpers.cc
This commit is contained in:
parent
df0622d216
commit
ac522ebdd6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue