Re: PrecedenceQueryParser usage

2012-09-12 Thread Maciej Pestka
Thank you! It seems to me that I managed to get it work. Just for future reference short I attach source code. The jar should be placed under core/lib folder: Please let me know if you have any comments or if I got sth incorrect... public class PrecedenceQParserPlugin extends QParserPlugin {

Re: PrecedenceQueryParser usage

2012-09-10 Thread Ahmet Arslan
> 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.  SurroundQParserPlugin.java (api-4_0_0-BETA) can be an example of such implementation. http://lucene.apache.org/solr/api-4_0

Re: PrecedenceQueryParser usage

2012-09-10 Thread Erik Hatcher
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

PrecedenceQueryParser usage

2012-09-10 Thread Maciej Pestka
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 pr