Mailing List Archive

cvs commit: jakarta-lucene/src/java/org/apache/lucene/index IndexWriter.java
cutting 2002/08/07 09:28:08

Modified: . CHANGES.txt
src/java/org/apache/lucene/index IndexWriter.java
Log:
Added getAnalyzer() accessor method.

Revision Changes Path
1.31 +4 -1 jakarta-lucene/CHANGES.txt

Index: CHANGES.txt
===================================================================
RCS file: /home/cvs/jakarta-lucene/CHANGES.txt,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- CHANGES.txt 5 Aug 2002 18:05:56 -0000 1.30
+++ CHANGES.txt 7 Aug 2002 16:28:08 -0000 1.31
@@ -84,6 +84,9 @@
within the last week. The QueryFilter and RangeQuery would only
need 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 RC6




1.8 +6 -0 jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java

Index: IndexWriter.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- IndexWriter.java 17 Jul 2002 17:38:04 -0000 1.7
+++ IndexWriter.java 7 Aug 2002 16:28:08 -0000 1.8
@@ -156,6 +156,12 @@
}
}

+ /** 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;




--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>