Module

Yoga.Elasticsearch.Elasticsearch

Package
purescript-yoga-elasticsearch
Repository
rowtype-yoga/purescript-yoga-elasticsearch

#Client Source

data Client

#Node Source

newtype Node

Constructors

Instances

#ApiKeyId Source

#Username Source

#Password Source

#CloudId Source

#Routing Source

#ScrollId Source

#Version Source

#Document Source

newtype Document

Constructors

Instances

#Query Source

newtype Query

Constructors

Instances

#Script Source

newtype Script

Constructors

Instances

#Mappings Source

newtype Mappings

Constructors

Instances

#Settings Source

newtype Settings

Constructors

Instances

#Sort Source

newtype Sort

Constructors

Instances

#ShardInfo Source

type ShardInfo = { failed :: ShardCount, successful :: ShardCount, total :: ShardCount }

#Score Source

newtype Score

Constructors

Instances

#ApiKeyAuth Source

type ApiKeyAuth = { api_key :: ApiKeySecret, id :: ApiKeyId }

#BasicAuth Source

type BasicAuth = { password :: Password, username :: Username }

#ClientConfigImpl Source

type ClientConfigImpl :: Row Typetype ClientConfigImpl = (auth :: { apiKey :: ApiKeyAuth }, basicAuth :: BasicAuth, bearerToken :: BearerToken, cloud :: { id :: CloudId }, compression :: Boolean, maxRetries :: MaxRetries, node :: Node, nodes :: Array Node, requestTimeout :: RequestTimeout, ssl :: { rejectUnauthorized :: Boolean })

#createClientImpl Source

createClientImpl :: forall opts. EffectFn1 (Record opts) Client

#createClient Source

createClient :: forall opts opts_. Union opts opts_ ClientConfigImpl => Record opts -> Effect Client

#ClusterInfo Source

type ClusterInfo = { cluster_name :: ClusterName, cluster_uuid :: ClusterUUID, name :: ClusterName, tagline :: String, version :: { build_date :: String, build_flavor :: String, build_hash :: BuildHash, build_snapshot :: Boolean, build_type :: String, lucene_version :: Version, minimum_index_compatibility_version :: Version, minimum_wire_compatibility_version :: Version, number :: Version } }

#CreateIndexOptionsImpl Source

type CreateIndexOptionsImpl :: Row Typetype CreateIndexOptionsImpl = (mappings :: Mappings, settings :: Settings)

#CreateIndexResponse Source

type CreateIndexResponse = { acknowledged :: Boolean, index :: IndexName, shards_acknowledged :: Boolean }

#createIndex Source

createIndex :: forall opts opts_. Union opts opts_ CreateIndexOptionsImpl => IndexName -> Record opts -> Client -> Aff CreateIndexResponse

#DeleteIndexResponse Source

type DeleteIndexResponse = { acknowledged :: Boolean }

#IndexDocumentOptionsImpl Source

#IndexDocumentResponse Source

type IndexDocumentResponse = { _id :: DocumentId, _index :: IndexName, _shards :: ShardInfo, _version :: DocumentVersion, result :: IndexResult }

#indexDocument Source

#GetDocumentOptionsImpl Source

type GetDocumentOptionsImpl :: Row Typetype GetDocumentOptionsImpl = (_source :: Boolean, _source_excludes :: Array String, _source_includes :: Array String, routing :: Routing)

#GetDocumentResponse Source

type GetDocumentResponse = { _id :: DocumentId, _index :: IndexName, _primary_term :: PrimaryTerm, _seq_no :: SequenceNumber, _source :: Nullable Foreign, _version :: DocumentVersion, found :: Boolean }

#getDocument Source

getDocument :: forall opts opts_. Union opts opts_ GetDocumentOptionsImpl => IndexName -> DocumentId -> Record opts -> Client -> Aff GetDocumentResponse

#UpdateDocumentOptionsImpl Source

type UpdateDocumentOptionsImpl :: Row Typetype UpdateDocumentOptionsImpl = (doc :: Document, refresh :: RefreshPolicy, retry_on_conflict :: RetryCount, routing :: Routing, script :: Script)

#UpdateDocumentResponse Source

type UpdateDocumentResponse = { _id :: DocumentId, _index :: IndexName, _version :: DocumentVersion, result :: IndexResult }

#updateDocument Source

#DeleteDocumentOptionsImpl Source

#DeleteDocumentResponse Source

type DeleteDocumentResponse = { _id :: DocumentId, _index :: IndexName, _version :: DocumentVersion, result :: IndexResult }

#deleteDocument Source

#SearchOptionsImpl Source

type SearchOptionsImpl :: Row Typetype SearchOptionsImpl = (_source :: Boolean, _source_excludes :: Array String, _source_includes :: Array String, from :: FromOffset, query :: Query, routing :: Routing, scroll :: ScrollTimeout, size :: ResultSize, sort :: Sort, track_total_hits :: Boolean)

#SearchHit Source

type SearchHit = { _id :: DocumentId, _index :: IndexName, _score :: Nullable Score, _source :: Foreign }

#SearchResponse Source

type SearchResponse = { _scroll_id :: Nullable ScrollId, _shards :: { failed :: ShardCount, skipped :: SkippedCount, successful :: ShardCount, total :: ShardCount }, hits :: { hits :: Array SearchHit, max_score :: Nullable Score, total :: { relation :: String, value :: HitCount } }, timed_out :: Boolean, took :: TookMilliseconds }

#search Source

search :: forall opts opts_. Union opts opts_ SearchOptionsImpl => Maybe IndexName -> Record opts -> Client -> Aff SearchResponse

#searchAll Source

searchAll :: forall opts opts_. Union opts opts_ SearchOptionsImpl => Record opts -> Client -> Aff SearchResponse

#ScrollOptionsImpl Source

#scroll Source

scroll :: forall opts opts_. Union opts opts_ ScrollOptionsImpl => ScrollId -> Record opts -> Client -> Aff SearchResponse

#clearScrollImpl Source

#clearScroll Source

clearScroll :: ScrollId -> Client -> Aff { succeeded :: Boolean }

#BulkOperation Source

#BulkResponse Source

type BulkResponse = { errors :: Boolean, items :: Array Foreign, took :: TookMilliseconds }

#CountOptionsImpl Source

#CountResponse Source

type CountResponse = { count :: HitCount }

#count Source

count :: forall opts opts_. Union opts opts_ CountOptionsImpl => Maybe IndexName -> Record opts -> Client -> Aff CountResponse

#refresh Source

refresh :: IndexName -> Client -> Aff { _shards :: ShardInfo }