Skip to content

Instantly share code, notes, and snippets.

@emre
Created July 29, 2010 09:52
Show Gist options
  • Save emre/497742 to your computer and use it in GitHub Desktop.
Save emre/497742 to your computer and use it in GitHub Desktop.
solr'dan tum kayitlari siler.
import solr
# create a connection to a solr server
s = solr.SolrConnection('http://foo/bar/:8180/solr')
# get all documents
response = s.query('*:*')
for hit in response.results:
s.delete(hit['id'])
s.commit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment