Disabling wildcard in query_string or at index level

Hello,
Is it possible to disabling wildcards on a single index or directly in a query?

Basically I'd like to do query like those:

     GET /_search
    {
        "query": {
            "query_string" : {
                "query" : "foobar!",
            }
        }
    }

    GET /_search
    {
        "query": {
            "query_string" : {
                "query" : "*!",
            }
        }
    }

My goal is to search exactly for foobar! or *!. I can escape every wildcard but It can lead to errors if the query is done manually through kibana.

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