Open hermeGarcia opened 9 months ago
I think we should stick to that specification. I believe the query parser does the thing you expected however. (not 100% sure)
I believe the query parser does the thing you expected however. (not 100% sure)
It fails with
Invalid query: Only excluding terms given
which does make sense IMHO, i.e. I agree to keep the current behaviour.
Describe the bug
What did you do? Write a negative query using
Occur::MustNot
and aBooleanQuery
.What happened? Seem like the negative query was not iterating through the candidates on its own. I added
(Occur::Must, Box::new(AllQuery))
to theBooleanQuery
and then got the expected behaviour.What was expected? I would expect for a negative query to iterate through the candidates on its own, without needing an
AllQuery
.Which version of tantivy are you using?
0.21.1
To Reproduce