[jira] [Commented] (LUCENE-5181) Passage knows its own docID

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (LUCENE-5181) Passage knows its own docID

Sebastian Nagel (Jira)

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

Jon Stewart commented on LUCENE-5181:

How does highlighting fit into this?

1. It's convenient to have the Passage snippet, for showing context around the term matches.

2. It's very unclear how to actually retrieve term matches per doc given a TopDocs result set. This was the subject of recent [mailing list traffic|http://search-lucene.com/m/XhEx62ewjeQ/hits+coordinates&subj=How+to+get+hits+coordinates+in+Lucene+4+4+0], and the PostingsHighlighter was suggested as the efficient way to do this, which led to this JIRA being opened.


> 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: [hidden email]
For additional commands, e-mail: [hidden email]