Or if you prefer EBNF, look here (but it differs slghtly from the grammar
Jack linked to):

https://github.com/romanchyla/montysolr/blob/master/contrib/antlrqueryparser/grammars/StandardLuceneGrammar.g

roman

On Wed, Feb 27, 2013 at 1:38 PM, Jack Krupansky <j...@basetechnology.com>wrote:

> Right here:
>
> http://svn.apache.org/viewvc/**lucene/dev/tags/lucene_solr_4_**
> 1_0/solr/core/src/java/org/**apache/solr/parser/**QueryParser.jj?revision=
> **1436334&view=markup<http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_4_1_0/solr/core/src/java/org/apache/solr/parser/QueryParser.jj?revision=1436334&view=markup>
>
> -- Jack Krupansky
>
> -----Original Message----- From: z...@navigo.com
> Sent: Wednesday, February 27, 2013 11:44 AM
> To: solr-user@lucene.apache.org
> Subject: Formal Query Grammar
>
>
> I found where this had been asked, but did not find an answer.
>
> Is there a formal definition of the solr query grammar? Like a Chomsky
> grammar?
>
> Previous ask:
>
> http://lucene.472066.n3.**nabble.com/FW-Formal-grammar-**
> for-solr-lucene-td4010949.html<http://lucene.472066.n3.nabble.com/FW-Formal-grammar-for-solr-lucene-td4010949.html>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.**
> nabble.com/Formal-Query-**Grammar-tp4043419.html<http://lucene.472066.n3.nabble.com/Formal-Query-Grammar-tp4043419.html>
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to