elasticsearch-interchange-0.2.0.0: Serialization of Elasticsearch requests and responses
Safe HaskellSafe-Inferred
LanguageHaskell2010

Elasticsearch.Bulk.Request

Synopsis

Documentation

data Operation Source #

A single operation in a bulk request.

Constructors

Operation 

Fields

Instances

Instances details
Show Operation Source # 
Instance details

Defined in Elasticsearch.Bulk.Request

data Action Source #

The action to be taken with the document.

Constructors

Create

Create a new document. Fails if document with ID already exists.

Index

Create or update a document.

Delete

Delete a document. Note: Currently broken. Results in malformed request.

Update

Update a document. Fails if document with ID does not exist.

Instances

Instances details
Show Action Source # 
Instance details

Defined in Elasticsearch.Bulk.Request

encode :: SmallArray Operation -> Builder Source #

Encode returns a builder, not a JSON value, because the body of an Elasticsearch bulk requests is not JSON. Technically, it is ndjson, but since there is no common type for that, this module just converts it straight to a builder.

encodeSmile :: SmallArray Operation -> Builder Source #

Encode with SMILE. This does not use backreferences.