On 7/12/2013 12:30 PM, sagarmj76 wrote:
hi I wanted to understand if it is possible to store/save Solr indexes to the
database instead of the filesystem. I checked out some articles where lucene
can do it. Hence I assume Solr can too but its not clear to me how to
configure Solr to save the indexes in the database instead in the /index
directory.
Any help is really appreciated as I think I have hit a wall with this.

If Lucene can do it, then theoretically Solr can do so as well. You could very likely add jars to your classpath (to add a Directory and DirectoryFactory implementation that uses a database) and reference that class in the Solr config, but unless the class provided a way to configure itself, you probably wouldn't be able to specify its config within Solr's config without custom plugin code.

A burning question ... why would you want to do this? Lucene and Solr are highly optimized to work well with a local filesystem. That is the path that will give you the best performance.

Thanks,
Shawn

Reply via email to