ElasticSearch exclude with if condition

87 Views Asked by At

I am trying to write a query that gives me results with the following condition:

get all user data with multiple statues but on certain status, only get it if another filed equals some value.

user data has the following statuses: "processing", "pending", "accepted", "rejected"

get them all but on "processing" status, get data if some field equals some value.

appreciated your help

i expect to get all user data but data that has "processing" status unless some another field equals some value

0

There are 0 best solutions below