lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <>
Subject Re: MultiFieldQueryParser seems broken... Fix attached.
Date Thu, 09 Sep 2004 12:48:55 GMT
> is it a problem if the users will search "coffee OR tea" as a search 
> string in the case that MultifieldQueryParser is
> modifyed as Bill suggested?, and the default opperator is set to AND?

Here's what you get (which is correct):

% java -classpath /usr/local/lib/lucene-1.4.1.jar:. \
       -DSearchText.QueryDefaultOperator=AND \
       -DSearchTest.QueryParser=new SearchTest 'coffee OR tea'
query is (title:coffee authors:coffee contents:coffee) (title:tea authors:tea contents:tea)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message