# Can i highlight actual query to elasticsearch

**URL:** <https://discuss.elastic.co/t/can-i-highlight-actual-query-to-elasticsearch/18882>\
**Category:** Elasticsearch\
**Created:** [July 24, 2014, 10:29pm UTC](https://discuss.elastic.co/t/can-i-highlight-actual-query-to-elasticsearch/18882 "2014-07-24T22:29:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicktackes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicktackes/32/1174_2.png) [@nicktackes](https://discuss.elastic.co/u/nicktackes)\
**Post date:** [July 24, 2014, 10:29pm UTC](https://discuss.elastic.co/t/can-i-highlight-actual-query-to-elasticsearch/18882/1 "2014-07-24T22:29:11Z")

</div>

I am passing in a full phrase and using a shingle filter to match sub  
phrases in that string. What I would like is to be able to 'mark' the  
initial request with what is matched and what is not matched. Is there a  
way to highlight or get the offset position of where the match was made  
within the original string?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ce5c9e65-eb8b-4fac-a35e-624e2a37203d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ce5c9e65-eb8b-4fac-a35e-624e2a37203d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:13am UTC](https://discuss.elastic.co/t/can-i-highlight-actual-query-to-elasticsearch/18882/2 "2017-07-06T01:13:17Z")

</div>


