1

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

Midhat
  • 17,454
  • 22
  • 87
  • 114

2 Answers2

0

are you setting FieldMatch to true?

Mikos
  • 8,455
  • 10
  • 41
  • 72
  • what other way have you tried? I suspect it has to do with FieldMatch try both false/true. – Mikos May 08 '10 at 12:42
  • 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 May 08 '10 at 14:07
0

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
  • 17,454
  • 22
  • 87
  • 114