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: Is analyzing same as tokenizing???
Date Tue, 27 Sep 2005 16:20:03 GMT

On Sep 27, 2005, at 9:01 AM, Anand Kishore wrote:

>> That is correct. A Keyword field is taken exact case as-is as a
>> single term.
>>
>
> For example: If I have a keyword field named "sender" which has the  
> value
> "The Motely Fool", doing a search for either of these query terms  
> "Fool" or
> "fool" or "Motely" on the "sender" field should match the documents
> containing the above field or does the query has to be explicitly  
> "The Motel
> Fool".

So use Field.Text(), not Field.Keyword() in this case, and ensure you  
know what your analyzer is doing to your text - use Luke to see first- 
hand perhaps.

     Erik


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


Mime
View raw message