Search code examples
elasticsearchelasticsearch-aggregation

elasticsearch validation of aggregation queries


I run simple aggregration query in marvel and get the result without problem: enter image description here

But when I validate the same query, it returns false and in explantion it says "QueryParsingException"... enter image description here

I can validate other queries if it works valid is true if not valid false, even my aggre query works and give me documens its validation result false.. Why is that ? its some kind of bug here ? or ?


Solution

  • Your validation URL should look like this instead:

    dota2/_validate/query?explain=true
    

    and not like this

    dota2/_search/_validate/query?explain=true
             ^
             |
        remove this