object ElasticsearchSource
- Alphabetic
- By Inheritance
- ElasticsearchSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(elasticsearchParams: ElasticsearchParams, searchParams: Map[String, String], settings: SourceSettingsBase[_, _]): Source[ReadResult[JsObject], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject.
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject. Alias of create.
Example of searchParams-usage: Map( "query" -> """{"match_all": {}}""" ) Map( "query" -> """{"match_all": {}}""", "_source" -> """ ["fieldToInclude", "anotherFieldToInclude"] """ )
- def apply(elasticsearchParams: ElasticsearchParams, query: String, settings: SourceSettingsBase[_, _]): Source[ReadResult[JsObject], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject.
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject. Alias of create.
- def create(elasticsearchParams: ElasticsearchParams, searchParams: Map[String, String], settings: SourceSettingsBase[_, _]): Source[ReadResult[JsObject], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject.
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject.
Example of searchParams-usage: Map( "query" -> """{"match_all": {}}""" ) Map( "query" -> """{"match_all": {}}""", "_source" -> """ ["fieldToInclude", "anotherFieldToInclude"] """ )
- def create(elasticsearchParams: ElasticsearchParams, query: String, settings: SourceSettingsBase[_, _]): Source[ReadResult[JsObject], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of Spray's spray.json.JsObject.
- def typed[T](elasticsearchParams: ElasticsearchParams, searchParams: Map[String, String], settings: SourceSettingsBase[_, _])(implicit sprayJsonReader: JsonReader[T]): Source[ReadResult[T], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of type
T
converted by Spray's spray.json.JsonReaderCreates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of type
T
converted by Spray's spray.json.JsonReaderExample of searchParams-usage: Map( "query" -> """{"match_all": {}}""" ) Map( "query" -> """{"match_all": {}}""", "_source" -> """ ["fieldToInclude", "anotherFieldToInclude"] """ )
- def typed[T](elasticsearchParams: ElasticsearchParams, query: String, settings: SourceSettingsBase[_, _])(implicit sprayJsonReader: JsonReader[T]): Source[ReadResult[T], NotUsed]
Creates a pekko.stream.scaladsl.Source from Elasticsearch that streams ReadResults of type
T
converted by Spray's spray.json.JsonReader