Skip to content

Commit

Permalink
Revert "BUG: Remove unnecessary index writer getting opened (#825)"
Browse files Browse the repository at this point in the history
This reverts commit 8a7c112.
  • Loading branch information
NightOwl888 committed Apr 23, 2023
1 parent e4da973 commit be7aa55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ public AnalyzingInfixSuggester(LuceneVersion matchVersion, Directory dir, Analyz
if (DirectoryReader.IndexExists(dir))
{
// Already built; open it:
// LUCENENET specific, deleted writer = new IndexWriter based on LUCENE-7670
m_searcherMgr = new SearcherManager(dir, null);
writer = new IndexWriter(dir, GetIndexWriterConfig(matchVersion, GetGramAnalyzer(), OpenMode.APPEND));
m_searcherMgr = new SearcherManager(writer, true, null);
}
}

Expand Down

0 comments on commit be7aa55

Please sign in to comment.