# No results on keyword search

**URL:** <https://discuss.elastic.co/t/no-results-on-keyword-search/185878>\
**Category:** Kibana\
**Created:** [June 14, 2019, 2:49pm UTC](https://discuss.elastic.co/t/no-results-on-keyword-search/185878 "2019-06-14T14:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![olatunde.tokun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olatunde.tokun/32/110546_2.png) [@olatunde.tokun](https://discuss.elastic.co/u/olatunde.tokun)\
**Post date:** [June 14, 2019, 2:49pm UTC](https://discuss.elastic.co/t/no-results-on-keyword-search/185878/1 "2019-06-14T14:49:14Z")

</div>

Hello,

I have a specific field which has been indexed as a keyword type in ES.

The field contains some values that begin with `%%`.

Using the analyze api, it shows that the field is keyword analyzed, however when I search, it returns empty results.

My opinion is that its related to the values starting with `%%` but I dont seem to find any documentation that points to this behaviour.

Please see below some results.

Field mapping:  
`"event_data": { "properties": { "access_list": { "type": "keyword" }`

Analyzing the field shows its keyword indexed.

```auto
GET windows-security-index/_analyze
{
  "field" : "event_data.access_list",
  "text" : "%%1537"
}

{
  "tokens": [
    {
      "token": "%%1537",
      "start_offset": 0,
      "end_offset": 6,
      "type": "word",
      "position": 0
    }
  ]
}

```

No results on the search:

```auto
GET /windows-security-index/_search
{
    "query" : {
        "term" : { "event_data.access_list" : "%%1537" }
    }
}

{
  "took": 30,
  "timed_out": false,
  "_shards": {
    "total": 8,
    "successful": 8,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

```

Any help or suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![olatunde.tokun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olatunde.tokun/32/110546_2.png) [@olatunde.tokun](https://discuss.elastic.co/u/olatunde.tokun)\
**Post date:** [June 15, 2019, 6:44pm UTC](https://discuss.elastic.co/t/no-results-on-keyword-search/185878/2 "2019-06-15T18:44:08Z")

</div>

Issue has been resolved.

There was a space in the field which I had to remove with mutate strip

---

<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:** [July 13, 2019, 6:44pm UTC](https://discuss.elastic.co/t/no-results-on-keyword-search/185878/3 "2019-07-13T18:44:10Z")

</div>

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