# Highlighting just fields?

**URL:** https://discuss.elastic.co/t/highlighting-just-fields/7363
**Category:** Elasticsearch
**Created:** [April 17, 2012, 6:19am UTC](https://discuss.elastic.co/t/highlighting-just-fields/7363 "2012-04-17T06:19:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Schroder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_schroder/32/2513_2.png) [@Peter\_Schroder](https://discuss.elastic.co/u/Peter_Schroder)
#### Post date: [April 17, 2012, 6:19am UTC](https://discuss.elastic.co/t/highlighting-just-fields/7363/1 "2012-04-17T06:19:08Z")

</div>

is it somehow possible to get a "highlighting" on fields?

i am not interested in the real term that is matched, i just want to know  
in which field the query matched.

i experimented a little with highlighting, but it's pretty slow with fields  
that have 10.000+ terms in it. the query then takes 90seconds instead of  
1second.  
even reducing the number of fragments etc did not help pretty much.

i also read about the fast-vector-highlighter, but is there another way to  
speed this up?

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [April 17, 2012, 2:37pm UTC](https://discuss.elastic.co/t/highlighting-just-fields/7363/2 "2012-04-17T14:37:19Z")

</div>

There is an issue in Lucene 3.5 that affects highlighting performance on  
queries with very large number of  
terms: [[LUCENE-3719] FVH: slow performance on very large queries - ASF JIRA](https://issues.apache.org/jira/browse/LUCENE-3719)

It's fixed in Lucene 3.6, which is used by elasticsearch 0.19.3. You can  
try 0.19.3-SNAPSHOT to see if it speeds things up.

On Tuesday, April 17, 2012 2:19:08 AM UTC-4, Peter Schröder wrote:

> is it somehow possible to get a "highlighting" on fields?
> 
> i am not interested in the real term that is matched, i just want to know  
> in which field the query matched.
> 
> i experimented a little with highlighting, but it's pretty slow with  
> fields that have 10.000+ terms in it. the query then takes 90seconds  
> instead of 1second.  
> even reducing the number of fragments etc did not help pretty much.
> 
> i also read about the fast-vector-highlighter, but is there another way to  
> speed this up?

---

<div class="post-metadata">

### Author: ![Peter\_Schroder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_schroder/32/2513_2.png) [@Peter\_Schroder](https://discuss.elastic.co/u/Peter_Schroder)
#### Post date: [April 17, 2012, 2:48pm UTC](https://discuss.elastic.co/t/highlighting-just-fields/7363/3 "2012-04-17T14:48:13Z")

</div>

thx, will try

---

<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, 3:32am UTC](https://discuss.elastic.co/t/highlighting-just-fields/7363/4 "2017-07-06T03:32:11Z")

</div>


