Solr FQA,
1. Question: sometimes the after closing the SolrServer, there is a file write.lock generated in the folder $INDEX_HOME/index/write.lock. Then next time, you want to start the server, there is an exception complaining the IndexWriter is locked.1. Answer: Manually delete the write.lock file. or adding the below lines into solrconfig.xml file avoids the issue of physically removing the write.lock file when doing indexing.
<lockType>simple</lockType>
<unlockOnStartup>true</unlockOnStartup>
It's better to find a way to delete it pragmatically.
2. how to delete all index from curl
curl http://localhost:8080/solr/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。