elasticsearch v0.1.0 Elasticsearch.DataStream View Source

Functions for building Streams using the configured Elasticsearch.Store. See stream/2.

Link to this section Summary

Functions

Creates a Stream from a given source

Link to this section Types

Link to this type source() View Source
source() :: any()

Link to this section Functions

Creates a Stream from a given source.

Configuration

Your configured :store module must handle the given data source. The stream will be paginated based on the :bulk_page_size in the configuration.

config :elasticsearch,
  bulk_page_size: 5000

Example

iex> stream = DataStream.stream(MyApp.Schema, Elasticsearch.Test.Store)
...> is_function(stream)
true