Module
Database.ElasticSearch
- Package
- purescript-elasticsearch
- Repository
- ConnorDillon/purescript-elasticsearch
Re-exports from Database.ElasticSearch.Bulk
#BulkResult Source
type BulkResult = (errors :: Boolean, items :: Array ActionResult, took :: Int)
#BulkParams Source
type BulkParams = (_source :: Optional (Array String), _sourceExcludes :: Optional (Array String), _sourceIncludes :: Optional (Array String), body :: BulkBody, index :: String, pipeline :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, routing :: Optional String, timeout :: Optional String, waitForActiveShards :: Optional String)
#BulkCreateParams Source
type BulkCreateParams = BulkIndexParams
#Action Source
type Action = { create :: BulkCreateParams } |+| { delete :: BulkDeleteParams } |+| { index :: BulkIndexParams } |+| { update :: BulkUpdateParams } |+| { doc :: Object Json } |+| (Object Json)
#bulkUpdate Source
bulkUpdate :: forall a b. Castable a BulkUpdateParams => EncodeJson (Record b) => a -> Record b -> BulkBody
#bulkIndex Source
bulkIndex :: forall a b. Castable a BulkIndexParams => EncodeJson (Record b) => a -> Record b -> BulkBody
#bulkDelete Source
bulkDelete :: forall a. Castable a BulkDeleteParams => a -> BulkBody
#bulkCreate Source
bulkCreate :: forall a b. Castable a BulkCreateParams => EncodeJson (Record b) => a -> Record b -> BulkBody
Re-exports from Database.ElasticSearch.Client
Re-exports from Database.ElasticSearch.Common
#Optional Source
type Optional a = UndefinedOr a
Re-exports from Database.ElasticSearch.Create
#CreateParams Source
type CreateParams = (body :: Object Json, id :: Optional String, index :: String, pipeline :: Optional String, refresh :: Optional Refresh, routing :: Optional String, timeout :: Optional String, version :: Optional Number, versionType :: Optional VersionType, waitForActiveShards :: Optional String)
Re-exports from Database.ElasticSearch.Delete
#DeleteParams Source
type DeleteParams = (id :: String, ifPrimaryTerm :: Optional Number, ifSeqNo :: Optional Number, index :: String, refresh :: Optional Refresh, routing :: Optional String, timeout :: Optional String, version :: Optional Number, versionType :: Optional VersionType, waitForActiveShards :: Optional String)
Re-exports from Database.ElasticSearch.Get
#GetParams Source
type GetParams = (_source :: Optional (Array String), _source_excludes :: Optional (Array String), _source_includes :: Optional (Array String), id :: String, index :: String, preference :: Optional String, realtime :: Optional Boolean, refresh :: Optional Boolean, routing :: Optional String, stored_fields :: Optional (Array String), version :: Optional Number, version_type :: Optional VersionType)
Re-exports from Database.ElasticSearch.Index
#IndexParams Source
type IndexParams = (body :: Object Json, id :: Optional String, ifPrimaryTerm :: Optional Number, ifSeqNo :: Optional Number, index :: String, opType :: Optional OpType, pipeline :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, routing :: Optional String, timeout :: Optional String, type :: Optional String, version :: Optional Number, versionType :: Optional VersionType, waitForActiveShards :: Optional String)
Re-exports from Database.ElasticSearch.Indices.Create
#createIndex Source
createIndex :: Api CreateIndexParams (acknowledged :: Boolean)
Re-exports from Database.ElasticSearch.Indices.Delete
#deleteIndex Source
deleteIndex :: Api DeleteIndexParams (acknowledged :: Boolean)
Re-exports from Database.ElasticSearch.Query
#Match Source
type Match = { analyzer :: Optional String, auto_generate_synonyms_phrase_query :: Optional Boolean, boost :: Optional Number, fuzziness :: Optional String, fuzzy_rewrite :: Optional String, fuzzy_transpositions :: Optional Boolean, lenient :: Optional Boolean, max_expansions :: Optional Int, minimum_should_match :: Optional String, operator :: Optional Operator, prefix_length :: Optional Int, query :: String |+| Number |+| Boolean, zero_terms_query :: Optional ZeroTermsQuery }
Re-exports from Database.ElasticSearch.Search
#SearchType Source
type SearchType = (StringLit "query_then_fetch") |+| (StringLit "dfs_query_then_fetch")
#SearchResult Source
type SearchResult = (_scroll_id :: Optional String, _shards :: { failed :: Int, skipped :: Int, successful :: Int, total :: Int }, hits :: { hits :: Array { _id :: String, _index :: String, _score :: Int, _source :: Optional (Object Json), _type :: String, fields :: Optional (Object Json) }, max_score :: Optional Number, total :: { relation :: String, value :: Int } }, timed_out :: Boolean, took :: Int)
#SearchParamsOpt Source
type SearchParamsOpt = (_source :: Optional (Array String), _source_excludes :: Optional (Array String), _source_includes :: Optional (Array String), allow_no_indices :: Optional Boolean, allow_partial_search_results :: Optional Boolean, analyze_wildcard :: Optional Boolean, analyzer :: Optional String, batched_reduce_size :: Optional Number, body :: Optional SearchBody, ccs_minimize_roundtrips :: Optional Boolean, default_operator :: Optional Operator, df :: Optional String, docvalue_fields :: Optional (Array String), expand_wildcards :: Optional ExpandWildcards, explain :: Optional Boolean, from :: Optional Number, ignore_throttled :: Optional Boolean, ignore_unavailable :: Optional Boolean, index :: Optional (Array String), lenient :: Optional Boolean, max_concurrent_shard_requests :: Optional Number, min_compatible_shard_node :: Optional String, pre_filter_shard_size :: Optional Number, preference :: Optional String, q :: Optional String, request_cache :: Optional Boolean, rest_total_hits_as_int :: Optional Boolean, routing :: Optional (Array String), scroll :: Optional String, search_type :: Optional SearchType, seq_no_primary_term :: Optional Boolean, size :: Optional Number, sort :: Optional (Array String), stats :: Optional (Array String), stored_fields :: Optional (Array String), suggest_field :: Optional String, suggest_mode :: Optional SuggestMode, suggest_size :: Optional Number, suggest_text :: Optional String, terminate_after :: Optional Number, timeout :: Optional String, track_scores :: Optional Boolean, track_total_hits :: Optional Boolean, type :: Optional (Array String), typed_keys :: Optional Boolean, version :: Optional Boolean)
#SearchBody Source
type SearchBody = { _source :: Optional SearchSource, docvalue_fields :: Optional Fields, explain :: Optional Boolean, fields :: Optional Fields, from :: Optional Int, indices_boost :: Optional (Array (Object Number)), min_score :: Optional Number, pit :: Optional Pit, query :: Optional Query, runtime_mappings :: Optional (Object RuntimeMapping), seq_no_primary_term :: Optional Boolean, size :: Optional Int, stats :: Optional (Array String), terminate_after :: Optional Int, timeout :: Optional String, version :: Optional Boolean }
#RuntimeMapping Source
type RuntimeMapping = { script :: UndefinedOr String, type :: DataType }
Re-exports from Database.ElasticSearch.Update
#UpdateParams Source
type UpdateParams = (_source :: Optional (Array String), _sourceExcludes :: Optional (Array String), _sourceIncludes :: Optional (Array String), body :: UpdateBody, id :: String, ifPrimaryTerm :: Optional Number, ifSeqNo :: Optional Number, index :: String, lang :: Optional String, refresh :: Optional Refresh, requireAlias :: Optional Boolean, retryOnConflict :: Optional Number, routing :: Optional String, timeout :: Optional String, waitForActiveShards :: Optional String)
#doc Source
doc :: forall a. EncodeJson (Record a) => Record a -> UpdateBody
- Modules
- Database.
ElasticSearch - Database.
ElasticSearch. Bulk - Database.
ElasticSearch. Client - Database.
ElasticSearch. Common - Database.
ElasticSearch. Create - Database.
ElasticSearch. Delete - Database.
ElasticSearch. Get - Database.
ElasticSearch. Index - Database.
ElasticSearch. Indices. Create - Database.
ElasticSearch. Indices. Delete - Database.
ElasticSearch. Internal - Database.
ElasticSearch. Query - Database.
ElasticSearch. Search - Database.
ElasticSearch. Update