Ok Toke.
Thanks for your explanation.
This is an interesting feature to be implemented, because we can sort the 
results correctly, but not in the facets.
The facets also does not bring the total count for pagination.
I'm using the facets to get the distinct values ​​of a field. I wish to sort 
and pagination them.


-----Mensagem original-----
De: Toke Eskildsen [mailto:t...@statsbiblioteket.dk] 
Enviada em: terça-feira, 11 de setembro de 2012 04:11
Para: solr-user@lucene.apache.org
Assunto: Re: RES: RES: Problem with accented words sorting

On Mon, 2012-09-10 at 16:04 +0200, Claudio Ranieri wrote:
> When I used the CollationKeyFilterFactory in my facet (example below), 
> the value of facet went wrong. When I remove the 
> CollationKeyFilterFactory of type of facet, the value went correct.

As Ahmed wrote, CollationKeyFilter is meant for sorting of the document result. 
It works by creating a key for each value. The key is, as you discovered, not 
meant for human eyes. When you do a sort on the collation field, the key is 
used for ordering and the original human-friendly text is taken from a stored 
field.
See https://wiki.apache.org/solr/UnicodeCollation

For faceting, the dual value approach does not work as there are no mapping 
from the key to the original value. There are several possible solutions to 
this (storing the original value together with the key seems sensible), but as 
far as I know, Solr does not currently support collator sorted faceting.

> Is it a bug?

No, it is a known (and significant IMO) limitation.

Reply via email to