I'm looking for a grammar/parser for elasticsearch query_string

What I'm trying to achieve is to generate a valid elasticsearch query_string form inputs preferably in frontend.
In worst case it can be generated in the backend (nodeJS, NestJS).
I'm looking for libraries which can generate the query_string mentioned above and parse it back so I can add more criterias to the search without string concatenation i.e. queryString += 'OR (big apple)'.
I already found a post which already proves that the query_string is forwarded to Lucene (inside of Elasticsearch source code), so Lucene compatible query_string might be acceptable.

1 Like

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