: with the index being a few minutes stale as the TTL expires on the cache. I
: don't think solr has a way to, at query time, change the cache control
: headers.

SolrJ lets the HttpClient instance handle all network connections, so 
specify whatever caching/proxy info you want to it, and then pass it to 
your CommonsHttpSolrServer constructor.

you should be able to easily a new CommonsHttpSolrServer for each request 
(they're pretty cheap to construct) or have N CommonsHttpSolrServer each 
with a different HttpClient instance for supporting N different 
caching/proxying prefrences (just pick which CommonsHttpSolrServer to use 
on each request depending on what behavior you want)



-Hoss

Reply via email to