From 1c05ddc432dc4376fc2b969c32f6a4bb2627a2c1 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Fri, 19 Jul 2024 09:09:37 +0800 Subject: [PATCH] opt: use xapian as headword index for mdx dictionary --- src/btreeidx.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/btreeidx.cc b/src/btreeidx.cc index 49da2ae9..367b437a 100644 --- a/src/btreeidx.cc +++ b/src/btreeidx.cc @@ -1034,6 +1034,8 @@ void BtreeIndex::buildXapianIndex( IndexedWords const & indexedWords, string fil for ( const auto &[ word, articleLinks ] : indexedWords ) { for ( const auto & articleLink : articleLinks ) { + if ( !articleLink.prefix.empty() ) + continue; Xapian::Document doc; indexer.set_document( doc );