views:

136

answers:

2

Hi

I have a large index, on which Highlighter.Net works fine, but FastVectorHighlighter returns null as a Best Fragment on Some documents.

the searcher works fine. It is just the highlighter. The field has been indexed in the same manner for all documents, so I fail to understand Why it highlights some documents but not all.

Using Lucene.Net 2.9.2, built from trunk rev942061

A: 

are you setting FieldMatch to true?

Mikos
what other way have you tried? I suspect it has to do with FieldMatch try both false/true.
Mikos
Yup I tried with both true/false value. I am also setting phrasehighlight to true (I need it). Still some documents are highlighted some are not
Midhat
A: 

Problem solved by the nice people at lucene-net-user. I was passing the document sequence number in the Hits object, where I should have been passing the sequence number in the lucene index. Read full mailing list thread starting here

Midhat