If I'm sorting by 'venue.name' ascending, why would a name like 'Terminal
5' be sorted before 'B.B. King Blues Club & Grill'? Does it have something
to do with the number '5' in the name?
This is because your field is tokenized and elasticsearch will take the
minimum value as a sort value. For the first document, this would be "5",
which compares lower than "B" in the second string. To make it work as
expected, you need to index your field as not_analyzed (
).
On Sat, Oct 25, 2014 at 8:37 PM, Michael Irwin mdi@livej.am wrote:
If I'm sorting by 'venue.name' ascending, why would a name like 'Terminal
5' be sorted before 'B.B. King Blues Club & Grill'? Does it have
something to do with the number '5' in the name?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.