Updating Mappings and reindexing when using MongoDB river

(Eli Libman) #1

I'm using the mongodbriver to index documents from Mongo in elastic search.
I setup the river and the index and everything is working nicely.
Now I would like to change an analyzer (to strip html tags) and update
elastic search to reflect this change properly.

What would be the best way of achieving this with as little downtime and
overhead on the mongo and ES servers?

  1. create a new index with the new settings and create a new mongoriver
    (use aliasing for transitioning queries from old index to new one)

    • Is it possible to create two mongoriver instances?
  2. create new index, delete mongo river, reindex old index to new one, add
    mongo river (with initial timestamp to last doc in old index, and disable
    initial sync). (transition via aliasing ...)

  3. Other/better ways?


Please update your bookmarks! We moved to https://discuss.elastic.co/

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/980c95fe-4284-4cf6-9255-f8b8fa82c62e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

(system) #2