# Query issue, dot in field value returning 0 hits

**URL:** <https://discuss.elastic.co/t/query-issue-dot-in-field-value-returning-0-hits/264819>\
**Category:** Elasticsearch\
**Created:** [February 19, 2021, 8:43am UTC](https://discuss.elastic.co/t/query-issue-dot-in-field-value-returning-0-hits/264819 "2021-02-19T08:43:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sampson\_Light](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sampson_light/32/77283_2.png) [@Sampson\_Light](https://discuss.elastic.co/u/Sampson_Light)\
**Post date:** [February 19, 2021, 8:43am UTC](https://discuss.elastic.co/t/query-issue-dot-in-field-value-returning-0-hits/264819/1 "2021-02-19T08:43:38Z")

</div>

Hello,

There's an issue with the use of . in my field value.

The sample below is a 'valid' query that returns some hits

```auto
{
  "query": {
    "bool": {
      "must": [
        {
          "wildcard": {
            "Address": "abcdef*"
          }
        },
        {
          "match": {
            "Message.Code": "AA101"
          }
        },
        {
          "range": {
            "DateCreated": {
              "gte": "2020-01-04",
              "lte": "2020-01-04"
            }
          }
        }
      ],
      "must_not": [],
      "should": []
    }
  }
}

```

However, the problem starts when I change Message.Code from "AA101" to "AA101.extra", resulting in 0 hits.

```auto
{
  "query": {
    "bool": {
      "must": [
        {
          "wildcard": {
            "Address": "abcdef*"
          }
        },
        {
          "match": {
            "Message.Code": "AA101.extra"
          }
        },
        {
          "range": {
            "DateCreated": {
              "gte": "2020-01-04",
              "lte": "2020-01-04"
            }
          }
        }
      ],
      "must_not": [],
      "should": []
    }
  }
}

```

Please advise how I should go about this.

Thanks!  
Sam

---

<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:** [March 19, 2021, 8:43am UTC](https://discuss.elastic.co/t/query-issue-dot-in-field-value-returning-0-hits/264819/2 "2021-03-19T08:43:55Z")

</div>

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