Hey Yonik

It installed the latest Solr (Solr 4.4) and started the jetty configured in the 
example directory. 

To the core collection1 I added three titles. a, b, ä

curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' 
-d '[{"id" : "1", "title" : "a"},{"id" : "2", "title" : "ä"},{"id" : "3", 
"title" : "b"}]'

Now I want to sort these three titles with the following query: 

http://localhost:8983/solr/collection1/select?q=*:*&facet=true&facet.sort=index&facet.field=title&rows=0

I expect:

<lst name="title">
<int name="a">1</int>
<int name="ä">1</int>
<int name="b">1</int>
</lst>

But I receive 

<lst name="title">
<int name="a">1</int>
<int name="b">1</int>
<int name="ä">1</int>
</lst>

PS: In Java I would sort these value with a Comperator that uses 
Collator.getInstance().compare(value1, value2);

Best regards 

Sandro

-----Ursprüngliche Nachricht-----
Von: ysee...@gmail.com [mailto:ysee...@gmail.com] Im Auftrag von Yonik Seeley
Gesendet: Montag, 9. September 2013 21:26
An: solr-user@lucene.apache.org
Betreff: Re: Facet Sort with non ASCII Characters

On Mon, Sep 9, 2013 at 7:16 AM, Sandro Zbinden <zbin...@imagic.ch> wrote:
> Is there a plan to add support for alphabetical facet sorting with non ASCII 
> Characters ?

The entire unicode range should already work.  Can you give an example of what 
you would like to see?

-Yonik
http://lucidworks.com

Reply via email to