You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2025/09/03 11:07:56 UTC
(lucene) branch main updated: Remove unused parameter in TopFieldCollecter.countHit() (#15150)
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new f39e64429a7 Remove unused parameter in TopFieldCollecter.countHit() (#15150)
f39e64429a7 is described below
commit f39e64429a71cada32530c5db90025c1f2714640
Author: gaobinlong <gb...@amazon.com>
AuthorDate: Wed Sep 3 19:07:51 2025 +0800
Remove unused parameter in TopFieldCollecter.countHit() (#15150)
Signed-off-by: Binlong Gao <gb...@amazon.com>
---
.../core/src/java/org/apache/lucene/search/TopFieldCollector.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
index 568ebf8cf01..7b1dabb9c12 100644
--- a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
+++ b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
@@ -70,7 +70,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
}
}
- void countHit(int doc) throws IOException {
+ void countHit() throws IOException {
int hitCountSoFar = ++totalHits;
if (minScoreAcc != null && (hitCountSoFar & minScoreAcc.modInterval) == 0) {
@@ -197,7 +197,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
@Override
public void collect(int doc) throws IOException {
- countHit(doc);
+ countHit();
if (queueFull) {
if (thresholdCheck(doc)) {
return;
@@ -262,7 +262,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
@Override
public void collect(int doc) throws IOException {
- countHit(doc);
+ countHit();
if (queueFull) {
if (thresholdCheck(doc)) {
return;