Skip to content

Instantly share code, notes, and snippets.

View selam's full-sized avatar
🏠
Working from home

Timu Eren selam

🏠
Working from home
View GitHub Profile
import solr
# create a connection to a solr server
s = solr.SolrConnection('http://foo/bar/:8180/solr')
# get all documents,
response = s.query('*:*')
# start to loop for delete all data
while response:
for hit in response.results: