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

Add ability to recreate index before starting reindex

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.4.0
    • Falcon Sprint 114, Falcon Sprint 115
    • 1
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases