Skip to content

Commit

Permalink
oops, make sure we apply all deletes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Sep 4, 2024
1 parent 6378213 commit 64c3d25
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Examine.Lucene/Providers/LuceneIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -997,9 +997,6 @@ protected virtual IndexWriter CreateIndexWriter(Directory d)
/// See example: http://www.lucenetutorial.com/lucene-nrt-hello-world.html
/// http://blog.mikemccandless.com/2011/11/near-real-time-readers-with-lucenes.html
/// https://stackoverflow.com/questions/17993960/lucene-4-4-0-new-controlledrealtimereopenthread-sample-usage
/// TODO: Do we need/want to use the ControlledRealTimeReopenThread? Else according to mikecandles above in comments
/// we can probably just get away with using MaybeReopen each time we search. Though there are comments in the lucene
/// code to avoid that and do that on a background thread, which is exactly what ControlledRealTimeReopenThread already does.
/// </remarks>
public TrackingIndexWriter IndexWriter
{
Expand Down Expand Up @@ -1055,7 +1052,7 @@ private LuceneSearcher CreateSearcher()
// "yet during searching you have some way to ignore the old versions"
// Without fulfilling that requirement our Index_Read_And_Write_Ensure_No_Errors_In_Async tests fail when using
// non in-memory directories because it will return more results than what is actually in the index.
false,
true,

new SearcherFactory());

Expand Down

0 comments on commit 64c3d25

Please sign in to comment.