Shalin Shekhar Mangar a écrit :
On Fri, Jun 26, 2009 at 4:06 PM, Sébastien Lamy <lamys...@free.fr> wrote:

Hi!

When I ask solr for facets, with the parameter "facet.sort=index", it gives
me the facets sorted alphabetically, but case and accent sensitive.

I found no way to have the facets returned with the original case and
accents, and sorted alphabetically, with no sensibility to case and accents.

Is there anything I can do to achieve this goal, without having to retrieve
all facets and sort it myself? (We have fields with many, many facets, and
doing so impacts performance a lot).


Faceting is done on indexed values so if your indexed values are with
original case and accents, they will be sorted accordingly. You could use a
copyField to store these values into a string type and facet on that.

If I use a copyField to store into a string type, and facet on that, my problem remains: The facets are sorted case and accent sensitive. And I want an *insensitive* sort. If I use a copyField to store into a type with no accents and case (e.g alphaOnlySort), then solr return me facet values with no accents and no case. And I want the facet values returned by solr to *have accents and case*.

Reply via email to