Jeevananthan-23 opened a new issue, #886: URL: https://github.com/apache/lucenenet/issues/886
### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe the problem. `IndexWriter `can determine the order of concurrent index operations but does not provide this information to the user. ### Describe the solution you'd like Currently, `IW `can determine the order in which operations were executed by updating the methods to return a long instead of `void`. If you are a caller who does not require this information, you can ignore the returned `long`. Additionally, this change enables the removal of the `TrackingIndexWriter `wrapper class with similar functionality by returning a `long` for each operation but with weaker guarantees. ### Additional context For example, the below basic test returns the indexing in ordering with incremental `seqNo` ```cs [Test] public void TestBasic() { Directory dir = NewDirectory(); IndexWriter w = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random))); long a = w.AddDocument(new Document()); long b = w.AddDocument(new Document()); assertTrue(b > a); w.Dispose(); dir.Dispose(); } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org