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 Wed, 29 Apr 2009 13:03:46 GMT

On Apr 29, 2009, at 12:19 AM, Geetha wrote:
> I need a function (through solr ruby) for ruby that will allow us to  
> clear everything

require 'solr'
solr = Solr::Connection.new("http://localhost:8983/solr")
solr.delete_by_query('*:*')
solr.commit

	Erik


Mime
View raw message