When i am trying to pull the data by using below query, i am getting the parsing_exception.
curl -XGET 'http://localhost:9200/debuglogs-*/_count?pretty' -d '{"query": { "bool": { "must": [ { "term": { "SessionId": "1492527551776" } }, { "term": { "Filename": "default.log" } } ] } }, "stored_fields" : ["times","level","errormessage"], "sort" : [{ "times" : {"order" : "asc"}}] }'
Ther Error is:
{
"error" : {
"root_cause" : [
{
"type" : "parsing_exception",
"reason" : "request does not support [stored_fields]",
"line" : 1,
"col" : 128
}
],
"type" : "parsing_exception",
"reason" : "request does not support [stored_fields]",
"line" : 1,
"col" : 128
},
"status" : 400
}