I'm looking for a query language which I can use in a vue.js input field, possibly with suggestions of fields, values and logical instructions. In the backend I have a spring boot application connected to an elasticsearch database.
The documents contains some simple text fields, some nested text-fields, as well as some number-fields. I would like to build a site, where I can query over different fields in a language similar to similar to Kibana Query Language or Lucene's Query Syntax.
What I prefer is to query like
field1:"quick brown fox" and nestedfield.field34:"Lorem ipsum dolor sit" and nestedfield.numberfield:161
ES should look for documents, having
field1with value of "quick brown fox" andnestedfield.field34with value "Lorem ipsum dolor sit" andnestedfield.numberfieldmust contain the number161.
Is there any idea of creating a custom query language or are there any (open source) implementations? When creating a custom one, one has to translate it to the elasticsearch query-language.