I received an error when I tried to run POST _count
.
This is the bodyJSON:
{
"size" : "1",
"from" : "0",
"track_scores": true,
"sort" : [
{ "article_id" : "asc" }
],
"query": {
"filtered": {
"query": {
"query_string" : {
"fields" : ["content", "title"],
"query" : ` + queryEs + `
}
},
"filter": {
"range": {
"article_id" : {
"gte": "` + intToString(s.Maxid) + `"
}
}
}
}
}
}
This is the error:
{"error":{"root_cause":[{"type":"parsing_exception","reason":"request does not support [size]","line":2,"col":10}],"type":"parsing_exception","reason":"request does not support [size]","line":2,"col":10},"status":400}
I wonder if my query is wrong, does anyone know if a made a mistake?
Thanks