lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej Pestka" <maciej.pes...@wp.pl>
Subject PrecedenceQueryParser usage
Date Mon, 10 Sep 2012 13:47:54 GMT
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



Mime
View raw message