Closed CarterBland closed 1 month ago
As I continue to debug this, I have a feeling this is actually an Opensearch issue. I confirmed the index exists by adding a request before the Indexer class sends it's first bulk request to assert the index exists, it comes back good and then still fails.
For posterity, it was a specific issue with using neural search and the version of Opensearch we were using (the latest at the time). The cut a new release that solves this issue. See this thread for context
Describe the bug There is an extremely odd issue where full reindex of models can cause index_not_found exceptions from Opensearch. The strange part is that I can manually pull the index and status via the Opensearch rest API, and see that it is all configured correctly.
For example,
This returned extremely odd logs, where it looped multiple times with
exception
though Opensearch returned the status of the index as
It eventually goes through and the status becomes
Which has no seemingly no difference aside the document count and size increases.![Screen Shot 2024-05-24 at 12 39 36 PM](https://github.com/ankane/searchkick/assets/16313465/7dc081d8-3f56-4e35-97f2-72293fcb948d)
Additional context