views:

52

answers:

2

In Highlighter.Net, we can use NullFragmenter to return the entire field content. Is there any way we can do this in FastVectorHighlighter.Net?

A: 

Isn't it an option to just use document.Get("field_name") and return the entire field content in such a way? You probably have you document somewhere in the context anyway (as you need doc id to GetBestFragment()), so why not just use it?

buru
it wont be highlighted
Midhat
You may wrap this content with your formatter html (I know, it's conceptually ugly, but sometimes such things are inevitable).
buru
The problem would be where to insert the formatter html. thats the whole point of using the highlighter
Midhat
A: 

There is a patch for java FVH that claims to do this. I havent personally tested this

https://issues.apache.org/jira/browse/LUCENE-2464

Midhat