LUCENE-1972: Restore SortField.getComparatorSource (it was accidentally removed in 3.0.0).

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@893093 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-12-22 07:15:03 +00:00
parent 7d35aafe71
commit e6253de226
2 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,12 @@ API Changes
until 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 hashCode

View File

@ -254,6 +254,13 @@ implements Serializable {
return reverse;
}
/** Returns the {@link FieldComparatorSource} used for
* custom sorting
*/
public FieldComparatorSource getComparatorSource() {
return comparatorSource;
}
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();