How to build a OR condition in Elasticsearch Query DSL

JoliCode - JoliCodeBlog - 27/01
Today I want to share a little piece of information about the Elasticsearch Query DSL we all love and cherish. There is no "or" or "and" query. There was one in Elasticsearch <= 2.4 but it's long gone now. So how do you build a "or" condition then?

Today I want to share a little piece of information about the Elasticsearch Query DSL we all love and cherish.

There is no “or” or “and” query.

There was one in Elasticsearch <= 2.4 but it’s long gone now.

So how do you build a “or” condition then?

Section intitulée introducing-the-quot-bool-should-quot-behaviorIntroducing the “Bool Should” behavior

Let’s start with a simple unique condition : name = foobar:

GET _se...
[Courte citation de 8% de l'article original]
Loading...