Skip to content

Commit

Permalink
updates to accommodate FS custom CacheConfig ctor signature
Browse files Browse the repository at this point in the history
  • Loading branch information
magibney committed Sep 12, 2023
1 parent 30f6430 commit d9be388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public SolrIndexSearcher(
this.queryResultMaxDocsCached = solrConfig.queryResultMaxDocsCached;
this.useFilterForSortedQuery = solrConfig.useFilterForSortedQuery;

ordMapCache = solrConfig.ordMapCacheConfig.newInstance();
ordMapCache = solrConfig.ordMapCacheConfig.newInstance(core);
assert ordMapCache != null;
this.leafReader = SlowCompositeReaderWrapper.wrap(this.reader, ordMapCache);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void testOrdMapsAreCached() throws Exception {
assertTrue(reader.leaves().size() > 1);
@SuppressWarnings("unchecked")
SolrCache<String, OrdinalMapValue> ordMapCache =
OrdMapRegenerator.getDefaultCacheConfig(null).newInstance();
OrdMapRegenerator.getDefaultCacheConfig(null).newInstance(null);
SlowCompositeReaderWrapper slowWrapper =
(SlowCompositeReaderWrapper) SlowCompositeReaderWrapper.wrap(reader, ordMapCache);
assertEquals(0, slowWrapper.cachedOrdMaps.size());
Expand Down

0 comments on commit d9be388

Please sign in to comment.