# Wildcard search not working for "-" in the wildcard

**URL:** <https://discuss.elastic.co/t/wildcard-search-not-working-for-in-the-wildcard/120381>\
**Category:** Elasticsearch\
**Created:** [February 19, 2018, 12:47am UTC](https://discuss.elastic.co/t/wildcard-search-not-working-for-in-the-wildcard/120381 "2018-02-19T00:47:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2018, 7:52pm UTC](https://discuss.elastic.co/t/wildcard-search-not-working-for-in-the-wildcard/120381/7 "2018-02-19T19:52:13Z")

</div>

I have absolutely no way to reproduce the problem you are seeing. Please build from scratch a simple example. As explained here: [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21)

```auto
DELETE index
PUT index/doc/1
{
  "foo": "bar"
}
GET index/_search
{
  "query": {
    "match": {
      "foo": "bar"
    }
  }
}

```

This is a typical script that can be used by anyone to reproduce your problem and help you fix it. The more work you do on your side, the faster we can help you to solve the problem.

Anyway here is similar discussion I had recently about wildcards. You'll see a full example:

> [@Wildcard / regexp in a phrase which has space](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962/17):
>
> Sure. This is what you want: DELETE test PUT test { "settings": { "analysis": { "analyzer": { "my\_analyzer": { "tokenizer": "standard", "filter": ["lowercase", "ngram"] } }, "filter": { "ngram": { "type": "edge\_ngram", "min\_gram": 1, "max\_gram": 20, "token\_chars": ["letter", "digit"] } } } }, "mappings": { …

---

_[View the full topic](https://discuss.elastic.co/t/wildcard-search-not-working-for-in-the-wildcard/120381)._
