# Highlighting without array

**URL:** <https://discuss.elastic.co/t/highlighting-without-array/114615>\
**Category:** Elasticsearch\
**Created:** [January 8, 2018, 8:56pm UTC](https://discuss.elastic.co/t/highlighting-without-array/114615 "2018-01-08T20:56:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naren\_Victor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naren_victor/32/20741_2.png) [@Naren\_Victor](https://discuss.elastic.co/u/Naren_Victor)\
**Post date:** [January 8, 2018, 8:56pm UTC](https://discuss.elastic.co/t/highlighting-without-array/114615/1 "2018-01-08T20:56:18Z")

</div>

```
 {
      "from" : 0,
      "size" : 10,
      "query" : {
        "query_string" : {
          "query" : "some query",
          "fields" : ["field1", "field2", ...],
          "use_dis_max" : true
        }
      },
      "highlight" : {
        "pre_tags" : ["<span class=\"mark\">"],
        "post_tags" : ["</span>"],
        "order" : "score",
        "encoder" : "html",
        "require_field_match" : true,
        "fields" : {
          "*" : { }
        }
      }
    }

```

can i show the highlighter without an array  
i tried with number\_of\_fragments = 0 but nothing happened

---

<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:** [February 5, 2018, 8:56pm UTC](https://discuss.elastic.co/t/highlighting-without-array/114615/2 "2018-02-05T20:56:39Z")

</div>

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