skip to Main Content

Can I add a synonyms file to an existing OpenSearch Index or will I have to create a new Index and Put all my documents in new Index. If second option then how to Transfer all Documents from one Index to a new Index?

I tried to create a new test Index an put the Synonyms file and it worked but now I want to to add it to my main Index that contains 70K documents.

2

Answers


  1. Chosen as BEST ANSWER
    POST _reindex
    {
      "source": {
        "index": "markazproducts"
      },
      "dest": {
        "index": "markazproductsv2"
      }
      
    }
    

    Worked in AWS OpenSearch althogh request timed out


  2. I recommend to use the Reindex API.
    Set wait_for_completion to false (Running reindex asynchronously) and get the task id. Use task_id in Task API to follow status of reindexing.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search