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
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:
Solved. The correct translation of Marcus cmd:
$ curl http://localhost:8080/solr/update?commit=true -H Content-Type:
text/xml --data-binary 'deletequery*:*/query/delete'
http://stackoverflow.com/questions/2358476/solr-delete-not-working-for-some-reason
NB: the response is still not what I'd
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;)
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
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 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
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
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
Thanks for your valuable suggestions.
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.
regards,
Sg..
Otis Gospodnetic wrote:
You can also delete it with delete by query using the
I need to clearing the index in solr.
I would appreciate anyone help
--
Best Regards,
**
*Geetha S *| System and Software Engineer
email: gee...@angleritech.com mailto:gee...@angleritech.com
*
Visit us at ICT Expo, HongKong (13th-16th Apr 2009) and Internet World,
UK (28-30 Apr 2009)*
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
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
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
You can also delete it with delete by query using the following query in the
delete command: *:*
Otis --
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
- Original Message
From: sagi4 gee...@angleritech.com
To: solr-user@lucene.apache.org
Sent: Wednesday, April 22,
15 matches
Mail list logo