Apache Lucene open-source search software
Adjust visibility of NRTSuggester#load (#14372)
Luca Cavannaf29553397be2
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 794ee5bd468..5c7e831a23a 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -218,6 +218,8 @@ Other* GITHUB#14279 : Add github action to verify changelog entry and set milestone to PRs. (Amir Raza)+* GITHUB#14372: Reduce visibility of NRTSuggester#load from public to package private (Luca Cavanna)+======================= Lucene 10.1.0 =======================API Changesdiff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggester.javaindex 4e25e2ac608..a923886d6ce 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggester.java@@ -325,7 +325,7 @@ public final class NRTSuggester implements Accountable {* Loads a {@link NRTSuggester} from {@link org.apache.lucene.store.IndexInput} on or off-heap* depending on the provided <code>fstLoadMode</code>*/- public static NRTSuggester load(IndexInput input, FSTLoadMode fstLoadMode) throws IOException {+ static NRTSuggester load(IndexInput input, FSTLoadMode fstLoadMode) throws IOException {final FST<Pair<Long, BytesRef>> fst;PairOutputs<Long, BytesRef> outputs =new PairOutputs<>(PositiveIntOutputs.getSingleton(), ByteSequenceOutputs.getSingleton());