Highlighting just fields?


(Peter Schröder) #1

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?


(Igor Motov) #2

There is an issue in Lucene 3.5 that affects highlighting performance on
queries with very large number of
terms: 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?


(Peter Schröder) #3

thx, will try


(system) #4