putsettings

package
v8.14.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Updates the index settings.

Index

Constants

This section is empty.

Variables

View Source
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")

ErrBuildPath is returned in case of missing parameters within the build of the request.

Functions

This section is empty.

Types

type NewPutSettings

type NewPutSettings func() *PutSettings

NewPutSettings type alias for index.

func NewPutSettingsFunc

func NewPutSettingsFunc(tp elastictransport.Interface) NewPutSettings

NewPutSettingsFunc returns a new instance of PutSettings with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.

type PutSettings

type PutSettings struct {
	// contains filtered or unexported fields
}

func (*PutSettings) AllowNoIndices

func (r *PutSettings) AllowNoIndices(allownoindices bool) *PutSettings

AllowNoIndices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. API name: allow_no_indices

func (*PutSettings) Analysis

func (r *PutSettings) Analysis(analysis *types.IndexSettingsAnalysis) *PutSettings

API name: analysis

func (*PutSettings) Analyze

func (r *PutSettings) Analyze(analyze *types.SettingsAnalyze) *PutSettings

Analyze Settings to define analyzers, tokenizers, token filters and character filters. API name: analyze

func (*PutSettings) AutoExpandReplicas

func (r *PutSettings) AutoExpandReplicas(autoexpandreplicas string) *PutSettings

API name: auto_expand_replicas

func (*PutSettings) Blocks

func (r *PutSettings) Blocks(blocks *types.IndexSettingBlocks) *PutSettings

API name: blocks

func (*PutSettings) CheckOnStartup

func (r *PutSettings) CheckOnStartup(checkonstartup indexcheckonstartup.IndexCheckOnStartup) *PutSettings

API name: check_on_startup

func (*PutSettings) Codec

func (r *PutSettings) Codec(codec string) *PutSettings

API name: codec

func (*PutSettings) CreationDate

func (r *PutSettings) CreationDate(stringifiedepochtimeunitmillis types.StringifiedEpochTimeUnitMillis) *PutSettings

API name: creation_date

func (*PutSettings) CreationDateString

func (r *PutSettings) CreationDateString(datetime types.DateTime) *PutSettings

API name: creation_date_string

func (*PutSettings) DefaultPipeline

func (r *PutSettings) DefaultPipeline(pipelinename string) *PutSettings

API name: default_pipeline

func (PutSettings) Do

func (r PutSettings) Do(providedCtx context.Context) (*Response, error)

Do runs the request through the transport, handle the response and returns a putsettings.Response

func (*PutSettings) ExpandWildcards

func (r *PutSettings) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *PutSettings

ExpandWildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden`. API name: expand_wildcards

func (*PutSettings) FinalPipeline

func (r *PutSettings) FinalPipeline(pipelinename string) *PutSettings

API name: final_pipeline

func (*PutSettings) FlatSettings

func (r *PutSettings) FlatSettings(flatsettings bool) *PutSettings

FlatSettings If `true`, returns settings in flat format. API name: flat_settings

func (*PutSettings) Format

func (r *PutSettings) Format(format string) *PutSettings

API name: format

func (*PutSettings) GcDeletes

func (r *PutSettings) GcDeletes(duration types.Duration) *PutSettings

API name: gc_deletes

func (*PutSettings) Header

func (r *PutSettings) Header(key, value string) *PutSettings

Header set a key, value pair in the PutSettings headers map.

func (*PutSettings) Hidden

func (r *PutSettings) Hidden(hidden string) *PutSettings

API name: hidden

func (*PutSettings) Highlight

func (r *PutSettings) Highlight(highlight *types.SettingsHighlight) *PutSettings

API name: highlight

func (*PutSettings) HttpRequest

func (r *PutSettings) HttpRequest(ctx context.Context) (*http.Request, error)

HttpRequest returns the http.Request object built from the given parameters.

func (*PutSettings) IgnoreUnavailable

func (r *PutSettings) IgnoreUnavailable(ignoreunavailable bool) *PutSettings

IgnoreUnavailable If `true`, returns settings in flat format. API name: ignore_unavailable

func (*PutSettings) Index

func (r *PutSettings) Index(index *types.IndexSettings) *PutSettings

API name: index

func (*PutSettings) IndexSettings

func (r *PutSettings) IndexSettings(indexsettings map[string]json.RawMessage) *PutSettings

API name: IndexSettings

func (*PutSettings) IndexingPressure

func (r *PutSettings) IndexingPressure(indexingpressure *types.IndicesIndexingPressure) *PutSettings

IndexingPressure Configure indexing back pressure limits. API name: indexing_pressure

func (*PutSettings) IndexingSlowlog

func (r *PutSettings) IndexingSlowlog(indexingslowlog *types.IndexingSlowlogSettings) *PutSettings

API name: indexing.slowlog

func (*PutSettings) Indices

func (r *PutSettings) Indices(index string) *PutSettings

Indices Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. API Name: index

func (*PutSettings) Lifecycle

func (r *PutSettings) Lifecycle(lifecycle *types.IndexSettingsLifecycle) *PutSettings

API name: lifecycle

func (*PutSettings) LoadFixedBitsetFiltersEagerly

func (r *PutSettings) LoadFixedBitsetFiltersEagerly(loadfixedbitsetfilterseagerly bool) *PutSettings

API name: load_fixed_bitset_filters_eagerly

func (*PutSettings) Mapping

func (r *PutSettings) Mapping(mapping *types.MappingLimitSettings) *PutSettings

Mapping Enable or disable dynamic mapping for an index. API name: mapping

func (*PutSettings) MasterTimeout

func (r *PutSettings) MasterTimeout(duration string) *PutSettings

MasterTimeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. API name: master_timeout

func (*PutSettings) MaxDocvalueFieldsSearch

func (r *PutSettings) MaxDocvalueFieldsSearch(maxdocvaluefieldssearch int) *PutSettings

API name: max_docvalue_fields_search

func (*PutSettings) MaxInnerResultWindow

func (r *PutSettings) MaxInnerResultWindow(maxinnerresultwindow int) *PutSettings

API name: max_inner_result_window

func (*PutSettings) MaxNgramDiff

func (r *PutSettings) MaxNgramDiff(maxngramdiff int) *PutSettings

API name: max_ngram_diff

func (*PutSettings) MaxRefreshListeners

func (r *PutSettings) MaxRefreshListeners(maxrefreshlisteners int) *PutSettings

API name: max_refresh_listeners

func (*PutSettings) MaxRegexLength

func (r *PutSettings) MaxRegexLength(maxregexlength int) *PutSettings

API name: max_regex_length

func (*PutSettings) MaxRescoreWindow

func (r *PutSettings) MaxRescoreWindow(maxrescorewindow int) *PutSettings

API name: max_rescore_window

func (*PutSettings) MaxResultWindow

func (r *PutSettings) MaxResultWindow(maxresultwindow int) *PutSettings

API name: max_result_window

func (*PutSettings) MaxScriptFields

func (r *PutSettings) MaxScriptFields(maxscriptfields int) *PutSettings

API name: max_script_fields

func (*PutSettings) MaxShingleDiff

func (r *PutSettings) MaxShingleDiff(maxshinglediff int) *PutSettings

API name: max_shingle_diff

func (*PutSettings) MaxSlicesPerScroll

func (r *PutSettings) MaxSlicesPerScroll(maxslicesperscroll int) *PutSettings

API name: max_slices_per_scroll

func (*PutSettings) MaxTermsCount

func (r *PutSettings) MaxTermsCount(maxtermscount int) *PutSettings

API name: max_terms_count

func (*PutSettings) Merge

func (r *PutSettings) Merge(merge *types.Merge) *PutSettings

API name: merge

func (*PutSettings) Mode

func (r *PutSettings) Mode(mode string) *PutSettings

API name: mode

func (*PutSettings) NumberOfReplicas

func (r *PutSettings) NumberOfReplicas(numberofreplicas string) *PutSettings

API name: number_of_replicas

func (*PutSettings) NumberOfRoutingShards

func (r *PutSettings) NumberOfRoutingShards(numberofroutingshards int) *PutSettings

API name: number_of_routing_shards

func (*PutSettings) NumberOfShards

func (r *PutSettings) NumberOfShards(numberofshards string) *PutSettings

API name: number_of_shards

func (PutSettings) Perform

func (r PutSettings) Perform(providedCtx context.Context) (*http.Response, error)

Perform runs the http.Request through the provided transport and returns an http.Response.

func (*PutSettings) PreserveExisting

func (r *PutSettings) PreserveExisting(preserveexisting bool) *PutSettings

PreserveExisting If `true`, existing index settings remain unchanged. API name: preserve_existing

func (*PutSettings) Priority

func (r *PutSettings) Priority(priority string) *PutSettings

API name: priority

func (*PutSettings) ProvidedName

func (r *PutSettings) ProvidedName(name string) *PutSettings

API name: provided_name

func (*PutSettings) Queries

func (r *PutSettings) Queries(queries *types.Queries) *PutSettings

API name: queries

func (*PutSettings) QueryString

func (r *PutSettings) QueryString(querystring *types.SettingsQueryString) *PutSettings

API name: query_string

func (*PutSettings) Raw

func (r *PutSettings) Raw(raw io.Reader) *PutSettings

Raw takes a json payload as input which is then passed to the http.Request If specified Raw takes precedence on Request method.

func (*PutSettings) RefreshInterval

func (r *PutSettings) RefreshInterval(duration types.Duration) *PutSettings

API name: refresh_interval

func (*PutSettings) Request

func (r *PutSettings) Request(req *Request) *PutSettings

Request allows to set the request property with the appropriate payload.

func (*PutSettings) Routing

func (r *PutSettings) Routing(routing *types.IndexRouting) *PutSettings

API name: routing

func (*PutSettings) RoutingPartitionSize

func (r *PutSettings) RoutingPartitionSize(stringifiedinteger types.Stringifiedinteger) *PutSettings

API name: routing_partition_size

func (*PutSettings) RoutingPath

func (r *PutSettings) RoutingPath(routingpaths ...string) *PutSettings

API name: routing_path

func (*PutSettings) Search

func (r *PutSettings) Search(search *types.SettingsSearch) *PutSettings

API name: search

func (*PutSettings) Settings

func (r *PutSettings) Settings(settings *types.IndexSettings) *PutSettings

API name: settings

func (*PutSettings) Similarity

func (r *PutSettings) Similarity(similarity map[string]types.SettingsSimilarity) *PutSettings

Similarity Configure custom similarity settings to customize how search results are scored. API name: similarity

func (*PutSettings) SoftDeletes

func (r *PutSettings) SoftDeletes(softdeletes *types.SoftDeletes) *PutSettings

API name: soft_deletes

func (*PutSettings) Sort

API name: sort

func (*PutSettings) Store

func (r *PutSettings) Store(store *types.Storage) *PutSettings

Store The store module allows you to control how index data is stored and accessed on disk. API name: store

func (*PutSettings) TimeSeries

func (r *PutSettings) TimeSeries(timeseries *types.IndexSettingsTimeSeries) *PutSettings

API name: time_series

func (*PutSettings) Timeout

func (r *PutSettings) Timeout(duration string) *PutSettings

Timeout Period to wait for a response. If no response is received before the

timeout expires, the request fails and returns an error.

API name: timeout

func (*PutSettings) TopMetricsMaxSize

func (r *PutSettings) TopMetricsMaxSize(topmetricsmaxsize int) *PutSettings

API name: top_metrics_max_size

func (*PutSettings) Translog

func (r *PutSettings) Translog(translog *types.Translog) *PutSettings

API name: translog

func (*PutSettings) Uuid

func (r *PutSettings) Uuid(uuid string) *PutSettings

API name: uuid

func (*PutSettings) VerifiedBeforeClose

func (r *PutSettings) VerifiedBeforeClose(verifiedbeforeclose string) *PutSettings

API name: verified_before_close

func (*PutSettings) Version

func (r *PutSettings) Version(version *types.IndexVersioning) *PutSettings

API name: version

type Response

type Response struct {

	// Acknowledged For a successful response, this value is always true. On failure, an
	// exception is returned instead.
	Acknowledged bool `json:"acknowledged"`
}

Response holds the response body struct for the package putsettings

https://github.com/elastic/elasticsearch-specification/blob/5fb8f1ce9c4605abcaa44aa0f17dbfc60497a757/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24

func NewResponse

func NewResponse() *Response

NewResponse returns a Response

Jump to

Keyboard shortcuts

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