lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Newbie Phrase Query question
Date Fri, 06 Feb 2004 02:18:21 GMT
On Feb 5, 2004, at 8:19 PM, Scott Smith wrote:
> There is a minor issue I found that I think works as documented, but
> wonder why it's that way.  If you enter a search string that's a
> hyphenated word such as "fred-bill" (w/o the quotes), the QueryParser
> generates a search string to find all documents with fred but w/o bill.
> I believe this is expected behavior based on the javadocs.

This is actually a documented bug that needs to be fixed.  If there is 
no whitespace, the dash should not be taken as term negation, but 
rather the entire unit should be passed to the analyzer.


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

View raw message