Disable other conditions in query if first one works

Hi guys, for example i have 2 field, title1, title2
I have 2 condition for search:
'should'=>[
{
'term'=>{
'title1'=>'onetwofree'
}
},
{
'term'=>{
'title1'=>'freetwoone'
}
}
]

So i need if 1st condition ('onetwofree') not found any docs, search by second condition. Scroing useless in this case. I need or exactly totaly equal my first condition or all other by other (second in my case)

Ty guys

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