# Highlight same field twice with different settings

**URL:** <https://discuss.elastic.co/t/highlight-same-field-twice-with-different-settings/286184>\
**Category:** Elasticsearch\
**Created:** [October 8, 2021, 6:44am UTC](https://discuss.elastic.co/t/highlight-same-field-twice-with-different-settings/286184 "2021-10-08T06:44:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Gaunt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_gaunt/32/94772_2.png) [@Sam\_Gaunt](https://discuss.elastic.co/u/Sam_Gaunt)\
**Post date:** [October 8, 2021, 6:44am UTC](https://discuss.elastic.co/t/highlight-same-field-twice-with-different-settings/286184/1 "2021-10-08T06:44:06Z")

</div>

I would like to return multiple highlights of the same field but with different fragment sizes. One would have a smaller fragment size and be used as a preview for the user before they open the document to see the full result.

Below is what I was thinking the request might look like (definitely not a valid query though). doc\_body with large fragment size and doc\_body\_short with just 100 character fragments as the preview.

```auto
highlight: {
  fields: {
    doc_body: {
      fragment_size: 200000,
    },
    doc_body_short: {
      fields: { doc_body: {} },
      fragment_size: 100,
    },
  },
}

```

As far as I can tell this doesn't look possible but any advice would be great.

---

<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:** [November 5, 2021, 6:44am UTC](https://discuss.elastic.co/t/highlight-same-field-twice-with-different-settings/286184/2 "2021-11-05T06:44:17Z")

</div>

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