Skip to content

Commit

Permalink
Merge pull request #142 from algoliareadmebot/master
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
maxiloc committed Aug 3, 2016
2 parents 3b77dad + 065ef9b commit 619767e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1952,22 +1952,22 @@ client.execute { move index "MyIndex" to "MyIndexNewName" }

**Note**:

The `move index` method will overwrite the destination index, and delete the temporary index.
The move index method will overwrite the destination index, and delete the temporary index.

**Warning**

The `move index` operation will override all settings of the destination,
The move index` operation will override all settings of the destination,
There is one exception for the [slaves](#slaves) parameter which is not impacted.

For example, if you want to fully update your index `MyIndex` every night, we recommend the following process:
1. Get settings and synonyms from the old index using [Get settings](#get-settings---settings)
and `[Get synonym](#get-synonym---get-synonym)`.
and [Get synonym](#get-synonym---get-synonym).
1. Apply settings and synonyms to the temporary index `MyTmpIndex`, (this will create the `MyTmpIndex` index)
using `[Set settings](#set-settings---changesettings)` and `[Batch synonyms](#batch-synonyms---save-synonyms)`
using [Set settings](#set-settings---changesettings) and [Batch synonyms](#batch-synonyms---save-synonyms)
(make sure to remove the [slaves](#slaves) parameter from the settings if it exists).
1. Import your records into a new index using [Add objects](#add-objects---index-into).
1. Atomically replace the index `MyIndex` with the content and settings of the index `MyTmpIndex`
using the `[Move index](#move-index---move-index)` method.
using the [Move index](#move-index---move-index) method.
This will automatically override the old index without any downtime on the search.
1. You'll end up with only one index called `MyIndex`, that contains the records and settings pushed to `MyTmpIndex`
and the slave-indices that were initially attached to `MyIndex` will be in sync with the new data.
Expand Down

0 comments on commit 619767e

Please sign in to comment.