UpdateRequest

zio.elasticsearch.ElasticRequest$.UpdateRequest

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def orCreate[A : Schema](doc: A): UpdateRequest

Sets upsert parameter for zio.elasticsearch.ElasticRequest.UpdateRequest which allows creation of a document if it does not exists.

Sets upsert parameter for zio.elasticsearch.ElasticRequest.UpdateRequest which allows creation of a document if it does not exists.

Type parameters

A

the type of the document, for which an implicit zio.schema.Schema is required

Value parameters

doc

the document to create if it does not exist

Attributes

Returns

an instance of the zio.elasticsearch.ElasticRequest.UpdateRequest enriched with the upsert parameter.

Inherited methods

def refresh(value: Boolean): R

Configures whether or not to refresh the index after the operation in the zio.elasticsearch.ElasticRequest.

Configures whether or not to refresh the index after the operation in the zio.elasticsearch.ElasticRequest.

Value parameters

value

should be true if the index should be refreshed after the executed operation, false otherwise

Attributes

Returns

an instance of the zio.elasticsearch.ElasticRequest enriched with the refresh parameter.

Inherited from:
HasRefresh (hidden)
final def refreshFalse: R

Sets refresh parameter to false in the zio.elasticsearch.ElasticRequest. Same as refresh(false).

Sets refresh parameter to false in the zio.elasticsearch.ElasticRequest. Same as refresh(false).

Attributes

Returns

a new instance of the zio.elasticsearch.ElasticRequest with the refresh parameter set to false.

See also

#refresh

Inherited from:
HasRefresh (hidden)
final def refreshTrue: R

Sets refresh parameter to true in the zio.elasticsearch.ElasticRequest. Same as refresh(true).

Sets refresh parameter to true in the zio.elasticsearch.ElasticRequest. Same as refresh(true).

Attributes

Returns

a new instance of the zio.elasticsearch.ElasticRequest with the refresh parameter set to true.

See also

#refresh

Inherited from:
HasRefresh (hidden)
def routing(value: Routing): R

Specifies a routing value to be used for this zio.elasticsearch.ElasticRequest.

Specifies a routing value to be used for this zio.elasticsearch.ElasticRequest.

Value parameters

value

the Routing value to set for the zio.elasticsearch.ElasticRequest

Attributes

Returns

an instance of the zio.elasticsearch.ElasticRequest enriched with the routing parameter.

Inherited from:
HasRouting (hidden)