Closed
Description
Instead of parsing a search query using a custom grammar we should reuse some existing query parser. For example, Lucene's query parser with QueryParser.parse.
Triggered by #1633 (comment).
- Description of Lucene's syntax: http://www.solrtutorial.com/solr-query-syntax.html and https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
- Lucene provides a few classes which let us modify the search syntax: https://lucene.apache.org/core/4_1_0/queryparser/index.html?org/apache/lucene/queryparser/flexible/core/parser/SyntaxParser.html
- Or we use the default Lucene syntax: https://lucene.apache.org/core/4_0_0/queryparser/org/apache/lucene/queryparser/classic/QueryParser.html