# Not matching com.xyz.exception.XyzException when searched for Exception

**URL:** <https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784>\
**Category:** Kibana\
**Created:** [July 5, 2016, 10:45pm UTC](https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784 "2016-07-05T22:45:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabad](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sabad](https://discuss.elastic.co/u/sabad)\
**Post date:** [July 5, 2016, 10:45pm UTC](https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784/1 "2016-07-05T22:45:45Z")

</div>

I am trying to search Exception and results nothing.  
It works if I search for the whole string com.xyz.exception.XyzException

Need help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 6, 2016, 6:06am UTC](https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784/2 "2016-07-06T06:06:14Z")

</div>

What is the field mapped as in ES?

---

<div class="post-metadata">

**Author:** ![bhatch](https://avatars.discourse-cdn.com/v4/letter/b/e95f7d/32.png) [@bhatch](https://discuss.elastic.co/u/bhatch)\
**Post date:** [July 6, 2016, 10:47pm UTC](https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784/3 "2016-07-06T22:47:35Z")

</div>

Are you using the standard analyzer/tokenizer? I don't believe it is build to split up terms by a period.

If you run this through Sense/Curl I only get one result.  
Query:

```
GET _analyze 
{
  "analyzer" : "standard",
  "text" : "com.xyz.exception.XyzException"
}

```

Results:

```
{
  "tokens": [
    {
      "token": "com.xyz.exception.xyzexception",
      "start_offset": 0,
      "end_offset": 30,
      "type": "<ALPHANUM>",
      "position": 0
    }
  ]
}

```

If you try the same thing for "I am a String" you get:

```
{
  "tokens": [
    {
      "token": "i",
      "start_offset": 0,
      "end_offset": 1,
      "type": "<ALPHANUM>",
      "position": 0
    },
    {
      "token": "am",
      "start_offset": 2,
      "end_offset": 4,
      "type": "<ALPHANUM>",
      "position": 1
    },
    {
      "token": "a",
      "start_offset": 5,
      "end_offset": 6,
      "type": "<ALPHANUM>",
      "position": 2
    },
    {
      "token": "string",
      "start_offset": 7,
      "end_offset": 13,
      "type": "<ALPHANUM>",
      "position": 3
    }
  ]
}
```

---

<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 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/not-matching-com-xyz-exception-xyzexception-when-searched-for-exception/54784/4 "2017-07-06T13:48:05Z")

</div>


