ynaik
ynaik

Reputation: 31

How Solr Persist indexed data between restarts

I am new to Solr and have few questions related SOlr/lucene

1) how solr persist indexed data between restart and

2) How data is shared in clustered env

Upvotes: 2

Views: 1754

Answers (2)

Jayendra
Jayendra

Reputation: 52779

Solr maintains the index data in files which is stored on the data directory mentioned in the configuration files.
The data is persisted whenever you perform a Commit on solr.
When Solr is restarted it reloads the files to get back the index.

For replicating data, you would need to you Solr replication to have the same copy of data over multiple servers.
You can also check upon SolrCloud for Solr's distributed capabilities.

Upvotes: 4

Arun Manivannan
Arun Manivannan

Reputation: 4313

To answer part of your question, Solr index is stored in your local directory in a path specified in the Solr Config as in :

 <dataDir>/var/data/solr</dataDir>

Restarts load indexing information from this location.

Reference

http://wiki.apache.org/solr/SolrConfigXml

Upvotes: 0

Related Questions