Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLANET-6154 Disable sync of archived posts to ElasticSearch if archived posts are never included in search #169

Closed
planet-4 opened this issue Sep 30, 2021 · 1 comment
Labels
Dev development tickets Difficult Feature

Comments

@planet-4
Copy link

planet-4 commented Sep 30, 2021

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.
Reporter: pvincent
Sections: Search, Technical Debt

Potentially affected repositories: planet4-master-theme

@planet-4 planet-4 added Dev development tickets Feature Moderate labels Sep 30, 2021
@comzeradd
Copy link
Member

Done in greenpeace/planet4-master-theme#1661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev development tickets Difficult Feature
Projects
None yet
Development

No branches or pull requests

3 participants