ElasticsearchElixirBulkProcessor.Items.Update (Elasticsearch Elixir Bulk Processor v0.1.8)
Link to this section Summary
Functions
Examples
iex> %ElasticsearchElixirBulkProcessor.Items.Update{index: "test", id: "1", retry_on_conflict: 3, return_source: true, source: %{"test" => "test"}} ...> |> ElasticsearchElixirBulkProcessor.Items.Update.to_payload() "{\"update\":{\"retry_on_conflict\":3,\"_source\":true,\"_index\":\"test\",\"_id\":\"1\"}}\n{\"test\":\"test\"}"
Link to this section Functions
to_payload(item)
Examples
iex> %ElasticsearchElixirBulkProcessor.Items.Update{index: "test", id: "1", retry_on_conflict: 3, return_source: true, source: %{"test" => "test"}} ...> |> ElasticsearchElixirBulkProcessor.Items.Update.to_payload() "{\"update\":{\"retry_on_conflict\":3,\"_source\":true,\"_index\":\"test\",\"_id\":\"1\"}}\n{\"test\":\"test\"}"
iex> %ElasticsearchElixirBulkProcessor.Items.Update{index: "test", id: "1", source: %{"test" => "test"}} ...> |> ElasticsearchElixirBulkProcessor.Items.Update.to_payload() "{\"update\":{\"_index\":\"test\",\"_id\":\"1\"}}\n{\"test\":\"test\"}"