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