Skip to content

Apache Lucene open-source search software

FacetsCollector#collect is no longer final to allow extension (#11804)

Greg Millerac12cd9f176b
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 85115c17011..ea22d302723 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -96,6 +96,8 @@ API Changes
* GITHUB#11772: Removed native subproject and WindowsDirectory implementation from lucene.misc. Recommendation:
use MMapDirectory implementation on Windows. (Robert Muir, Uwe Schindler, Dawid Weiss)
+* GITHUB#11804: FacetsCollector#collect is no longer final, allowing extension. (Greg Miller)
+
Improvements
---------------------
* GITHUB#11778: Detailed part-of-speech information for particle(조사) and ending(어미) on Nori
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java b/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java
index 78bf4b12623..cf49aef39ee 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/FacetsCollector.java
@@ -114,7 +114,7 @@ public class FacetsCollector extends SimpleCollector {
}
@Override
- public final void collect(int doc) throws IOException {
+ public void collect(int doc) throws IOException {
docsBuilder.grow(1).add(doc);
if (keepScores) {
if (totalHits >= scores.length) {