elasticsearch/elasticsearch — Issue #1756: Sort on _id not working?
Author: eingrad
Created: 2012-03-04 00:56:25+00:00
State: open

Just switched to 0.19.0 and having some odd behavior.

Using java API:
> SortBuilders.fieldSort("_id").order(SortOrder.ASC)

produces the following json:
"sort" : [ {
"_id" : {
"order" : "asc"
}
} ]

But result has field
> "sort" : [ null ],

anything wrong with new ES or is it me?