tags:

views:

34

answers:

1

I am using http://code.google.com/p/solr-php-client/ to communicate with the solr from PHP. Every thing is working fine, but Delete.

I am using the deleteById function which in turn creates

<delete fromPending="true" fromCommitted="true"><id>13967</id></delete>

request, and it returns true.

But in actual entry is not being deleted. I don't understand what is wrong in it..

+3  A: 

did you Commit?

kaka
Oh ya.. How stupid of me... Thanks... Worked awesome
Chetan sharma
What does fromCommitted mean then?
Eric Pugh
http://wiki.apache.org/solr/UpdateXmlMessages says its deprecated but no details given. I guess those two booleans are provided to prevent deleting from committed/pending docs accidentally (if fromCommitted=false we cant delete a document thats committed)
kaka