Created
February 13, 2012 21:29
-
-
Save bryangreen/1820642 to your computer and use it in GitHub Desktop.
Getting ClassCastException[org.elasticsearch.search.controller.ShardScoreDoc cannot be cast to org.apache.lucene.search.FieldDoc]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The "permission" item type exists on the system and library indexes. It does not exist on the 'kk' index. | |
curl -XPOST "http://localhost:9200/system,library,kk/permission/_search" -d { | |
"from": 0, | |
"size": "20", | |
"sort": [ | |
{ | |
"title": { | |
"ignore_unmapped": true | |
} | |
} | |
] | |
} | |
{"error":"ReduceSearchPhaseException[Failed to execute phase [fetch], [reduce] ]; nested: ClassCastException[org.elasticsearch.search.controller.ShardScoreDoc cannot be cast to org.apache.lucene.search.FieldDoc]; ","status":500} | |
Works fine when the sort is removed from the query. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment