Apache Solr open-source search software
Added getAnalyzer() accessor method.
Doug Cutting5dbea9548511
diff --git a/CHANGES.txt b/CHANGES.txtindex fcdb7f8f0fb..aa37954251f 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -84,6 +84,9 @@ $Id$within the last week. The QueryFilter and RangeQuery would onlyneed to be reconstructed once per day. (cutting)+ 15. Added a new IndexWriter method, getAnalyzer(). This returns the+ analyzer used when adding documents to this index.+1.2 RC6diff --git a/src/java/org/apache/lucene/index/IndexWriter.java b/src/java/org/apache/lucene/index/IndexWriter.javaindex e49bd4dc348..de2ce3d3c97 100644--- a/src/java/org/apache/lucene/index/IndexWriter.java+++ b/src/java/org/apache/lucene/index/IndexWriter.java@@ -156,6 +156,12 @@ public class IndexWriter {}}+ /** Returns the analyzer used by this index. */+ public Analyzer getAnalyzer() {+ return analyzer;+ }++/** Returns the number of documents currently in this index. */public synchronized int docCount() {int count = 0;