Do match_phrase_prefix queries support the zero_terms_query parameter?

According to the current documentation, match phrase prefix queries support the zero_terms_query parameter. However, if I attempt to set this parameter to "all" in a query, I get an error of type parsing_exception with reason "[match_phrase_prefix] query does not support [zero_terms_query]".

The cURL I'm using:

curl -X GET "localhost:9200/events/_search?pretty" -H 'Content-Type: application/json' -d'
    "query": {
        "match_phrase_prefix" : {
            "name" : {
                "query" : "page",
                "analyzer" : "english",
                "zero_terms_query" : "all"

What am I doing wrong?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.