Apache Solr open-source search software
LUCENE-1609: restoring getTermInfosIndexDivisor (it's not deprecated in 2.9, but was removed by accident)
Michael McCandlessd4a70b116542
diff --git a/src/java/org/apache/lucene/index/IndexReader.java b/src/java/org/apache/lucene/index/IndexReader.javaindex 734bf06f12c..c984a587b42 100644--- a/src/java/org/apache/lucene/index/IndexReader.java+++ b/src/java/org/apache/lucene/index/IndexReader.java@@ -1165,4 +1165,13 @@ public abstract class IndexReader implements Cloneable,Closeable {public long getUniqueTermCount() throws IOException {throw new UnsupportedOperationException("this reader does not implement getUniqueTermCount()");}++ /** For IndexReader implementations that use+ * TermInfosReader to read terms, this returns the+ * current indexDivisor as specified when the reader was+ * opened.+ */+ public int getTermInfosIndexDivisor() {+ throw new UnsupportedOperationException("This reader does not support this method.");+ }}