lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Re: Lucene sorting case-sensitive by default?
Date Tue, 15 Jan 2008 22:59:21 GMT
Erick Erickson wrote:

>             doc.add(
>                     new Field(
>                             "f",
>                             "This is Some Mixed, case Junk($*%& With Ugly
> SYmbols",
>                             Field.Store.YES,
>                             Field.Index.TOKENIZED));

<snip>

> prints "This is Some Mixed, case Junk($*%& With Ugly SYmbols"
> yet still finds the document with a search for "junk" using
> StandardAnalyzer.

Don't forget you can't sort on that as the field's tokenized, so although it's 
stored in the original and indexed as lower case into multiple tokens, you will 
get the RuntimeException from FieldCache.

Antony



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