How can I change the type with the reindex api


#1

I need to reindex some indices because of the update to version 6. The new index needs to be of the type "doc" because Logstash is writing to it. How can I do this when the type is different in the source index?

I normal call to reindex creates the same type in the destination index. This doesn't work.


(David Pilato) #2

What did you try? This?

POST _reindex
{
  "source": {
    "index": "twitter"
  },
  "dest": {
    "index": "new_twitter",
   "type": "doc"
  }
}

#3

I did it without the type in destination. Couldn't find any documentation on this. The reindex documentation is rather bad. There is no overview about what is allowed in source and destination

Anway, I will give it a try. Thanks.


(David Pilato) #4

The reindex documentation is rather bad.

It can happen indeed. That's why we love when our users send documentation PR :slight_smile:


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.