From e2a55e3f8f84704a43d4ebeb9c48e38812887916 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sat, 8 Oct 2022 20:02:02 +0800 Subject: [PATCH] xapian remove Stem --- ftshelpers.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftshelpers.cc b/ftshelpers.cc index 1e5f0fc6..4088a4ee 100644 --- a/ftshelpers.cc +++ b/ftshelpers.cc @@ -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;