lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Offsets in 3.6/4.0
Date Tue, 17 Jul 2012 13:37:19 GMT
Dear Carsten,

your question was about the purpose of the offset-Attribute and the reader.getTermFreqVector
You have asked because this method is not very fast.

imho main reason for TermFreqVectors is highlighting.
(FastVectorHighlighter and DefaultSolrHighlighter#doHighlightingByHighlighter)
You normally use highlighting only on a small part of the hit list.

If you have a fast analyser you do not need TermFreqVector because you can calculate the offset
on the fly.
Calculate from the value of a stored field.
Sometimes TermFreqVector can be used as substitute of a stored field.

Best regards

in Context:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message