# Disabling wildcard in query\_string or at index level

**URL:** <https://discuss.elastic.co/t/disabling-wildcard-in-query-string-or-at-index-level/229412>\
**Category:** Elasticsearch\
**Created:** [April 23, 2020, 8:43am UTC](https://discuss.elastic.co/t/disabling-wildcard-in-query-string-or-at-index-level/229412 "2020-04-23T08:43:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Federico\_Foschini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/federico_foschini/32/31209_2.png) [@Federico\_Foschini](https://discuss.elastic.co/u/Federico_Foschini)\
**Post date:** [April 23, 2020, 8:43am UTC](https://discuss.elastic.co/t/disabling-wildcard-in-query-string-or-at-index-level/229412/1 "2020-04-23T08:43:05Z")

</div>

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:

```auto
     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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 21, 2020, 8:43am UTC](https://discuss.elastic.co/t/disabling-wildcard-in-query-string-or-at-index-level/229412/2 "2020-05-21T08:43:11Z")

</div>

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