Elasticsearch

zio.elasticsearch.Elasticsearch
See theElasticsearch companion object

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def execute[A](request: ElasticRequest[A]): Task[A]

Executes the given ElasticRequest.

Executes the given ElasticRequest.

Attributes

A

the type of the expected response

request

the ElasticRequest to execute

Returns:

a Task representing the response of the executed request.

def stream(request: SearchRequest): Stream[Throwable, Item]

Executes the given SearchRequest as a stream.

Executes the given SearchRequest as a stream.

Attributes

request

the SearchRequest to execute

Returns:

a Stream of Item.

def stream(request: SearchRequest, config: StreamConfig): Stream[Throwable, Item]

Executes a SearchRequest with a given StreamConfig.

Executes a SearchRequest with a given StreamConfig.

Attributes

config

the StreamConfig object that represents configuration options for the stream

request

the SearchRequest to execute

Returns:

a Stream of Item.

def streamAs[A : Schema](request: SearchRequest): Stream[Throwable, A]

Executes a SearchRequest and stream resulting documents as A, where A is a case class that has an implicit Schema instance in scope.

Executes a SearchRequest and stream resulting documents as A, where A is a case class that has an implicit Schema instance in scope.

Attributes

A

the type of documents to be returned

request

the SearchRequest to execute

Returns:

a Stream of the resulting documents as A.

def streamAs[A : Schema](request: SearchRequest, config: StreamConfig): Stream[Throwable, A]

Executes a SearchRequest and stream resulting documents as A, where A is a case class that has an implicit Schema instance in scope.

Executes a SearchRequest and stream resulting documents as A, where A is a case class that has an implicit Schema instance in scope.

Attributes

A

the type of documents to be returned

config

the StreamConfig object that represents configuration options for the stream

request

the SearchRequest to execute

Returns:

a Stream of the resulting documents as A.