Skip to content
Advertisement

Convert a SQL query to the ElasticSearch query

I wrote this query in SQL and now I needed it in the elastic search. How can I do that?

Advertisement

Answer

Here you go:

You need to use should clause for or and must clause for and.

You need to use term or match query based on your requirement.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement