Skip to content

Introduce FirstPassGroupingCollectorManager - #15574

Merged
javanna merged 18 commits into
apache:mainfrom
gaobinlong:firstPassManager
Jun 2, 2026
Merged

Introduce FirstPassGroupingCollectorManager#15574
javanna merged 18 commits into
apache:mainfrom
gaobinlong:firstPassManager

Conversation

@gaobinlong

Copy link
Copy Markdown
Contributor

Description

This pr introduces FirstPassGroupingCollectorManager and switches TestGrouping and BaseGroupSelectorTestCase to use search concurrency and move away from the deprecated search(Query, Collector) method.

Relates to #12892.

@github-actions github-actions Bot added this to the 11.0.0 milestone Jan 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Jan 30, 2026
Signed-off-by: Binlong Gao <gbinlong@amazon.com>

Format code

Signed-off-by: Binlong Gao <gbinlong@amazon.com>
@gaobinlong

Copy link
Copy Markdown
Contributor Author

Hi @dweiss , mind taking a look at this PR? I think it's simple.

@javanna javanna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gaobinlong , I left some comments!

Comment thread lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java Outdated
Comment thread lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java Outdated
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label May 5, 2026
@github-actions github-actions Bot modified the milestones: 11.0.0, 10.5.0 May 19, 2026
@javanna

javanna commented May 19, 2026

Copy link
Copy Markdown
Contributor

Hi @gaobinlong I am ready to do another round of review on this PR if you have time to address the comments. Thanks!

@gaobinlong

Copy link
Copy Markdown
Contributor Author

Hi @gaobinlong I am ready to do another round of review on this PR if you have time to address the comments. Thanks!

Addressed all comments yet, please help to review, thanks!

Comment thread lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java Outdated
@github-actions github-actions Bot removed the Stale label May 20, 2026
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
Signed-off-by: Binlong Gao <gbinlong@amazon.com>

@javanna javanna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last round of review, some minor comments.

Comment thread lucene/CHANGES.txt
javanna added a commit that referenced this pull request May 21, 2026
Returning null can cause issues down the line once we move to using collector
managers and leverage the merge method for results reduction.

This commit replaces the null return type with an empty list.

Relates to #15574
javanna added a commit that referenced this pull request May 21, 2026
Returning null can cause issues down the line once we move to using collector
managers and leverage the merge method for results reduction.

This commit replaces the null return type with an empty list.

Relates to #15574
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
Signed-off-by: Binlong Gao <gbinlong@amazon.com>

@javanna javanna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a couple more minor comments, this is really close, thanks!

Comment thread lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java Outdated
Comment thread lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java Outdated

@javanna javanna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@javanna
javanna merged commit 636e8e9 into apache:main Jun 2, 2026
13 checks passed
javanna pushed a commit that referenced this pull request Jun 3, 2026
This pr introduces `FirstPassGroupingCollectorManager` and switches `TestGrouping` and `BaseGroupSelectorTestCase` to use search concurrency and move away from the deprecated `search(Query, Collector)` method.

Relates to #12892.

Signed-off-by: Binlong Gao <gbinlong@amazon.com>
@javanna

javanna commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Thanks @gaobinlong , merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants