Hi,
I have an issue related to the ordering of the term facets. It seems that
the ordering does not work properly when there are upper / lower case.
This is the facet definition:
{
"size": 0,
"facets" : {
"location" : {
"terms" : {
"field" : "location.untouched",
"size" : 10,
"order" : "term"
}
}
}
}
And this is the response:
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 814,
"max_score": 1,
"hits": []
},
"facets": {
"location": {
"_type": "terms",
"missing": 49,
"total": 781,
"other": 739,
"terms": [
{
"term": "AR - Little Rock",
"count": 2
},
{
"term": "AZ -Phoenix",
"count": 3
},
{
"term": "Aberdeen",
"count": 1
},
{
"term": "Abu Dhabi",
"count": 1
},
{
"term": "Alberta - Calgary",
"count": 1
},
{
"term": "Almere",
"count": 11
},
{
"term": "Amazonas - Manaus",
"count": 1
},
{
"term": "Amsterdam",
"count": 18
},
{
"term": "Athens",
"count": 1
},
{
"term": "Bangkok",
"count": 3
}
]
}
}
}
"AR - Little Rock" should not be the first location.
Best Regards,
Roberto.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.