wilr / silverstripe-algolia

Handles indexing Silverstripe Pages into Algolia and providing results
BSD 3-Clause "New" or "Revised" License
13 stars 16 forks source link

Fix repeat reindexing causing duplicates/orphans #36

Closed matt-in-a-hat closed 3 years ago

matt-in-a-hat commented 3 years ago

If the Live record doesn't have a UUID when you call reindex then it generates a new UUID but only saves it on the draft record. If you call reindex again it would regenerate a new UUID because it checks the Live version but doesn't write to Live.