Skip to content

Commit

Permalink
Fix: delete solr documents again via simple request
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Mar 9, 2021
1 parent 9d7c455 commit 8428811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run():
logger.info('We are starting the indexing into collection2; once finished; we will automatically activate the new core')

logger.info('First, we will delete all documents from collection2')
r = requests.post(update_url, data={'commit': 'true', "delete":{"query":"*:*"}, 'waitSearcher': 'true'}, timeout=60*60)
r = requests.post(update_url + '?commit=true&waitSearcher=true', data='<delete><query>*:*</query></delete>', headers={'Content-Type': 'text/xml'}, timeout=60*60)
r.raise_for_status()
logger.info('Done deleting all docs from collection2')

Expand Down

0 comments on commit 8428811

Please sign in to comment.