Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct {
Routing string `json:"routing,omitempty"`
}
Alias is the struct for the create index API request body parameter.
type CreateIndex ¶
type CreateIndex struct { Settings Settings `json:"settings,omitempty"` Mappings map[string]Mapping `json:"mappings,omitempty"` Aliases map[string]Alias `json:"aliases,omitempty"` }
CreateIndex represents to create index API request body.
type Index ¶
type Index struct { NumberOfShards int `json:"number_of_shares,omitempty"` NumberOfReplicas int `json:"number_of_replicas,omitempty"` }
Index is the metadata for the search index.
type Mapping ¶
type Mapping struct { }
Mapping is the struct for the create index API request body parameter.
type Settings ¶
type Settings struct { Index Index NumberOfShards int `json:"number_of_shares,omitempty"` NumberOfReplicas int `json:"number_of_replicas,omitempty"` WriteWaitForActiveShards string `json:"index.write.wait_for_active_shards,omitempty"` }
Settings is the struct for the create index API request body parameter.
type UpdateIndexDoc ¶
type UpdateIndexDoc struct { Doc interface{} `json:"doc,omitempty"` DocAsUpsert bool `json:"doc_as_upsert,omitempty"` }
UpdateIndexDoc represents the body for a doc partial update.
Click to show internal directories.
Click to hide internal directories.