dimitrov-adrian / directus-extension-searchsync

Simple Directus 9 extension that sync content with remote search engine.
MIT License
116 stars 27 forks source link

Make drop index in algolia.js less destructive #6

Closed benosman closed 3 years ago

benosman commented 3 years ago

When testing out the algolia.js integration, I was suprised that when reindexOnStart is enabled, that the entire index including all settings, facets, rankings etc. gets wiped.

That seems too destructive so this pull request aims at softening this to just delete the objects in the index, retaining all settings as they are.

dimitrov-adrian commented 3 years ago

Make more sense to clear data only. Thanks!