Skip to content

Commit

Permalink
HSEARCH-2237 ScopedAnalyzerReference shouldn't close the underlying a…
Browse files Browse the repository at this point in the history
…nalyzer references
  • Loading branch information
gsmet authored and Sanne committed Apr 22, 2016
1 parent 95f7538 commit fadb49a
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -91,12 +91,9 @@ private static ScopedAnalyzer createScopedAnalyzer(AnalyzerReference globalAnaly

@Override
public void close() {
if ( globalAnalyzer != null ) {
globalAnalyzer.close();
}
for ( AnalyzerReference entry : analyzers.values() ) {
entry.close();
}
// we don't close the underlying {@code AnalyzerReference}s as they might be used by other
// {@code ScopedAnalyzerReference}. It is especially true for the reference to the
// PassThroughAnalyzer which is shared statically.
}

/**
Expand Down

0 comments on commit fadb49a

Please sign in to comment.