models

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 0 Imported by: 2

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.

Directories

Path Synopsis
es5
es8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL