You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2019/08/05 13:13:00 UTC

[jira] [Commented] (LUCENE-8747) Allow access to Weight and submatches from Matches instances

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

Alan Woodward commented on LUCENE-8747:
---------------------------------------

Updated patch, removing getWeight() - [~jpountz] is quite correct, getWeight() just makes things more complicated and we don't really need it.

> Allow access to Weight and submatches from Matches instances
> ------------------------------------------------------------
>
>                 Key: LUCENE-8747
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8747
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8747.patch, LUCENE-8747.patch
>
>
> A Matches object currently allows access to all matching terms from a query, but the structure of the matching query is flattened out, so if you want to find which subqueries have matched you need to iterate over all matches, collecting queries as you go.  It should be easier to get this information from the parent Matches object.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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