In order for Solr to use this parser, you'll need to wrap it with a QParser and QParserPlugin implementations, then wire your implementation into solrconfig.xml. There is no current built in support for this parser in Solr at the moment.
Erik On Sep 10, 2012, at 09:47 , Maciej Pestka wrote: > Hi, > > I noticed there is class > http://lucene.apache.org/core/4_0_0-BETA/queryparser/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.html > > it says that: > This query parser works exactly as the standard query parser ( > StandardQueryParser ), except that it respect the boolean precedence, so <a > AND b OR c AND d> is parsed to <(+a +b) (+c +d)> instead of <+a +b +c +d>. > > This is exactly feature that I need. > Could anyone give me example how to configure my SOLR instance to use this > parser? > > Regards > Maciej Pestka > >