You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by la...@apache.org on 2023/04/13 04:53:49 UTC
[lucenenet] branch master updated: BUG: Remove unnecessary index writer getting opened (#825)
This is an automated email from the ASF dual-hosted git repository.
laimis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new 8a7c11297 BUG: Remove unnecessary index writer getting opened (#825)
8a7c11297 is described below
commit 8a7c11297a8c1cbd307f7070074be14392a09580
Author: Laimonas Simutis <la...@gmail.com>
AuthorDate: Wed Apr 12 21:53:43 2023 -0700
BUG: Remove unnecessary index writer getting opened (#825)
---
src/Lucene.Net.Suggest/Suggest/Analyzing/AnalyzingInfixSuggester.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Lucene.Net.Suggest/Suggest/Analyzing/AnalyzingInfixSuggester.cs b/src/Lucene.Net.Suggest/Suggest/Analyzing/AnalyzingInfixSuggester.cs
index b964ed797..c535f7a3b 100644
--- a/src/Lucene.Net.Suggest/Suggest/Analyzing/AnalyzingInfixSuggester.cs
+++ b/src/Lucene.Net.Suggest/Suggest/Analyzing/AnalyzingInfixSuggester.cs
@@ -179,8 +179,8 @@ namespace Lucene.Net.Search.Suggest.Analyzing
if (DirectoryReader.IndexExists(dir))
{
// Already built; open it:
- writer = new IndexWriter(dir, GetIndexWriterConfig(matchVersion, GetGramAnalyzer(), OpenMode.APPEND));
- m_searcherMgr = new SearcherManager(writer, true, null);
+ // LUCENENET specific, deleted writer = new IndexWriter based on LUCENE-7670
+ m_searcherMgr = new SearcherManager(dir, null);
}
}