lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: request handler and caches
Date Wed, 10 May 2006 17:38:51 GMT
It probably suits my needs perfectly!   My apologies for asking yet  
another question that can be answered by reading the configuration  
file :)

I'm refactoring now to using a SolrCache and a regenerator to see how  
it goes.

	Erik

On May 10, 2006, at 1:18 PM, Yonik Seeley wrote:

> On 5/10/06, Erik Hatcher <erik@ehatchersolutions.com> wrote:
>> I build a "facet" cache in my request handler, but I need it to get
>> refreshed when the index changes.  How can my custom request handler
>> manage this cache and get notified when the index changes?
>
> The easiest way is to let Solr keep the cache (use a custom user cache
> defined in the solrconfig.xml) and implement a Regenerator that is
> called to create and refresh a new instance when the searcher is
> changed.
>
> Does that suit your needs?
>
> -Yonik


Mime
View raw message