mirror of https://github.com/apache/lucene.git
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:
parent
d0468669c2
commit
aaba39e3b7
|
@ -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).
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue