Parser of Elasticsearch query strings… here is a solution to the problem.
Parser of Elasticsearch query strings
I wonder if there is a syntax available to parse the query string sent to Elastic Search query_string API ?
I prefer EBNF. I’m currently using Python just in case.
Solution
You can find the EBNF syntax for Lucene query string query parser here:
https://github.com/apache/lucene-solr/blob/master/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParser.jj
The relevant build steps are here:
https://github.com/apache/lucene-solr/blob/1d85cd783863f75cea133fb9c452302214165a4d/lucene/queryparser/build.xml#L63-L79