Fast vector highlighter: Allow access to start/end offsets
----------------------------------------------------------

                 Key: LUCENE-3007
                 URL: https://issues.apache.org/jira/browse/LUCENE-3007
             Project: Lucene - Java
          Issue Type: Improvement
          Components: contrib/highlighter
            Reporter: Tran Nam Quang
            Priority: Minor


Hello everyone,

Apparently, the fast vector highlighter assumes all of its clients want to 
highlight HTML. However, there are some people (like me) who would like to 
implement highlighting on a text-only document view, so nothing but the 
highlighting start/end offsets are needed.

This works quite well with Lucene's standard highlighter. Unfortunately, there 
seems to be no officially supported way to access the start/end offsets that 
are computed by the fast vector highlighter. More precisely, all the needed 
information is stored in the linked list 
org.apache.lucene.search.vectorhighlight.FieldPhraseList.phraseList, but 
there's no way to access it, except using reflection or modifying the 
highlighter source code.

So my proposal is to provide some methods for accessing this particular field, 
or any other means to get the highlighting start/end offsets of the fast vector 
highlighter. Thanks in advance!

Best regards
Tran Nam Quang

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to