# Exclude field in hightlight

**URL:** <https://discuss.elastic.co/t/exclude-field-in-hightlight/148797>\
**Category:** Elasticsearch\
**Created:** [September 17, 2018, 9:14am UTC](https://discuss.elastic.co/t/exclude-field-in-hightlight/148797 "2018-09-17T09:14:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirtash](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@Kirtash](https://discuss.elastic.co/u/Kirtash)\
**Post date:** [September 17, 2018, 9:14am UTC](https://discuss.elastic.co/t/exclude-field-in-hightlight/148797/1 "2018-09-17T09:14:58Z")

</div>

Hello!

Is possible exclude fields using \* in hightlight? I have a field of 12.000 characters and I would like only exclude this field. For now I'm using this structure of search:

GET offers/\_search  
{  
"query": {  
"bool": {  
"should": [  
{  
"query\_string": {  
"query": "game\*",  
"default\_operator": "and",  
"analyze\_wildcard": true,  
"boost": 1  
}  
}  
],  
}  
},  
"highlight": {  
"fields": {  
"\*": {  
"type": "plain" }  
},  
"require\_field\_match": false  
}  
}

Thanks!!

---

<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:** [October 15, 2018, 9:15am UTC](https://discuss.elastic.co/t/exclude-field-in-hightlight/148797/2 "2018-10-15T09:15:04Z")

</div>

Closed on October 15, 2018, 9:15am UTC

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