elasticsearch v0.1.1 Elasticsearch.DataStream View Source
Functions for building Stream
s using the configured Elasticsearch.Store
.
See stream/2
.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
stream(source, store)
View Source
stream(source(), Elasticsearch.Store.t()) :: Stream.t()
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