# How to enable Highlighter

**URL:** <https://discuss.elastic.co/t/how-to-enable-highlighter/145426>\
**Category:** Elasticsearch\
**Created:** [August 21, 2018, 3:57pm UTC](https://discuss.elastic.co/t/how-to-enable-highlighter/145426 "2018-08-21T15:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![askids](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/askids/32/22252_2.png) [@askids](https://discuss.elastic.co/u/askids)\
**Post date:** [August 21, 2018, 3:57pm UTC](https://discuss.elastic.co/t/how-to-enable-highlighter/145426/1 "2018-08-21T15:57:35Z")

</div>

hi,

Is there any setting that has to be enabled to allow highlighter to work? Currently, I am not getting the highlight section itself in the response. I am using ES 5.5.1 on windows 2012.

```
  GET individual/_search
{
  "query": {
    "match": {
      "last_Name": "tester"
    }
  },
  "highlight": {
    "pre_tags": [
      "<tag1>"
    ],
    "post_tags": [
      "</tag1>"
    ],
    "encoder": "html",
    "fields": {
      "last_Name": {}
    }
  }
}

```

In the response, I am not seeing any highlight section at all.

```
{
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "hits": {
    "total": 28,
    "max_score": 7.467892,
    "hits": [
      {
        "_index": "individual",
        "_type": "individual",
        "_id": "123",
        "_score": 7.467892,
        "_source": {
          "first_Name": "DUMMY1",
          "last_Name": "TESTER",
          "display_Name": "TESTER, DUMMY1"
        }
      },
      {
        "_index": "individual",
        "_type": "individual",
        "_id": "124",
        "_score": 7.467892,
        "_source": {
          "first_Name": "DUMMY2",
          "last_Name": "TESTER",

```

Please let me know if any setting at index or node level has to be enabled to make the highlighter to work.

Thanks!

---

<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:** [September 18, 2018, 3:57pm UTC](https://discuss.elastic.co/t/how-to-enable-highlighter/145426/2 "2018-09-18T15:57:35Z")

</div>

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