lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r155349 - in lucene/java/trunk/src/java/org/apache/lucene/search: IndexSearcher.java MultiSearcher.java
Date Fri, 25 Feb 2005 17:39:04 GMT
Author: cutting
Date: Fri Feb 25 09:39:02 2005
New Revision: 155349

URL: http://svn.apache.org/viewcvs?view=rev&rev=155349
Log:
Added accessor methods, as suggested by Kevin Burton.

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java
    lucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java?view=diff&r1=155348&r2=155349
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/IndexSearcher.java Fri Feb 25 09:39:02
2005
@@ -54,6 +54,11 @@
     this.closeReader = closeReader;
   }
 
+  /** Return the {@link IndexReader} this searches. */
+  public IndexReader getIndexReader() {
+    return reader;
+  }
+
   /**
    * Note that the underlying IndexReader is not closed, if
    * IndexSearcher was constructed with IndexSearcher(IndexReader r).

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java?view=diff&r1=155348&r2=155349
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/MultiSearcher.java Fri Feb 25 09:39:02
2005
@@ -43,6 +43,11 @@
     starts[searchables.length] = maxDoc;
   }
   
+  /** Return the array of {@link Searchable}s this searches. */
+  public Searchable[] getSearchables() {
+    return searchables;
+  }
+
   protected int[] getStarts() {
   	return starts;
   }



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


Mime
View raw message