opt: use xapian as headword index for mdx dictionary

This commit is contained in:
Xiao Yi Fang 2024-07-19 09:09:37 +08:00
parent 1a75bc3e86
commit 1c05ddc432

View file

@ -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 );