You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Doron Cohen (JIRA)" <ji...@apache.org> on 2011/01/26 10:42:45 UTC

[jira] Commented: (LUCENE-1056) IndexReader.flush()

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org