lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy" <digyd...@gmail.com>
Subject RE: FastVectorHighlighter.Net returning null on GetBestFragment
Date Sun, 09 May 2010 19:17:31 GMT
With so little info, It is very hard to guess the reason.

For ex.,
doc.Add( new Field("f1", "abc def", Field.Store.NO,  Field.Index.ANALYZED,
Field.TermVector.NO) );
doc.Add( new Field("f2", "ghi jkl", Field.Store.YES, Field.Index.ANALYZED,
Field.TermVector.WITH_POSITIONS_OFFSETS) ); //<-- Field used in highlighting

with a query something like [f1:abc OR f2:abc], you would get a hit but no
highlight.

DIGY

-----Original Message-----
From: Midhat Ali [mailto:midhatali@gmail.com] 
Sent: Friday, May 07, 2010 9:03 PM
To: lucene-net-user
Subject: FastVectorHighlighter.Net returning null on GetBestFragment

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 FastVectorHighlighter.Net 2.9.2, built from trunk rev942061


Mime
View raw message