Uploaded image for project: 'mod-search'
  1. mod-search
  2. MSEARCH-121

Add ability to recreate index before starting reindex

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Labels:
    • Template:
    • Sprint:
      Falcon Sprint 114, Falcon Sprint 115
    • Story Points:
      1
    • Development Team:
      Falcon

      Description

      It is common case that Elasticsearch mapping has a breaking change, and we have to drop existing index and create it again and then start reindex.

      All these 3 actions has to be done manually by an administrator, it is better to encapsulate it inside mod-search.

      Introduce recreateIndex boolean property for /search/index/inventory/reindex API, and it should behave as following.

      1. Given recreateIndex is true
        1. Than do the following before starting reindex operation:
          1. Drop existing index
          2. Create index with the latest mappings
        2. Start reindex operation.
      2. Given recreateIndex is false or unspecified
        1. Than just start reindex operation (as it is currently)

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pavel_filippov Pavel Filippov
                Reporter:
                bohdan-suprun Bohdan Suprun
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases