lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
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));


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


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

View raw message