# Highlight\_query is ignored ES 2.3.4

**URL:** https://discuss.elastic.co/t/highlight-query-is-ignored-es-2-3-4/110529
**Category:** Elasticsearch
**Created:** [December 6, 2017, 2:40pm UTC](https://discuss.elastic.co/t/highlight-query-is-ignored-es-2-3-4/110529 "2017-12-06T14:40:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![valerioorfano](https://avatars.discourse-cdn.com/v4/letter/v/ba9def/32.png) [@valerioorfano](https://discuss.elastic.co/u/valerioorfano)
#### Post date: [December 6, 2017, 2:40pm UTC](https://discuss.elastic.co/t/highlight-query-is-ignored-es-2-3-4/110529/1 "2017-12-06T14:40:39Z")

</div>

I need to highlight only fragment containing all searched words specified in the highlight\_query, but it is ignored. What am i mistaking?

GET /test/person/\_search  
{  
"query": {  
"terms": {  
"testo": ["favola", "fiaba"]  
}  
},  
"highlight": {  
"order": "score",  
"fields": {  
"testo": {  
"query": {  
"terms": {  
"testo": ["favola", "fiaba"]  
}  
}  
}  
}  
}}

---

<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: [January 3, 2018, 2:42pm UTC](https://discuss.elastic.co/t/highlight-query-is-ignored-es-2-3-4/110529/2 "2018-01-03T14:42:14Z")

</div>

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