[
https://issues.apache.org/jira/browse/LUCENE-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906709#action_12906709
]
Lukas Vlcek commented on LUCENE-2464:
-------------------------------------
I found that even if the SingleFragListBuilder is used then client has
explicitly ensure that numberOfFragments > 0 otherwise highlighter produces
empty output.
The thing is that
{noformat} FastVectorHighlighter.getBestFragments( final FieldQuery fieldQuery,
IndexReader reader, int docId, String fieldName, int fragCharSize, int
maxNumFragments );{noformat}
delegates to
{noformat} BaseFragmentsBuilder.createFragments( IndexReader reader, int docId,
String fieldName, FieldFragList fieldFragList, int maxNumFragments, String[]
preTags, String[] postTags, Encoder encoder);{noformat}
which needs to be passed maxNumFragments > 0 in order to produce any non-empty
output.
> FastVectorHighlighter: add a FragmentBuilder to return entire field contents
> ----------------------------------------------------------------------------
>
> Key: LUCENE-2464
> URL: https://issues.apache.org/jira/browse/LUCENE-2464
> Project: Lucene - Java
> Issue Type: Improvement
> Components: contrib/highlighter
> Reporter: Koji Sekiguchi
> Assignee: Koji Sekiguchi
> Priority: Minor
> Fix For: 3.1
>
> Attachments: LUCENE-2464.patch
>
>
> In Highlightrer, there is a Nullfragmenter. There is a requirement its
> counterpart in FastVectorhighlighter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]