Request is parsed wrong


(Max Melentiev) #1

I was trying some queries and found mistake. First I found that "facets"
does not run in my query, then I noticed that even corupted JSON works:

{
"query": {
"filtered":{
"query":{ "match": { "_all" : "1" }},
"filter":{
"limit":{value:1},
"and":[
{"range":{"a":{"from":1,"to":1}}}
]
}
}
}asdadasdadasdad,asdsdasdasd{}[]35345
"facets": { f: { "terms": { "field" : "c" } } }
}

As I understood I can use only one filter in filtered query so this request
should not work but it runs ok even with garbage in the end.

I run 0.19.9 on ubuntu.

--


(system) #2