Yogs
Yogs

Reputation: 80

highlighting a text without using original text in lucene.net?

How can I highlight my searched text without using the original text in lucene.net? I just want to used an index and the text is indexed by using the field termvector with postion offsets?

Upvotes: 1

Views: 291

Answers (1)

Anonymous
Anonymous

Reputation: 144

if you index your field with "Store.YES" and "TermVector.WITH_POSTIONS_OFFSETS" you can use FastVectorHighlighter in contrib to highlight search results without referencing original text.

Upvotes: 1

Related Questions