Done some more digging about this

here's my delete code
def delete(self):
        from solr import SolrConnection
        c = SolrConnection(host='localhost:8983', persistent=False)
        e_url = '/news/' + self.created_at.strftime("%Y/%m/%d") + '/' + 
self.slug
        e_url = e_url.encode('ascii','ignore')
        c.delete(id=e_url)
        c.commit(optimize=True)

I get this back from jetty

INFO: delete(id '/news/2007/07/12/pilly') 0 1

It's not deleting the record form the index though, even if I restart jetty.

I'm wondering if I can use URL's as ID's now.

-- 
View this message in context: 
http://www.nabble.com/Deleting-from-index-via-web-tf4066903.html#a11558048
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to