Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion guides/upgrading/0.3.x_to_0.4.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This makes it easier to have different bulk settings for different indexes.
**BREAKING**: `:bulk_page_size` and `:bulk_wait_interval` are now configured
on the index, not the cluster.

`Elasticsearch.Index.hot_swap/5` is now `Elasticsearch.Index.hot_swap/3` where options are passed as a map.

**FEATURE**: You can now pass `--bulk-wait-interval` and `--bulk-page-size`
options to `mix elasticsearch.build`, as requested in [#26](https://github.com/infinitered/elasticsearch-elixir/issues/26).

Expand Down Expand Up @@ -52,4 +54,12 @@ rather than your entire cluster.
bulk_page_size: 5000,
bulk_wait_interval: 0
}
}
}

Change the `Elasticsearch.Index.hot_swap/5` call to `Elasticsearch.Index.hot_swap/3`

# BEFORE
Elasticsearch.Index.hot_swap(MyApp.Cluster, "index-name", "path/to/settings", MyApp.Store, [MyApp.Source])

# AFTER
Elasticsearch.Index.hot_swap(MyApp.Cluster, "index-name", %{settings: "path/to/settings", store: MyApp.Store, sources: [MyApp.Source]})