lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Sorting case insensitive wildcard queries
Date Fri, 19 Feb 2010 13:33:31 GMT
You can index (but not store) the field you want to sort on
in a separate field then sort on that field.

How are you sorting anyway? Your message leaves open
the possibility that you're sorting on a tokenized field, which
is unsupported. Fields you use to sort should be
untokenized.

HTH
Erick

On Fri, Feb 19, 2010 at 6:02 AM, kevinkilroy <kevinkilroy@hotmail.com>wrote:

>
> Hi,
>
> I have an AnalyzerDefinition:
>
> @AnalyzerDef(name = "CustomAnalyzer",
>             tokenizer = @TokenizerDef(factory =
> StandardTokenizerFactory.class),
>             filters = { @TokenFilterDef(factory =
> LowerCaseFilterFactory.class) }
>            )
>
> This works well, as I can do case insensitive searches, however, I sort my
> results, but lowercase names remain at the end of the list of results. For
> example:
>
> Name
> Mobile phone
> Monitor
> Searching
> Testing
> mobile defib
>
> I would like to sort case insensitively, so mobile defib would appear
> between Name & Mobile phone.
>
> note, I am using wildcard queries for the search.
>
> Is this possible?
>
> Thanks in advance,
>
> Kevin.
>
>
> --
> View this message in context:
> http://old.nabble.com/Sorting-case-insensitive-wildcard-queries-tp27652362p27652362.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message