Skip to content

[OrPostingIterator] Do not advance when wanted id is lower than current

Stefan Brüns requested to merge bruns/baloo:nested_orpostingiterator_fix into master

skipTo(id) should advance only if the wanted id is larger than the current id.

The bug is triggered when ORs are nested and combined with an AND, e.g. baloosearch foo AND tags:bar, which is internally expanded to "(content:foo OR filename:foo) AND tags:bar".

Merge request reports