lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3243) FastVectorHighlighter - add position offset to FieldPhraseList.WeightedPhraseInfo.Toffs
Date Mon, 27 Jun 2011 06:08:47 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-3243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055347#comment-13055347
] 

Koji Sekiguchi commented on LUCENE-3243:
----------------------------------------

Thank you for the proposal and patch! I don't understand:

* What is the position offset? Isn't it just a position?
* Why is the position offset String?
* Why do you need setPositionOffset()? I don't understand the implementation of the method...
it appends the argument position to the current position.

> FastVectorHighlighter - add position offset to FieldPhraseList.WeightedPhraseInfo.Toffs
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3243
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3243
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/highlighter
>    Affects Versions: 3.2
>         Environment: Lucene 3.2
>            Reporter: Jahangir Anwari
>            Priority: Minor
>              Labels: feature, lucene
>         Attachments: LUCENE-3243.patch.diff
>
>
> Needed to return position offsets along with highlighted snippets when using FVH for
highlighting. 
> Using the ([LUCENE-3141|https://issues.apache.org/jira/browse/LUCENE-3141]) patch I was
able to get the fragInfo for a particular Phrase search. Currently the Toffs(Term offsets)
class only stores the start and end offset.
> To get the position offset, I added the position offset information in Toffs and FieldPhraseList
class.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message