If you want to delete all items from Solr index, use the query
*:*
-
Development Center Toronto
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Solved. The correct translation of Marcus cmd:
$ curl http://localhost:8080/solr/update?commit=true -H "Content-Type:
text/xml" --data-binary '*:*'
http://stackoverflow.com/questions/2358476/solr-delete-not-working-for-some-reason
NB: the response is still not what I'd expect:
057
On Wed, A
Hi Marcus,
Your curl cmds don't work in that format on my unix. I conver them as
follows, and they still don't work:
$ curl --fail $solrIndex/update?commit=true -d '*:*'
$ curl --fail $solrIndex/update -d ''
>From the browser:
http://localhost:8080/solr/update?commit=true%20-d%20%27%3Cdelete%
Or
curl http://$server:$port/solr/$core/update -H "Content-Type: text/xml"
--data-binary '*:*'
curl http://$server:$port/solr/$core/update -H "Content-Type: text/xml"
--data-binary ''
curl http://$server:$port/solr/$core/update -H "Content-Type: text/xml"
--data-binary ''
//Marcus
On Thu, Ap
Thanks a lot Erik. I would try it and let me know
Erik Hatcher wrote:
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_qu
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
On Apr 28, 2009, at 11:33 PM, Geetha wrote:
Thank you Erik..
Should I write the below code in rake task /lib/tasks/solr.rake?
There's a start to some Solr Rake tasks in solr-ruby's lib/solr/
solrtasks.rb.
I am newbie to ruby.
Welcome! It's a fun fun world to be in :)
Erik
I need a function (through solr ruby) for ruby that will allow us to
clear everything
regards,
Sg..
Geetha wrote:
Thank you Erik..
Should I write the below code in rake task /lib/tasks/solr.rake?
I am newbie to ruby.
Erik Hatcher wrote:
On Apr 24, 2009, at 1:54 AM, sagi4 wrote:
Can i ge
Thank you Erik..
Should I write the below code in rake task /lib/tasks/solr.rake?
I am newbie to ruby.
Erik Hatcher wrote:
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 avo
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
t;delete by query" using the following query in
> the delete command: *:*
>
>
> Otis --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>
>
>
> - Original Message
>> From: sagi4
>> To: solr-user@lucene.apache.org
>> Sent: W
22, 2009 7:57:50 AM
> Subject: Re: how to reset the index in solr
>
>
> Thanks for your response.
>
> I want to clear it basically, it means clearing the index
>
> Thank you
> Sg..
>
>
>
> What do you mean? To delete it or to reload it?
> If you want to d
you can send in a delete request by query for *:*, that'll remove
everything from the index.
Erik
On Apr 22, 2009, at 7:57 AM, sagi4 wrote:
Thanks for your response.
I want to clear it basically, it means clearing the index
Thank you
Sg..
What do you mean? To delete it or to re
Thanks for your response.
I want to clear it basically, it means clearing the index
Thank you
Sg..
What do you mean? To delete it or to reload it?
If you want to delete it just delete ./data/index folder.
If you want to reload just reload your server if you can.
In case you are using cores
What do you mean? To delete it or to reload it?
If you want to delete it just delete ./data/index folder.
If you want to reload just reload your server if you can.
In case you are using cores you can just reload a core with all it's
configuration
http://localhost:8080/solr/admin/cores?action=REL
15 matches
Mail list logo