Hi Jean,
You should be able to do this with intervals, see
https://lucene.apache.org/core/8_8_1/queries/org/apache/lucene/queries/intervals/package-summary.html
.
Le dim. 25 avr. 2021 à 18:43, Jean Morissette a
écrit :
> Thank you for your answer.
>
> The problem with this solution is that it e
Thank you for your answer.
The problem with this solution is that it excludes documents which contain
both positive and negative positive matches.
For example, consider those 3 documents with the terms a, b:
- document 1: "a"
- document 2: "a b"
- document 3: "a b a"
What we want is to find docu