Can Solr be used as an alternative to cache?
<p>We are using Postgresql for persistence, ehcache as our cache. We have recently introduced Solr for enabling faster searches (for fuzzy and exact searches). </p>

<p>So my question is : Can Solr be tuned in such a way that it can replace ehcache? (say by running in cloud-mode or so)</p>

<p>Just to add some context to the question: </p>

<p>We have a bunch of tables to store contact information. Ehcache is currently being used to get these contacts for a given ID. Solr will be used extensively for search related operations. Since Solr is already doing the search... why not replace Ehcache (as in some way it is like : searching with a given ID) provided the performance is not compromised.</p>