lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gusenbauer Stefan <>
Subject Re: Confused about non-tokenized fields
Date Fri, 27 May 2005 15:59:59 GMT
Max Pfingsthorn wrote:

>In my application, I index some strings (like filenames) untokenized, meaning via
>doc.add(new Field(FIELD,VALUE,false,true,false));
>When I later take a look at it with Luke, I still get tokens of the filenames (like "news"
instead of "news-item.xml") in the list of most frequent terms. Shouldn't I get only the complete
filenames there??
>Also, how do I search case-insensitive over this kind of field?
>Best regards,
>Max Pfingsthorn
>Oosteinde 11
>1017WT Amsterdam
>The Netherlands
>Tel  +31 (0)20 5224466
> /
>To unsubscribe, e-mail:
>For additional commands, e-mail:
For indexing untokenized fields try the static method
Field.Keyword(String fieldname,String value) then the string is really
not tokenized. But i think new Field with your params should make the
same. Have you tried to make a search for the filename this should only
return a result when you write out the whole filename.

Case insensitive search is standard when you use the standardanalyzer i
the code should look like this"the query string","the fieldname",new

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

View raw message