Apache Solr open-source search software
LUCENE-1972: Restore SortField.getComparatorSource (it was accidentally removed in 3.0.0).
Uwe Schindlere6253de226c4
diff --git a/CHANGES.txt b/CHANGES.txtindex 8bfe9da0181..655f0f4536e 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -40,6 +40,12 @@ API Changesuntil Lucene 4.0 the default one will be deprecated.(Shai Erera via Uwe Schindler)+* LUCENE-1609: Restore IndexReader.getTermInfosIndexDivisor (it was+ accidentally removed in 3.0.0) (Mike McCandless)++* LUCENE-1972: Restore SortField.getComparatorSource (it was+ accidentally removed in 3.0.0) (Uwe Schindler)+Bug fixes* LUCENE-2092: BooleanQuery was ignoring disableCoord in its hashCodediff --git a/src/java/org/apache/lucene/search/SortField.java b/src/java/org/apache/lucene/search/SortField.javaindex 27a9b9a89d8..fc0c023f63c 100644--- a/src/java/org/apache/lucene/search/SortField.java+++ b/src/java/org/apache/lucene/search/SortField.java@@ -254,6 +254,13 @@ implements Serializable {return reverse;}+ /** Returns the {@link FieldComparatorSource} used for+ * custom sorting+ */+ public FieldComparatorSource getComparatorSource() {+ return comparatorSource;+ }+@Overridepublic String toString() {StringBuilder buffer = new StringBuilder();