From 38eb9cc96c80e93092ce617dc60464be9911badd Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 6 Mar 2014 15:25:40 +0000 Subject: [PATCH] LUCENE-5493: hide Sorter, SortSorter, fix tests, change suggest to use public Sort API, cut over collector to take Sort git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5493@1574918 13f79535-47bb-0310-9956-ffa450edef68 --- .../EarlyTerminatingSortingCollector.java | 17 +++++++------- .../lucene/index/sorter/SortSorter.java | 2 +- .../apache/lucene/index/sorter/Sorter.java | 2 +- .../index/sorter/SortingAtomicReader.java | 9 ++++---- .../index/sorter/SortingMergePolicy.java | 22 +++++++++++-------- .../lucene/index/sorter/IndexSortingTest.java | 15 +++++++------ .../index/sorter/SortingAtomicReaderTest.java | 13 +++-------- .../index/sorter/TestEarlyTermination.java | 10 ++++----- .../index/sorter/TestSortingMergePolicy.java | 12 +++++----- .../analyzing/AnalyzingInfixSuggester.java | 8 +++---- 10 files changed, 54 insertions(+), 56 deletions(-) diff --git a/lucene/misc/src/java/org/apache/lucene/index/sorter/EarlyTerminatingSortingCollector.java b/lucene/misc/src/java/org/apache/lucene/index/sorter/EarlyTerminatingSortingCollector.java index 92f6f10f13f..155b5c93568 100644 --- a/lucene/misc/src/java/org/apache/lucene/index/sorter/EarlyTerminatingSortingCollector.java +++ b/lucene/misc/src/java/org/apache/lucene/index/sorter/EarlyTerminatingSortingCollector.java @@ -24,6 +24,7 @@ import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.CollectionTerminatedException; import org.apache.lucene.search.Collector; import org.apache.lucene.search.Scorer; +import org.apache.lucene.search.Sort; import org.apache.lucene.search.TopDocsCollector; import org.apache.lucene.search.TotalHitCountCollector; @@ -47,7 +48,7 @@ import org.apache.lucene.search.TotalHitCountCollector; *

* NOTE: This {@link Collector} uses {@link Sorter#getID()} to detect * whether a segment was sorted with the same {@link Sorter} as the one given in - * {@link #EarlyTerminatingSortingCollector(Collector, Sorter, int)}. This has + * {@link #EarlyTerminatingSortingCollector(Collector, Sort, int)}. This has * two implications: *