# Highlighting Problem

**URL:** <https://discuss.elastic.co/t/highlighting-problem/3895>\
**Category:** Elasticsearch\
**Created:** [February 7, 2011, 12:37pm UTC](https://discuss.elastic.co/t/highlighting-problem/3895 "2011-02-07T12:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pravin](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Pravin](https://discuss.elastic.co/u/Pravin)\
**Post date:** [February 7, 2011, 12:37pm UTC](https://discuss.elastic.co/t/highlighting-problem/3895/1 "2011-02-07T12:37:52Z")

</div>

Hi,

I am new to ES... I wants to highlight only matched text withing searched query.

curl -XGET '[http://localhost:9200/inde/type/\_search](http://localhost:9200/inde/type/_search)' -d '

{  
"highlight" : {  
"fields" : {  
"number" : {}  
}  
},  
"query" : {  
"field" : {  
"number" : {"query":"_A06_"}  
}  
}

}'

I wants a result should be like this eg. P09_A06_123.

Can you please help me on this?

---

<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, 4:12am UTC](https://discuss.elastic.co/t/highlighting-problem/3895/2 "2017-07-06T04:12:31Z")

</div>


