Module

Database.ElasticSearch.Indices.Create

Package
purescript-elasticsearch
Repository
ConnorDillon/purescript-elasticsearch

#CreateIndexParams Source

type CreateIndexParams = (body :: Optional CreateIndexBody, include_type_name :: Optional Boolean, index :: String, master_timeout :: Optional String, timeout :: Optional String, wait_for_active_shards :: Optional String)

#CreateIndexBody Source

type CreateIndexBody = { aliases :: Optional (Object Alias), mappings :: Optional { properties :: Object Mapping }, settings :: Optional Settings }

#Alias Source

type Alias = { index_routing :: Optional String, is_hidden :: Optional Boolean, is_write_index :: Optional Boolean, routing :: Optional String, search_routing :: Optional String }

#Mapping Source

type Mapping = { index :: Optional Boolean, type :: DataType }

#Settings Source

type Settings = { number_of_replicas :: Optional Int, number_of_shards :: Optional Int }

#aliases Source

aliases :: forall a. Homogeneous a Alias => Record a -> Object Alias

#mappings Source

mappings :: forall a. Homogeneous a Mapping => Record a -> { properties :: Object Mapping }

#createIndex Source