Added accessor methods, as suggested by Kevin Burton.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@155349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2005-02-25 17:39:02 +00:00
parent d0468669c2
commit aaba39e3b7
2 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,11 @@ public class IndexSearcher extends Searcher {
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).

View File

@ -43,6 +43,11 @@ public class MultiSearcher extends Searcher {
starts[searchables.length] = maxDoc;
}
/** Return the array of {@link Searchable}s this searches. */
public Searchable[] getSearchables() {
return searchables;
}
protected int[] getStarts() {
return starts;
}