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

Luca Cavanna commented on LUCENE-5181:
--------------------------------------

True, having the doc id would be useful there. Why not adding it directly to 
the Passage, to be able know which document the Passage comes from?
                
> Passage knows its own docID
> ---------------------------
>
>                 Key: LUCENE-5181
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5181
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 4.4
>            Reporter: Jon Stewart
>            Priority: Minor
>
> The new PostingsHighlight package allows for retrieval of term matches from a 
> query if one creates a class that extends PassageFormatter and overrides 
> format(). However, class Passage does not have a docID field, nor is this 
> provided via PassageFormatter.format(). Therefore, it's very difficult to 
> know which Document contains a given Passage.
> It would suffice for PassageFormatter.format() to be passed the docID as a 
> parameter. From the code in PostingsHighlight, this seems like it would be 
> easy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to