rsolr(https://github.com/mwmitchell/rsolr)を用いてsolrのインデックスを全削除する方法
delete_by_queryで全件マッチさせて削除する。
もっといい方法がありそう。
solr = RSolr.connect(:url => "example.com/examples")
solr.delete_by_query '*:*'
solr.commit
More than 5 years have passed since last update.
rsolr(https://github.com/mwmitchell/rsolr)を用いてsolrのインデックスを全削除する方法
delete_by_queryで全件マッチさせて削除する。
もっといい方法がありそう。
solr = RSolr.connect(:url => "example.com/examples")
solr.delete_by_query '*:*'
solr.commit
Register as a new user and use Qiita more conveniently