Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7670

AnalyzingInfixSuggester should not immediately open an IndexWriter over an already-built index

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 6.4.1, 6.5, 7.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      In tests I'm working on under SOLR-6246, I can see that attempts to open an AnalyzingInfixSuggester over a previously-built index fail, because the old suggester's IndexWriter lock is never released. The issue is that an IndexWriter is created in order to create a SearcherManager over the previously built index. But this is not necessary: SearcherManager has a ctor that takes a directory instead of an IndexWriter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                steve_rowe Steve Rowe
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: