Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-08 Thread Peter Neubauer
Thanks Yuanlong, we will look at it as soon as we got some time! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org           

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-07 Thread iamyuanlong
I added here : https://github.com/neo4j/community/issues/14 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-how-Neo4j-work-for-sorting-chinese-character-tp3309754p3318317.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-07 Thread Peter Neubauer
Yuan, could you make a test for this, and issue a pull request on GIThub? This should absolutely be part of the main code so you don't have to have your own fork. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linked

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-06 Thread iamyuanlong
A ha ! I changed the cypher Scala source code by myself . Thank you for your help. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-how-Neo4j-work-for-sorting-chinese-character-tp3309754p3315369.html Sent from the Neo4j Community Discussions mailing

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-05 Thread wang yuanlong
hi, In java we can sort Pinyin like this: (Sun provide a Comparator) public int compare(String o1, String o2) { return Collator.getInstance(Locale.CHINESE).compare(o1, o2); } But it's got some flaws. You know there are so many homophones in Chinese. But in Sun's Comparator they don't

Re: [Neo4j] how Neo4j work for sorting chinese character?

2011-09-05 Thread Peter Neubauer
Yuanlong, can you provide Java code on how to sort Pinyin characters? In that case, I am sure there is a way to incorporate it into the Cypher sorting routines. It would be very helpful since we don't even know how to test Pinyin sorting for correctness :/ Cheers, /peter neubauer GTalk: neu