lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <>
Subject RE: get filterCache in Component
Date Fri, 15 Feb 2013 12:30:03 GMT

I need to get the filterCache for SOLR-4280. I can create a new issue patching SolrIndexSearcher
and adding the missing caches (non-user caches) to the cacheMap so they can be returned using
getCache(String) but i'm not sure this is intented. It does work but is this the right path?

-----Original message-----
> From:Markus Jelsma <>
> Sent: Thu 14-Feb-2013 13:18
> To:
> Subject: get filterCache in Component
> Hi,
> We need to get the filterCache in a Component but SolrIndexSearcher.getCache(String name)
does not return it. It seems the filterCache is not added to cacheMap and can therefore not
be returned.
> SolrCache<Query,DocSet> filterCache = rb.req.getSearcher().getCache("filterCache");
> Will always return null. Can we get the filterCache via other means or should it be added
to the cacheMap so getCache can return it?
> Thanks,
> Markus

View raw message