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
2010-07-09 11:36:50
it wont be highlighted
Midhat
2010-07-09 17:02:31
You may wrap this content with your formatter html (I know, it's conceptually ugly, but sometimes such things are inevitable).
buru
2010-07-13 09:54:04
The problem would be where to insert the formatter html. thats the whole point of using the highlighter
Midhat
2010-07-26 06:13:42
A:
There is a patch for java FVH that claims to do this. I havent personally tested this
Midhat
2010-07-26 06:14:17