Don't compact lid space on source selector if wanted lid limit is higher
than current limit. This can happen when none of the document fields are
indexed.
@@ -93,7 +93,9 @@ FixedSourceSelector::setSource(uint32_t docId, queryeval::Source source)
void
FixedSourceSelector::compactLidSpace(uint32_t lidLimit)
{
+ if (lidLimit < _source.getCommittedDocIdLimit()) {
_source.compactLidSpace(lidLimit + 1);
}
+}
} // namespace search
