[jira] [Commented] (LUCENE-8747) Allow access to submatches from Matches instances
[ https://issues.apache.org/jira/browse/LUCENE-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901976#comment-16901976 ] ASF subversion and git services commented on LUCENE-8747: - Commit 21842999fe559bcbb4aebf7504aee6e8db45b38e in lucene-solr's branch refs/heads/master from Alan Woodward [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=2184299 ] LUCENE-8747: Allow access to submatches from Matches > Allow access to 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, LUCENE-8747.patch, > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (LUCENE-8747) Allow access to submatches from Matches instances
[ https://issues.apache.org/jira/browse/LUCENE-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901974#comment-16901974 ] ASF subversion and git services commented on LUCENE-8747: - Commit 8dd116a615821c7d9b539316b051f466009b5130 in lucene-solr's branch refs/heads/branch_8x from Alan Woodward [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8dd116a ] LUCENE-8747: Allow access to submatches from Matches > Allow access to 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, LUCENE-8747.patch, > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (LUCENE-8747) Allow access to submatches from Matches instances
[ https://issues.apache.org/jira/browse/LUCENE-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901100#comment-16901100 ] Alan Woodward commented on LUCENE-8747: --- > Can we return a list of Matches in findNamedMatches? Oh that's a much better idea, yes. Patch updated. > Allow access to 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, LUCENE-8747.patch, > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (LUCENE-8747) Allow access to submatches from Matches instances
[ https://issues.apache.org/jira/browse/LUCENE-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901091#comment-16901091 ] Jim Ferenczi commented on LUCENE-8747: -- Can we return a list of Matches in findNamedMatches ? The set of string is useful for testing purpose but it should be easy to extract any named Matches from a global Matches object ? > Allow access to 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, 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (LUCENE-8747) Allow access to submatches from Matches instances
[ https://issues.apache.org/jira/browse/LUCENE-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900840#comment-16900840 ] Alan Woodward commented on LUCENE-8747: --- I spoke to [~jimczi] offline, and we agreed that adding a specific use-case to this might make sense, so I've updated the patch to include a new NamedMatches class, with a couple of static helper functions. This class makes it possible to associate names with queries; if those queries are then combined into a larger, complex query, it is easy to retrieve the names of any queries that matched a particular document. > Allow access to 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, 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org