lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukas Vlcek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2464) FastVectorHighlighter: add a FragmentBuilder to return entire field contents
Date Tue, 07 Sep 2010 08:38:36 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message