[ 
https://issues.apache.org/jira/browse/LUCENE-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986926#action_12986926
 ] 

Doron Cohen commented on LUCENE-1056:
-------------------------------------

bq. Not sure when it was added
Seems it was added in LUCENE-743

> IndexReader.flush()
> -------------------
>
>                 Key: LUCENE-1056
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1056
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Michael Busch
>            Priority: Minor
>
> With the new IndexReader.reopen() feature (LUCENE-743) it makes sense to also 
> add a flush() method to IndexReader.
> Yonik pointed out this usecase:
> {code:java}
> reader.deleteDocument()
> reader.flush()
> writer = new IndexWriter()
> writer.addDocument()
> writer.close()
> reader.reopen()
> reader.deleteDocument()
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to