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

Atri Sharma commented on LUCENE-8799:
-------------------------------------

[~jpountz] The primary difference is not flushing in memory segments to disk. 
The idea is to have a method which just fsyncs what is already flushed and 
allows IndexReaders to see the changes. This can be useful for controlling the 
visibility of segments in fine grained tests i.e. a test might want some 
specific data to be visible, but may have some other document in flight that 
should not yet surface in searches.

> Add Force Commit Method to RandomIndexWriter
> --------------------------------------------
>
>                 Key: LUCENE-8799
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8799
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Atri Sharma
>            Priority: Minor
>         Attachments: LUCENE-8799.patch
>
>
> A test convenience would be to add a force commit method in 
> RandomIndexWriter. This will allow writing tests where segment sizes can be 
> accurately controlled.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to