mirror of https://github.com/apache/lucene.git
clarify that the NRT reader must be closed by the caller
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@883640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb9087fa33
commit
58b11acbaf
|
@ -320,7 +320,10 @@ public class IndexWriter implements Closeable {
|
||||||
* {#commit} and then using {@link IndexReader#open} to
|
* {#commit} and then using {@link IndexReader#open} to
|
||||||
* open a new reader. But the turarnound time of this
|
* open a new reader. But the turarnound time of this
|
||||||
* method should be faster since it avoids the potentially
|
* method should be faster since it avoids the potentially
|
||||||
* costly {@link #commit}.<p>
|
* costly {@link #commit}.</p>
|
||||||
|
*
|
||||||
|
* <p>You must close the {@link IndexReader} returned by
|
||||||
|
* this method once you are done using it.</p>
|
||||||
*
|
*
|
||||||
* <p>It's <i>near</i> real-time because there is no hard
|
* <p>It's <i>near</i> real-time because there is no hard
|
||||||
* guarantee on how quickly you can get a new reader after
|
* guarantee on how quickly you can get a new reader after
|
||||||
|
|
Loading…
Reference in New Issue