Reputation: 80
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
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