Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6154

Disable sync of archived posts to ElasticSearch if archived posts are never included in search

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Merged
    • Icon: Should have Should have
    • 2.77.1
    • 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

            sdeshmuk Sagar Deshmukh
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: