From a9551404fd057c83abe3b47bbf9124d335790cbe Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Tue, 11 Sep 2018 14:57:43 -0400 Subject: [PATCH] LUCENE-8459: add SearcherTaxonomyManager constructor taking already opened readers --- lucene/CHANGES.txt | 4 ++++ .../facet/taxonomy/SearcherTaxonomyManager.java | 14 ++++++++++++++ .../taxonomy/TestSearcherTaxonomyManager.java | 14 ++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index a9b97a72294..5035625daf8 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -219,6 +219,10 @@ API Changes: * LUCENE-8422: Static helper functions for Matches and MatchesIterator implementations have been moved from Matches to MatchesUtils (Alan Woodward) +* LUCENE-8459: SearcherTaxonomyManager now has a constructor taking already opened + IndexReaders, allowing the caller to pass a FilterDirectoryReader, for example. + (Mike McCandless) + Bug Fixes: * LUCENE-8445: Tighten condition when two planes are identical to prevent constructing diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/SearcherTaxonomyManager.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/SearcherTaxonomyManager.java index e618aa5ebce..82fd2dd9dab 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/SearcherTaxonomyManager.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/SearcherTaxonomyManager.java @@ -98,6 +98,20 @@ public class SearcherTaxonomyManager extends ReferenceManager