: According to that bug list, there are other characters that break the
: sorting function.  Is there a list of safe characters I can use as a
: delimiter?

the safest field names to use (and most efficient to parse when sorting) 
are things that follow the the "id" semenatics in java (not including the 
"$" character at the begining) ...

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Character.html#isJavaIdentifierStart%28char%29
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Character.html#isJavaIdentifierPart%28char%29

So sorts like "foo_bar_baz asc" will definitely work, and are heavily 
tested

I've just posted a patch to SOLR-2606 that should fix the "foo:bar asc" 
and "foo-bar asc" situations, but because of the function query sort 
parsing that happens first, they will always be slightly slower to parse.


-Hoss

Reply via email to