You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2023/04/23 08:36:27 UTC

[lucenenet] branch revert-825-fix/virtual-calls-from-constructors-analyzinginfixsuggester created (now 6dc5e3849)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a change to branch revert-825-fix/virtual-calls-from-constructors-analyzinginfixsuggester
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


      at 6dc5e3849 Revert "BUG: Remove unnecessary index writer getting opened (#825)"

This branch includes the following new commits:

     new 6dc5e3849 Revert "BUG: Remove unnecessary index writer getting opened (#825)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[lucenenet] 01/01: Revert "BUG: Remove unnecessary index writer getting opened (#825)"

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch revert-825-fix/virtual-calls-from-constructors-analyzinginfixsuggester
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 6dc5e3849d62bc9aedd73179dda283c16db4d331
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Apr 23 15:36:21 2023 +0700

    Revert "BUG: Remove unnecessary index writer getting opened (#825)"
    
    This reverts commit 8a7c11297a8c1cbd307f7070074be14392a09580.
---
 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 c535f7a3b..b964ed797 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:
-                // 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);
             }
         }