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