# Search colon separated values in text field in Kibana fails

**URL:** <https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797>\
**Category:** Kibana\
**Created:** [April 10, 2017, 10:15am UTC](https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797 "2017-04-10T10:15:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnoSD](https://avatars.discourse-cdn.com/v4/letter/u/fbc32d/32.png) [@UnoSD](https://discuss.elastic.co/u/UnoSD)\
**Post date:** [April 10, 2017, 10:15am UTC](https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797/1 "2017-04-10T10:15:11Z")

</div>

**Kibana version** : 5.3.0

**Elasticsearch version** : 5.3.0

**Browser version** : Chrome 56

I have some data with the following structure:

```
{
  "_index": "...",
  "_type": "...",
  "_id": "...",
  "_score": null,
  "_source": {
    "ActivityID": "7aa89a606fb940598c1906fcc315788f",
    "input_type": "log",
    "Date": "2017-04-05 15:00:05.0212",
    "Details": " Data: EventsCount: 1 accountId: 12345 otherId: 12345 sql: SELECT Bla FROM Bla EventId: 5",
    "ThreadID": "21",
    "@version": "1"
  }
}

```

And I can successfully use the **regexp** filter to filter the values AFTER the colon in the `Details` column:

```
{
  "query": {
    "regexp": {
      "Details": {
        "value": "[0-9]{5}"
      }
    }
  }
}

```

This highlight all the accountId/otherId values containing 5 digits.

But if I try to filter on the name (I.E. EventsCount/accountId/otherId or "accountId: 12345") I do not get any result.

Details is just a string field so its content should be considered all together a big string, but for some reason is not searching the names before the colon (and or the whitespaces and the colon themselves which I believe it is default behaviour).

Mapping:

```auto
  "Details": {
    "type": "text",
    "norms": false
  },

```

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 10, 2017, 5:01pm UTC](https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797/2 "2017-04-10T17:01:57Z")

</div>

I think this is because the field is indexed (this is due to the fact that it's mapped as a text field). But you can highlight fields containing a string by using a wildcard filter like this:

> ```
> {
> "query": {
> "wildcard": {
> "system.network.name": "*accountId*"
> }
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![UnoSD](https://avatars.discourse-cdn.com/v4/letter/u/fbc32d/32.png) [@UnoSD](https://discuss.elastic.co/u/UnoSD)\
**Post date:** [April 11, 2017, 9:30am UTC](https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797/3 "2017-04-11T09:30:25Z")

</div>

Thank you for the reply; I will try this now and see if it works, but is there a way to use regex for that?

EDIT: Just tried, wildcard doesn't work either.

---

<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 9, 2017, 9:35am UTC](https://discuss.elastic.co/t/search-colon-separated-values-in-text-field-in-kibana-fails/81797/4 "2017-05-09T09:35:54Z")

</div>

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