[SOLVED] Are antimatch possible?

Hi,
are antimatch pattern possible with ES ?
For instance, take two documents

{description : "I'm a flower"}
{description : "I'm a blue flower"}

And an analyzer with ascii folding, lowercase, edgnengram and maybe some custom tokenization.but this doesn't really matter.

I wnt to match all documents containing the word flower but not containeing the word blue.
Is this possible ?
If so, what would be the java RHLC methods required ?
If not, where can I submit the idea because it feels very important.
Thanks

You can use a bool query with a must with a match query on flower and a must not with a match on blue.

Nice, obviously, thanks !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.