lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
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.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message