lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Heinrich" <lucene-us...@atablis.com>
Subject Re: Wildcard query with untokenized punctuation
Date Fri, 09 Mar 2007 22:31:50 GMT
On 9 Mar 2007 at 15:10, McGuigan, Colin wrote:

> I have a "filename" field in Lucene that holds a value, like this:
> pagefile.sys
> 

Hi Colin,

I'm still _very_ new to lucene, but isn't that what the un-tokenized 
indexing is for?
Like in 1.9.1
doc.add(Field.Keyword("filename", "pagefile.sys"));

in 2.0.1
doc.add(new Field("filename", "pagefile.sys", Field.Store.YES, 
Field.Index.UN_TOKENIZED));

Maybe this will work as desired?

Cheers, Steffen



---------------------------------------------------------------------
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