Elastic.Bulk (Elastic v3.7.0) View Source

Used to make requests to ElasticSearch's bulk API.

All of index, create and update take a list of tuples.

The order of elements in each tuple is this:

  • Index
  • Type
  • ID (not required for index bulk action)
  • Data

Here's how to use create:

  Elastic.Bulk.create(
    [
      {Elastic.Index.name("answer"), "answer", "id-goes-here", %{text: "This is an answer"}}
    ]
  )

It's worth noting here that you can choose to pass nil as the ID in these index requests; ElasticSearch will automatically generate an ID for you.

For create requests, an ID must be provided.

Link to this section Summary

Functions

Makes bulk create requests to ElasticSearch.

Makes bulk index requests to ElasticSearch.

Makes bulk update requests to ElasticSearch.

Link to this section Functions

Makes bulk create requests to ElasticSearch.

For more information see documentation on Elastic.Bulk.

Makes bulk index requests to ElasticSearch.

For more information see documentation on Elastic.Bulk.

Makes bulk update requests to ElasticSearch.

For more information see documentation on Elastic.Bulk.