I'm looking for some advice on how to build a query dynamically. So
what I mean by that is that our web application interface allows the
user to create a filter of the information in our database, which is
effectively an ES query on the indexed data from the database.
Doing this dynamically using the filter criteria that are available to
the user is conceptually simple but I'm not sure how to convert that
to an ES query. We have two options:
Use the Lucene query syntax e.g. hostname:Blah - the problem here
is determining all the options for Lucene query syntax ... the docs
page here http://lucene.apache.org/java/3_4_0/queryparsersyntax.html
doesn't provide clues as to how to accomplish the many options made
available via the ES Query DSL.
Use the ES DSL. Here the documentation is good, but how to combine
multiple criteria in a single DSL document becomes more of a
Has anybody had to solve this before? Does anybody have any good
Thanks in advance,