Results 1 to 1 of 1
- 12-13-2011, 07:38 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 10
- Rep Power
- 0
lucene highlighter: how can I get locations of fragments?
I know how to get relevant highlighted fragments together with some surrounding text using Lucene highlighter, namely, using
But can I instead get pointers to these fragments in the original contents? In other words, I need to know where these fragments start and, if possible, end.Java Code:Highlighter highlighter = new Highlighter(scorer); String[] fragments = highlighter.getBestFragments(stream, fieldContents, fragmentNumber);
Thanks
Similar Threads
-
Highlighter doesn't highlight the text
By Jayshri in forum LuceneReplies: 0Last Post: 11-11-2011, 11:43 AM -
New Syntax Highlighter Guide
By JavaForums in forum Java SoftwareReplies: 2Last Post: 10-09-2011, 07:43 AM -
Getting all mouse locations
By gtopcu in forum AWT / SwingReplies: 7Last Post: 08-12-2011, 07:53 PM -
Lucene highlighter returns null fragments always
By zee in forum LuceneReplies: 1Last Post: 08-20-2010, 11:30 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks