best way to update custom fieldcache after index commit?

2011-06-01 Thread oleole
Hi, We use solr and lucene fieldcache like this static DocTerms myfieldvalues = org.apache.lucene.search.FieldCache.DEFAULT.getTerms(reader, myField); which is initialized at first use and will stay in memory for fast retrieval of field values based on DocID The problem is after an index/commit,

Re: best way to update custom fieldcache after index commit?

2011-06-01 Thread Erick Erickson
How are you implementing your custom cache? If you're defining it in the solrconfig, couldn't you implement the regenerator? See: http://wiki.apache.org/solr/SolrCaching#User.2BAC8-Generic_Caches Best Erick On Wed, Jun 1, 2011 at 12:38 PM, oleole oleol...@gmail.com wrote: Hi, We use solr and