Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Url:127.0.0.1:9200/index_search_operate14894cbd-ec15-414f-a405-f329cc370b29/type/_search,
ReqData
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
"filter": {
"and": {
"filters": [
{
"numeric_range": {
"age": {
"from": "22",
"to": "25",
"include_lower": true,
"include_upper": true
}
},
"_cache": false
}
]
},
"_cache": false
},
"boost": 1
}
},
"explain": false
}
,Response:
{
"error": "SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][0]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][0]: from[0],size[5]: Parse Failure [Failed to parse source [{\"from\": 0,\"size\": 5,\"query\":{\"constant_score\":{\"filter\":{\"and\":{\"filters\":[{\"numeric_range\":{\"age\":{\"from\":\"22\",\"to\":\"25\",\"include_lower\":true,\"include_upper\":true}},\"_cache\": false}]},\"_cache\": false},\"boost\": 1}},\"explain\": false}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] No filter registered for [filters]]; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][3]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][3]: from[0],size[5]: Parse Failure [Failed to parse source [{\"from\": 0,\"size\": 5,\"query\":{\"constant_score\":{\"filter\":{\"and\":{\"filters\":[{\"numeric_range\":{\"age\":{\"from\":\"22\",\"to\":\"25\",\"include_lower\":true,\"include_upper\":true}},\"_cache\": false}]},\"_cache\": false},\"boost\": 1}},\"explain\": false}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] No filter registered for [filters]]; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][1]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][1]: from[0],size[5]: Parse Failure [Failed to parse source [{\"from\": 0,\"size\": 5,\"query\":{\"constant_score\":{\"filter\":{\"and\":{\"filters\":[{\"numeric_range\":{\"age\":{\"from\":\"22\",\"to\":\"25\",\"include_lower\":true,\"include_upper\":true}},\"_cache\": false}]},\"_cache\": false},\"boost\": 1}},\"explain\": false}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] No filter registered for [filters]]; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][4]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][4]: from[0],size[5]: Parse Failure [Failed to parse source [{\"from\": 0,\"size\": 5,\"query\":{\"constant_score\":{\"filter\":{\"and\":{\"filters\":[{\"numeric_range\":{\"age\":{\"from\":\"22\",\"to\":\"25\",\"include_lower\":true,\"include_upper\":true}},\"_cache\": false}]},\"_cache\": false},\"boost\": 1}},\"explain\": false}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] No filter registered for [filters]]; }]",
"status": 500
}
some changes,
ReqBody:
{
"from": 0,
"size": 5,
"query": {
"constant_score": {
"filter": {
"and": [
{
"numeric_range": {
"age": {
"from": "22",
"to": "25",
"include_lower": true,
"include_upper": true
}
},
"_cache": false
}
]
},
"boost": 1
}
},
"explain": false
}
Response:
{
"error": "SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][2]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][2]: from[0],size[5]: Parse Failure [Failed to parse source [{\"from\": 0,\"size\": 5,\"query\":{\"constant_score\":{\"filter\":{\"and\":{\"filters\":[{\"numeric_range\":{\"age\":{\"from\":\"22\",\"to\":\"25\",\"include_lower\":true,\"include_upper\":true}},\"_cache\": false}]},\"_cache\": false},\"boost\": 1}},\"explain\": false}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] No filter registered for [filters]]; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][0]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][0]: from[0],size[5]: Parse Failure [Failed to parse source [{\r\n \"from\": 0,\r\n \"size\": 5,\r\n \"query\": {\r\n \"constant_score\": {\r\n \"filter\": {\r\n \"and\": [\r\n {\r\n \"numeric_range\": {\r\n \"age\": {\r\n \"from\": \"22\",\r\n \"to\": \"25\",\r\n \"include_lower\": true,\r\n \"include_upper\": true\r\n }\r\n },\r\n \"_cache\": false\r\n }\r\n ]\r\n },\r\n \"boost\": 1\r\n }\r\n },\r\n \"explain\": false\r\n}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] [or] filter requires 'filters' to be set on it']; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][1]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][1]: from[0],size[5]: Parse Failure [Failed to parse source [{\r\n \"from\": 0,\r\n \"size\": 5,\r\n \"query\": {\r\n \"constant_score\": {\r\n \"filter\": {\r\n \"and\": [\r\n {\r\n \"numeric_range\": {\r\n \"age\": {\r\n \"from\": \"22\",\r\n \"to\": \"25\",\r\n \"include_lower\": true,\r\n \"include_upper\": true\r\n }\r\n },\r\n \"_cache\": false\r\n }\r\n ]\r\n },\r\n \"boost\": 1\r\n }\r\n },\r\n \"explain\": false\r\n}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] [or] filter requires 'filters' to be set on it']; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][3]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][3]: from[0],size[5]: Parse Failure [Failed to parse source [{\r\n \"from\": 0,\r\n \"size\": 5,\r\n \"query\": {\r\n \"constant_score\": {\r\n \"filter\": {\r\n \"and\": [\r\n {\r\n \"numeric_range\": {\r\n \"age\": {\r\n \"from\": \"22\",\r\n \"to\": \"25\",\r\n \"include_lower\": true,\r\n \"include_upper\": true\r\n }\r\n },\r\n \"_cache\": false\r\n }\r\n ]\r\n },\r\n \"boost\": 1\r\n }\r\n },\r\n \"explain\": false\r\n}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] [or] filter requires 'filters' to be set on it']; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][2]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][2]: from[0],size[5]: Parse Failure [Failed to parse source [{\r\n \"from\": 0,\r\n \"size\": 5,\r\n \"query\": {\r\n \"constant_score\": {\r\n \"filter\": {\r\n \"and\": [\r\n {\r\n \"numeric_range\": {\r\n \"age\": {\r\n \"from\": \"22\",\r\n \"to\": \"25\",\r\n \"include_lower\": true,\r\n \"include_upper\": true\r\n }\r\n },\r\n \"_cache\": false\r\n }\r\n ]\r\n },\r\n \"boost\": 1\r\n }\r\n },\r\n \"explain\": false\r\n}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] [or] filter requires 'filters' to be set on it']; }{[Nqi7PeirRBiGPKgsDxFT3w][index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][4]: SearchParseException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29][4]: from[0],size[5]: Parse Failure [Failed to parse source [{\r\n \"from\": 0,\r\n \"size\": 5,\r\n \"query\": {\r\n \"constant_score\": {\r\n \"filter\": {\r\n \"and\": [\r\n {\r\n \"numeric_range\": {\r\n \"age\": {\r\n \"from\": \"22\",\r\n \"to\": \"25\",\r\n \"include_lower\": true,\r\n \"include_upper\": true\r\n }\r\n },\r\n \"_cache\": false\r\n }\r\n ]\r\n },\r\n \"boost\": 1\r\n }\r\n },\r\n \"explain\": false\r\n}]]]; nested: QueryParsingException[[index_search_operate14894cbd-ec15-414f-a405-f329cc370b29] [or] filter requires 'filters' to be set on it']; }]",
"status": 500
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.