Copy a backup index to the data directory for each core. Remember to use a backup created from the same Alfresco instance.
Restart the Solr server. Solr will start to track the indexes based on the state of the restored index.
<3>: 还原方式2:
数据目录中的index.properties中的内容: (例如: /usercard_shard1_replica3/data/index.properties)
index=index.20141110200201428
停止solr,将index=改为目标加载目录名称
即可,如果没有index.properties, 默认会加载 index 文件中的内容
参考1:http://stackoverflow.com/questions/7593184/change-solr-search-directory-to-my-custom-named-index-directory
You can also use the index.properties file to point to which directory Solr loads. It goes in the data directory and it has a index property pointing to the directory name to be used instead of 'index'
That's worked for me without issue. I believe this was done to help make replication work seamlessly.