mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
xapian remove Stem
This commit is contained in:
parent
7044e4cf8e
commit
e2a55e3f8f
|
@ -516,9 +516,9 @@ void makeFTSIndexXapian( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isC
|
|||
Xapian::WritableDatabase db(dict->ftsIndexName(), Xapian::DB_CREATE_OR_OPEN);
|
||||
|
||||
Xapian::TermGenerator indexer;
|
||||
Xapian::Stem stemmer("english");
|
||||
indexer.set_stemmer(stemmer);
|
||||
indexer.set_stemming_strategy(indexer.STEM_SOME_FULL_POS);
|
||||
// Xapian::Stem stemmer("english");
|
||||
// indexer.set_stemmer(stemmer);
|
||||
// indexer.set_stemming_strategy(indexer.STEM_SOME_FULL_POS);
|
||||
indexer.set_flags(Xapian::TermGenerator::FLAG_CJK_NGRAM);
|
||||
|
||||
BtreeIndexing::IndexedWords indexedWords;
|
||||
|
|
Loading…
Reference in a new issue