-
Task
-
Resolution: Merged
-
Should have
-
5
-
Search, Technical Debt
-
Sprint #182
-
titan
Currently we always sync the p3 archived posts to ElasticSearch, even when these are set to never be returned from the search results. In a lot of cases this more than doubles the total amount of data synced to ES, putting unnecessary strain on the cluster and making a full sync a lot slower. We can check the option at sync time and exclude the whole "archive" type if it's turned off for logged in users.
Tasks
- Skip indexing archived content if Archive feature flag is off. Add a notice for admins to re-sync the ES index.
- Investigate triggering ES sync when feature flag is turned on. Alternatively we can add a tip for admins to trigger a sync manually if they enable the feature.
Copied on Github