# Multiple pre & post tags in highlighter query

**URL:** <https://discuss.elastic.co/t/multiple-pre-post-tags-in-highlighter-query/318492>\
**Category:** Elasticsearch\
**Created:** [November 9, 2022, 3:57am UTC](https://discuss.elastic.co/t/multiple-pre-post-tags-in-highlighter-query/318492 "2022-11-09T03:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mark\_Harwood1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood1/32/101255_2.png) [@Mark\_Harwood1](https://discuss.elastic.co/u/Mark_Harwood1)\
**Post date:** [November 9, 2022, 7:53am UTC](https://discuss.elastic.co/t/multiple-pre-post-tags-in-highlighter-query/318492/2 "2022-11-09T07:53:04Z")

</div>

Hi Mayank,  
This may be of interest

> [@Mapping the query to the highlight using FVH](https://discuss.elastic.co/t/mapping-the-query-to-the-highlight-using-fvh/257836/2):
>
> Thanks for the write-up. One approach for more transparency into what search terms matched might be to use the highlighter that ships with the [annotated\_text](https://www.elastic.co/blog/search-for-things-not-strings-with-the-annotated-text-plugin) field which is installed as an extra [plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/7.10/mapper-annotated-text.html). Although it's designed for use on annotated\_text fields it also works with text fields and uses a markdown-like syntax for adding annotations to text e.g. given this doc: { "text": "The new hot technology has emerged!" } and this query { "query": { "bool": { "should": [ {"match": {…

---

_[View the full topic](https://discuss.elastic.co/t/multiple-pre-post-tags-in-highlighter-query/318492)._
