# Unexpected highlighted words matching with value of index.query.default\_field

**URL:** <https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857>\
**Category:** Kibana\
**Created:** [February 16, 2016, 8:54am UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857 "2016-02-16T08:54:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![terramexx](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@terramexx](https://discuss.elastic.co/u/terramexx)\
**Post date:** [February 16, 2016, 8:54am UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857/1 "2016-02-16T08:54:06Z")

</div>

The results in our Discovery tab have by default highlights of the "message" word.

In my opinion it is caused by specifying default\_field settings for our logstash indexes

```auto
{
  "template": "logstash-*",
  "settings": {
    "index": {
      "query": {
        "default_field": "message"
      }
    }
  },
  "mappings": {

```

Is somebody else also using different default\_field than all and facing same behaviour?

Well, I am rather not sure if this is bug or feature?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [February 19, 2016, 2:29pm UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857/2 "2016-02-19T14:29:27Z")

</div>

May be related to this?

> <https://github.com/elastic/kibana/issues/2358>

---

<div class="post-metadata">

**Author:** ![terramexx](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@terramexx](https://discuss.elastic.co/u/terramexx)\
**Post date:** [February 24, 2016, 9:21am UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857/3 "2016-02-24T09:21:24Z")

</div>

the search bar is absolutely empty in our case

but I definitely see the similarity in over-highlighting things (-:

---

<div class="post-metadata">

**Author:** ![dandrestor](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dandrestor](https://discuss.elastic.co/u/dandrestor)\
**Post date:** [December 15, 2016, 8:03am UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857/4 "2016-12-15T08:03:30Z")

</div>

Nope, looks unrelated.

I posted [Highlighting wrong when index.query.default\_field is set](https://discuss.elastic.co/t/highlighting-wrong-when-index-query-default-field-is-set/69125) in the Elasticsearch forum where hopefully this will get looked at by the right people.

//Dan

---

<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:33pm UTC](https://discuss.elastic.co/t/unexpected-highlighted-words-matching-with-value-of-index-query-default-field/41857/5 "2017-07-06T13:33:42Z")

</div>


