It is possible to execute only one query out of three?

Hi Everyone,

I need a way to execute one query out of three. if any query executes successfully then other two queries must escape from execution.

Like:

if( a==10 OR a ==20){
}
else if( a==30 OR a ==40){
}
else if( a==50 OR a ==60){
}

is it possible to achieve in elastic search to built a search query like this?

That is not possible. How about executing a multisearch query instead and pick the query which has any results?

Thanks @spinscale

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