elasticsearch/elasticsearch — Issue #1604: 18.6 Error raised when including timeout in request body
Author: frazerh
Created: 2012-01-11 19:08:11+00:00
State: open

curl -XGET 'http://localhost:9200/test/_search?pretty=true' -d '
{
"timeout" : 10,
"query" : {
"term" : { "id" : 397 }
}
}
'
{
"error" : "SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[Yk0AMMBbQaqR2dhRV_o91Q][test][1]: SearchParseException[[test][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [\n{\n \"timeout\" : 10,\n\"query\" : {\n \"term\" : { \"id\" : 397 }\n }\n}\n]]]; nested: SearchParseException[[test][1]: from[-1],size[-1]: Parse Failure [No parser for element [timeout]]]; }{[Yk0AMMBbQaqR2dhRV_o91Q][customers_1323957964.851052][4]: SearchParseException[[test][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [\n{\n \"timeout\" : 10,\n\"query\" : {\n \"term\" : { \"id\" : 397 }\n }\n}\n]]]; nested: SearchParseException[[test][4]: from[-1],size[-1]: Parse Failure [No parser for element [timeout]]]; }]",
"status" : 500
}