How can we achieve below query in elastic?

where name='manikesh' and age=35 and company='elastic'?

I know we did not have and operation supported in elastic but do we have it now? what other ways to achieve this?

Hi Manikesh,

You can use bool query with must option.

Take reference from

Thanks .. just wanted to understand..when Lucene supports AND operation then why not elastic.. is there any specific reason..

Lucene's query parser supports AND operator but under the covers this is translated into Lucene Bool query objects that use MUST. We reflect the Lucene core and not one (of several) query string syntaxes built on this core.

This explains everything.. thanks much..

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