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

Michael McCandless commented on LUCENE-5079:
--------------------------------------------

+1

I think the test case comment "// this will be true because a commit will 
create a new segment" should instead say "// this will be true because a commit 
will create an empty index"?
                
> allow IndexWriter user to tell if there are uncommitted changes.
> ----------------------------------------------------------------
>
>                 Key: LUCENE-5079
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5079
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>         Attachments: LUCENE-5079.patch
>
>
> IndexWriter already currently tracks if there are uncommitted changes.  We 
> should expose this somehow... perhaps a boolean hasUncommittedChanges()?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to