algolia / algoliasearch-client-python

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/python/?language=python
MIT License
196 stars 67 forks source link

SearchIndex.replace_all_objects is stuck when using "safe" mode #481

Closed r0ro closed 4 years ago

r0ro commented 4 years ago

Description

When using replace_all_objects with request_options 'safe' = True then operation never completes

Steps To Reproduce

    client = SearchClient.create(ALGOLIA_APPLICATION_ID, ALGOLIA_WRITE_API_KEY)
    dev = client.init_index("dev_test")
    dev.save_object({
        'objectID': 'test-0',
        'title': 'just a test'
    })

    dev.replace_all_objects([{
        'objectID': 'test-1',
        'title': 'another test'
    }], {
        'safe': True
    })