Skip to content

Commit

Permalink
ensure commit just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Oct 17, 2024
1 parent 35ee885 commit 5fff5b9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ private void CreateIndex(string rootPath, bool corruptIndex, bool removeSegments

// Now delete some items
indexer.DeleteFromIndex(new[] { "1", "2" });

// double ensure we commit here
indexer.IndexWriter.IndexWriter.Commit();
indexer.IndexWriter.IndexWriter.WaitForMerges();
}


Expand Down

0 comments on commit 5fff5b9

Please sign in to comment.