Custom Search

Thursday, December 18, 2008

Solr - Http Caching enabled by default - how to disable the same.

Solr is a system , that provides service access (among many other things)  to the underlying Lucene implementation  and provides a much faster distributed search indexing / retrieval feature.

Much of the configuration in the Solr application is based on solrconfig.xml in the solr.solr.home directory .  Among the important set of options - that might be useful for development is ( especially when testing responses over the browser ) could be, disabling http caching so as to not to continue to clear the browser cache before viewing the page.

This is done as follows, by setting the never304 ,attribute to be true for httpCaching as follows.

<httpcaching never304="true" .... />



This should disable httpCaching so that we do not need to refresh the browser. But for the deployment in production - make sure to deploy the same with the property false ,(as it was by default).

No comments: