lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: how to reset the index in solr
Date Tue, 28 Apr 2009 12:27:56 GMT

On Apr 24, 2009, at 1:54 AM, sagi4 wrote:
> Can i get the rake task for clearing the index of solr, I mean "rake
> index::rebuild", It would be very helpful and also to avoid the  
> delete id by
> manually.

How do you currently build your index?

But making a Rake task to do perform Solr operations is generally  
pretty trivial.  In Ruby (after gem install solr-ruby):

    require 'solr'
    solr = Solr::Connection.new("http://localhost:8983/solr")
    solr.optimize  # for example

	Erik


Mime
View raw message