types

package
v9.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 230 Imported by: 3

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type Access ¶

type Access struct {
	// Replication A list of indices permission entries for cross-cluster replication.
	Replication []ReplicationAccess `json:"replication,omitempty"`
	// Search A list of indices permission entries for cross-cluster search.
	Search []SearchAccess `json:"search,omitempty"`
}

Access type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Access.ts#L22-L31

func NewAccess ¶

func NewAccess() *Access

NewAccess returns a Access.

func (*Access) AccessCaster ¶

func (s *Access) AccessCaster() *Access

type AccessVariant ¶

type AccessVariant interface {
	AccessCaster() *Access
}

type AcknowledgeState ¶

type AcknowledgeState struct {
	State     acknowledgementoptions.AcknowledgementOptions `json:"state"`
	Timestamp DateTime                                      `json:"timestamp"`
}

AcknowledgeState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L109-L112

func NewAcknowledgeState ¶

func NewAcknowledgeState() *AcknowledgeState

NewAcknowledgeState returns a AcknowledgeState.

func (*AcknowledgeState) AcknowledgeStateCaster ¶

func (s *AcknowledgeState) AcknowledgeStateCaster() *AcknowledgeState

func (*AcknowledgeState) UnmarshalJSON ¶

func (s *AcknowledgeState) UnmarshalJSON(data []byte) error

type AcknowledgeStateVariant ¶

type AcknowledgeStateVariant interface {
	AcknowledgeStateCaster() *AcknowledgeState
}

type Acknowledgement ¶

type Acknowledgement struct {
	License []string `json:"license"`
	Message string   `json:"message"`
}

Acknowledgement type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/license/post/types.ts#L20-L23

func NewAcknowledgement ¶

func NewAcknowledgement() *Acknowledgement

NewAcknowledgement returns a Acknowledgement.

func (*Acknowledgement) UnmarshalJSON ¶

func (s *Acknowledgement) UnmarshalJSON(data []byte) error

type ActionStatus ¶

type ActionStatus struct {
	Ack                     AcknowledgeState `json:"ack"`
	LastExecution           *ExecutionState  `json:"last_execution,omitempty"`
	LastSuccessfulExecution *ExecutionState  `json:"last_successful_execution,omitempty"`
	LastThrottle            *ThrottleState   `json:"last_throttle,omitempty"`
}

ActionStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L125-L130

func NewActionStatus ¶

func NewActionStatus() *ActionStatus

NewActionStatus returns a ActionStatus.

func (*ActionStatus) ActionStatusCaster ¶

func (s *ActionStatus) ActionStatusCaster() *ActionStatus

type ActionStatusVariant ¶

type ActionStatusVariant interface {
	ActionStatusCaster() *ActionStatus
}

type ActivationState ¶

type ActivationState struct {
	Active    bool     `json:"active"`
	Timestamp DateTime `json:"timestamp"`
}

ActivationState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Activation.ts#L24-L27

func NewActivationState ¶

func NewActivationState() *ActivationState

NewActivationState returns a ActivationState.

func (*ActivationState) ActivationStateCaster ¶

func (s *ActivationState) ActivationStateCaster() *ActivationState

func (*ActivationState) UnmarshalJSON ¶

func (s *ActivationState) UnmarshalJSON(data []byte) error

type ActivationStateVariant ¶

type ActivationStateVariant interface {
	ActivationStateCaster() *ActivationState
}

type ActivationStatus ¶

type ActivationStatus struct {
	Actions WatcherStatusActions `json:"actions"`
	State   ActivationState      `json:"state"`
	Version int64                `json:"version"`
}

ActivationStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Activation.ts#L29-L33

func NewActivationStatus ¶

func NewActivationStatus() *ActivationStatus

NewActivationStatus returns a ActivationStatus.

func (*ActivationStatus) UnmarshalJSON ¶

func (s *ActivationStatus) UnmarshalJSON(data []byte) error

type AdaptiveAllocations ¶

type AdaptiveAllocations struct {
	// Enabled Turn on `adaptive_allocations`.
	Enabled *bool `json:"enabled,omitempty"`
	// MaxNumberOfAllocations The maximum number of allocations to scale to.
	// If set, it must be greater than or equal to `min_number_of_allocations`.
	MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"`
	// MinNumberOfAllocations The minimum number of allocations to scale to.
	// If set, it must be greater than or equal to 0.
	// If not defined, the deployment scales to 0.
	MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"`
}

AdaptiveAllocations type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L99-L116

func NewAdaptiveAllocations ¶

func NewAdaptiveAllocations() *AdaptiveAllocations

NewAdaptiveAllocations returns a AdaptiveAllocations.

func (*AdaptiveAllocations) AdaptiveAllocationsCaster ¶

func (s *AdaptiveAllocations) AdaptiveAllocationsCaster() *AdaptiveAllocations

func (*AdaptiveAllocations) UnmarshalJSON ¶

func (s *AdaptiveAllocations) UnmarshalJSON(data []byte) error

type AdaptiveAllocationsSettings ¶

type AdaptiveAllocationsSettings struct {
	// Enabled If true, adaptive_allocations is enabled
	Enabled bool `json:"enabled"`
	// MaxNumberOfAllocations Specifies the maximum number of allocations to scale to.
	// If set, it must be greater than or equal to min_number_of_allocations.
	MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"`
	// MinNumberOfAllocations Specifies the minimum number of allocations to scale to.
	// If set, it must be greater than or equal to 0.
	// If not defined, the deployment scales to 0.
	MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"`
}

AdaptiveAllocationsSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L109-L125

func NewAdaptiveAllocationsSettings ¶

func NewAdaptiveAllocationsSettings() *AdaptiveAllocationsSettings

NewAdaptiveAllocationsSettings returns a AdaptiveAllocationsSettings.

func (*AdaptiveAllocationsSettings) AdaptiveAllocationsSettingsCaster ¶

func (s *AdaptiveAllocationsSettings) AdaptiveAllocationsSettingsCaster() *AdaptiveAllocationsSettings

func (*AdaptiveAllocationsSettings) UnmarshalJSON ¶

func (s *AdaptiveAllocationsSettings) UnmarshalJSON(data []byte) error

type AdaptiveAllocationsSettingsVariant ¶

type AdaptiveAllocationsSettingsVariant interface {
	AdaptiveAllocationsSettingsCaster() *AdaptiveAllocationsSettings
}

type AdaptiveAllocationsVariant ¶

type AdaptiveAllocationsVariant interface {
	AdaptiveAllocationsCaster() *AdaptiveAllocations
}

type AdaptiveSelection ¶

type AdaptiveSelection struct {
	// AvgQueueSize The exponentially weighted moving average queue size of search requests on
	// the keyed node.
	AvgQueueSize *int64 `json:"avg_queue_size,omitempty"`
	// AvgResponseTime The exponentially weighted moving average response time of search requests on
	// the keyed node.
	AvgResponseTime Duration `json:"avg_response_time,omitempty"`
	// AvgResponseTimeNs The exponentially weighted moving average response time, in nanoseconds, of
	// search requests on the keyed node.
	AvgResponseTimeNs *int64 `json:"avg_response_time_ns,omitempty"`
	// AvgServiceTime The exponentially weighted moving average service time of search requests on
	// the keyed node.
	AvgServiceTime Duration `json:"avg_service_time,omitempty"`
	// AvgServiceTimeNs The exponentially weighted moving average service time, in nanoseconds, of
	// search requests on the keyed node.
	AvgServiceTimeNs *int64 `json:"avg_service_time_ns,omitempty"`
	// OutgoingSearches The number of outstanding search requests to the keyed node from the node
	// these stats are for.
	OutgoingSearches *int64 `json:"outgoing_searches,omitempty"`
	// Rank The rank of this node; used for shard selection when routing search requests.
	Rank *string `json:"rank,omitempty"`
}

AdaptiveSelection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L441-L470

func NewAdaptiveSelection ¶

func NewAdaptiveSelection() *AdaptiveSelection

NewAdaptiveSelection returns a AdaptiveSelection.

func (*AdaptiveSelection) UnmarshalJSON ¶

func (s *AdaptiveSelection) UnmarshalJSON(data []byte) error

type AddAction ¶

type AddAction struct {
	// Alias Alias for the action.
	// Index alias names support date math.
	Alias *string `json:"alias,omitempty"`
	// Aliases Aliases for the action.
	// Index alias names support date math.
	Aliases []string `json:"aliases,omitempty"`
	// Filter Query used to limit documents the alias can access.
	Filter *Query `json:"filter,omitempty"`
	// Index Data stream or index for the action.
	// Supports wildcards (`*`).
	Index *string `json:"index,omitempty"`
	// IndexRouting Value used to route indexing operations to a specific shard.
	// If specified, this overwrites the `routing` value for indexing operations.
	// Data stream aliases don’t support this parameter.
	IndexRouting *string `json:"index_routing,omitempty"`
	// Indices Data streams or indices for the action.
	// Supports wildcards (`*`).
	Indices []string `json:"indices,omitempty"`
	// IsHidden If `true`, the alias is hidden.
	IsHidden *bool `json:"is_hidden,omitempty"`
	// IsWriteIndex If `true`, sets the write index or data stream for the alias.
	IsWriteIndex *bool `json:"is_write_index,omitempty"`
	// MustExist If `true`, the alias must exist to perform the action.
	MustExist *bool `json:"must_exist,omitempty"`
	// Routing Value used to route indexing and search operations to a specific shard.
	// Data stream aliases don’t support this parameter.
	Routing *string `json:"routing,omitempty"`
	// SearchRouting Value used to route search operations to a specific shard.
	// If specified, this overwrites the `routing` value for search operations.
	// Data stream aliases don’t support this parameter.
	SearchRouting *string `json:"search_routing,omitempty"`
}

AddAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/update_aliases/types.ts#L41-L95

func NewAddAction ¶

func NewAddAction() *AddAction

NewAddAction returns a AddAction.

func (*AddAction) AddActionCaster ¶

func (s *AddAction) AddActionCaster() *AddAction

func (*AddAction) UnmarshalJSON ¶

func (s *AddAction) UnmarshalJSON(data []byte) error

type AddActionVariant ¶

type AddActionVariant interface {
	AddActionCaster() *AddAction
}

type AddIndicesBlockStatus ¶ added in v9.1.0

type AddIndicesBlockStatus struct {
	Blocked bool   `json:"blocked"`
	Name    string `json:"name"`
}

AddIndicesBlockStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33

func NewAddIndicesBlockStatus ¶ added in v9.1.0

func NewAddIndicesBlockStatus() *AddIndicesBlockStatus

NewAddIndicesBlockStatus returns a AddIndicesBlockStatus.

func (*AddIndicesBlockStatus) UnmarshalJSON ¶ added in v9.1.0

func (s *AddIndicesBlockStatus) UnmarshalJSON(data []byte) error

type AdjacencyMatrixAggregate ¶

type AdjacencyMatrixAggregate struct {
	Buckets BucketsAdjacencyMatrixBucket `json:"buckets"`
	Meta    Metadata                     `json:"meta,omitempty"`
}

AdjacencyMatrixAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L649-L654

func NewAdjacencyMatrixAggregate ¶

func NewAdjacencyMatrixAggregate() *AdjacencyMatrixAggregate

NewAdjacencyMatrixAggregate returns a AdjacencyMatrixAggregate.

func (*AdjacencyMatrixAggregate) UnmarshalJSON ¶

func (s *AdjacencyMatrixAggregate) UnmarshalJSON(data []byte) error

type AdjacencyMatrixAggregation ¶

type AdjacencyMatrixAggregation struct {
	// Filters Filters used to create buckets.
	// At least one filter is required.
	Filters map[string]Query `json:"filters,omitempty"`
	// Separator Separator used to concatenate filter names. Defaults to &.
	Separator *string `json:"separator,omitempty"`
}

AdjacencyMatrixAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L60-L70

func NewAdjacencyMatrixAggregation ¶

func NewAdjacencyMatrixAggregation() *AdjacencyMatrixAggregation

NewAdjacencyMatrixAggregation returns a AdjacencyMatrixAggregation.

func (*AdjacencyMatrixAggregation) AdjacencyMatrixAggregationCaster ¶

func (s *AdjacencyMatrixAggregation) AdjacencyMatrixAggregationCaster() *AdjacencyMatrixAggregation

func (*AdjacencyMatrixAggregation) UnmarshalJSON ¶

func (s *AdjacencyMatrixAggregation) UnmarshalJSON(data []byte) error

type AdjacencyMatrixAggregationVariant ¶

type AdjacencyMatrixAggregationVariant interface {
	AdjacencyMatrixAggregationCaster() *AdjacencyMatrixAggregation
}

type AdjacencyMatrixBucket ¶

type AdjacencyMatrixBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
}

AdjacencyMatrixBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L656-L658

func NewAdjacencyMatrixBucket ¶

func NewAdjacencyMatrixBucket() *AdjacencyMatrixBucket

NewAdjacencyMatrixBucket returns a AdjacencyMatrixBucket.

func (AdjacencyMatrixBucket) MarshalJSON ¶

func (s AdjacencyMatrixBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*AdjacencyMatrixBucket) UnmarshalJSON ¶

func (s *AdjacencyMatrixBucket) UnmarshalJSON(data []byte) error

type Aggregate ¶

type Aggregate any

Aggregate holds the union for the following types:

CardinalityAggregate
HdrPercentilesAggregate
HdrPercentileRanksAggregate
TDigestPercentilesAggregate
TDigestPercentileRanksAggregate
PercentilesBucketAggregate
MedianAbsoluteDeviationAggregate
MinAggregate
MaxAggregate
SumAggregate
AvgAggregate
WeightedAvgAggregate
ValueCountAggregate
SimpleValueAggregate
DerivativeAggregate
BucketMetricValueAggregate
StatsAggregate
StatsBucketAggregate
ExtendedStatsAggregate
ExtendedStatsBucketAggregate
GeoBoundsAggregate
GeoCentroidAggregate
HistogramAggregate
DateHistogramAggregate
AutoDateHistogramAggregate
VariableWidthHistogramAggregate
StringTermsAggregate
LongTermsAggregate
DoubleTermsAggregate
UnmappedTermsAggregate
LongRareTermsAggregate
StringRareTermsAggregate
UnmappedRareTermsAggregate
MultiTermsAggregate
MissingAggregate
NestedAggregate
ReverseNestedAggregate
GlobalAggregate
FilterAggregate
ChildrenAggregate
ParentAggregate
SamplerAggregate
UnmappedSamplerAggregate
GeoHashGridAggregate
GeoTileGridAggregate
GeoHexGridAggregate
RangeAggregate
DateRangeAggregate
GeoDistanceAggregate
IpRangeAggregate
IpPrefixAggregate
FiltersAggregate
AdjacencyMatrixAggregate
SignificantLongTermsAggregate
SignificantStringTermsAggregate
UnmappedSignificantTermsAggregate
CompositeAggregate
FrequentItemSetsAggregate
TimeSeriesAggregate
ScriptedMetricAggregate
TopHitsAggregate
InferenceAggregate
StringStatsAggregate
BoxPlotAggregate
TopMetricsAggregate
TTestAggregate
RateAggregate
CumulativeCardinalityAggregate
MatrixStatsAggregate
GeoLineAggregate

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L38-L125

type AggregateMetricDoubleProperty ¶

type AggregateMetricDoubleProperty struct {
	DefaultMetric   string                         `json:"default_metric"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Metrics             []string                                         `json:"metrics"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TimeSeriesMetric    *timeseriesmetrictype.TimeSeriesMetricType       `json:"time_series_metric,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

AggregateMetricDoubleProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/complex.ts#L60-L66

func NewAggregateMetricDoubleProperty ¶

func NewAggregateMetricDoubleProperty() *AggregateMetricDoubleProperty

NewAggregateMetricDoubleProperty returns a AggregateMetricDoubleProperty.

func (*AggregateMetricDoubleProperty) AggregateMetricDoublePropertyCaster ¶

func (s *AggregateMetricDoubleProperty) AggregateMetricDoublePropertyCaster() *AggregateMetricDoubleProperty

func (AggregateMetricDoubleProperty) MarshalJSON ¶

func (s AggregateMetricDoubleProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*AggregateMetricDoubleProperty) PropertyCaster ¶ added in v9.0.1

func (s *AggregateMetricDoubleProperty) PropertyCaster() *Property

func (*AggregateMetricDoubleProperty) UnmarshalJSON ¶

func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error

type AggregateMetricDoublePropertyVariant ¶

type AggregateMetricDoublePropertyVariant interface {
	AggregateMetricDoublePropertyCaster() *AggregateMetricDoubleProperty
}

type AggregateOrder ¶

type AggregateOrder any

AggregateOrder holds the union for the following types:

map[string]sortorder.SortOrder
[]map[string]sortorder.SortOrder

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1052-L1054

type AggregateOrderVariant ¶

type AggregateOrderVariant interface {
	AggregateOrderCaster() *AggregateOrder
}

type AggregateOutput ¶

type AggregateOutput struct {
	Exponent           *Weights `json:"exponent,omitempty"`
	LogisticRegression *Weights `json:"logistic_regression,omitempty"`
	WeightedMode       *Weights `json:"weighted_mode,omitempty"`
	WeightedSum        *Weights `json:"weighted_sum,omitempty"`
}

AggregateOutput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L101-L106

func NewAggregateOutput ¶

func NewAggregateOutput() *AggregateOutput

NewAggregateOutput returns a AggregateOutput.

func (*AggregateOutput) AggregateOutputCaster ¶

func (s *AggregateOutput) AggregateOutputCaster() *AggregateOutput

type AggregateOutputVariant ¶

type AggregateOutputVariant interface {
	AggregateOutputCaster() *AggregateOutput
}

type AggregationBreakdown ¶

type AggregationBreakdown struct {
	BuildAggregation        int64  `json:"build_aggregation"`
	BuildAggregationCount   int64  `json:"build_aggregation_count"`
	BuildLeafCollector      int64  `json:"build_leaf_collector"`
	BuildLeafCollectorCount int64  `json:"build_leaf_collector_count"`
	Collect                 int64  `json:"collect"`
	CollectCount            int64  `json:"collect_count"`
	Initialize              int64  `json:"initialize"`
	InitializeCount         int64  `json:"initialize_count"`
	PostCollection          *int64 `json:"post_collection,omitempty"`
	PostCollectionCount     *int64 `json:"post_collection_count,omitempty"`
	Reduce                  int64  `json:"reduce"`
	ReduceCount             int64  `json:"reduce_count"`
}

AggregationBreakdown type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L26-L39

func NewAggregationBreakdown ¶

func NewAggregationBreakdown() *AggregationBreakdown

NewAggregationBreakdown returns a AggregationBreakdown.

func (*AggregationBreakdown) UnmarshalJSON ¶

func (s *AggregationBreakdown) UnmarshalJSON(data []byte) error

type AggregationProfile ¶

type AggregationProfile struct {
	Breakdown   AggregationBreakdown     `json:"breakdown"`
	Children    []AggregationProfile     `json:"children,omitempty"`
	Debug       *AggregationProfileDebug `json:"debug,omitempty"`
	Description string                   `json:"description"`
	TimeInNanos int64                    `json:"time_in_nanos"`
	Type        string                   `json:"type"`
}

AggregationProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L85-L92

func NewAggregationProfile ¶

func NewAggregationProfile() *AggregationProfile

NewAggregationProfile returns a AggregationProfile.

func (*AggregationProfile) UnmarshalJSON ¶

func (s *AggregationProfile) UnmarshalJSON(data []byte) error

type AggregationProfileDebug ¶

type AggregationProfileDebug struct {
	BruteForceUsed                    *int                                    `json:"brute_force_used,omitempty"`
	BuiltBuckets                      *int                                    `json:"built_buckets,omitempty"`
	CharsFetched                      *int                                    `json:"chars_fetched,omitempty"`
	CollectAnalyzedCount              *int                                    `json:"collect_analyzed_count,omitempty"`
	CollectAnalyzedNs                 *int                                    `json:"collect_analyzed_ns,omitempty"`
	CollectionStrategy                *string                                 `json:"collection_strategy,omitempty"`
	DeferredAggregators               []string                                `json:"deferred_aggregators,omitempty"`
	Delegate                          *string                                 `json:"delegate,omitempty"`
	DelegateDebug                     *AggregationProfileDebug                `json:"delegate_debug,omitempty"`
	DynamicPruningAttempted           *int                                    `json:"dynamic_pruning_attempted,omitempty"`
	DynamicPruningUsed                *int                                    `json:"dynamic_pruning_used,omitempty"`
	EmptyCollectorsUsed               *int                                    `json:"empty_collectors_used,omitempty"`
	ExtractCount                      *int                                    `json:"extract_count,omitempty"`
	ExtractNs                         *int                                    `json:"extract_ns,omitempty"`
	Filters                           []AggregationProfileDelegateDebugFilter `json:"filters,omitempty"`
	HasFilter                         *bool                                   `json:"has_filter,omitempty"`
	MapReducer                        *string                                 `json:"map_reducer,omitempty"`
	NumericCollectorsUsed             *int                                    `json:"numeric_collectors_used,omitempty"`
	OrdinalsCollectorsOverheadTooHigh *int                                    `json:"ordinals_collectors_overhead_too_high,omitempty"`
	OrdinalsCollectorsUsed            *int                                    `json:"ordinals_collectors_used,omitempty"`
	ResultStrategy                    *string                                 `json:"result_strategy,omitempty"`
	SegmentsCollected                 *int                                    `json:"segments_collected,omitempty"`
	SegmentsCounted                   *int                                    `json:"segments_counted,omitempty"`
	SegmentsWithDeletedDocs           *int                                    `json:"segments_with_deleted_docs,omitempty"`
	SegmentsWithDocCountField         *int                                    `json:"segments_with_doc_count_field,omitempty"`
	SegmentsWithMultiValuedOrds       *int                                    `json:"segments_with_multi_valued_ords,omitempty"`
	SegmentsWithSingleValuedOrds      *int                                    `json:"segments_with_single_valued_ords,omitempty"`
	SkippedDueToNoData                *int                                    `json:"skipped_due_to_no_data,omitempty"`
	StringHashingCollectorsUsed       *int                                    `json:"string_hashing_collectors_used,omitempty"`
	SurvivingBuckets                  *int                                    `json:"surviving_buckets,omitempty"`
	TotalBuckets                      *int                                    `json:"total_buckets,omitempty"`
	ValuesFetched                     *int                                    `json:"values_fetched,omitempty"`
}

AggregationProfileDebug type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L42-L76

func NewAggregationProfileDebug ¶

func NewAggregationProfileDebug() *AggregationProfileDebug

NewAggregationProfileDebug returns a AggregationProfileDebug.

func (*AggregationProfileDebug) UnmarshalJSON ¶

func (s *AggregationProfileDebug) UnmarshalJSON(data []byte) error

type AggregationProfileDelegateDebugFilter ¶

type AggregationProfileDelegateDebugFilter struct {
	Query                         *string `json:"query,omitempty"`
	ResultsFromMetadata           *int    `json:"results_from_metadata,omitempty"`
	SegmentsCountedInConstantTime *int    `json:"segments_counted_in_constant_time,omitempty"`
	SpecializedFor                *string `json:"specialized_for,omitempty"`
}

AggregationProfileDelegateDebugFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L78-L83

func NewAggregationProfileDelegateDebugFilter ¶

func NewAggregationProfileDelegateDebugFilter() *AggregationProfileDelegateDebugFilter

NewAggregationProfileDelegateDebugFilter returns a AggregationProfileDelegateDebugFilter.

func (*AggregationProfileDelegateDebugFilter) UnmarshalJSON ¶

func (s *AggregationProfileDelegateDebugFilter) UnmarshalJSON(data []byte) error

type AggregationRange ¶

type AggregationRange struct {
	// From Start of the range (inclusive).
	From *Float64 `json:"from,omitempty"`
	// Key Custom key to return the range with.
	Key *string `json:"key,omitempty"`
	// To End of the range (exclusive).
	To *Float64 `json:"to,omitempty"`
}

AggregationRange type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L691-L704

func NewAggregationRange ¶

func NewAggregationRange() *AggregationRange

NewAggregationRange returns a AggregationRange.

func (*AggregationRange) AggregationRangeCaster ¶

func (s *AggregationRange) AggregationRangeCaster() *AggregationRange

func (*AggregationRange) UnmarshalJSON ¶

func (s *AggregationRange) UnmarshalJSON(data []byte) error

type AggregationRangeVariant ¶

type AggregationRangeVariant interface {
	AggregationRangeCaster() *AggregationRange
}

type Aggregations ¶

type Aggregations struct {
	AdditionalAggregationsProperty map[string]json.RawMessage `json:"-"`
	// AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix.
	// The request provides a collection of named filter expressions, similar to the
	// `filters` aggregation.
	// Each bucket in the response represents a non-empty cell in the matrix of
	// intersecting filters.
	AdjacencyMatrix *AdjacencyMatrixAggregation `json:"adjacency_matrix,omitempty"`
	// Aggregations Sub-aggregations for this aggregation.
	// Only applies to bucket aggregations.
	Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
	// AutoDateHistogram A multi-bucket aggregation similar to the date histogram, except instead of
	// providing an interval to use as the width of each bucket, a target number of
	// buckets is provided.
	AutoDateHistogram *AutoDateHistogramAggregation `json:"auto_date_histogram,omitempty"`
	// Avg A single-value metrics aggregation that computes the average of numeric
	// values that are extracted from the aggregated documents.
	Avg *AverageAggregation `json:"avg,omitempty"`
	// AvgBucket A sibling pipeline aggregation which calculates the mean value of a specified
	// metric in a sibling aggregation.
	// The specified metric must be numeric and the sibling aggregation must be a
	// multi-bucket aggregation.
	AvgBucket *AverageBucketAggregation `json:"avg_bucket,omitempty"`
	// Boxplot A metrics aggregation that computes a box plot of numeric values extracted
	// from the aggregated documents.
	Boxplot *BoxplotAggregation `json:"boxplot,omitempty"`
	// BucketCorrelation A sibling pipeline aggregation which runs a correlation function on the
	// configured sibling multi-bucket aggregation.
	BucketCorrelation *BucketCorrelationAggregation `json:"bucket_correlation,omitempty"`
	// BucketCountKsTest A sibling pipeline aggregation which runs a two sample Kolmogorov–Smirnov
	// test ("K-S test") against a provided distribution and the distribution
	// implied by the documents counts in the configured sibling aggregation.
	BucketCountKsTest *BucketKsAggregation `json:"bucket_count_ks_test,omitempty"`
	// BucketScript A parent pipeline aggregation which runs a script which can perform per
	// bucket computations on metrics in the parent multi-bucket aggregation.
	BucketScript *BucketScriptAggregation `json:"bucket_script,omitempty"`
	// BucketSelector A parent pipeline aggregation which runs a script to determine whether the
	// current bucket will be retained in the parent multi-bucket aggregation.
	BucketSelector *BucketSelectorAggregation `json:"bucket_selector,omitempty"`
	// BucketSort A parent pipeline aggregation which sorts the buckets of its parent
	// multi-bucket aggregation.
	BucketSort *BucketSortAggregation `json:"bucket_sort,omitempty"`
	// Cardinality A single-value metrics aggregation that calculates an approximate count of
	// distinct values.
	Cardinality *CardinalityAggregation `json:"cardinality,omitempty"`
	// CategorizeText A multi-bucket aggregation that groups semi-structured text into buckets.
	CategorizeText *CategorizeTextAggregation `json:"categorize_text,omitempty"`
	// Children A single bucket aggregation that selects child documents that have the
	// specified type, as defined in a `join` field.
	Children *ChildrenAggregation `json:"children,omitempty"`
	// Composite A multi-bucket aggregation that creates composite buckets from different
	// sources.
	// Unlike the other multi-bucket aggregations, you can use the `composite`
	// aggregation to paginate *all* buckets from a multi-level aggregation
	// efficiently.
	Composite *CompositeAggregation `json:"composite,omitempty"`
	// CumulativeCardinality A parent pipeline aggregation which calculates the cumulative cardinality in
	// a parent `histogram` or `date_histogram` aggregation.
	CumulativeCardinality *CumulativeCardinalityAggregation `json:"cumulative_cardinality,omitempty"`
	// CumulativeSum A parent pipeline aggregation which calculates the cumulative sum of a
	// specified metric in a parent `histogram` or `date_histogram` aggregation.
	CumulativeSum *CumulativeSumAggregation `json:"cumulative_sum,omitempty"`
	// DateHistogram A multi-bucket values source based aggregation that can be applied on date
	// values or date range values extracted from the documents.
	// It dynamically builds fixed size (interval) buckets over the values.
	DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"`
	// DateRange A multi-bucket value source based aggregation that enables the user to define
	// a set of date ranges - each representing a bucket.
	DateRange *DateRangeAggregation `json:"date_range,omitempty"`
	// Derivative A parent pipeline aggregation which calculates the derivative of a specified
	// metric in a parent `histogram` or `date_histogram` aggregation.
	Derivative *DerivativeAggregation `json:"derivative,omitempty"`
	// DiversifiedSampler A filtering aggregation used to limit any sub aggregations' processing to a
	// sample of the top-scoring documents.
	// Similar to the `sampler` aggregation, but adds the ability to limit the
	// number of matches that share a common value.
	DiversifiedSampler *DiversifiedSamplerAggregation `json:"diversified_sampler,omitempty"`
	// ExtendedStats A multi-value metrics aggregation that computes stats over numeric values
	// extracted from the aggregated documents.
	ExtendedStats *ExtendedStatsAggregation `json:"extended_stats,omitempty"`
	// ExtendedStatsBucket A sibling pipeline aggregation which calculates a variety of stats across all
	// bucket of a specified metric in a sibling aggregation.
	ExtendedStatsBucket *ExtendedStatsBucketAggregation `json:"extended_stats_bucket,omitempty"`
	// Filter A single bucket aggregation that narrows the set of documents to those that
	// match a query.
	Filter *Query `json:"filter,omitempty"`
	// Filters A multi-bucket aggregation where each bucket contains the documents that
	// match a query.
	Filters *FiltersAggregation `json:"filters,omitempty"`
	// FrequentItemSets A bucket aggregation which finds frequent item sets, a form of association
	// rules mining that identifies items that often occur together.
	FrequentItemSets *FrequentItemSetsAggregation `json:"frequent_item_sets,omitempty"`
	// GeoBounds A metric aggregation that computes the geographic bounding box containing all
	// values for a Geopoint or Geoshape field.
	GeoBounds *GeoBoundsAggregation `json:"geo_bounds,omitempty"`
	// GeoCentroid A metric aggregation that computes the weighted centroid from all coordinate
	// values for geo fields.
	GeoCentroid *GeoCentroidAggregation `json:"geo_centroid,omitempty"`
	// GeoDistance A multi-bucket aggregation that works on `geo_point` fields.
	// Evaluates the distance of each document value from an origin point and
	// determines the buckets it belongs to, based on ranges defined in the request.
	GeoDistance *GeoDistanceAggregation `json:"geo_distance,omitempty"`
	// GeoLine Aggregates all `geo_point` values within a bucket into a `LineString` ordered
	// by the chosen sort field.
	GeoLine *GeoLineAggregation `json:"geo_line,omitempty"`
	// GeohashGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values
	// into buckets that represent a grid.
	// Each cell is labeled using a geohash which is of user-definable precision.
	GeohashGrid *GeoHashGridAggregation `json:"geohash_grid,omitempty"`
	// GeohexGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values
	// into buckets that represent a grid.
	// Each cell corresponds to a H3 cell index and is labeled using the H3Index
	// representation.
	GeohexGrid *GeohexGridAggregation `json:"geohex_grid,omitempty"`
	// GeotileGrid A multi-bucket aggregation that groups `geo_point` and `geo_shape` values
	// into buckets that represent a grid.
	// Each cell corresponds to a map tile as used by many online map sites.
	GeotileGrid *GeoTileGridAggregation `json:"geotile_grid,omitempty"`
	// Global Defines a single bucket of all the documents within the search execution
	// context.
	// This context is defined by the indices and the document types you’re
	// searching on, but is not influenced by the search query itself.
	Global *GlobalAggregation `json:"global,omitempty"`
	// Histogram A multi-bucket values source based aggregation that can be applied on numeric
	// values or numeric range values extracted from the documents.
	// It dynamically builds fixed size (interval) buckets over the values.
	Histogram *HistogramAggregation `json:"histogram,omitempty"`
	// Inference A parent pipeline aggregation which loads a pre-trained model and performs
	// inference on the collated result fields from the parent bucket aggregation.
	Inference *InferenceAggregation `json:"inference,omitempty"`
	// IpPrefix A bucket aggregation that groups documents based on the network or
	// sub-network of an IP address.
	IpPrefix *IpPrefixAggregation `json:"ip_prefix,omitempty"`
	// IpRange A multi-bucket value source based aggregation that enables the user to define
	// a set of IP ranges - each representing a bucket.
	IpRange *IpRangeAggregation `json:"ip_range,omitempty"`
	Line    *GeoLineAggregation `json:"line,omitempty"`
	// MatrixStats A numeric aggregation that computes the following statistics over a set of
	// document fields: `count`, `mean`, `variance`, `skewness`, `kurtosis`,
	// `covariance`, and `covariance`.
	MatrixStats *MatrixStatsAggregation `json:"matrix_stats,omitempty"`
	// Max A single-value metrics aggregation that returns the maximum value among the
	// numeric values extracted from the aggregated documents.
	Max *MaxAggregation `json:"max,omitempty"`
	// MaxBucket A sibling pipeline aggregation which identifies the bucket(s) with the
	// maximum value of a specified metric in a sibling aggregation and outputs both
	// the value and the key(s) of the bucket(s).
	MaxBucket *MaxBucketAggregation `json:"max_bucket,omitempty"`
	// MedianAbsoluteDeviation A single-value aggregation that approximates the median absolute deviation of
	// its search results.
	MedianAbsoluteDeviation *MedianAbsoluteDeviationAggregation `json:"median_absolute_deviation,omitempty"`
	Meta                    Metadata                            `json:"meta,omitempty"`
	// Min A single-value metrics aggregation that returns the minimum value among
	// numeric values extracted from the aggregated documents.
	Min *MinAggregation `json:"min,omitempty"`
	// MinBucket A sibling pipeline aggregation which identifies the bucket(s) with the
	// minimum value of a specified metric in a sibling aggregation and outputs both
	// the value and the key(s) of the bucket(s).
	MinBucket *MinBucketAggregation `json:"min_bucket,omitempty"`
	// Missing A field data based single bucket aggregation, that creates a bucket of all
	// documents in the current document set context that are missing a field value
	// (effectively, missing a field or having the configured NULL value set).
	Missing   *MissingAggregation      `json:"missing,omitempty"`
	MovingAvg MovingAverageAggregation `json:"moving_avg,omitempty"`
	// MovingFn Given an ordered series of data, "slides" a window across the data and runs a
	// custom script on each window of data.
	// For convenience, a number of common functions are predefined such as `min`,
	// `max`, and moving averages.
	MovingFn *MovingFunctionAggregation `json:"moving_fn,omitempty"`
	// MovingPercentiles Given an ordered series of percentiles, "slides" a window across those
	// percentiles and computes cumulative percentiles.
	MovingPercentiles *MovingPercentilesAggregation `json:"moving_percentiles,omitempty"`
	// MultiTerms A multi-bucket value source based aggregation where buckets are dynamically
	// built - one per unique set of values.
	MultiTerms *MultiTermsAggregation `json:"multi_terms,omitempty"`
	// Nested A special single bucket aggregation that enables aggregating nested
	// documents.
	Nested *NestedAggregation `json:"nested,omitempty"`
	// Normalize A parent pipeline aggregation which calculates the specific
	// normalized/rescaled value for a specific bucket value.
	Normalize *NormalizeAggregation `json:"normalize,omitempty"`
	// Parent A special single bucket aggregation that selects parent documents that have
	// the specified type, as defined in a `join` field.
	Parent *ParentAggregation `json:"parent,omitempty"`
	// PercentileRanks A multi-value metrics aggregation that calculates one or more percentile
	// ranks over numeric values extracted from the aggregated documents.
	PercentileRanks *PercentileRanksAggregation `json:"percentile_ranks,omitempty"`
	// Percentiles A multi-value metrics aggregation that calculates one or more percentiles
	// over numeric values extracted from the aggregated documents.
	Percentiles *PercentilesAggregation `json:"percentiles,omitempty"`
	// PercentilesBucket A sibling pipeline aggregation which calculates percentiles across all bucket
	// of a specified metric in a sibling aggregation.
	PercentilesBucket *PercentilesBucketAggregation `json:"percentiles_bucket,omitempty"`
	// RandomSampler A single bucket aggregation that randomly includes documents in the
	// aggregated results.
	// Sampling provides significant speed improvement at the cost of accuracy.
	RandomSampler *RandomSamplerAggregation `json:"random_sampler,omitempty"`
	// Range A multi-bucket value source based aggregation that enables the user to define
	// a set of ranges - each representing a bucket.
	Range *RangeAggregation `json:"range,omitempty"`
	// RareTerms A multi-bucket value source based aggregation which finds "rare" terms —
	// terms that are at the long-tail of the distribution and are not frequent.
	RareTerms *RareTermsAggregation `json:"rare_terms,omitempty"`
	// Rate Calculates a rate of documents or a field in each bucket.
	// Can only be used inside a `date_histogram` or `composite` aggregation.
	Rate *RateAggregation `json:"rate,omitempty"`
	// ReverseNested A special single bucket aggregation that enables aggregating on parent
	// documents from nested documents.
	// Should only be defined inside a `nested` aggregation.
	ReverseNested *ReverseNestedAggregation `json:"reverse_nested,omitempty"`
	// Sampler A filtering aggregation used to limit any sub aggregations' processing to a
	// sample of the top-scoring documents.
	Sampler *SamplerAggregation `json:"sampler,omitempty"`
	// ScriptedMetric A metric aggregation that uses scripts to provide a metric output.
	ScriptedMetric *ScriptedMetricAggregation `json:"scripted_metric,omitempty"`
	// SerialDiff An aggregation that subtracts values in a time series from themselves at
	// different time lags or periods.
	SerialDiff *SerialDifferencingAggregation `json:"serial_diff,omitempty"`
	// SignificantTerms Returns interesting or unusual occurrences of terms in a set.
	SignificantTerms *SignificantTermsAggregation `json:"significant_terms,omitempty"`
	// SignificantText Returns interesting or unusual occurrences of free-text terms in a set.
	SignificantText *SignificantTextAggregation `json:"significant_text,omitempty"`
	// Stats A multi-value metrics aggregation that computes stats over numeric values
	// extracted from the aggregated documents.
	Stats *StatsAggregation `json:"stats,omitempty"`
	// StatsBucket A sibling pipeline aggregation which calculates a variety of stats across all
	// bucket of a specified metric in a sibling aggregation.
	StatsBucket *StatsBucketAggregation `json:"stats_bucket,omitempty"`
	// StringStats A multi-value metrics aggregation that computes statistics over string values
	// extracted from the aggregated documents.
	StringStats *StringStatsAggregation `json:"string_stats,omitempty"`
	// Sum A single-value metrics aggregation that sums numeric values that are
	// extracted from the aggregated documents.
	Sum *SumAggregation `json:"sum,omitempty"`
	// SumBucket A sibling pipeline aggregation which calculates the sum of a specified metric
	// across all buckets in a sibling aggregation.
	SumBucket *SumBucketAggregation `json:"sum_bucket,omitempty"`
	// TTest A metrics aggregation that performs a statistical hypothesis test in which
	// the test statistic follows a Student’s t-distribution under the null
	// hypothesis on numeric values extracted from the aggregated documents.
	TTest *TTestAggregation `json:"t_test,omitempty"`
	// Terms A multi-bucket value source based aggregation where buckets are dynamically
	// built - one per unique value.
	Terms *TermsAggregation `json:"terms,omitempty"`
	// TimeSeries The time series aggregation queries data created using a time series index.
	// This is typically data such as metrics or other data streams with a time
	// component, and requires creating an index using the time series mode.
	TimeSeries *TimeSeriesAggregation `json:"time_series,omitempty"`
	// TopHits A metric aggregation that returns the top matching documents per bucket.
	TopHits *TopHitsAggregation `json:"top_hits,omitempty"`
	// TopMetrics A metric aggregation that selects metrics from the document with the largest
	// or smallest sort value.
	TopMetrics *TopMetricsAggregation `json:"top_metrics,omitempty"`
	// ValueCount A single-value metrics aggregation that counts the number of values that are
	// extracted from the aggregated documents.
	ValueCount *ValueCountAggregation `json:"value_count,omitempty"`
	// VariableWidthHistogram A multi-bucket aggregation similar to the histogram, except instead of
	// providing an interval to use as the width of each bucket, a target number of
	// buckets is provided.
	VariableWidthHistogram *VariableWidthHistogramAggregation `json:"variable_width_histogram,omitempty"`
	// WeightedAvg A single-value metrics aggregation that computes the weighted average of
	// numeric values that are extracted from the aggregated documents.
	WeightedAvg *WeightedAverageAggregation `json:"weighted_avg,omitempty"`
}

Aggregations type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/AggregationContainer.ts#L107-L533

func NewAggregations ¶

func NewAggregations() *Aggregations

NewAggregations returns a Aggregations.

func (*Aggregations) AggregationsCaster ¶

func (s *Aggregations) AggregationsCaster() *Aggregations

func (Aggregations) MarshalJSON ¶

func (s Aggregations) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*Aggregations) UnmarshalJSON ¶

func (s *Aggregations) UnmarshalJSON(data []byte) error

type AggregationsVariant ¶

type AggregationsVariant interface {
	AggregationsCaster() *Aggregations
}

type Alias ¶

type Alias struct {
	// Filter Query used to limit documents the alias can access.
	Filter *Query `json:"filter,omitempty"`
	// IndexRouting Value used to route indexing operations to a specific shard.
	// If specified, this overwrites the `routing` value for indexing operations.
	IndexRouting *string `json:"index_routing,omitempty"`
	// IsHidden If `true`, the alias is hidden.
	// All indices for the alias must have the same `is_hidden` value.
	IsHidden *bool `json:"is_hidden,omitempty"`
	// IsWriteIndex If `true`, the index is the write index for the alias.
	IsWriteIndex *bool `json:"is_write_index,omitempty"`
	// Routing Value used to route indexing and search operations to a specific shard.
	Routing *string `json:"routing,omitempty"`
	// SearchRouting Value used to route search operations to a specific shard.
	// If specified, this overwrites the `routing` value for search operations.
	SearchRouting *string `json:"search_routing,omitempty"`
}

Alias type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/Alias.ts#L23-L53

func NewAlias ¶

func NewAlias() *Alias

NewAlias returns a Alias.

func (*Alias) AliasCaster ¶

func (s *Alias) AliasCaster() *Alias

func (*Alias) UnmarshalJSON ¶

func (s *Alias) UnmarshalJSON(data []byte) error

type AliasDefinition ¶

type AliasDefinition struct {
	// Filter Query used to limit documents the alias can access.
	Filter *Query `json:"filter,omitempty"`
	// IndexRouting Value used to route indexing operations to a specific shard.
	// If specified, this overwrites the `routing` value for indexing operations.
	IndexRouting *string `json:"index_routing,omitempty"`
	// IsHidden If `true`, the alias is hidden.
	// All indices for the alias must have the same `is_hidden` value.
	IsHidden *bool `json:"is_hidden,omitempty"`
	// IsWriteIndex If `true`, the index is the write index for the alias.
	IsWriteIndex *bool `json:"is_write_index,omitempty"`
	// Routing Value used to route indexing and search operations to a specific shard.
	Routing *string `json:"routing,omitempty"`
	// SearchRouting Value used to route search operations to a specific shard.
	// If specified, this overwrites the `routing` value for search operations.
	SearchRouting *string `json:"search_routing,omitempty"`
}

AliasDefinition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/AliasDefinition.ts#L22-L54

func NewAliasDefinition ¶

func NewAliasDefinition() *AliasDefinition

NewAliasDefinition returns a AliasDefinition.

func (*AliasDefinition) AliasDefinitionCaster ¶

func (s *AliasDefinition) AliasDefinitionCaster() *AliasDefinition

func (*AliasDefinition) UnmarshalJSON ¶

func (s *AliasDefinition) UnmarshalJSON(data []byte) error

type AliasDefinitionVariant ¶

type AliasDefinitionVariant interface {
	AliasDefinitionCaster() *AliasDefinition
}

type AliasVariant ¶

type AliasVariant interface {
	AliasCaster() *Alias
}

type AliasesRecord ¶

type AliasesRecord struct {
	// Alias alias name
	Alias *string `json:"alias,omitempty"`
	// Filter filter
	Filter *string `json:"filter,omitempty"`
	// Index index alias points to
	Index *string `json:"index,omitempty"`
	// IsWriteIndex write index
	IsWriteIndex *string `json:"is_write_index,omitempty"`
	// RoutingIndex index routing
	RoutingIndex *string `json:"routing.index,omitempty"`
	// RoutingSearch search routing
	RoutingSearch *string `json:"routing.search,omitempty"`
}

AliasesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/aliases/types.ts#L22-L53

func NewAliasesRecord ¶

func NewAliasesRecord() *AliasesRecord

NewAliasesRecord returns a AliasesRecord.

func (*AliasesRecord) UnmarshalJSON ¶

func (s *AliasesRecord) UnmarshalJSON(data []byte) error

type AlibabaCloudServiceSettings ¶

type AlibabaCloudServiceSettings struct {
	// ApiKey A valid API key for the AlibabaCloud AI Search API.
	ApiKey string `json:"api_key"`
	// Host The name of the host address used for the inference task.
	// You can find the host address in the API keys section of the documentation.
	Host string `json:"host"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// AlibabaCloud AI Search.
	// By default, the `alibabacloud-ai-search` service sets the number of requests
	// allowed per minute to `1000`.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// ServiceId The name of the model service to use for the inference task.
	// The following service IDs are available for the `completion` task:
	//
	// * `ops-qwen-turbo`
	// * `qwen-turbo`
	// * `qwen-plus`
	// * `qwen-max Ă· qwen-max-longcontext`
	//
	// The following service ID is available for the `rerank` task:
	//
	// * `ops-bge-reranker-larger`
	//
	// The following service ID is available for the `sparse_embedding` task:
	//
	// * `ops-text-sparse-embedding-001`
	//
	// The following service IDs are available for the `text_embedding` task:
	//
	// `ops-text-embedding-001`
	// `ops-text-embedding-zh-001`
	// `ops-text-embedding-en-001`
	// `ops-text-embedding-002`
	ServiceId string `json:"service_id"`
	// Workspace The name of the workspace used for the inference task.
	Workspace string `json:"workspace"`
}

AlibabaCloudServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L292-L337

func NewAlibabaCloudServiceSettings ¶

func NewAlibabaCloudServiceSettings() *AlibabaCloudServiceSettings

NewAlibabaCloudServiceSettings returns a AlibabaCloudServiceSettings.

func (*AlibabaCloudServiceSettings) AlibabaCloudServiceSettingsCaster ¶

func (s *AlibabaCloudServiceSettings) AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings

func (*AlibabaCloudServiceSettings) UnmarshalJSON ¶

func (s *AlibabaCloudServiceSettings) UnmarshalJSON(data []byte) error

type AlibabaCloudServiceSettingsVariant ¶

type AlibabaCloudServiceSettingsVariant interface {
	AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings
}

type AlibabaCloudTaskSettings ¶

type AlibabaCloudTaskSettings struct {
	// InputType For a `sparse_embedding` or `text_embedding` task, specify the type of input
	// passed to the model.
	// Valid values are:
	//
	// * `ingest` for storing document embeddings in a vector database.
	// * `search` for storing embeddings of search queries run against a vector
	// database to find relevant documents.
	InputType *string `json:"input_type,omitempty"`
	// ReturnToken For a `sparse_embedding` task, it affects whether the token name will be
	// returned in the response.
	// It defaults to `false`, which means only the token ID will be returned in the
	// response.
	ReturnToken *bool `json:"return_token,omitempty"`
}

AlibabaCloudTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L339-L353

func NewAlibabaCloudTaskSettings ¶

func NewAlibabaCloudTaskSettings() *AlibabaCloudTaskSettings

NewAlibabaCloudTaskSettings returns a AlibabaCloudTaskSettings.

func (*AlibabaCloudTaskSettings) AlibabaCloudTaskSettingsCaster ¶

func (s *AlibabaCloudTaskSettings) AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings

func (*AlibabaCloudTaskSettings) UnmarshalJSON ¶

func (s *AlibabaCloudTaskSettings) UnmarshalJSON(data []byte) error

type AlibabaCloudTaskSettingsVariant ¶

type AlibabaCloudTaskSettingsVariant interface {
	AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings
}

type AllField ¶

type AllField struct {
	Analyzer                 string `json:"analyzer"`
	Enabled                  bool   `json:"enabled"`
	OmitNorms                bool   `json:"omit_norms"`
	SearchAnalyzer           string `json:"search_analyzer"`
	Similarity               string `json:"similarity"`
	Store                    bool   `json:"store"`
	StoreTermVectorOffsets   bool   `json:"store_term_vector_offsets"`
	StoreTermVectorPayloads  bool   `json:"store_term_vector_payloads"`
	StoreTermVectorPositions bool   `json:"store_term_vector_positions"`
	StoreTermVectors         bool   `json:"store_term_vectors"`
}

AllField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L29-L40

func NewAllField ¶

func NewAllField() *AllField

NewAllField returns a AllField.

func (*AllField) AllFieldCaster ¶

func (s *AllField) AllFieldCaster() *AllField

func (*AllField) UnmarshalJSON ¶

func (s *AllField) UnmarshalJSON(data []byte) error

type AllFieldVariant ¶

type AllFieldVariant interface {
	AllFieldCaster() *AllField
}

type AllocateAction ¶

type AllocateAction struct {
	Exclude            map[string]string `json:"exclude,omitempty"`
	Include            map[string]string `json:"include,omitempty"`
	NumberOfReplicas   *int              `json:"number_of_replicas,omitempty"`
	Require            map[string]string `json:"require,omitempty"`
	TotalShardsPerNode *int              `json:"total_shards_per_node,omitempty"`
}

AllocateAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L133-L139

func NewAllocateAction ¶

func NewAllocateAction() *AllocateAction

NewAllocateAction returns a AllocateAction.

func (*AllocateAction) AllocateActionCaster ¶

func (s *AllocateAction) AllocateActionCaster() *AllocateAction

func (*AllocateAction) UnmarshalJSON ¶

func (s *AllocateAction) UnmarshalJSON(data []byte) error

type AllocateActionVariant ¶

type AllocateActionVariant interface {
	AllocateActionCaster() *AllocateAction
}

type AllocationDecision ¶

type AllocationDecision struct {
	Decider     string                                              `json:"decider"`
	Decision    allocationexplaindecision.AllocationExplainDecision `json:"decision"`
	Explanation string                                              `json:"explanation"`
}

AllocationDecision type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L27-L31

func NewAllocationDecision ¶

func NewAllocationDecision() *AllocationDecision

NewAllocationDecision returns a AllocationDecision.

func (*AllocationDecision) UnmarshalJSON ¶

func (s *AllocationDecision) UnmarshalJSON(data []byte) error

type AllocationRecord ¶

type AllocationRecord struct {
	// DiskAvail Free disk space available to Elasticsearch.
	// Elasticsearch retrieves this metric from the node’s operating system.
	// Disk-based shard allocation uses this metric to assign shards to nodes based
	// on available disk space.
	DiskAvail ByteSize `json:"disk.avail,omitempty"`
	// DiskIndices Disk space used by the node’s shards. Does not include disk space for the
	// translog or unassigned shards.
	// IMPORTANT: This metric double-counts disk space for hard-linked files, such
	// as those created when shrinking, splitting, or cloning an index.
	DiskIndices ByteSize `json:"disk.indices,omitempty"`
	// DiskIndicesForecast Sum of shard size forecasts
	DiskIndicesForecast ByteSize `json:"disk.indices.forecast,omitempty"`
	// DiskPercent Total percentage of disk space in use. Calculated as `disk.used /
	// disk.total`.
	DiskPercent Percentage `json:"disk.percent,omitempty"`
	// DiskTotal Total disk space for the node, including in-use and available space.
	DiskTotal ByteSize `json:"disk.total,omitempty"`
	// DiskUsed Total disk space in use.
	// Elasticsearch retrieves this metric from the node’s operating system (OS).
	// The metric includes disk space for: Elasticsearch, including the translog and
	// unassigned shards; the node’s operating system; any other applications or
	// files on the node.
	// Unlike `disk.indices`, this metric does not double-count disk space for
	// hard-linked files.
	DiskUsed ByteSize `json:"disk.used,omitempty"`
	// Host Network host for the node. Set using the `network.host` setting.
	Host *string `json:"host,omitempty"`
	// Ip IP address and port for the node.
	Ip *string `json:"ip,omitempty"`
	// Node Name for the node. Set using the `node.name` setting.
	Node *string `json:"node,omitempty"`
	// NodeRole Node roles
	NodeRole *string `json:"node.role,omitempty"`
	// Shards Number of primary and replica shards assigned to the node.
	Shards *string `json:"shards,omitempty"`
	// ShardsUndesired Amount of shards that are scheduled to be moved elsewhere in the cluster or
	// -1 other than desired balance allocator is used
	ShardsUndesired *string `json:"shards.undesired,omitempty"`
	// WriteLoadForecast Sum of index write load forecasts
	WriteLoadForecast Stringifieddouble `json:"write_load.forecast,omitempty"`
}

AllocationRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/allocation/types.ts#L25-L99

func NewAllocationRecord ¶

func NewAllocationRecord() *AllocationRecord

NewAllocationRecord returns a AllocationRecord.

func (*AllocationRecord) UnmarshalJSON ¶

func (s *AllocationRecord) UnmarshalJSON(data []byte) error

type AllocationStore ¶

type AllocationStore struct {
	AllocationId        string `json:"allocation_id"`
	Found               bool   `json:"found"`
	InSync              bool   `json:"in_sync"`
	MatchingSizeInBytes int64  `json:"matching_size_in_bytes"`
	MatchingSyncId      bool   `json:"matching_sync_id"`
	StoreException      string `json:"store_exception"`
}

AllocationStore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L40-L47

func NewAllocationStore ¶

func NewAllocationStore() *AllocationStore

NewAllocationStore returns a AllocationStore.

func (*AllocationStore) UnmarshalJSON ¶

func (s *AllocationStore) UnmarshalJSON(data []byte) error

type AlwaysCondition ¶

type AlwaysCondition struct {
}

AlwaysCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L26-L26

func NewAlwaysCondition ¶

func NewAlwaysCondition() *AlwaysCondition

NewAlwaysCondition returns a AlwaysCondition.

func (*AlwaysCondition) AlwaysConditionCaster ¶

func (s *AlwaysCondition) AlwaysConditionCaster() *AlwaysCondition

type AlwaysConditionVariant ¶

type AlwaysConditionVariant interface {
	AlwaysConditionCaster() *AlwaysCondition
}

type AmazonBedrockServiceSettings ¶

type AmazonBedrockServiceSettings struct {
	// AccessKey A valid AWS access key that has permissions to use Amazon Bedrock and access
	// to models for inference requests.
	AccessKey string `json:"access_key"`
	// Model The base model ID or an ARN to a custom model based on a foundational model.
	// The base model IDs can be found in the Amazon Bedrock documentation.
	// Note that the model ID must be available for the provider chosen and your IAM
	// user must have access to the model.
	Model string `json:"model"`
	// Provider The model provider for your deployment.
	// Note that some providers may support only certain task types.
	// Supported providers include:
	//
	// * `amazontitan` - available for `text_embedding` and `completion` task types
	// * `anthropic` - available for `completion` task type only
	// * `ai21labs` - available for `completion` task type only
	// * `cohere` - available for `text_embedding` and `completion` task types
	// * `meta` - available for `completion` task type only
	// * `mistral` - available for `completion` task type only
	Provider *string `json:"provider,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Watsonx.
	// By default, the `watsonxai` service sets the number of requests allowed per
	// minute to 120.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Region The region that your model or ARN is deployed in.
	// The list of available regions per model can be found in the Amazon Bedrock
	// documentation.
	Region string `json:"region"`
	// SecretKey A valid AWS secret key that is paired with the `access_key`.
	// For informationg about creating and managing access and secret keys, refer to
	// the AWS documentation.
	SecretKey string `json:"secret_key"`
}

AmazonBedrockServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L366-L408

func NewAmazonBedrockServiceSettings ¶

func NewAmazonBedrockServiceSettings() *AmazonBedrockServiceSettings

NewAmazonBedrockServiceSettings returns a AmazonBedrockServiceSettings.

func (*AmazonBedrockServiceSettings) AmazonBedrockServiceSettingsCaster ¶

func (s *AmazonBedrockServiceSettings) AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings

func (*AmazonBedrockServiceSettings) UnmarshalJSON ¶

func (s *AmazonBedrockServiceSettings) UnmarshalJSON(data []byte) error

type AmazonBedrockServiceSettingsVariant ¶

type AmazonBedrockServiceSettingsVariant interface {
	AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings
}

type AmazonBedrockTaskSettings ¶

type AmazonBedrockTaskSettings struct {
	// MaxNewTokens For a `completion` task, it sets the maximum number for the output tokens to
	// be generated.
	MaxNewTokens *int `json:"max_new_tokens,omitempty"`
	// Temperature For a `completion` task, it is a number between 0.0 and 1.0 that controls the
	// apparent creativity of the results.
	// At temperature 0.0 the model is most deterministic, at temperature 1.0 most
	// random.
	// It should not be used if `top_p` or `top_k` is specified.
	Temperature *float32 `json:"temperature,omitempty"`
	// TopK For a `completion` task, it limits samples to the top-K most likely words,
	// balancing coherence and variability.
	// It is only available for anthropic, cohere, and mistral providers.
	// It is an alternative to `temperature`; it should not be used if `temperature`
	// is specified.
	TopK *float32 `json:"top_k,omitempty"`
	// TopP For a `completion` task, it is a number in the range of 0.0 to 1.0, to
	// eliminate low-probability tokens.
	// Top-p uses nucleus sampling to select top tokens whose sum of likelihoods
	// does not exceed a certain value, ensuring both variety and coherence.
	// It is an alternative to `temperature`; it should not be used if `temperature`
	// is specified.
	TopP *float32 `json:"top_p,omitempty"`
}

AmazonBedrockTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L410-L434

func NewAmazonBedrockTaskSettings ¶

func NewAmazonBedrockTaskSettings() *AmazonBedrockTaskSettings

NewAmazonBedrockTaskSettings returns a AmazonBedrockTaskSettings.

func (*AmazonBedrockTaskSettings) AmazonBedrockTaskSettingsCaster ¶

func (s *AmazonBedrockTaskSettings) AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings

func (*AmazonBedrockTaskSettings) UnmarshalJSON ¶

func (s *AmazonBedrockTaskSettings) UnmarshalJSON(data []byte) error

type AmazonBedrockTaskSettingsVariant ¶

type AmazonBedrockTaskSettingsVariant interface {
	AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings
}

type AmazonSageMakerServiceSettings ¶ added in v9.1.0

type AmazonSageMakerServiceSettings struct {
	// AccessKey A valid AWS access key that has permissions to use Amazon SageMaker and
	// access to models for invoking requests.
	AccessKey string `json:"access_key"`
	// Api The API format to use when calling SageMaker.
	// Elasticsearch will convert the POST _inference request to this data format
	// when invoking the SageMaker endpoint.
	Api amazonsagemakerapi.AmazonSageMakerApi `json:"api"`
	// BatchSize The maximum number of inputs in each batch. This value is used by inference
	// ingestion pipelines
	// when processing semantic values. It correlates to the number of times the
	// SageMaker endpoint is
	// invoked (one per batch of input).
	BatchSize *int `json:"batch_size,omitempty"`
	// Dimensions The number of dimensions returned by the text embedding models. If this value
	// is not provided, then
	// it is guessed by making invoking the endpoint for the `text_embedding` task.
	Dimensions *int `json:"dimensions,omitempty"`
	// EndpointName The name of the SageMaker endpoint.
	EndpointName string `json:"endpoint_name"`
	// InferenceComponentName The inference component to directly invoke when calling a multi-component
	// endpoint.
	InferenceComponentName *string `json:"inference_component_name,omitempty"`
	// Region The region that your endpoint or Amazon Resource Name (ARN) is deployed in.
	// The list of available regions per model can be found in the Amazon SageMaker
	// documentation.
	Region string `json:"region"`
	// SecretKey A valid AWS secret key that is paired with the `access_key`.
	// For information about creating and managing access and secret keys, refer to
	// the AWS documentation.
	SecretKey string `json:"secret_key"`
	// TargetContainerHostname The container to directly invoke when calling a multi-container endpoint.
	TargetContainerHostname *string `json:"target_container_hostname,omitempty"`
	// TargetModel The model ID when calling a multi-model endpoint.
	TargetModel *string `json:"target_model,omitempty"`
}

AmazonSageMakerServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L445-L499

func NewAmazonSageMakerServiceSettings ¶ added in v9.1.0

func NewAmazonSageMakerServiceSettings() *AmazonSageMakerServiceSettings

NewAmazonSageMakerServiceSettings returns a AmazonSageMakerServiceSettings.

func (*AmazonSageMakerServiceSettings) AmazonSageMakerServiceSettingsCaster ¶ added in v9.1.0

func (s *AmazonSageMakerServiceSettings) AmazonSageMakerServiceSettingsCaster() *AmazonSageMakerServiceSettings

func (*AmazonSageMakerServiceSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *AmazonSageMakerServiceSettings) UnmarshalJSON(data []byte) error

type AmazonSageMakerServiceSettingsVariant ¶ added in v9.1.0

type AmazonSageMakerServiceSettingsVariant interface {
	AmazonSageMakerServiceSettingsCaster() *AmazonSageMakerServiceSettings
}

type AmazonSageMakerTaskSettings ¶ added in v9.1.0

type AmazonSageMakerTaskSettings struct {
	// CustomAttributes The AWS custom attributes passed verbatim through to the model running in the
	// SageMaker Endpoint.
	// Values will be returned in the `X-elastic-sagemaker-custom-attributes`
	// header.
	CustomAttributes *string `json:"custom_attributes,omitempty"`
	// EnableExplanations The optional JMESPath expression used to override the EnableExplanations
	// provided during endpoint creation.
	EnableExplanations *string `json:"enable_explanations,omitempty"`
	// InferenceId The capture data ID when enabled in the endpoint.
	InferenceId *string `json:"inference_id,omitempty"`
	// SessionId The stateful session identifier for a new or existing session.
	// New sessions will be returned in the `X-elastic-sagemaker-new-session-id`
	// header.
	// Closed sessions will be returned in the
	// `X-elastic-sagemaker-closed-session-id` header.
	SessionId *string `json:"session_id,omitempty"`
	// TargetVariant Specifies the variant when running with multi-variant Endpoints.
	TargetVariant *string `json:"target_variant,omitempty"`
}

AmazonSageMakerTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L535-L564

func NewAmazonSageMakerTaskSettings ¶ added in v9.1.0

func NewAmazonSageMakerTaskSettings() *AmazonSageMakerTaskSettings

NewAmazonSageMakerTaskSettings returns a AmazonSageMakerTaskSettings.

func (*AmazonSageMakerTaskSettings) AmazonSageMakerTaskSettingsCaster ¶ added in v9.1.0

func (s *AmazonSageMakerTaskSettings) AmazonSageMakerTaskSettingsCaster() *AmazonSageMakerTaskSettings

func (*AmazonSageMakerTaskSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *AmazonSageMakerTaskSettings) UnmarshalJSON(data []byte) error

type AmazonSageMakerTaskSettingsVariant ¶ added in v9.1.0

type AmazonSageMakerTaskSettingsVariant interface {
	AmazonSageMakerTaskSettingsCaster() *AmazonSageMakerTaskSettings
}

type AnalysisConfig ¶

type AnalysisConfig struct {
	// BucketSpan The size of the interval that the analysis is aggregated into, typically
	// between `5m` and `1h`. This value should be either a whole number of days or
	// equate to a
	// whole number of buckets in one day. If the anomaly detection job uses a
	// datafeed with aggregations, this value must also be divisible by the interval
	// of the date histogram aggregation.
	BucketSpan Duration `json:"bucket_span,omitempty"`
	// CategorizationAnalyzer If `categorization_field_name` is specified, you can also define the analyzer
	// that is used to interpret the categorization field. This property cannot be
	// used at the same time as `categorization_filters`. The categorization
	// analyzer specifies how the `categorization_field` is interpreted by the
	// categorization process. The `categorization_analyzer` field can be specified
	// either as a string or as an object. If it is a string, it must refer to a
	// built-in analyzer or one added by another plugin.
	CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer,omitempty"`
	// CategorizationFieldName If this property is specified, the values of the specified field will be
	// categorized. The resulting categories must be used in a detector by setting
	// `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
	// `mlcategory`.
	CategorizationFieldName *string `json:"categorization_field_name,omitempty"`
	// CategorizationFilters If `categorization_field_name` is specified, you can also define optional
	// filters. This property expects an array of regular expressions. The
	// expressions are used to filter out matching sequences from the categorization
	// field values. You can use this functionality to fine tune the categorization
	// by excluding sequences from consideration when categories are defined. For
	// example, you can exclude SQL statements that appear in your log files. This
	// property cannot be used at the same time as `categorization_analyzer`. If you
	// only want to define simple regular expression filters that are applied prior
	// to tokenization, setting this property is the easiest method. If you also
	// want to customize the tokenizer or post-tokenization filtering, use the
	// `categorization_analyzer` property instead and include the filters as
	// pattern_replace character filters. The effect is exactly the same.
	CategorizationFilters []string `json:"categorization_filters,omitempty"`
	// Detectors Detector configuration objects specify which data fields a job analyzes. They
	// also specify which analytical functions are used. You can specify multiple
	// detectors for a job. If the detectors array does not contain at least one
	// detector, no analysis can occur and an error is returned.
	Detectors []Detector `json:"detectors"`
	// Influencers A comma separated list of influencer field names. Typically these can be the
	// by, over, or partition fields that are used in the detector configuration.
	// You might also want to use a field name that is not specifically named in a
	// detector, but is available as part of the input data. When you use multiple
	// detectors, the use of influencers is recommended as it aggregates results for
	// each influencer entity.
	Influencers []string `json:"influencers,omitempty"`
	// Latency The size of the window in which to expect data that is out of time order. If
	// you specify a non-zero value, it must be greater than or equal to one second.
	// NOTE: Latency is applicable only when you send data by using the post data
	// API.
	Latency Duration `json:"latency,omitempty"`
	// ModelPruneWindow Advanced configuration option. Affects the pruning of models that have not
	// been updated for the given time duration. The value must be set to a multiple
	// of the `bucket_span`. If set too low, important information may be removed
	// from the model. For jobs created in 8.1 and later, the default value is the
	// greater of `30d` or 20 times `bucket_span`.
	ModelPruneWindow Duration `json:"model_prune_window,omitempty"`
	// MultivariateByFields This functionality is reserved for internal use. It is not supported for use
	// in customer environments and is not subject to the support SLA of official GA
	// features. If set to `true`, the analysis will automatically find correlations
	// between metrics for a given by field value and report anomalies when those
	// correlations cease to hold. For example, suppose CPU and memory usage on host
	// A is usually highly correlated with the same metrics on host B. Perhaps this
	// correlation occurs because they are running a load-balanced application. If
	// you enable this property, anomalies will be reported when, for example, CPU
	// usage on host A is high and the value of CPU usage on host B is low. That is
	// to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU
	// of host B. To use the `multivariate_by_fields` property, you must also
	// specify `by_field_name` in your detector.
	MultivariateByFields *bool `json:"multivariate_by_fields,omitempty"`
	// PerPartitionCategorization Settings related to how categorization interacts with partition fields.
	PerPartitionCategorization *PerPartitionCategorization `json:"per_partition_categorization,omitempty"`
	// SummaryCountFieldName If this property is specified, the data that is fed to the job is expected to
	// be pre-summarized. This property value is the name of the field that contains
	// the count of raw data points that have been summarized. The same
	// `summary_count_field_name` applies to all detectors in the job. NOTE: The
	// `summary_count_field_name` property cannot be used with the `metric`
	// function.
	SummaryCountFieldName *string `json:"summary_count_field_name,omitempty"`
}

AnalysisConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L29-L77

func NewAnalysisConfig ¶

func NewAnalysisConfig() *AnalysisConfig

NewAnalysisConfig returns a AnalysisConfig.

func (*AnalysisConfig) AnalysisConfigCaster ¶

func (s *AnalysisConfig) AnalysisConfigCaster() *AnalysisConfig

func (*AnalysisConfig) UnmarshalJSON ¶

func (s *AnalysisConfig) UnmarshalJSON(data []byte) error

type AnalysisConfigRead ¶

type AnalysisConfigRead struct {
	// BucketSpan The size of the interval that the analysis is aggregated into, typically
	// between `5m` and `1h`.
	BucketSpan Duration `json:"bucket_span"`
	// CategorizationAnalyzer If `categorization_field_name` is specified, you can also define the analyzer
	// that is used to interpret the categorization field.
	// This property cannot be used at the same time as `categorization_filters`.
	// The categorization analyzer specifies how the `categorization_field` is
	// interpreted by the categorization process.
	CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer,omitempty"`
	// CategorizationFieldName If this property is specified, the values of the specified field will be
	// categorized.
	// The resulting categories must be used in a detector by setting
	// `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
	// `mlcategory`.
	CategorizationFieldName *string `json:"categorization_field_name,omitempty"`
	// CategorizationFilters If `categorization_field_name` is specified, you can also define optional
	// filters.
	// This property expects an array of regular expressions.
	// The expressions are used to filter out matching sequences from the
	// categorization field values.
	CategorizationFilters []string `json:"categorization_filters,omitempty"`
	// Detectors An array of detector configuration objects.
	// Detector configuration objects specify which data fields a job analyzes.
	// They also specify which analytical functions are used.
	// You can specify multiple detectors for a job.
	Detectors []DetectorRead `json:"detectors"`
	// Influencers A comma separated list of influencer field names.
	// Typically these can be the by, over, or partition fields that are used in the
	// detector configuration.
	// You might also want to use a field name that is not specifically named in a
	// detector, but is available as part of the input data.
	// When you use multiple detectors, the use of influencers is recommended as it
	// aggregates results for each influencer entity.
	Influencers []string `json:"influencers"`
	// Latency The size of the window in which to expect data that is out of time order.
	// Defaults to no latency.
	// If you specify a non-zero value, it must be greater than or equal to one
	// second.
	Latency Duration `json:"latency,omitempty"`
	// ModelPruneWindow Advanced configuration option.
	// Affects the pruning of models that have not been updated for the given time
	// duration.
	// The value must be set to a multiple of the `bucket_span`.
	// If set too low, important information may be removed from the model.
	// Typically, set to `30d` or longer.
	// If not set, model pruning only occurs if the model memory status reaches the
	// soft limit or the hard limit.
	// For jobs created in 8.1 and later, the default value is the greater of `30d`
	// or 20 times `bucket_span`.
	ModelPruneWindow Duration `json:"model_prune_window,omitempty"`
	// MultivariateByFields This functionality is reserved for internal use.
	// It is not supported for use in customer environments and is not subject to
	// the support SLA of official GA features.
	// If set to `true`, the analysis will automatically find correlations between
	// metrics for a given by field value and report anomalies when those
	// correlations cease to hold.
	MultivariateByFields *bool `json:"multivariate_by_fields,omitempty"`
	// PerPartitionCategorization Settings related to how categorization interacts with partition fields.
	PerPartitionCategorization *PerPartitionCategorization `json:"per_partition_categorization,omitempty"`
	// SummaryCountFieldName If this property is specified, the data that is fed to the job is expected to
	// be pre-summarized.
	// This property value is the name of the field that contains the count of raw
	// data points that have been summarized.
	// The same `summary_count_field_name` applies to all detectors in the job.
	SummaryCountFieldName *string `json:"summary_count_field_name,omitempty"`
}

AnalysisConfigRead type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L79-L148

func NewAnalysisConfigRead ¶

func NewAnalysisConfigRead() *AnalysisConfigRead

NewAnalysisConfigRead returns a AnalysisConfigRead.

func (*AnalysisConfigRead) UnmarshalJSON ¶

func (s *AnalysisConfigRead) UnmarshalJSON(data []byte) error

type AnalysisConfigVariant ¶

type AnalysisConfigVariant interface {
	AnalysisConfigCaster() *AnalysisConfig
}

type AnalysisLimits ¶

type AnalysisLimits struct {
	// CategorizationExamplesLimit The maximum number of examples stored per category in memory and in the
	// results data store. If you increase this value, more examples are available,
	// however it requires that you have more storage available. If you set this
	// value to 0, no examples are stored. NOTE: The `categorization_examples_limit`
	// applies only to analysis that uses categorization.
	CategorizationExamplesLimit *int64 `json:"categorization_examples_limit,omitempty"`
	// ModelMemoryLimit The approximate maximum amount of memory resources that are required for
	// analytical processing. Once this limit is approached, data pruning becomes
	// more aggressive. Upon exceeding this limit, new entities are not modeled. If
	// the `xpack.ml.max_model_memory_limit` setting has a value greater than 0 and
	// less than 1024mb, that value is used instead of the default. The default
	// value is relatively small to ensure that high resource usage is a conscious
	// decision. If you have jobs that are expected to analyze high cardinality
	// fields, you will likely need to use a higher value. If you specify a number
	// instead of a string, the units are assumed to be MiB. Specifying a string is
	// recommended for clarity. If you specify a byte size unit of `b` or `kb` and
	// the number does not equate to a discrete number of megabytes, it is rounded
	// down to the closest MiB. The minimum valid value is 1 MiB. If you specify a
	// value less than 1 MiB, an error occurs. If you specify a value for the
	// `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to
	// create jobs that have `model_memory_limit` values greater than that setting
	// value.
	ModelMemoryLimit ByteSize `json:"model_memory_limit,omitempty"`
}

AnalysisLimits type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L161-L172

func NewAnalysisLimits ¶

func NewAnalysisLimits() *AnalysisLimits

NewAnalysisLimits returns a AnalysisLimits.

func (*AnalysisLimits) AnalysisLimitsCaster ¶

func (s *AnalysisLimits) AnalysisLimitsCaster() *AnalysisLimits

func (*AnalysisLimits) UnmarshalJSON ¶

func (s *AnalysisLimits) UnmarshalJSON(data []byte) error

type AnalysisLimitsVariant ¶

type AnalysisLimitsVariant interface {
	AnalysisLimitsCaster() *AnalysisLimits
}

type AnalysisMemoryLimit ¶

type AnalysisMemoryLimit struct {
	// ModelMemoryLimit Limits can be applied for the resources required to hold the mathematical
	// models in memory. These limits are approximate and can be set per job. They
	// do not control the memory used by other processes, for example the
	// Elasticsearch Java processes.
	ModelMemoryLimit string `json:"model_memory_limit"`
}

AnalysisMemoryLimit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L174-L179

func NewAnalysisMemoryLimit ¶

func NewAnalysisMemoryLimit() *AnalysisMemoryLimit

NewAnalysisMemoryLimit returns a AnalysisMemoryLimit.

func (*AnalysisMemoryLimit) AnalysisMemoryLimitCaster ¶

func (s *AnalysisMemoryLimit) AnalysisMemoryLimitCaster() *AnalysisMemoryLimit

func (*AnalysisMemoryLimit) UnmarshalJSON ¶

func (s *AnalysisMemoryLimit) UnmarshalJSON(data []byte) error

type AnalysisMemoryLimitVariant ¶

type AnalysisMemoryLimitVariant interface {
	AnalysisMemoryLimitCaster() *AnalysisMemoryLimit
}

type Analytics ¶

type Analytics struct {
	Available bool                `json:"available"`
	Enabled   bool                `json:"enabled"`
	Stats     AnalyticsStatistics `json:"stats"`
}

Analytics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L340-L342

func NewAnalytics ¶

func NewAnalytics() *Analytics

NewAnalytics returns a Analytics.

func (*Analytics) UnmarshalJSON ¶

func (s *Analytics) UnmarshalJSON(data []byte) error

type AnalyticsCollection ¶

type AnalyticsCollection struct {
	// EventDataStream Data stream for the collection.
	EventDataStream EventDataStream `json:"event_data_stream"`
}

AnalyticsCollection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27

func NewAnalyticsCollection ¶

func NewAnalyticsCollection() *AnalyticsCollection

NewAnalyticsCollection returns a AnalyticsCollection.

type AnalyticsStatistics ¶

type AnalyticsStatistics struct {
	BoxplotUsage               int64  `json:"boxplot_usage"`
	CumulativeCardinalityUsage int64  `json:"cumulative_cardinality_usage"`
	MovingPercentilesUsage     int64  `json:"moving_percentiles_usage"`
	MultiTermsUsage            *int64 `json:"multi_terms_usage,omitempty"`
	NormalizeUsage             int64  `json:"normalize_usage"`
	RateUsage                  int64  `json:"rate_usage"`
	StringStatsUsage           int64  `json:"string_stats_usage"`
	TTestUsage                 int64  `json:"t_test_usage"`
	TopMetricsUsage            int64  `json:"top_metrics_usage"`
}

AnalyticsStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L58-L68

func NewAnalyticsStatistics ¶

func NewAnalyticsStatistics() *AnalyticsStatistics

NewAnalyticsStatistics returns a AnalyticsStatistics.

func (*AnalyticsStatistics) UnmarshalJSON ¶

func (s *AnalyticsStatistics) UnmarshalJSON(data []byte) error

type AnalyzeDetail ¶

type AnalyzeDetail struct {
	Analyzer       *AnalyzerDetail    `json:"analyzer,omitempty"`
	Charfilters    []CharFilterDetail `json:"charfilters,omitempty"`
	CustomAnalyzer bool               `json:"custom_analyzer"`
	Tokenfilters   []TokenDetail      `json:"tokenfilters,omitempty"`
	Tokenizer      *TokenDetail       `json:"tokenizer,omitempty"`
}

AnalyzeDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L24-L30

func NewAnalyzeDetail ¶

func NewAnalyzeDetail() *AnalyzeDetail

NewAnalyzeDetail returns a AnalyzeDetail.

func (*AnalyzeDetail) UnmarshalJSON ¶

func (s *AnalyzeDetail) UnmarshalJSON(data []byte) error

type AnalyzeToken ¶

type AnalyzeToken struct {
	EndOffset      int64  `json:"end_offset"`
	Position       int64  `json:"position"`
	PositionLength *int64 `json:"positionLength,omitempty"`
	StartOffset    int64  `json:"start_offset"`
	Token          string `json:"token"`
	Type           string `json:"type"`
}

AnalyzeToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L37-L44

func NewAnalyzeToken ¶

func NewAnalyzeToken() *AnalyzeToken

NewAnalyzeToken returns a AnalyzeToken.

func (*AnalyzeToken) UnmarshalJSON ¶

func (s *AnalyzeToken) UnmarshalJSON(data []byte) error

type Analyzer ¶

type Analyzer any

Analyzer holds the union for the following types:

CustomAnalyzer
FingerprintAnalyzer
KeywordAnalyzer
NoriAnalyzer
PatternAnalyzer
SimpleAnalyzer
StandardAnalyzer
StopAnalyzer
WhitespaceAnalyzer
IcuAnalyzer
KuromojiAnalyzer
SnowballAnalyzer
ArabicAnalyzer
ArmenianAnalyzer
BasqueAnalyzer
BengaliAnalyzer
BrazilianAnalyzer
BulgarianAnalyzer
CatalanAnalyzer
ChineseAnalyzer
CjkAnalyzer
CzechAnalyzer
DanishAnalyzer
DutchAnalyzer
EnglishAnalyzer
EstonianAnalyzer
FinnishAnalyzer
FrenchAnalyzer
GalicianAnalyzer
GermanAnalyzer
GreekAnalyzer
HindiAnalyzer
HungarianAnalyzer
IndonesianAnalyzer
IrishAnalyzer
ItalianAnalyzer
LatvianAnalyzer
LithuanianAnalyzer
NorwegianAnalyzer
PersianAnalyzer
PortugueseAnalyzer
RomanianAnalyzer
RussianAnalyzer
SerbianAnalyzer
SoraniAnalyzer
SpanishAnalyzer
SwedishAnalyzer
TurkishAnalyzer
ThaiAnalyzer

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L427-L480

type AnalyzerDetail ¶

type AnalyzerDetail struct {
	Name   string                `json:"name"`
	Tokens []ExplainAnalyzeToken `json:"tokens"`
}

AnalyzerDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L32-L35

func NewAnalyzerDetail ¶

func NewAnalyzerDetail() *AnalyzerDetail

NewAnalyzerDetail returns a AnalyzerDetail.

func (*AnalyzerDetail) UnmarshalJSON ¶

func (s *AnalyzerDetail) UnmarshalJSON(data []byte) error

type AnalyzerVariant ¶

type AnalyzerVariant interface {
	AnalyzerCaster() *Analyzer
}

type Anomaly ¶

type Anomaly struct {
	// Actual The actual value for the bucket.
	Actual []Float64 `json:"actual,omitempty"`
	// AnomalyScoreExplanation Information about the factors impacting the initial anomaly score.
	AnomalyScoreExplanation *AnomalyExplanation `json:"anomaly_score_explanation,omitempty"`
	// BucketSpan The length of the bucket in seconds. This value matches the `bucket_span`
	// that is specified in the job.
	BucketSpan int64 `json:"bucket_span"`
	// ByFieldName The field used to split the data. In particular, this property is used for
	// analyzing the splits with respect to their own history. It is used for
	// finding unusual values in the context of the split.
	ByFieldName *string `json:"by_field_name,omitempty"`
	// ByFieldValue The value of `by_field_name`.
	ByFieldValue *string `json:"by_field_value,omitempty"`
	// Causes For population analysis, an over field must be specified in the detector.
	// This property contains an array of anomaly records that are the causes for
	// the anomaly that has been identified for the over field. This sub-resource
	// contains the most anomalous records for the `over_field_name`. For
	// scalability reasons, a maximum of the 10 most significant causes of the
	// anomaly are returned. As part of the core analytical modeling, these
	// low-level anomaly records are aggregated for their parent over field record.
	// The `causes` resource contains similar elements to the record resource,
	// namely `actual`, `typical`, `geo_results.actual_point`,
	// `geo_results.typical_point`, `*_field_name` and `*_field_value`. Probability
	// and scores are not applicable to causes.
	Causes []AnomalyCause `json:"causes,omitempty"`
	// DetectorIndex A unique identifier for the detector.
	DetectorIndex int `json:"detector_index"`
	// FieldName Certain functions require a field to operate on, for example, `sum()`. For
	// those functions, this value is the name of the field to be analyzed.
	FieldName *string `json:"field_name,omitempty"`
	// Function The function in which the anomaly occurs, as specified in the detector
	// configuration. For example, `max`.
	Function *string `json:"function,omitempty"`
	// FunctionDescription The description of the function in which the anomaly occurs, as specified in
	// the detector configuration.
	FunctionDescription *string `json:"function_description,omitempty"`
	// GeoResults If the detector function is `lat_long`, this object contains comma delimited
	// strings for the latitude and longitude of the actual and typical values.
	GeoResults *GeoResults `json:"geo_results,omitempty"`
	// Influencers If influencers were specified in the detector configuration, this array
	// contains influencers that contributed to or were to blame for an anomaly.
	Influencers []Influence `json:"influencers,omitempty"`
	// InitialRecordScore A normalized score between 0-100, which is based on the probability of the
	// anomalousness of this record. This is the initial value that was calculated
	// at the time the bucket was processed.
	InitialRecordScore Float64 `json:"initial_record_score"`
	// IsInterim If true, this is an interim result. In other words, the results are
	// calculated based on partial input data.
	IsInterim bool `json:"is_interim"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// OverFieldName The field used to split the data. In particular, this property is used for
	// analyzing the splits with respect to the history of all splits. It is used
	// for finding unusual values in the population of all splits.
	OverFieldName *string `json:"over_field_name,omitempty"`
	// OverFieldValue The value of `over_field_name`.
	OverFieldValue *string `json:"over_field_value,omitempty"`
	// PartitionFieldName The field used to segment the analysis. When you use this property, you have
	// completely independent baselines for each value of this field.
	PartitionFieldName *string `json:"partition_field_name,omitempty"`
	// PartitionFieldValue The value of `partition_field_name`.
	PartitionFieldValue *string `json:"partition_field_value,omitempty"`
	// Probability The probability of the individual anomaly occurring, in the range 0 to 1. For
	// example, `0.0000772031`. This value can be held to a high precision of over
	// 300 decimal places, so the `record_score` is provided as a human-readable and
	// friendly interpretation of this.
	Probability Float64 `json:"probability"`
	// RecordScore A normalized score between 0-100, which is based on the probability of the
	// anomalousness of this record. Unlike `initial_record_score`, this value will
	// be updated by a re-normalization process as new data is analyzed.
	RecordScore Float64 `json:"record_score"`
	// ResultType Internal. This is always set to `record`.
	ResultType string `json:"result_type"`
	// Timestamp The start time of the bucket for which these results were calculated.
	Timestamp int64 `json:"timestamp"`
	// Typical The typical value for the bucket, according to analytical modeling.
	Typical []Float64 `json:"typical,omitempty"`
}

Anomaly type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Anomaly.ts#L24-L121

func NewAnomaly ¶

func NewAnomaly() *Anomaly

NewAnomaly returns a Anomaly.

func (*Anomaly) UnmarshalJSON ¶

func (s *Anomaly) UnmarshalJSON(data []byte) error

type AnomalyCause ¶

type AnomalyCause struct {
	Actual                 []Float64   `json:"actual,omitempty"`
	ByFieldName            *string     `json:"by_field_name,omitempty"`
	ByFieldValue           *string     `json:"by_field_value,omitempty"`
	CorrelatedByFieldValue *string     `json:"correlated_by_field_value,omitempty"`
	FieldName              *string     `json:"field_name,omitempty"`
	Function               *string     `json:"function,omitempty"`
	FunctionDescription    *string     `json:"function_description,omitempty"`
	GeoResults             *GeoResults `json:"geo_results,omitempty"`
	Influencers            []Influence `json:"influencers,omitempty"`
	OverFieldName          *string     `json:"over_field_name,omitempty"`
	OverFieldValue         *string     `json:"over_field_value,omitempty"`
	PartitionFieldName     *string     `json:"partition_field_name,omitempty"`
	PartitionFieldValue    *string     `json:"partition_field_value,omitempty"`
	Probability            Float64     `json:"probability"`
	Typical                []Float64   `json:"typical,omitempty"`
}

AnomalyCause type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Anomaly.ts#L123-L139

func NewAnomalyCause ¶

func NewAnomalyCause() *AnomalyCause

NewAnomalyCause returns a AnomalyCause.

func (*AnomalyCause) UnmarshalJSON ¶

func (s *AnomalyCause) UnmarshalJSON(data []byte) error

type AnomalyDetectors ¶

type AnomalyDetectors struct {
	CategorizationAnalyzer               CategorizationAnalyzer `json:"categorization_analyzer"`
	CategorizationExamplesLimit          int                    `json:"categorization_examples_limit"`
	DailyModelSnapshotRetentionAfterDays int                    `json:"daily_model_snapshot_retention_after_days"`
	ModelMemoryLimit                     string                 `json:"model_memory_limit"`
	ModelSnapshotRetentionDays           int                    `json:"model_snapshot_retention_days"`
}

AnomalyDetectors type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/info/types.ts#L46-L52

func NewAnomalyDetectors ¶

func NewAnomalyDetectors() *AnomalyDetectors

NewAnomalyDetectors returns a AnomalyDetectors.

func (*AnomalyDetectors) UnmarshalJSON ¶

func (s *AnomalyDetectors) UnmarshalJSON(data []byte) error

type AnomalyExplanation ¶

type AnomalyExplanation struct {
	// AnomalyCharacteristicsImpact Impact from the duration and magnitude of the detected anomaly relative to
	// the historical average.
	AnomalyCharacteristicsImpact *int `json:"anomaly_characteristics_impact,omitempty"`
	// AnomalyLength Length of the detected anomaly in the number of buckets.
	AnomalyLength *int `json:"anomaly_length,omitempty"`
	// AnomalyType Type of the detected anomaly: `spike` or `dip`.
	AnomalyType *string `json:"anomaly_type,omitempty"`
	// HighVariancePenalty Indicates reduction of anomaly score for the bucket with large confidence
	// intervals. If a bucket has large confidence intervals, the score is reduced.
	HighVariancePenalty *bool `json:"high_variance_penalty,omitempty"`
	// IncompleteBucketPenalty If the bucket contains fewer samples than expected, the score is reduced.
	IncompleteBucketPenalty *bool `json:"incomplete_bucket_penalty,omitempty"`
	// LowerConfidenceBound Lower bound of the 95% confidence interval.
	LowerConfidenceBound *Float64 `json:"lower_confidence_bound,omitempty"`
	// MultiBucketImpact Impact of the deviation between actual and typical values in the past 12
	// buckets.
	MultiBucketImpact *int `json:"multi_bucket_impact,omitempty"`
	// SingleBucketImpact Impact of the deviation between actual and typical values in the current
	// bucket.
	SingleBucketImpact *int `json:"single_bucket_impact,omitempty"`
	// TypicalValue Typical (expected) value for this bucket.
	TypicalValue *Float64 `json:"typical_value,omitempty"`
	// UpperConfidenceBound Upper bound of the 95% confidence interval.
	UpperConfidenceBound *Float64 `json:"upper_confidence_bound,omitempty"`
}

AnomalyExplanation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Anomaly.ts#L157-L198

func NewAnomalyExplanation ¶

func NewAnomalyExplanation() *AnomalyExplanation

NewAnomalyExplanation returns a AnomalyExplanation.

func (*AnomalyExplanation) UnmarshalJSON ¶

func (s *AnomalyExplanation) UnmarshalJSON(data []byte) error

type AnthropicServiceSettings ¶

type AnthropicServiceSettings struct {
	// ApiKey A valid API key for the Anthropic API.
	ApiKey string `json:"api_key"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the Anthropic documentation for the list of supported models.
	ModelId string `json:"model_id"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Anthropic.
	// By default, the `anthropic` service sets the number of requests allowed per
	// minute to 50.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
}

AnthropicServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L588-L604

func NewAnthropicServiceSettings ¶

func NewAnthropicServiceSettings() *AnthropicServiceSettings

NewAnthropicServiceSettings returns a AnthropicServiceSettings.

func (*AnthropicServiceSettings) AnthropicServiceSettingsCaster ¶

func (s *AnthropicServiceSettings) AnthropicServiceSettingsCaster() *AnthropicServiceSettings

func (*AnthropicServiceSettings) UnmarshalJSON ¶

func (s *AnthropicServiceSettings) UnmarshalJSON(data []byte) error

type AnthropicServiceSettingsVariant ¶

type AnthropicServiceSettingsVariant interface {
	AnthropicServiceSettingsCaster() *AnthropicServiceSettings
}

type AnthropicTaskSettings ¶

type AnthropicTaskSettings struct {
	// MaxTokens For a `completion` task, it is the maximum number of tokens to generate
	// before stopping.
	MaxTokens int `json:"max_tokens"`
	// Temperature For a `completion` task, it is the amount of randomness injected into the
	// response.
	// For more details about the supported range, refer to Anthropic documentation.
	Temperature *float32 `json:"temperature,omitempty"`
	// TopK For a `completion` task, it specifies to only sample from the top K options
	// for each subsequent token.
	// It is recommended for advanced use cases only.
	// You usually only need to use `temperature`.
	TopK *int `json:"top_k,omitempty"`
	// TopP For a `completion` task, it specifies to use Anthropic's nucleus sampling.
	// In nucleus sampling, Anthropic computes the cumulative distribution over all
	// the options for each subsequent token in decreasing probability order and
	// cuts it off once it reaches the specified probability.
	// You should either alter `temperature` or `top_p`, but not both.
	// It is recommended for advanced use cases only.
	// You usually only need to use `temperature`.
	TopP *float32 `json:"top_p,omitempty"`
}

AnthropicTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L606-L631

func NewAnthropicTaskSettings ¶

func NewAnthropicTaskSettings() *AnthropicTaskSettings

NewAnthropicTaskSettings returns a AnthropicTaskSettings.

func (*AnthropicTaskSettings) AnthropicTaskSettingsCaster ¶

func (s *AnthropicTaskSettings) AnthropicTaskSettingsCaster() *AnthropicTaskSettings

func (*AnthropicTaskSettings) UnmarshalJSON ¶

func (s *AnthropicTaskSettings) UnmarshalJSON(data []byte) error

type AnthropicTaskSettingsVariant ¶

type AnthropicTaskSettingsVariant interface {
	AnthropicTaskSettingsCaster() *AnthropicTaskSettings
}

type ApiKey ¶

type ApiKey struct {
	// Access The access granted to cross-cluster API keys.
	// The access is composed of permissions for cross cluster search and cross
	// cluster replication.
	// At least one of them must be specified.
	// When specified, the new access assignment fully replaces the previously
	// assigned access.
	Access *Access `json:"access,omitempty"`
	// Creation Creation time for the API key in milliseconds.
	Creation int64 `json:"creation"`
	// Expiration Expiration time for the API key in milliseconds.
	Expiration *int64 `json:"expiration,omitempty"`
	// Id Id for the API key
	Id string `json:"id"`
	// Invalidated Invalidation status for the API key.
	// If the key has been invalidated, it has a value of `true`. Otherwise, it is
	// `false`.
	Invalidated bool `json:"invalidated"`
	// Invalidation If the key has been invalidated, invalidation time in milliseconds.
	Invalidation *int64 `json:"invalidation,omitempty"`
	// LimitedBy The owner user’s permissions associated with the API key.
	// It is a point-in-time snapshot captured at creation and subsequent updates.
	// An API key’s effective permissions are an intersection of its assigned
	// privileges and the owner user’s permissions.
	LimitedBy []map[string]RoleDescriptor `json:"limited_by,omitempty"`
	// Metadata Metadata of the API key
	Metadata Metadata `json:"metadata"`
	// Name Name of the API key.
	Name string `json:"name"`
	// ProfileUid The profile uid for the API key owner principal, if requested and if it
	// exists
	ProfileUid *string `json:"profile_uid,omitempty"`
	// Realm Realm name of the principal for which this API key was created.
	Realm string `json:"realm"`
	// RealmType Realm type of the principal for which this API key was created
	RealmType *string `json:"realm_type,omitempty"`
	// RoleDescriptors The role descriptors assigned to this API key when it was created or last
	// updated.
	// An empty role descriptor means the API key inherits the owner user’s
	// permissions.
	RoleDescriptors map[string]RoleDescriptor `json:"role_descriptors,omitempty"`
	// Sort_ Sorting values when using the `sort` parameter with the
	// `security.query_api_keys` API.
	Sort_ []FieldValue `json:"_sort,omitempty"`
	// Type The type of the API key (e.g. `rest` or `cross_cluster`).
	Type apikeytype.ApiKeyType `json:"type"`
	// Username Principal for which this API key was created
	Username string `json:"username"`
}

ApiKey type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/ApiKey.ts#L27-L113

func NewApiKey ¶

func NewApiKey() *ApiKey

NewApiKey returns a ApiKey.

func (*ApiKey) UnmarshalJSON ¶

func (s *ApiKey) UnmarshalJSON(data []byte) error

type ApiKeyAggregate ¶

type ApiKeyAggregate any

ApiKeyAggregate holds the union for the following types:

CardinalityAggregate
ValueCountAggregate
StringTermsAggregate
LongTermsAggregate
DoubleTermsAggregate
UnmappedTermsAggregate
MultiTermsAggregate
MissingAggregate
FilterAggregate
FiltersAggregate
RangeAggregate
DateRangeAggregate
CompositeAggregate

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_api_keys/types.ts#L122-L139

type ApiKeyAggregationContainer ¶

type ApiKeyAggregationContainer struct {
	AdditionalApiKeyAggregationContainerProperty map[string]json.RawMessage `json:"-"`
	// Aggregations Sub-aggregations for this aggregation.
	// Only applies to bucket aggregations.
	Aggregations map[string]ApiKeyAggregationContainer `json:"aggregations,omitempty"`
	// Cardinality A single-value metrics aggregation that calculates an approximate count of
	// distinct values.
	Cardinality *CardinalityAggregation `json:"cardinality,omitempty"`
	// Composite A multi-bucket aggregation that creates composite buckets from different
	// sources.
	// Unlike the other multi-bucket aggregations, you can use the `composite`
	// aggregation to paginate *all* buckets from a multi-level aggregation
	// efficiently.
	Composite *CompositeAggregation `json:"composite,omitempty"`
	// DateRange A multi-bucket value source based aggregation that enables the user to define
	// a set of date ranges - each representing a bucket.
	DateRange *DateRangeAggregation `json:"date_range,omitempty"`
	// Filter A single bucket aggregation that narrows the set of documents to those that
	// match a query.
	Filter *ApiKeyQueryContainer `json:"filter,omitempty"`
	// Filters A multi-bucket aggregation where each bucket contains the documents that
	// match a query.
	Filters *ApiKeyFiltersAggregation `json:"filters,omitempty"`
	Meta    Metadata                  `json:"meta,omitempty"`
	Missing *MissingAggregation       `json:"missing,omitempty"`
	// Range A multi-bucket value source based aggregation that enables the user to define
	// a set of ranges - each representing a bucket.
	Range *RangeAggregation `json:"range,omitempty"`
	// Terms A multi-bucket value source based aggregation where buckets are dynamically
	// built - one per unique value.
	Terms *TermsAggregation `json:"terms,omitempty"`
	// ValueCount A single-value metrics aggregation that counts the number of values that are
	// extracted from the aggregated documents.
	ValueCount *ValueCountAggregation `json:"value_count,omitempty"`
}

ApiKeyAggregationContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_api_keys/types.ts#L63-L120

func NewApiKeyAggregationContainer ¶

func NewApiKeyAggregationContainer() *ApiKeyAggregationContainer

NewApiKeyAggregationContainer returns a ApiKeyAggregationContainer.

func (*ApiKeyAggregationContainer) ApiKeyAggregationContainerCaster ¶

func (s *ApiKeyAggregationContainer) ApiKeyAggregationContainerCaster() *ApiKeyAggregationContainer

func (ApiKeyAggregationContainer) MarshalJSON ¶

func (s ApiKeyAggregationContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ApiKeyAggregationContainer) UnmarshalJSON ¶

func (s *ApiKeyAggregationContainer) UnmarshalJSON(data []byte) error

type ApiKeyAggregationContainerVariant ¶

type ApiKeyAggregationContainerVariant interface {
	ApiKeyAggregationContainerCaster() *ApiKeyAggregationContainer
}

type ApiKeyAuthorization ¶

type ApiKeyAuthorization struct {
	// Id The identifier for the API key.
	Id string `json:"id"`
	// Name The name of the API key.
	Name string `json:"name"`
}

ApiKeyAuthorization type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Authorization.ts#L20-L29

func NewApiKeyAuthorization ¶

func NewApiKeyAuthorization() *ApiKeyAuthorization

NewApiKeyAuthorization returns a ApiKeyAuthorization.

func (*ApiKeyAuthorization) UnmarshalJSON ¶

func (s *ApiKeyAuthorization) UnmarshalJSON(data []byte) error

type ApiKeyFiltersAggregation ¶

type ApiKeyFiltersAggregation struct {
	// Filters Collection of queries from which to build buckets.
	Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"`
	// Keyed By default, the named filters aggregation returns the buckets as an object.
	// Set to `false` to return the buckets as an array of objects.
	Keyed *bool `json:"keyed,omitempty"`
	// OtherBucket Set to `true` to add a bucket to the response which will contain all
	// documents that do not match any of the given filters.
	OtherBucket *bool `json:"other_bucket,omitempty"`
	// OtherBucketKey The key with which the other bucket is returned.
	OtherBucketKey *string `json:"other_bucket_key,omitempty"`
}

ApiKeyFiltersAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_api_keys/types.ts#L207-L227

func NewApiKeyFiltersAggregation ¶

func NewApiKeyFiltersAggregation() *ApiKeyFiltersAggregation

NewApiKeyFiltersAggregation returns a ApiKeyFiltersAggregation.

func (*ApiKeyFiltersAggregation) ApiKeyFiltersAggregationCaster ¶

func (s *ApiKeyFiltersAggregation) ApiKeyFiltersAggregationCaster() *ApiKeyFiltersAggregation

func (*ApiKeyFiltersAggregation) UnmarshalJSON ¶

func (s *ApiKeyFiltersAggregation) UnmarshalJSON(data []byte) error

type ApiKeyFiltersAggregationVariant ¶

type ApiKeyFiltersAggregationVariant interface {
	ApiKeyFiltersAggregationCaster() *ApiKeyFiltersAggregation
}

type ApiKeyQueryContainer ¶

type ApiKeyQueryContainer struct {
	AdditionalApiKeyQueryContainerProperty map[string]json.RawMessage `json:"-"`
	// Bool Matches documents matching boolean combinations of other queries.
	Bool *BoolQuery `json:"bool,omitempty"`
	// Exists Returns documents that contain an indexed value for a field.
	Exists *ExistsQuery `json:"exists,omitempty"`
	// Ids Returns documents based on their IDs.
	// This query uses document IDs stored in the `_id` field.
	Ids *IdsQuery `json:"ids,omitempty"`
	// Match Returns documents that match a provided text, number, date or boolean value.
	// The provided text is analyzed before matching.
	Match map[string]MatchQuery `json:"match,omitempty"`
	// MatchAll Matches all documents, giving them all a `_score` of 1.0.
	MatchAll *MatchAllQuery `json:"match_all,omitempty"`
	// Prefix Returns documents that contain a specific prefix in a provided field.
	Prefix map[string]PrefixQuery `json:"prefix,omitempty"`
	// Range Returns documents that contain terms within a provided range.
	Range map[string]RangeQuery `json:"range,omitempty"`
	// SimpleQueryString Returns documents based on a provided query string, using a parser with a
	// limited but fault-tolerant syntax.
	SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`
	// Term Returns documents that contain an exact term in a provided field.
	// To return a document, the query term must exactly match the queried field's
	// value, including whitespace and capitalization.
	Term map[string]TermQuery `json:"term,omitempty"`
	// Terms Returns documents that contain one or more exact terms in a provided field.
	// To return a document, one or more terms must exactly match a field value,
	// including whitespace and capitalization.
	Terms *TermsQuery `json:"terms,omitempty"`
	// Wildcard Returns documents that contain terms matching a wildcard pattern.
	Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`
}

ApiKeyQueryContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_api_keys/types.ts#L141-L205

func NewApiKeyQueryContainer ¶

func NewApiKeyQueryContainer() *ApiKeyQueryContainer

NewApiKeyQueryContainer returns a ApiKeyQueryContainer.

func (*ApiKeyQueryContainer) ApiKeyQueryContainerCaster ¶

func (s *ApiKeyQueryContainer) ApiKeyQueryContainerCaster() *ApiKeyQueryContainer

func (ApiKeyQueryContainer) MarshalJSON ¶

func (s ApiKeyQueryContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ApiKeyQueryContainer) UnmarshalJSON ¶

func (s *ApiKeyQueryContainer) UnmarshalJSON(data []byte) error

type ApiKeyQueryContainerVariant ¶

type ApiKeyQueryContainerVariant interface {
	ApiKeyQueryContainerCaster() *ApiKeyQueryContainer
}

type ApostropheTokenFilter ¶ added in v9.0.1

type ApostropheTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ApostropheTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L451-L453

func NewApostropheTokenFilter ¶ added in v9.0.1

func NewApostropheTokenFilter() *ApostropheTokenFilter

NewApostropheTokenFilter returns a ApostropheTokenFilter.

func (*ApostropheTokenFilter) ApostropheTokenFilterCaster ¶ added in v9.0.1

func (s *ApostropheTokenFilter) ApostropheTokenFilterCaster() *ApostropheTokenFilter

func (ApostropheTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ApostropheTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ApostropheTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ApostropheTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ApostropheTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ApostropheTokenFilter) UnmarshalJSON(data []byte) error

type ApostropheTokenFilterVariant ¶ added in v9.0.1

type ApostropheTokenFilterVariant interface {
	ApostropheTokenFilterCaster() *ApostropheTokenFilter
}

type AppendProcessor ¶

type AppendProcessor struct {
	// AllowDuplicates If `false`, the processor does not append values already present in the
	// field.
	AllowDuplicates *bool `json:"allow_duplicates,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to be appended to.
	// Supports template snippets.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// Value The value to be appended. Supports template snippets.
	Value []json.RawMessage `json:"value"`
}

AppendProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L329-L344

func NewAppendProcessor ¶

func NewAppendProcessor() *AppendProcessor

NewAppendProcessor returns a AppendProcessor.

func (*AppendProcessor) AppendProcessorCaster ¶

func (s *AppendProcessor) AppendProcessorCaster() *AppendProcessor

func (*AppendProcessor) UnmarshalJSON ¶

func (s *AppendProcessor) UnmarshalJSON(data []byte) error

type AppendProcessorVariant ¶

type AppendProcessorVariant interface {
	AppendProcessorCaster() *AppendProcessor
}

type ApplicationGlobalUserPrivileges ¶

type ApplicationGlobalUserPrivileges struct {
	Manage ManageUserPrivileges `json:"manage"`
}

ApplicationGlobalUserPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L436-L438

func NewApplicationGlobalUserPrivileges ¶

func NewApplicationGlobalUserPrivileges() *ApplicationGlobalUserPrivileges

NewApplicationGlobalUserPrivileges returns a ApplicationGlobalUserPrivileges.

func (*ApplicationGlobalUserPrivileges) ApplicationGlobalUserPrivilegesCaster ¶

func (s *ApplicationGlobalUserPrivileges) ApplicationGlobalUserPrivilegesCaster() *ApplicationGlobalUserPrivileges

type ApplicationGlobalUserPrivilegesVariant ¶

type ApplicationGlobalUserPrivilegesVariant interface {
	ApplicationGlobalUserPrivilegesCaster() *ApplicationGlobalUserPrivileges
}

type ApplicationPrivileges ¶

type ApplicationPrivileges struct {
	// Application The name of the application to which this entry applies.
	Application string `json:"application"`
	// Privileges A list of strings, where each element is the name of an application privilege
	// or action.
	Privileges []string `json:"privileges"`
	// Resources A list resources to which the privileges are applied.
	Resources []string `json:"resources"`
}

ApplicationPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L27-L40

func NewApplicationPrivileges ¶

func NewApplicationPrivileges() *ApplicationPrivileges

NewApplicationPrivileges returns a ApplicationPrivileges.

func (*ApplicationPrivileges) ApplicationPrivilegesCaster ¶

func (s *ApplicationPrivileges) ApplicationPrivilegesCaster() *ApplicationPrivileges

func (*ApplicationPrivileges) UnmarshalJSON ¶

func (s *ApplicationPrivileges) UnmarshalJSON(data []byte) error

type ApplicationPrivilegesCheck ¶

type ApplicationPrivilegesCheck struct {
	// Application The name of the application.
	Application string `json:"application"`
	// Privileges A list of the privileges that you want to check for the specified resources.
	// It may be either application privilege names or the names of actions that are
	// granted by those privileges
	Privileges []string `json:"privileges"`
	// Resources A list of resource names against which the privileges should be checked.
	Resources []string `json:"resources"`
}

ApplicationPrivilegesCheck type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/has_privileges/types.ts#L24-L32

func NewApplicationPrivilegesCheck ¶

func NewApplicationPrivilegesCheck() *ApplicationPrivilegesCheck

NewApplicationPrivilegesCheck returns a ApplicationPrivilegesCheck.

func (*ApplicationPrivilegesCheck) ApplicationPrivilegesCheckCaster ¶

func (s *ApplicationPrivilegesCheck) ApplicationPrivilegesCheckCaster() *ApplicationPrivilegesCheck

func (*ApplicationPrivilegesCheck) UnmarshalJSON ¶

func (s *ApplicationPrivilegesCheck) UnmarshalJSON(data []byte) error

type ApplicationPrivilegesCheckVariant ¶

type ApplicationPrivilegesCheckVariant interface {
	ApplicationPrivilegesCheckCaster() *ApplicationPrivilegesCheck
}

type ApplicationPrivilegesVariant ¶

type ApplicationPrivilegesVariant interface {
	ApplicationPrivilegesCaster() *ApplicationPrivileges
}

type ArabicAnalyzer ¶

type ArabicAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

ArabicAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L72-L77

func NewArabicAnalyzer ¶

func NewArabicAnalyzer() *ArabicAnalyzer

NewArabicAnalyzer returns a ArabicAnalyzer.

func (*ArabicAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *ArabicAnalyzer) AnalyzerCaster() *Analyzer

func (*ArabicAnalyzer) ArabicAnalyzerCaster ¶

func (s *ArabicAnalyzer) ArabicAnalyzerCaster() *ArabicAnalyzer

func (ArabicAnalyzer) MarshalJSON ¶

func (s ArabicAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ArabicAnalyzer) UnmarshalJSON ¶

func (s *ArabicAnalyzer) UnmarshalJSON(data []byte) error

type ArabicAnalyzerVariant ¶

type ArabicAnalyzerVariant interface {
	ArabicAnalyzerCaster() *ArabicAnalyzer
}

type ArabicNormalizationTokenFilter ¶ added in v9.0.1

type ArabicNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ArabicNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L455-L457

func NewArabicNormalizationTokenFilter ¶ added in v9.0.1

func NewArabicNormalizationTokenFilter() *ArabicNormalizationTokenFilter

NewArabicNormalizationTokenFilter returns a ArabicNormalizationTokenFilter.

func (*ArabicNormalizationTokenFilter) ArabicNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *ArabicNormalizationTokenFilter) ArabicNormalizationTokenFilterCaster() *ArabicNormalizationTokenFilter

func (ArabicNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ArabicNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ArabicNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ArabicNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ArabicNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ArabicNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type ArabicNormalizationTokenFilterVariant ¶ added in v9.0.1

type ArabicNormalizationTokenFilterVariant interface {
	ArabicNormalizationTokenFilterCaster() *ArabicNormalizationTokenFilter
}

type ArabicStemTokenFilter ¶ added in v9.0.1

type ArabicStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ArabicStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L547-L549

func NewArabicStemTokenFilter ¶ added in v9.0.1

func NewArabicStemTokenFilter() *ArabicStemTokenFilter

NewArabicStemTokenFilter returns a ArabicStemTokenFilter.

func (*ArabicStemTokenFilter) ArabicStemTokenFilterCaster ¶ added in v9.0.1

func (s *ArabicStemTokenFilter) ArabicStemTokenFilterCaster() *ArabicStemTokenFilter

func (ArabicStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ArabicStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ArabicStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ArabicStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ArabicStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ArabicStemTokenFilter) UnmarshalJSON(data []byte) error

type ArabicStemTokenFilterVariant ¶ added in v9.0.1

type ArabicStemTokenFilterVariant interface {
	ArabicStemTokenFilterCaster() *ArabicStemTokenFilter
}

type Archive ¶

type Archive struct {
	Available    bool  `json:"available"`
	Enabled      bool  `json:"enabled"`
	IndicesCount int64 `json:"indices_count"`
}

Archive type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L45-L47

func NewArchive ¶

func NewArchive() *Archive

NewArchive returns a Archive.

func (*Archive) UnmarshalJSON ¶

func (s *Archive) UnmarshalJSON(data []byte) error

type ArmenianAnalyzer ¶

type ArmenianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

ArmenianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L79-L84

func NewArmenianAnalyzer ¶

func NewArmenianAnalyzer() *ArmenianAnalyzer

NewArmenianAnalyzer returns a ArmenianAnalyzer.

func (*ArmenianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *ArmenianAnalyzer) AnalyzerCaster() *Analyzer

func (*ArmenianAnalyzer) ArmenianAnalyzerCaster ¶

func (s *ArmenianAnalyzer) ArmenianAnalyzerCaster() *ArmenianAnalyzer

func (ArmenianAnalyzer) MarshalJSON ¶

func (s ArmenianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ArmenianAnalyzer) UnmarshalJSON ¶

func (s *ArmenianAnalyzer) UnmarshalJSON(data []byte) error

type ArmenianAnalyzerVariant ¶

type ArmenianAnalyzerVariant interface {
	ArmenianAnalyzerCaster() *ArmenianAnalyzer
}

type ArrayCompareCondition ¶

type ArrayCompareCondition struct {
	ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"`
	Path                  string                                           `json:"path"`
}

ArrayCompareCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L33-L40

func NewArrayCompareCondition ¶

func NewArrayCompareCondition() *ArrayCompareCondition

NewArrayCompareCondition returns a ArrayCompareCondition.

func (*ArrayCompareCondition) ArrayCompareConditionCaster ¶

func (s *ArrayCompareCondition) ArrayCompareConditionCaster() *ArrayCompareCondition

func (ArrayCompareCondition) MarshalJSON ¶

func (s ArrayCompareCondition) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ArrayCompareCondition) UnmarshalJSON ¶

func (s *ArrayCompareCondition) UnmarshalJSON(data []byte) error

type ArrayCompareConditionVariant ¶

type ArrayCompareConditionVariant interface {
	ArrayCompareConditionCaster() *ArrayCompareCondition
}

type ArrayCompareOpParams ¶

type ArrayCompareOpParams struct {
	Quantifier quantifier.Quantifier `json:"quantifier"`
	Value      FieldValue            `json:"value"`
}

ArrayCompareOpParams type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L28-L31

func NewArrayCompareOpParams ¶

func NewArrayCompareOpParams() *ArrayCompareOpParams

NewArrayCompareOpParams returns a ArrayCompareOpParams.

func (*ArrayCompareOpParams) ArrayCompareOpParamsCaster ¶

func (s *ArrayCompareOpParams) ArrayCompareOpParamsCaster() *ArrayCompareOpParams

func (*ArrayCompareOpParams) UnmarshalJSON ¶

func (s *ArrayCompareOpParams) UnmarshalJSON(data []byte) error

type ArrayCompareOpParamsVariant ¶

type ArrayCompareOpParamsVariant interface {
	ArrayCompareOpParamsCaster() *ArrayCompareOpParams
}

type ArrayPercentilesItem ¶

type ArrayPercentilesItem struct {
	Key           string   `json:"key"`
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

ArrayPercentilesItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L162-L166

func NewArrayPercentilesItem ¶

func NewArrayPercentilesItem() *ArrayPercentilesItem

NewArrayPercentilesItem returns a ArrayPercentilesItem.

func (*ArrayPercentilesItem) UnmarshalJSON ¶

func (s *ArrayPercentilesItem) UnmarshalJSON(data []byte) error

type AsciiFoldingTokenFilter ¶

type AsciiFoldingTokenFilter struct {
	// PreserveOriginal If `true`, emit both original tokens and folded tokens. Defaults to `false`.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	Type             string             `json:"type,omitempty"`
	Version          *string            `json:"version,omitempty"`
}

AsciiFoldingTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L213-L217

func NewAsciiFoldingTokenFilter ¶

func NewAsciiFoldingTokenFilter() *AsciiFoldingTokenFilter

NewAsciiFoldingTokenFilter returns a AsciiFoldingTokenFilter.

func (*AsciiFoldingTokenFilter) AsciiFoldingTokenFilterCaster ¶

func (s *AsciiFoldingTokenFilter) AsciiFoldingTokenFilterCaster() *AsciiFoldingTokenFilter

func (AsciiFoldingTokenFilter) MarshalJSON ¶

func (s AsciiFoldingTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*AsciiFoldingTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *AsciiFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*AsciiFoldingTokenFilter) UnmarshalJSON ¶

func (s *AsciiFoldingTokenFilter) UnmarshalJSON(data []byte) error

type AsciiFoldingTokenFilterVariant ¶

type AsciiFoldingTokenFilterVariant interface {
	AsciiFoldingTokenFilterCaster() *AsciiFoldingTokenFilter
}

type AsyncSearch ¶

type AsyncSearch struct {
	// Aggregations Partial aggregations results, coming from the shards that have already
	// completed running the query.
	Aggregations map[string]Aggregate       `json:"aggregations,omitempty"`
	Clusters_    *ClusterStatistics         `json:"_clusters,omitempty"`
	Fields       map[string]json.RawMessage `json:"fields,omitempty"`
	Hits         HitsMetadata               `json:"hits"`
	MaxScore     *Float64                   `json:"max_score,omitempty"`
	// NumReducePhases Indicates how many reductions of the results have been performed.
	// If this number increases compared to the last retrieved results for a get
	// asynch search request, you can expect additional results included in the
	// search response.
	NumReducePhases *int64   `json:"num_reduce_phases,omitempty"`
	PitId           *string  `json:"pit_id,omitempty"`
	Profile         *Profile `json:"profile,omitempty"`
	ScrollId_       *string  `json:"_scroll_id,omitempty"`
	// Shards_ Indicates how many shards have run the query.
	// Note that in order for shard results to be included in the search response,
	// they need to be reduced first.
	Shards_         ShardStatistics      `json:"_shards"`
	Suggest         map[string][]Suggest `json:"suggest,omitempty"`
	TerminatedEarly *bool                `json:"terminated_early,omitempty"`
	TimedOut        bool                 `json:"timed_out"`
	Took            int64                `json:"took"`
}

AsyncSearch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/async_search/_types/AsyncSearch.ts#L30-L56

func NewAsyncSearch ¶

func NewAsyncSearch() *AsyncSearch

NewAsyncSearch returns a AsyncSearch.

func (*AsyncSearch) UnmarshalJSON ¶

func (s *AsyncSearch) UnmarshalJSON(data []byte) error

type AttachmentProcessor ¶

type AttachmentProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to get the base64 encoded field from.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and field does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// IndexedChars The number of chars being used for extraction to prevent huge fields.
	// Use `-1` for no limit.
	IndexedChars *int64 `json:"indexed_chars,omitempty"`
	// IndexedCharsField Field name from which you can overwrite the number of chars being used for
	// extraction.
	IndexedCharsField *string `json:"indexed_chars_field,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Properties Array of properties to select to be stored.
	// Can be `content`, `title`, `name`, `author`, `keywords`, `date`,
	// `content_type`, `content_length`, `language`.
	Properties []string `json:"properties,omitempty"`
	// RemoveBinary If true, the binary field will be removed from the document
	RemoveBinary *bool `json:"remove_binary,omitempty"`
	// ResourceName Field containing the name of the resource to decode.
	// If specified, the processor passes this resource name to the underlying Tika
	// library to enable Resource Name Based Detection.
	ResourceName *string `json:"resource_name,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that will hold the attachment information.
	TargetField *string `json:"target_field,omitempty"`
}

AttachmentProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L346-L387

func NewAttachmentProcessor ¶

func NewAttachmentProcessor() *AttachmentProcessor

NewAttachmentProcessor returns a AttachmentProcessor.

func (*AttachmentProcessor) AttachmentProcessorCaster ¶

func (s *AttachmentProcessor) AttachmentProcessorCaster() *AttachmentProcessor

func (*AttachmentProcessor) UnmarshalJSON ¶

func (s *AttachmentProcessor) UnmarshalJSON(data []byte) error

type AttachmentProcessorVariant ¶

type AttachmentProcessorVariant interface {
	AttachmentProcessorCaster() *AttachmentProcessor
}

type Audit ¶

type Audit struct {
	Enabled bool     `json:"enabled"`
	Outputs []string `json:"outputs,omitempty"`
}

Audit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L70-L72

func NewAudit ¶

func NewAudit() *Audit

NewAudit returns a Audit.

func (*Audit) UnmarshalJSON ¶

func (s *Audit) UnmarshalJSON(data []byte) error

type AuthenticateApiKey ¶

type AuthenticateApiKey struct {
	Id   string  `json:"id"`
	Name *string `json:"name,omitempty"`
}

AuthenticateApiKey type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47

func NewAuthenticateApiKey ¶

func NewAuthenticateApiKey() *AuthenticateApiKey

NewAuthenticateApiKey returns a AuthenticateApiKey.

func (*AuthenticateApiKey) UnmarshalJSON ¶

func (s *AuthenticateApiKey) UnmarshalJSON(data []byte) error

type AuthenticateToken ¶

type AuthenticateToken struct {
	Name string  `json:"name"`
	Type *string `json:"type,omitempty"`
}

AuthenticateToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/authenticate/types.ts#L22-L29

func NewAuthenticateToken ¶

func NewAuthenticateToken() *AuthenticateToken

NewAuthenticateToken returns a AuthenticateToken.

func (*AuthenticateToken) UnmarshalJSON ¶

func (s *AuthenticateToken) UnmarshalJSON(data []byte) error

type AuthenticatedUser ¶

type AuthenticatedUser struct {
	AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"`
	AuthenticationRealm    UserRealm               `json:"authentication_realm"`
	AuthenticationType     string                  `json:"authentication_type"`
	Email                  *string                 `json:"email,omitempty"`
	Enabled                bool                    `json:"enabled"`
	FullName               *string                 `json:"full_name,omitempty"`
	LookupRealm            UserRealm               `json:"lookup_realm"`
	Metadata               Metadata                `json:"metadata"`
	ProfileUid             *string                 `json:"profile_uid,omitempty"`
	Roles                  []string                `json:"roles"`
	Username               string                  `json:"username"`
}

AuthenticatedUser type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_token/types.ts#L60-L65

func NewAuthenticatedUser ¶

func NewAuthenticatedUser() *AuthenticatedUser

NewAuthenticatedUser returns a AuthenticatedUser.

func (*AuthenticatedUser) UnmarshalJSON ¶

func (s *AuthenticatedUser) UnmarshalJSON(data []byte) error

type Authentication ¶

type Authentication struct {
	ApiKey              map[string]string   `json:"api_key,omitempty"`
	AuthenticationRealm AuthenticationRealm `json:"authentication_realm"`
	AuthenticationType  string              `json:"authentication_type"`
	Email               *string             `json:"email,omitempty"`
	Enabled             bool                `json:"enabled"`
	FullName            *string             `json:"full_name,omitempty"`
	LookupRealm         AuthenticationRealm `json:"lookup_realm"`
	Metadata            Metadata            `json:"metadata"`
	Roles               []string            `json:"roles"`
	Token               map[string]string   `json:"token,omitempty"`
	Username            string              `json:"username"`
}

Authentication type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55

func NewAuthentication ¶

func NewAuthentication() *Authentication

NewAuthentication returns a Authentication.

func (*Authentication) UnmarshalJSON ¶

func (s *Authentication) UnmarshalJSON(data []byte) error

type AuthenticationProvider ¶

type AuthenticationProvider struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

AuthenticationProvider type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_token/types.ts#L55-L58

func NewAuthenticationProvider ¶

func NewAuthenticationProvider() *AuthenticationProvider

NewAuthenticationProvider returns a AuthenticationProvider.

func (*AuthenticationProvider) UnmarshalJSON ¶

func (s *AuthenticationProvider) UnmarshalJSON(data []byte) error

type AuthenticationRealm ¶

type AuthenticationRealm struct {
	Domain *string `json:"domain,omitempty"`
	Name   string  `json:"name"`
	Type   string  `json:"type"`
}

AuthenticationRealm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61

func NewAuthenticationRealm ¶

func NewAuthenticationRealm() *AuthenticationRealm

NewAuthenticationRealm returns a AuthenticationRealm.

func (*AuthenticationRealm) UnmarshalJSON ¶

func (s *AuthenticationRealm) UnmarshalJSON(data []byte) error

type AutoDateHistogramAggregate ¶

type AutoDateHistogramAggregate struct {
	Buckets  BucketsDateHistogramBucket `json:"buckets"`
	Interval string                     `json:"interval"`
	Meta     Metadata                   `json:"meta,omitempty"`
}

AutoDateHistogramAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L393-L400

func NewAutoDateHistogramAggregate ¶

func NewAutoDateHistogramAggregate() *AutoDateHistogramAggregate

NewAutoDateHistogramAggregate returns a AutoDateHistogramAggregate.

func (*AutoDateHistogramAggregate) UnmarshalJSON ¶

func (s *AutoDateHistogramAggregate) UnmarshalJSON(data []byte) error

type AutoDateHistogramAggregation ¶

type AutoDateHistogramAggregation struct {
	// Buckets The target number of buckets.
	Buckets *int `json:"buckets,omitempty"`
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Format The date format used to format `key_as_string` in the response.
	// If no `format` is specified, the first date format specified in the field
	// mapping is used.
	Format *string `json:"format,omitempty"`
	// MinimumInterval The minimum rounding interval.
	// This can make the collection process more efficient, as the aggregation will
	// not attempt to round at any interval lower than `minimum_interval`.
	MinimumInterval *minimuminterval.MinimumInterval `json:"minimum_interval,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing DateTime `json:"missing,omitempty"`
	// Offset Time zone specified as a ISO 8601 UTC offset.
	Offset *string                    `json:"offset,omitempty"`
	Params map[string]json.RawMessage `json:"params,omitempty"`
	Script *Script                    `json:"script,omitempty"`
	// TimeZone Time zone ID.
	TimeZone *string `json:"time_zone,omitempty"`
}

AutoDateHistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L72-L110

func NewAutoDateHistogramAggregation ¶

func NewAutoDateHistogramAggregation() *AutoDateHistogramAggregation

NewAutoDateHistogramAggregation returns a AutoDateHistogramAggregation.

func (*AutoDateHistogramAggregation) AutoDateHistogramAggregationCaster ¶

func (s *AutoDateHistogramAggregation) AutoDateHistogramAggregationCaster() *AutoDateHistogramAggregation

func (*AutoDateHistogramAggregation) UnmarshalJSON ¶

func (s *AutoDateHistogramAggregation) UnmarshalJSON(data []byte) error

type AutoDateHistogramAggregationVariant ¶

type AutoDateHistogramAggregationVariant interface {
	AutoDateHistogramAggregationCaster() *AutoDateHistogramAggregation
}

type AutoFollowPattern ¶

type AutoFollowPattern struct {
	Name    string                   `json:"name"`
	Pattern AutoFollowPatternSummary `json:"pattern"`
}

AutoFollowPattern type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26

func NewAutoFollowPattern ¶

func NewAutoFollowPattern() *AutoFollowPattern

NewAutoFollowPattern returns a AutoFollowPattern.

func (*AutoFollowPattern) UnmarshalJSON ¶

func (s *AutoFollowPattern) UnmarshalJSON(data []byte) error

type AutoFollowPatternSummary ¶

type AutoFollowPatternSummary struct {
	Active bool `json:"active"`
	// FollowIndexPattern The name of follower index.
	FollowIndexPattern *string `json:"follow_index_pattern,omitempty"`
	// LeaderIndexExclusionPatterns An array of simple index patterns that can be used to exclude indices from
	// being auto-followed.
	LeaderIndexExclusionPatterns []string `json:"leader_index_exclusion_patterns"`
	// LeaderIndexPatterns An array of simple index patterns to match against indices in the remote
	// cluster specified by the remote_cluster field.
	LeaderIndexPatterns []string `json:"leader_index_patterns"`
	// MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster.
	MaxOutstandingReadRequests int `json:"max_outstanding_read_requests"`
	// RemoteCluster The remote cluster containing the leader indices to match against.
	RemoteCluster string `json:"remote_cluster"`
}

AutoFollowPatternSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52

func NewAutoFollowPatternSummary ¶

func NewAutoFollowPatternSummary() *AutoFollowPatternSummary

NewAutoFollowPatternSummary returns a AutoFollowPatternSummary.

func (*AutoFollowPatternSummary) UnmarshalJSON ¶

func (s *AutoFollowPatternSummary) UnmarshalJSON(data []byte) error

type AutoFollowStats ¶

type AutoFollowStats struct {
	AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"`
	// NumberOfFailedFollowIndices The number of indices that the auto-follow coordinator failed to
	// automatically follow.
	// The causes of recent failures are captured in the logs of the elected master
	// node and in the `auto_follow_stats.recent_auto_follow_errors` field.
	NumberOfFailedFollowIndices int64 `json:"number_of_failed_follow_indices"`
	// NumberOfFailedRemoteClusterStateRequests The number of times that the auto-follow coordinator failed to retrieve the
	// cluster state from a remote cluster registered in a collection of auto-follow
	// patterns.
	NumberOfFailedRemoteClusterStateRequests int64 `json:"number_of_failed_remote_cluster_state_requests"`
	// NumberOfSuccessfulFollowIndices The number of indices that the auto-follow coordinator successfully followed.
	NumberOfSuccessfulFollowIndices int64 `json:"number_of_successful_follow_indices"`
	// RecentAutoFollowErrors An array of objects representing failures by the auto-follow coordinator.
	RecentAutoFollowErrors []ErrorCause `json:"recent_auto_follow_errors"`
}

AutoFollowStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/stats/types.ts.ts#L32-L47

func NewAutoFollowStats ¶

func NewAutoFollowStats() *AutoFollowStats

NewAutoFollowStats returns a AutoFollowStats.

func (*AutoFollowStats) UnmarshalJSON ¶

func (s *AutoFollowStats) UnmarshalJSON(data []byte) error

type AutoFollowedCluster ¶

type AutoFollowedCluster struct {
	ClusterName              string `json:"cluster_name"`
	LastSeenMetadataVersion  int64  `json:"last_seen_metadata_version"`
	TimeSinceLastCheckMillis int64  `json:"time_since_last_check_millis"`
}

AutoFollowedCluster type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/stats/types.ts.ts#L26-L30

func NewAutoFollowedCluster ¶

func NewAutoFollowedCluster() *AutoFollowedCluster

NewAutoFollowedCluster returns a AutoFollowedCluster.

func (*AutoFollowedCluster) UnmarshalJSON ¶

func (s *AutoFollowedCluster) UnmarshalJSON(data []byte) error

type AutoscalingCapacity ¶

type AutoscalingCapacity struct {
	Node  AutoscalingResources `json:"node"`
	Total AutoscalingResources `json:"total"`
}

AutoscalingCapacity type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41

func NewAutoscalingCapacity ¶

func NewAutoscalingCapacity() *AutoscalingCapacity

NewAutoscalingCapacity returns a AutoscalingCapacity.

type AutoscalingDecider ¶

type AutoscalingDecider struct {
	ReasonDetails    json.RawMessage     `json:"reason_details,omitempty"`
	ReasonSummary    *string             `json:"reason_summary,omitempty"`
	RequiredCapacity AutoscalingCapacity `json:"required_capacity"`
}

AutoscalingDecider type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56

func NewAutoscalingDecider ¶

func NewAutoscalingDecider() *AutoscalingDecider

NewAutoscalingDecider returns a AutoscalingDecider.

func (*AutoscalingDecider) UnmarshalJSON ¶

func (s *AutoscalingDecider) UnmarshalJSON(data []byte) error

type AutoscalingDeciders ¶

type AutoscalingDeciders struct {
	CurrentCapacity  AutoscalingCapacity           `json:"current_capacity"`
	CurrentNodes     []AutoscalingNode             `json:"current_nodes"`
	Deciders         map[string]AutoscalingDecider `json:"deciders"`
	RequiredCapacity AutoscalingCapacity           `json:"required_capacity"`
}

AutoscalingDeciders type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36

func NewAutoscalingDeciders ¶

func NewAutoscalingDeciders() *AutoscalingDeciders

NewAutoscalingDeciders returns a AutoscalingDeciders.

type AutoscalingNode ¶

type AutoscalingNode struct {
	Name string `json:"name"`
}

AutoscalingNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50

func NewAutoscalingNode ¶

func NewAutoscalingNode() *AutoscalingNode

NewAutoscalingNode returns a AutoscalingNode.

func (*AutoscalingNode) UnmarshalJSON ¶

func (s *AutoscalingNode) UnmarshalJSON(data []byte) error

type AutoscalingPolicy ¶

type AutoscalingPolicy struct {
	// Deciders Decider settings.
	Deciders map[string]json.RawMessage `json:"deciders"`
	Roles    []string                   `json:"roles"`
}

AutoscalingPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30

func NewAutoscalingPolicy ¶

func NewAutoscalingPolicy() *AutoscalingPolicy

NewAutoscalingPolicy returns a AutoscalingPolicy.

func (*AutoscalingPolicy) AutoscalingPolicyCaster ¶

func (s *AutoscalingPolicy) AutoscalingPolicyCaster() *AutoscalingPolicy

type AutoscalingPolicyVariant ¶

type AutoscalingPolicyVariant interface {
	AutoscalingPolicyCaster() *AutoscalingPolicy
}

type AutoscalingResources ¶

type AutoscalingResources struct {
	Memory  int `json:"memory"`
	Storage int `json:"storage"`
}

AutoscalingResources type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46

func NewAutoscalingResources ¶

func NewAutoscalingResources() *AutoscalingResources

NewAutoscalingResources returns a AutoscalingResources.

func (*AutoscalingResources) UnmarshalJSON ¶

func (s *AutoscalingResources) UnmarshalJSON(data []byte) error

type AverageAggregation ¶

type AverageAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

AverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L55-L55

func NewAverageAggregation ¶

func NewAverageAggregation() *AverageAggregation

NewAverageAggregation returns a AverageAggregation.

func (*AverageAggregation) AverageAggregationCaster ¶

func (s *AverageAggregation) AverageAggregationCaster() *AverageAggregation

func (*AverageAggregation) UnmarshalJSON ¶

func (s *AverageAggregation) UnmarshalJSON(data []byte) error

type AverageAggregationVariant ¶

type AverageAggregationVariant interface {
	AverageAggregationCaster() *AverageAggregation
}

type AverageBucketAggregation ¶

type AverageBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

AverageBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L78-L81

func NewAverageBucketAggregation ¶

func NewAverageBucketAggregation() *AverageBucketAggregation

NewAverageBucketAggregation returns a AverageBucketAggregation.

func (*AverageBucketAggregation) AverageBucketAggregationCaster ¶

func (s *AverageBucketAggregation) AverageBucketAggregationCaster() *AverageBucketAggregation

func (*AverageBucketAggregation) UnmarshalJSON ¶

func (s *AverageBucketAggregation) UnmarshalJSON(data []byte) error

type AverageBucketAggregationVariant ¶

type AverageBucketAggregationVariant interface {
	AverageBucketAggregationCaster() *AverageBucketAggregation
}

type AvgAggregate ¶

type AvgAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

AvgAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L218-L222

func NewAvgAggregate ¶

func NewAvgAggregate() *AvgAggregate

NewAvgAggregate returns a AvgAggregate.

func (*AvgAggregate) UnmarshalJSON ¶

func (s *AvgAggregate) UnmarshalJSON(data []byte) error

type AzureAiStudioServiceSettings ¶

type AzureAiStudioServiceSettings struct {
	// ApiKey A valid API key of your Azure AI Studio model deployment.
	// This key can be found on the overview page for your deployment in the
	// management section of your Azure AI Studio account.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// EndpointType The type of endpoint that is available for deployment through Azure AI
	// Studio: `token` or `realtime`.
	// The `token` endpoint type is for "pay as you go" endpoints that are billed
	// per token.
	// The `realtime` endpoint type is for "real-time" endpoints that are billed per
	// hour of usage.
	EndpointType string `json:"endpoint_type"`
	// Provider The model provider for your deployment.
	// Note that some providers may support only certain task types.
	// Supported providers include:
	//
	// * `cohere` - available for `text_embedding` and `completion` task types
	// * `databricks` - available for `completion` task type only
	// * `meta` - available for `completion` task type only
	// * `microsoft_phi` - available for `completion` task type only
	// * `mistral` - available for `completion` task type only
	// * `openai` - available for `text_embedding` and `completion` task types
	Provider string `json:"provider"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Azure AI Studio.
	// By default, the `azureaistudio` service sets the number of requests allowed
	// per minute to 240.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Target The target URL of your Azure AI Studio model deployment.
	// This can be found on the overview page for your deployment in the management
	// section of your Azure AI Studio account.
	Target string `json:"target"`
}

AzureAiStudioServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L641-L683

func NewAzureAiStudioServiceSettings ¶

func NewAzureAiStudioServiceSettings() *AzureAiStudioServiceSettings

NewAzureAiStudioServiceSettings returns a AzureAiStudioServiceSettings.

func (*AzureAiStudioServiceSettings) AzureAiStudioServiceSettingsCaster ¶

func (s *AzureAiStudioServiceSettings) AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings

func (*AzureAiStudioServiceSettings) UnmarshalJSON ¶

func (s *AzureAiStudioServiceSettings) UnmarshalJSON(data []byte) error

type AzureAiStudioServiceSettingsVariant ¶

type AzureAiStudioServiceSettingsVariant interface {
	AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings
}

type AzureAiStudioTaskSettings ¶

type AzureAiStudioTaskSettings struct {
	// DoSample For a `completion` task, instruct the inference process to perform sampling.
	// It has no effect unless `temperature` or `top_p` is specified.
	DoSample *float32 `json:"do_sample,omitempty"`
	// MaxNewTokens For a `completion` task, provide a hint for the maximum number of output
	// tokens to be generated.
	MaxNewTokens *int `json:"max_new_tokens,omitempty"`
	// Temperature For a `completion` task, control the apparent creativity of generated
	// completions with a sampling temperature.
	// It must be a number in the range of 0.0 to 2.0.
	// It should not be used if `top_p` is specified.
	Temperature *float32 `json:"temperature,omitempty"`
	// TopP For a `completion` task, make the model consider the results of the tokens
	// with nucleus sampling probability.
	// It is an alternative value to `temperature` and must be a number in the range
	// of 0.0 to 2.0.
	// It should not be used if `temperature` is specified.
	TopP *float32 `json:"top_p,omitempty"`
	// User For a `text_embedding` task, specify the user issuing the request.
	// This information can be used for abuse detection.
	User *string `json:"user,omitempty"`
}

AzureAiStudioTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L685-L713

func NewAzureAiStudioTaskSettings ¶

func NewAzureAiStudioTaskSettings() *AzureAiStudioTaskSettings

NewAzureAiStudioTaskSettings returns a AzureAiStudioTaskSettings.

func (*AzureAiStudioTaskSettings) AzureAiStudioTaskSettingsCaster ¶

func (s *AzureAiStudioTaskSettings) AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings

func (*AzureAiStudioTaskSettings) UnmarshalJSON ¶

func (s *AzureAiStudioTaskSettings) UnmarshalJSON(data []byte) error

type AzureAiStudioTaskSettingsVariant ¶

type AzureAiStudioTaskSettingsVariant interface {
	AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings
}

type AzureOpenAIServiceSettings ¶

type AzureOpenAIServiceSettings struct {
	// ApiKey A valid API key for your Azure OpenAI account.
	// You must specify either `api_key` or `entra_id`.
	// If you do not provide either or you provide both, you will receive an error
	// when you try to create your model.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey *string `json:"api_key,omitempty"`
	// ApiVersion The Azure API version ID to use.
	// It is recommended to use the latest supported non-preview version.
	ApiVersion string `json:"api_version"`
	// DeploymentId The deployment name of your deployed models.
	// Your Azure OpenAI deployments can be found though the Azure OpenAI Studio
	// portal that is linked to your subscription.
	DeploymentId string `json:"deployment_id"`
	// EntraId A valid Microsoft Entra token.
	// You must specify either `api_key` or `entra_id`.
	// If you do not provide either or you provide both, you will receive an error
	// when you try to create your model.
	EntraId *string `json:"entra_id,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Azure.
	// The `azureopenai` service sets a default number of requests allowed per
	// minute depending on the task type.
	// For `text_embedding`, it is set to `1440`.
	// For `completion`, it is set to `120`.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// ResourceName The name of your Azure OpenAI resource.
	// You can find this from the list of resources in the Azure Portal for your
	// subscription.
	ResourceName string `json:"resource_name"`
}

AzureOpenAIServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L724-L769

func NewAzureOpenAIServiceSettings ¶

func NewAzureOpenAIServiceSettings() *AzureOpenAIServiceSettings

NewAzureOpenAIServiceSettings returns a AzureOpenAIServiceSettings.

func (*AzureOpenAIServiceSettings) AzureOpenAIServiceSettingsCaster ¶

func (s *AzureOpenAIServiceSettings) AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings

func (*AzureOpenAIServiceSettings) UnmarshalJSON ¶

func (s *AzureOpenAIServiceSettings) UnmarshalJSON(data []byte) error

type AzureOpenAIServiceSettingsVariant ¶

type AzureOpenAIServiceSettingsVariant interface {
	AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings
}

type AzureOpenAITaskSettings ¶

type AzureOpenAITaskSettings struct {
	// User For a `completion` or `text_embedding` task, specify the user issuing the
	// request.
	// This information can be used for abuse detection.
	User *string `json:"user,omitempty"`
}

AzureOpenAITaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L771-L777

func NewAzureOpenAITaskSettings ¶

func NewAzureOpenAITaskSettings() *AzureOpenAITaskSettings

NewAzureOpenAITaskSettings returns a AzureOpenAITaskSettings.

func (*AzureOpenAITaskSettings) AzureOpenAITaskSettingsCaster ¶

func (s *AzureOpenAITaskSettings) AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings

func (*AzureOpenAITaskSettings) UnmarshalJSON ¶

func (s *AzureOpenAITaskSettings) UnmarshalJSON(data []byte) error

type AzureOpenAITaskSettingsVariant ¶

type AzureOpenAITaskSettingsVariant interface {
	AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings
}

type AzureRepository ¶

type AzureRepository struct {
	// Settings The repository settings.
	Settings *AzureRepositorySettings `json:"settings,omitempty"`
	// Type The Azure repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

AzureRepository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L40-L50

func NewAzureRepository ¶

func NewAzureRepository() *AzureRepository

NewAzureRepository returns a AzureRepository.

func (*AzureRepository) AzureRepositoryCaster ¶

func (s *AzureRepository) AzureRepositoryCaster() *AzureRepository

func (AzureRepository) MarshalJSON ¶

func (s AzureRepository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*AzureRepository) RepositoryCaster ¶ added in v9.0.1

func (s *AzureRepository) RepositoryCaster() *Repository

func (*AzureRepository) UnmarshalJSON ¶

func (s *AzureRepository) UnmarshalJSON(data []byte) error

type AzureRepositorySettings ¶

type AzureRepositorySettings struct {
	// BasePath The path to the repository data within the container.
	// It defaults to the root directory.
	//
	// NOTE: Don't set `base_path` when configuring a snapshot repository for
	// Elastic Cloud Enterprise.
	// Elastic Cloud Enterprise automatically generates the `base_path` for each
	// deployment so that multiple deployments can share the same bucket.
	BasePath *string `json:"base_path,omitempty"`
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Client The name of the Azure repository client to use.
	Client *string `json:"client,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// Container The Azure container.
	Container *string `json:"container,omitempty"`
	// DeleteObjectsMaxSize The maxmimum batch size, between 1 and 256, used for `BlobBatch` requests.
	// Defaults to 256 which is the maximum number supported by the Azure blob batch
	// API.
	DeleteObjectsMaxSize *int `json:"delete_objects_max_size,omitempty"`
	// LocationMode Either `primary_only` or `secondary_only`.
	// Note that if you set it to `secondary_only`, it will force `readonly` to
	// `true`.
	LocationMode *string `json:"location_mode,omitempty"`
	// MaxConcurrentBatchDeletes The maximum number of concurrent batch delete requests that will be submitted
	// for any individual bulk delete with `BlobBatch`.
	// Note that the effective number of concurrent deletes is further limited by
	// the Azure client connection and event loop thread limits.
	// Defaults to 10, minimum is 1, maximum is 100.
	MaxConcurrentBatchDeletes *int `json:"max_concurrent_batch_deletes,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// Readonly If `true`, the repository is read-only.
	// The cluster can retrieve and restore snapshots from the repository but not
	// write to the repository or create snapshots in it.
	//
	// Only a cluster with write access can create snapshots in the repository.
	// All other clusters connected to the repository should have the `readonly`
	// parameter set to `true`.
	// If `false`, the cluster can write to the repository and create snapshots in
	// it.
	//
	// IMPORTANT: If you register the same snapshot repository with multiple
	// clusters, only one cluster should have write access to the repository.
	// Having multiple clusters write to the repository at the same time risks
	// corrupting the contents of the repository.
	Readonly *bool `json:"readonly,omitempty"`
}

AzureRepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L145-L196

func NewAzureRepositorySettings ¶

func NewAzureRepositorySettings() *AzureRepositorySettings

NewAzureRepositorySettings returns a AzureRepositorySettings.

func (*AzureRepositorySettings) AzureRepositorySettingsCaster ¶

func (s *AzureRepositorySettings) AzureRepositorySettingsCaster() *AzureRepositorySettings

func (*AzureRepositorySettings) UnmarshalJSON ¶

func (s *AzureRepositorySettings) UnmarshalJSON(data []byte) error

type AzureRepositorySettingsVariant ¶

type AzureRepositorySettingsVariant interface {
	AzureRepositorySettingsCaster() *AzureRepositorySettings
}

type AzureRepositoryVariant ¶

type AzureRepositoryVariant interface {
	AzureRepositoryCaster() *AzureRepository
}

type Base ¶

type Base struct {
	Available bool `json:"available"`
	Enabled   bool `json:"enabled"`
}

Base type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L27-L30

func NewBase ¶

func NewBase() *Base

NewBase returns a Base.

func (*Base) UnmarshalJSON ¶

func (s *Base) UnmarshalJSON(data []byte) error

type BasqueAnalyzer ¶

type BasqueAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

BasqueAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L86-L91

func NewBasqueAnalyzer ¶

func NewBasqueAnalyzer() *BasqueAnalyzer

NewBasqueAnalyzer returns a BasqueAnalyzer.

func (*BasqueAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *BasqueAnalyzer) AnalyzerCaster() *Analyzer

func (*BasqueAnalyzer) BasqueAnalyzerCaster ¶

func (s *BasqueAnalyzer) BasqueAnalyzerCaster() *BasqueAnalyzer

func (BasqueAnalyzer) MarshalJSON ¶

func (s BasqueAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BasqueAnalyzer) UnmarshalJSON ¶

func (s *BasqueAnalyzer) UnmarshalJSON(data []byte) error

type BasqueAnalyzerVariant ¶

type BasqueAnalyzerVariant interface {
	BasqueAnalyzerCaster() *BasqueAnalyzer
}

type BengaliAnalyzer ¶

type BengaliAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

BengaliAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L93-L98

func NewBengaliAnalyzer ¶

func NewBengaliAnalyzer() *BengaliAnalyzer

NewBengaliAnalyzer returns a BengaliAnalyzer.

func (*BengaliAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *BengaliAnalyzer) AnalyzerCaster() *Analyzer

func (*BengaliAnalyzer) BengaliAnalyzerCaster ¶

func (s *BengaliAnalyzer) BengaliAnalyzerCaster() *BengaliAnalyzer

func (BengaliAnalyzer) MarshalJSON ¶

func (s BengaliAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BengaliAnalyzer) UnmarshalJSON ¶

func (s *BengaliAnalyzer) UnmarshalJSON(data []byte) error

type BengaliAnalyzerVariant ¶

type BengaliAnalyzerVariant interface {
	BengaliAnalyzerCaster() *BengaliAnalyzer
}

type BengaliNormalizationTokenFilter ¶ added in v9.0.1

type BengaliNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

BengaliNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L490-L492

func NewBengaliNormalizationTokenFilter ¶ added in v9.0.1

func NewBengaliNormalizationTokenFilter() *BengaliNormalizationTokenFilter

NewBengaliNormalizationTokenFilter returns a BengaliNormalizationTokenFilter.

func (*BengaliNormalizationTokenFilter) BengaliNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *BengaliNormalizationTokenFilter) BengaliNormalizationTokenFilterCaster() *BengaliNormalizationTokenFilter

func (BengaliNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s BengaliNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BengaliNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *BengaliNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*BengaliNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *BengaliNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type BengaliNormalizationTokenFilterVariant ¶ added in v9.0.1

type BengaliNormalizationTokenFilterVariant interface {
	BengaliNormalizationTokenFilterCaster() *BengaliNormalizationTokenFilter
}

type BinaryProperty ¶

type BinaryProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

BinaryProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L56-L58

func NewBinaryProperty ¶

func NewBinaryProperty() *BinaryProperty

NewBinaryProperty returns a BinaryProperty.

func (*BinaryProperty) BinaryPropertyCaster ¶

func (s *BinaryProperty) BinaryPropertyCaster() *BinaryProperty

func (BinaryProperty) MarshalJSON ¶

func (s BinaryProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BinaryProperty) PropertyCaster ¶ added in v9.0.1

func (s *BinaryProperty) PropertyCaster() *Property

func (*BinaryProperty) UnmarshalJSON ¶

func (s *BinaryProperty) UnmarshalJSON(data []byte) error

type BinaryPropertyVariant ¶

type BinaryPropertyVariant interface {
	BinaryPropertyCaster() *BinaryProperty
}

type BlobDetails ¶

type BlobDetails struct {
	// Name The name of the blob.
	Name string `json:"name"`
	// Overwritten Indicates whether the blob was overwritten while the read operations were
	// ongoing.
	//
	//	/**
	Overwritten bool `json:"overwritten"`
	ReadEarly   bool `json:"read_early"`
	// ReadEnd The position, in bytes, at which read operations completed.
	ReadEnd int64 `json:"read_end"`
	// ReadStart The position, in bytes, at which read operations started.
	ReadStart int64 `json:"read_start"`
	// Reads A description of every read operation performed on the blob.
	Reads ReadBlobDetails `json:"reads"`
	// Size The size of the blob.
	Size ByteSize `json:"size"`
	// SizeBytes The size of the blob in bytes.
	SizeBytes int64 `json:"size_bytes"`
}

BlobDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284

func NewBlobDetails ¶

func NewBlobDetails() *BlobDetails

NewBlobDetails returns a BlobDetails.

func (*BlobDetails) UnmarshalJSON ¶

func (s *BlobDetails) UnmarshalJSON(data []byte) error

type Body ¶ added in v9.1.0

type Body struct {
	Id               int64  `json:"id"`
	Node             string `json:"node"`
	Query            string `json:"query"`
	RunningTimeNanos int64  `json:"running_time_nanos"`
	StartTimeMillis  int64  `json:"start_time_millis"`
}

Body type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/list_queries/ListQueriesResponse.ts#L24-L30

func NewBody ¶ added in v9.1.0

func NewBody() *Body

NewBody returns a Body.

func (*Body) UnmarshalJSON ¶ added in v9.1.0

func (s *Body) UnmarshalJSON(data []byte) error

type BoolQuery ¶

type BoolQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Filter The clause (query) must appear in matching documents.
	// However, unlike `must`, the score of the query will be ignored.
	Filter []Query `json:"filter,omitempty"`
	// MinimumShouldMatch Specifies the number or percentage of `should` clauses returned documents
	// must match.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Must The clause (query) must appear in matching documents and will contribute to
	// the score.
	Must []Query `json:"must,omitempty"`
	// MustNot The clause (query) must not appear in the matching documents.
	// Because scoring is ignored, a score of `0` is returned for all documents.
	MustNot    []Query `json:"must_not,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// Should The clause (query) should appear in the matching document.
	Should []Query `json:"should,omitempty"`
}

BoolQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L29-L56

func NewBoolQuery ¶

func NewBoolQuery() *BoolQuery

NewBoolQuery returns a BoolQuery.

func (*BoolQuery) BoolQueryCaster ¶

func (s *BoolQuery) BoolQueryCaster() *BoolQuery

func (*BoolQuery) UnmarshalJSON ¶

func (s *BoolQuery) UnmarshalJSON(data []byte) error

type BoolQueryVariant ¶

type BoolQueryVariant interface {
	BoolQueryCaster() *BoolQuery
}

type BooleanProperty ¶

type BooleanProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fielddata       *NumericFielddata              `json:"fielddata,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *bool                                            `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool  `json:"time_series_dimension,omitempty"`
	Type                string `json:"type,omitempty"`
}

BooleanProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L60-L75

func NewBooleanProperty ¶

func NewBooleanProperty() *BooleanProperty

NewBooleanProperty returns a BooleanProperty.

func (*BooleanProperty) BooleanPropertyCaster ¶

func (s *BooleanProperty) BooleanPropertyCaster() *BooleanProperty

func (BooleanProperty) MarshalJSON ¶

func (s BooleanProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BooleanProperty) PropertyCaster ¶ added in v9.0.1

func (s *BooleanProperty) PropertyCaster() *Property

func (*BooleanProperty) UnmarshalJSON ¶

func (s *BooleanProperty) UnmarshalJSON(data []byte) error

type BooleanPropertyVariant ¶

type BooleanPropertyVariant interface {
	BooleanPropertyCaster() *BooleanProperty
}

type BoostingQuery ¶

type BoostingQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Negative Query used to decrease the relevance score of matching documents.
	Negative Query `json:"negative"`
	// NegativeBoost Floating point number between 0 and 1.0 used to decrease the relevance scores
	// of documents matching the `negative` query.
	NegativeBoost Float64 `json:"negative_boost"`
	// Positive Any returned documents must match this query.
	Positive   Query   `json:"positive"`
	QueryName_ *string `json:"_name,omitempty"`
}

BoostingQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L58-L74

func NewBoostingQuery ¶

func NewBoostingQuery() *BoostingQuery

NewBoostingQuery returns a BoostingQuery.

func (*BoostingQuery) BoostingQueryCaster ¶

func (s *BoostingQuery) BoostingQueryCaster() *BoostingQuery

func (*BoostingQuery) UnmarshalJSON ¶

func (s *BoostingQuery) UnmarshalJSON(data []byte) error

type BoostingQueryVariant ¶

type BoostingQueryVariant interface {
	BoostingQueryCaster() *BoostingQuery
}

type BoxPlotAggregate ¶

type BoxPlotAggregate struct {
	Lower         Float64  `json:"lower"`
	LowerAsString *string  `json:"lower_as_string,omitempty"`
	Max           Float64  `json:"max"`
	MaxAsString   *string  `json:"max_as_string,omitempty"`
	Meta          Metadata `json:"meta,omitempty"`
	Min           Float64  `json:"min"`
	MinAsString   *string  `json:"min_as_string,omitempty"`
	Q1            Float64  `json:"q1"`
	Q1AsString    *string  `json:"q1_as_string,omitempty"`
	Q2            Float64  `json:"q2"`
	Q2AsString    *string  `json:"q2_as_string,omitempty"`
	Q3            Float64  `json:"q3"`
	Q3AsString    *string  `json:"q3_as_string,omitempty"`
	Upper         Float64  `json:"upper"`
	UpperAsString *string  `json:"upper_as_string,omitempty"`
}

BoxPlotAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L808-L827

func NewBoxPlotAggregate ¶

func NewBoxPlotAggregate() *BoxPlotAggregate

NewBoxPlotAggregate returns a BoxPlotAggregate.

func (*BoxPlotAggregate) UnmarshalJSON ¶

func (s *BoxPlotAggregate) UnmarshalJSON(data []byte) error

type BoxplotAggregation ¶

type BoxplotAggregation struct {
	// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
	// to `20 * compression`, enabling control of memory usage and approximation
	// error.
	Compression *Float64 `json:"compression,omitempty"`
	// ExecutionHint The default implementation of TDigest is optimized for performance, scaling
	// to millions or even billions of sample values while maintaining acceptable
	// accuracy levels (close to 1% relative error for millions of samples in some
	// cases).
	// To use an implementation optimized for accuracy, set this parameter to
	// high_accuracy instead.
	ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

BoxplotAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L57-L68

func NewBoxplotAggregation ¶

func NewBoxplotAggregation() *BoxplotAggregation

NewBoxplotAggregation returns a BoxplotAggregation.

func (*BoxplotAggregation) BoxplotAggregationCaster ¶

func (s *BoxplotAggregation) BoxplotAggregationCaster() *BoxplotAggregation

func (*BoxplotAggregation) UnmarshalJSON ¶

func (s *BoxplotAggregation) UnmarshalJSON(data []byte) error

type BoxplotAggregationVariant ¶

type BoxplotAggregationVariant interface {
	BoxplotAggregationCaster() *BoxplotAggregation
}

type BrazilianAnalyzer ¶

type BrazilianAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

BrazilianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L100-L104

func NewBrazilianAnalyzer ¶

func NewBrazilianAnalyzer() *BrazilianAnalyzer

NewBrazilianAnalyzer returns a BrazilianAnalyzer.

func (*BrazilianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *BrazilianAnalyzer) AnalyzerCaster() *Analyzer

func (*BrazilianAnalyzer) BrazilianAnalyzerCaster ¶

func (s *BrazilianAnalyzer) BrazilianAnalyzerCaster() *BrazilianAnalyzer

func (BrazilianAnalyzer) MarshalJSON ¶

func (s BrazilianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BrazilianAnalyzer) UnmarshalJSON ¶

func (s *BrazilianAnalyzer) UnmarshalJSON(data []byte) error

type BrazilianAnalyzerVariant ¶

type BrazilianAnalyzerVariant interface {
	BrazilianAnalyzerCaster() *BrazilianAnalyzer
}

type BrazilianStemTokenFilter ¶ added in v9.0.1

type BrazilianStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

BrazilianStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L494-L496

func NewBrazilianStemTokenFilter ¶ added in v9.0.1

func NewBrazilianStemTokenFilter() *BrazilianStemTokenFilter

NewBrazilianStemTokenFilter returns a BrazilianStemTokenFilter.

func (*BrazilianStemTokenFilter) BrazilianStemTokenFilterCaster ¶ added in v9.0.1

func (s *BrazilianStemTokenFilter) BrazilianStemTokenFilterCaster() *BrazilianStemTokenFilter

func (BrazilianStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s BrazilianStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BrazilianStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *BrazilianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*BrazilianStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *BrazilianStemTokenFilter) UnmarshalJSON(data []byte) error

type BrazilianStemTokenFilterVariant ¶ added in v9.0.1

type BrazilianStemTokenFilterVariant interface {
	BrazilianStemTokenFilterCaster() *BrazilianStemTokenFilter
}

type Breaker ¶

type Breaker struct {
	// EstimatedSize Estimated memory used for the operation.
	EstimatedSize *string `json:"estimated_size,omitempty"`
	// EstimatedSizeInBytes Estimated memory used, in bytes, for the operation.
	EstimatedSizeInBytes *int64 `json:"estimated_size_in_bytes,omitempty"`
	// LimitSize Memory limit for the circuit breaker.
	LimitSize *string `json:"limit_size,omitempty"`
	// LimitSizeInBytes Memory limit, in bytes, for the circuit breaker.
	LimitSizeInBytes *int64 `json:"limit_size_in_bytes,omitempty"`
	// Overhead A constant that all estimates for the circuit breaker are multiplied with to
	// calculate a final estimate.
	Overhead *float32 `json:"overhead,omitempty"`
	// Tripped Total number of times the circuit breaker has been triggered and prevented an
	// out of memory error.
	Tripped *float32 `json:"tripped,omitempty"`
}

Breaker type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L472-L497

func NewBreaker ¶

func NewBreaker() *Breaker

NewBreaker returns a Breaker.

func (*Breaker) UnmarshalJSON ¶

func (s *Breaker) UnmarshalJSON(data []byte) error

type BucketCorrelationAggregation ¶

type BucketCorrelationAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Function The correlation function to execute.
	Function BucketCorrelationFunction `json:"function"`
}

BucketCorrelationAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L139-L146

func NewBucketCorrelationAggregation ¶

func NewBucketCorrelationAggregation() *BucketCorrelationAggregation

NewBucketCorrelationAggregation returns a BucketCorrelationAggregation.

func (*BucketCorrelationAggregation) BucketCorrelationAggregationCaster ¶

func (s *BucketCorrelationAggregation) BucketCorrelationAggregationCaster() *BucketCorrelationAggregation

func (*BucketCorrelationAggregation) UnmarshalJSON ¶

func (s *BucketCorrelationAggregation) UnmarshalJSON(data []byte) error

type BucketCorrelationAggregationVariant ¶

type BucketCorrelationAggregationVariant interface {
	BucketCorrelationAggregationCaster() *BucketCorrelationAggregation
}

type BucketCorrelationFunction ¶

type BucketCorrelationFunction struct {
	// CountCorrelation The configuration to calculate a count correlation. This function is designed
	// for determining the correlation of a term value and a given metric.
	CountCorrelation BucketCorrelationFunctionCountCorrelation `json:"count_correlation"`
}

BucketCorrelationFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L148-L153

func NewBucketCorrelationFunction ¶

func NewBucketCorrelationFunction() *BucketCorrelationFunction

NewBucketCorrelationFunction returns a BucketCorrelationFunction.

func (*BucketCorrelationFunction) BucketCorrelationFunctionCaster ¶

func (s *BucketCorrelationFunction) BucketCorrelationFunctionCaster() *BucketCorrelationFunction

type BucketCorrelationFunctionCountCorrelation ¶

type BucketCorrelationFunctionCountCorrelation struct {
	// Indicator The indicator with which to correlate the configured `bucket_path` values.
	Indicator BucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"`
}

BucketCorrelationFunctionCountCorrelation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L155-L158

func NewBucketCorrelationFunctionCountCorrelation ¶

func NewBucketCorrelationFunctionCountCorrelation() *BucketCorrelationFunctionCountCorrelation

NewBucketCorrelationFunctionCountCorrelation returns a BucketCorrelationFunctionCountCorrelation.

func (*BucketCorrelationFunctionCountCorrelation) BucketCorrelationFunctionCountCorrelationCaster ¶

func (s *BucketCorrelationFunctionCountCorrelation) BucketCorrelationFunctionCountCorrelationCaster() *BucketCorrelationFunctionCountCorrelation

type BucketCorrelationFunctionCountCorrelationIndicator ¶

type BucketCorrelationFunctionCountCorrelationIndicator struct {
	// DocCount The total number of documents that initially created the expectations. It’s
	// required to be greater
	// than or equal to the sum of all values in the buckets_path as this is the
	// originating superset of data
	// to which the term values are correlated.
	DocCount int `json:"doc_count"`
	// Expectations An array of numbers with which to correlate the configured `bucket_path`
	// values.
	// The length of this value must always equal the number of buckets returned by
	// the `bucket_path`.
	Expectations []Float64 `json:"expectations"`
	// Fractions An array of fractions to use when averaging and calculating variance. This
	// should be used if
	// the pre-calculated data and the buckets_path have known gaps. The length of
	// fractions, if provided,
	// must equal expectations.
	Fractions []Float64 `json:"fractions,omitempty"`
}

BucketCorrelationFunctionCountCorrelationIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L160-L178

func NewBucketCorrelationFunctionCountCorrelationIndicator ¶

func NewBucketCorrelationFunctionCountCorrelationIndicator() *BucketCorrelationFunctionCountCorrelationIndicator

NewBucketCorrelationFunctionCountCorrelationIndicator returns a BucketCorrelationFunctionCountCorrelationIndicator.

func (*BucketCorrelationFunctionCountCorrelationIndicator) BucketCorrelationFunctionCountCorrelationIndicatorCaster ¶

func (s *BucketCorrelationFunctionCountCorrelationIndicator) BucketCorrelationFunctionCountCorrelationIndicatorCaster() *BucketCorrelationFunctionCountCorrelationIndicator

func (*BucketCorrelationFunctionCountCorrelationIndicator) UnmarshalJSON ¶

type BucketCorrelationFunctionCountCorrelationIndicatorVariant ¶

type BucketCorrelationFunctionCountCorrelationIndicatorVariant interface {
	BucketCorrelationFunctionCountCorrelationIndicatorCaster() *BucketCorrelationFunctionCountCorrelationIndicator
}

type BucketCorrelationFunctionCountCorrelationVariant ¶

type BucketCorrelationFunctionCountCorrelationVariant interface {
	BucketCorrelationFunctionCountCorrelationCaster() *BucketCorrelationFunctionCountCorrelation
}

type BucketCorrelationFunctionVariant ¶

type BucketCorrelationFunctionVariant interface {
	BucketCorrelationFunctionCaster() *BucketCorrelationFunction
}

type BucketInfluencer ¶

type BucketInfluencer struct {
	// AnomalyScore A normalized score between 0-100, which is calculated for each bucket
	// influencer. This score might be updated as
	// newer data is analyzed.
	AnomalyScore Float64 `json:"anomaly_score"`
	// BucketSpan The length of the bucket in seconds. This value matches the bucket span that
	// is specified in the job.
	BucketSpan int64 `json:"bucket_span"`
	// InfluencerFieldName The field name of the influencer.
	InfluencerFieldName string `json:"influencer_field_name"`
	// InitialAnomalyScore The score between 0-100 for each bucket influencer. This score is the initial
	// value that was calculated at the
	// time the bucket was processed.
	InitialAnomalyScore Float64 `json:"initial_anomaly_score"`
	// IsInterim If true, this is an interim result. In other words, the results are
	// calculated based on partial input data.
	IsInterim bool `json:"is_interim"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// Probability The probability that the bucket has this behavior, in the range 0 to 1. This
	// value can be held to a high precision
	// of over 300 decimal places, so the `anomaly_score` is provided as a
	// human-readable and friendly interpretation of
	// this.
	Probability Float64 `json:"probability"`
	// RawAnomalyScore Internal.
	RawAnomalyScore Float64 `json:"raw_anomaly_score"`
	// ResultType Internal. This value is always set to `bucket_influencer`.
	ResultType string `json:"result_type"`
	// Timestamp The start time of the bucket for which these results were calculated.
	Timestamp int64 `json:"timestamp"`
	// TimestampString The start time of the bucket for which these results were calculated.
	TimestampString DateTime `json:"timestamp_string,omitempty"`
}

BucketInfluencer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Bucket.ts#L79-L127

func NewBucketInfluencer ¶

func NewBucketInfluencer() *BucketInfluencer

NewBucketInfluencer returns a BucketInfluencer.

func (*BucketInfluencer) UnmarshalJSON ¶

func (s *BucketInfluencer) UnmarshalJSON(data []byte) error

type BucketKsAggregation ¶

type BucketKsAggregation struct {
	// Alternative A list of string values indicating which K-S test alternative to calculate.
	// The valid values
	// are: "greater", "less", "two_sided". This parameter is key for determining
	// the K-S statistic used
	// when calculating the K-S test. Default value is all possible alternative
	// hypotheses.
	Alternative []string `json:"alternative,omitempty"`
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Fractions A list of doubles indicating the distribution of the samples with which to
	// compare to the `buckets_path` results.
	// In typical usage this is the overall proportion of documents in each bucket,
	// which is compared with the actual
	// document proportions in each bucket from the sibling aggregation counts. The
	// default is to assume that overall
	// documents are uniformly distributed on these buckets, which they would be if
	// one used equal percentiles of a
	// metric to define the bucket end points.
	Fractions []Float64 `json:"fractions,omitempty"`
	// SamplingMethod Indicates the sampling methodology when calculating the K-S test. Note, this
	// is sampling of the returned values.
	// This determines the cumulative distribution function (CDF) points used
	// comparing the two samples. Default is
	// `upper_tail`, which emphasizes the upper end of the CDF points. Valid options
	// are: `upper_tail`, `uniform`,
	// and `lower_tail`.
	SamplingMethod *string `json:"sampling_method,omitempty"`
}

BucketKsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L103-L137

func NewBucketKsAggregation ¶

func NewBucketKsAggregation() *BucketKsAggregation

NewBucketKsAggregation returns a BucketKsAggregation.

func (*BucketKsAggregation) BucketKsAggregationCaster ¶

func (s *BucketKsAggregation) BucketKsAggregationCaster() *BucketKsAggregation

func (*BucketKsAggregation) UnmarshalJSON ¶

func (s *BucketKsAggregation) UnmarshalJSON(data []byte) error

type BucketKsAggregationVariant ¶

type BucketKsAggregationVariant interface {
	BucketKsAggregationCaster() *BucketKsAggregation
}

type BucketMetricValueAggregate ¶

type BucketMetricValueAggregate struct {
	Keys []string `json:"keys"`
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

BucketMetricValueAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L250-L253

func NewBucketMetricValueAggregate ¶

func NewBucketMetricValueAggregate() *BucketMetricValueAggregate

NewBucketMetricValueAggregate returns a BucketMetricValueAggregate.

func (*BucketMetricValueAggregate) UnmarshalJSON ¶

func (s *BucketMetricValueAggregate) UnmarshalJSON(data []byte) error

type BucketScriptAggregation ¶

type BucketScriptAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Script The script to run for this aggregation.
	Script *Script `json:"script,omitempty"`
}

BucketScriptAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L83-L91

func NewBucketScriptAggregation ¶

func NewBucketScriptAggregation() *BucketScriptAggregation

NewBucketScriptAggregation returns a BucketScriptAggregation.

func (*BucketScriptAggregation) BucketScriptAggregationCaster ¶

func (s *BucketScriptAggregation) BucketScriptAggregationCaster() *BucketScriptAggregation

func (*BucketScriptAggregation) UnmarshalJSON ¶

func (s *BucketScriptAggregation) UnmarshalJSON(data []byte) error

type BucketScriptAggregationVariant ¶

type BucketScriptAggregationVariant interface {
	BucketScriptAggregationCaster() *BucketScriptAggregation
}

type BucketSelectorAggregation ¶

type BucketSelectorAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Script The script to run for this aggregation.
	Script *Script `json:"script,omitempty"`
}

BucketSelectorAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L93-L101

func NewBucketSelectorAggregation ¶

func NewBucketSelectorAggregation() *BucketSelectorAggregation

NewBucketSelectorAggregation returns a BucketSelectorAggregation.

func (*BucketSelectorAggregation) BucketSelectorAggregationCaster ¶

func (s *BucketSelectorAggregation) BucketSelectorAggregationCaster() *BucketSelectorAggregation

func (*BucketSelectorAggregation) UnmarshalJSON ¶

func (s *BucketSelectorAggregation) UnmarshalJSON(data []byte) error

type BucketSelectorAggregationVariant ¶

type BucketSelectorAggregationVariant interface {
	BucketSelectorAggregationCaster() *BucketSelectorAggregation
}

type BucketSortAggregation ¶

type BucketSortAggregation struct {
	// From Buckets in positions prior to `from` will be truncated.
	From *int `json:"from,omitempty"`
	// GapPolicy The policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Size The number of buckets to return.
	// Defaults to all buckets of the parent aggregation.
	Size *int `json:"size,omitempty"`
	// Sort The list of fields to sort on.
	Sort []SortCombinations `json:"sort,omitempty"`
}

BucketSortAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L180-L204

func NewBucketSortAggregation ¶

func NewBucketSortAggregation() *BucketSortAggregation

NewBucketSortAggregation returns a BucketSortAggregation.

func (*BucketSortAggregation) BucketSortAggregationCaster ¶

func (s *BucketSortAggregation) BucketSortAggregationCaster() *BucketSortAggregation

func (*BucketSortAggregation) UnmarshalJSON ¶

func (s *BucketSortAggregation) UnmarshalJSON(data []byte) error

type BucketSortAggregationVariant ¶

type BucketSortAggregationVariant interface {
	BucketSortAggregationCaster() *BucketSortAggregation
}

type BucketSummary ¶

type BucketSummary struct {
	// AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers.
	// This is an overall, rate-limited
	// score for the job. All the anomaly records in the bucket contribute to this
	// score. This value might be updated as
	// new data is analyzed.
	AnomalyScore      Float64            `json:"anomaly_score"`
	BucketInfluencers []BucketInfluencer `json:"bucket_influencers"`
	// BucketSpan The length of the bucket in seconds. This value matches the bucket span that
	// is specified in the job.
	BucketSpan int64 `json:"bucket_span"`
	// EventCount The number of input data records processed in this bucket.
	EventCount int64 `json:"event_count"`
	// InitialAnomalyScore The maximum anomaly score for any of the bucket influencers. This is the
	// initial value that was calculated at the
	// time the bucket was processed.
	InitialAnomalyScore Float64 `json:"initial_anomaly_score"`
	// IsInterim If true, this is an interim result. In other words, the results are
	// calculated based on partial input data.
	IsInterim bool `json:"is_interim"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// ProcessingTimeMs The amount of time, in milliseconds, that it took to analyze the bucket
	// contents and calculate results.
	ProcessingTimeMs int64 `json:"processing_time_ms"`
	// ResultType Internal. This value is always set to bucket.
	ResultType string `json:"result_type"`
	// Timestamp The start time of the bucket. This timestamp uniquely identifies the bucket.
	// Events that occur exactly at the
	// timestamp of the bucket are included in the results for the bucket.
	Timestamp int64 `json:"timestamp"`
	// TimestampString The start time of the bucket. This timestamp uniquely identifies the bucket.
	// Events that occur exactly at the
	// timestamp of the bucket are included in the results for the bucket.
	TimestampString DateTime `json:"timestamp_string,omitempty"`
}

BucketSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Bucket.ts#L30-L77

func NewBucketSummary ¶

func NewBucketSummary() *BucketSummary

NewBucketSummary returns a BucketSummary.

func (*BucketSummary) UnmarshalJSON ¶

func (s *BucketSummary) UnmarshalJSON(data []byte) error

type BucketsAdjacencyMatrixBucket ¶

type BucketsAdjacencyMatrixBucket any

BucketsAdjacencyMatrixBucket holds the union for the following types:

map[string]AdjacencyMatrixBucket
[]AdjacencyMatrixBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsApiKeyQueryContainer ¶

type BucketsApiKeyQueryContainer any

BucketsApiKeyQueryContainer holds the union for the following types:

map[string]ApiKeyQueryContainer
[]ApiKeyQueryContainer

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsApiKeyQueryContainerVariant ¶

type BucketsApiKeyQueryContainerVariant interface {
	BucketsApiKeyQueryContainerCaster() *BucketsApiKeyQueryContainer
}

type BucketsCompositeBucket ¶

type BucketsCompositeBucket any

BucketsCompositeBucket holds the union for the following types:

map[string]CompositeBucket
[]CompositeBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsDateHistogramBucket ¶

type BucketsDateHistogramBucket any

BucketsDateHistogramBucket holds the union for the following types:

map[string]DateHistogramBucket
[]DateHistogramBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsDoubleTermsBucket ¶

type BucketsDoubleTermsBucket any

BucketsDoubleTermsBucket holds the union for the following types:

map[string]DoubleTermsBucket
[]DoubleTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsFiltersBucket ¶

type BucketsFiltersBucket any

BucketsFiltersBucket holds the union for the following types:

map[string]FiltersBucket
[]FiltersBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsFrequentItemSetsBucket ¶

type BucketsFrequentItemSetsBucket any

BucketsFrequentItemSetsBucket holds the union for the following types:

map[string]FrequentItemSetsBucket
[]FrequentItemSetsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsGeoHashGridBucket ¶

type BucketsGeoHashGridBucket any

BucketsGeoHashGridBucket holds the union for the following types:

map[string]GeoHashGridBucket
[]GeoHashGridBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsGeoHexGridBucket ¶

type BucketsGeoHexGridBucket any

BucketsGeoHexGridBucket holds the union for the following types:

map[string]GeoHexGridBucket
[]GeoHexGridBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsGeoTileGridBucket ¶

type BucketsGeoTileGridBucket any

BucketsGeoTileGridBucket holds the union for the following types:

map[string]GeoTileGridBucket
[]GeoTileGridBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsHistogramBucket ¶

type BucketsHistogramBucket any

BucketsHistogramBucket holds the union for the following types:

map[string]HistogramBucket
[]HistogramBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsIpPrefixBucket ¶

type BucketsIpPrefixBucket any

BucketsIpPrefixBucket holds the union for the following types:

map[string]IpPrefixBucket
[]IpPrefixBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsIpRangeBucket ¶

type BucketsIpRangeBucket any

BucketsIpRangeBucket holds the union for the following types:

map[string]IpRangeBucket
[]IpRangeBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsLongRareTermsBucket ¶

type BucketsLongRareTermsBucket any

BucketsLongRareTermsBucket holds the union for the following types:

map[string]LongRareTermsBucket
[]LongRareTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsLongTermsBucket ¶

type BucketsLongTermsBucket any

BucketsLongTermsBucket holds the union for the following types:

map[string]LongTermsBucket
[]LongTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsMultiTermsBucket ¶

type BucketsMultiTermsBucket any

BucketsMultiTermsBucket holds the union for the following types:

map[string]MultiTermsBucket
[]MultiTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsPathVariant ¶

type BucketsPathVariant interface {
	BucketsPathCaster() *BucketsPath
}

type BucketsQueryVariant ¶

type BucketsQueryVariant interface {
	BucketsQueryCaster() *BucketsQuery
}

type BucketsRangeBucket ¶

type BucketsRangeBucket any

BucketsRangeBucket holds the union for the following types:

map[string]RangeBucket
[]RangeBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsSignificantLongTermsBucket ¶

type BucketsSignificantLongTermsBucket any

BucketsSignificantLongTermsBucket holds the union for the following types:

map[string]SignificantLongTermsBucket
[]SignificantLongTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsSignificantStringTermsBucket ¶

type BucketsSignificantStringTermsBucket any

BucketsSignificantStringTermsBucket holds the union for the following types:

map[string]SignificantStringTermsBucket
[]SignificantStringTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsStringRareTermsBucket ¶

type BucketsStringRareTermsBucket any

BucketsStringRareTermsBucket holds the union for the following types:

map[string]StringRareTermsBucket
[]StringRareTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsStringTermsBucket ¶

type BucketsStringTermsBucket any

BucketsStringTermsBucket holds the union for the following types:

map[string]StringTermsBucket
[]StringTermsBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsTimeSeriesBucket ¶

type BucketsTimeSeriesBucket any

BucketsTimeSeriesBucket holds the union for the following types:

map[string]TimeSeriesBucket
[]TimeSeriesBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BucketsVariableWidthHistogramBucket ¶

type BucketsVariableWidthHistogramBucket any

BucketsVariableWidthHistogramBucket holds the union for the following types:

map[string]VariableWidthHistogramBucket
[]VariableWidthHistogramBucket

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L346-L355

type BuildInformation ¶

type BuildInformation struct {
	Date DateTime `json:"date"`
	Hash string   `json:"hash"`
}

BuildInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/info/types.ts#L24-L27

func NewBuildInformation ¶

func NewBuildInformation() *BuildInformation

NewBuildInformation returns a BuildInformation.

func (*BuildInformation) UnmarshalJSON ¶

func (s *BuildInformation) UnmarshalJSON(data []byte) error

type BulgarianAnalyzer ¶

type BulgarianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

BulgarianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L106-L111

func NewBulgarianAnalyzer ¶

func NewBulgarianAnalyzer() *BulgarianAnalyzer

NewBulgarianAnalyzer returns a BulgarianAnalyzer.

func (*BulgarianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *BulgarianAnalyzer) AnalyzerCaster() *Analyzer

func (*BulgarianAnalyzer) BulgarianAnalyzerCaster ¶

func (s *BulgarianAnalyzer) BulgarianAnalyzerCaster() *BulgarianAnalyzer

func (BulgarianAnalyzer) MarshalJSON ¶

func (s BulgarianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*BulgarianAnalyzer) UnmarshalJSON ¶

func (s *BulgarianAnalyzer) UnmarshalJSON(data []byte) error

type BulgarianAnalyzerVariant ¶

type BulgarianAnalyzerVariant interface {
	BulgarianAnalyzerCaster() *BulgarianAnalyzer
}

type BulkError ¶

type BulkError struct {
	// Count The number of errors
	Count int `json:"count"`
	// Details Details about the errors, keyed by role name
	Details map[string]ErrorCause `json:"details"`
}

BulkError type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Bulk.ts#L24-L33

func NewBulkError ¶

func NewBulkError() *BulkError

NewBulkError returns a BulkError.

func (*BulkError) UnmarshalJSON ¶

func (s *BulkError) UnmarshalJSON(data []byte) error

type BulkIndexByScrollFailure ¶

type BulkIndexByScrollFailure struct {
	Cause  ErrorCause `json:"cause"`
	Id     string     `json:"id"`
	Index  string     `json:"index"`
	Status int        `json:"status"`
}

BulkIndexByScrollFailure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Errors.ts#L60-L65

func NewBulkIndexByScrollFailure ¶

func NewBulkIndexByScrollFailure() *BulkIndexByScrollFailure

NewBulkIndexByScrollFailure returns a BulkIndexByScrollFailure.

func (*BulkIndexByScrollFailure) UnmarshalJSON ¶

func (s *BulkIndexByScrollFailure) UnmarshalJSON(data []byte) error

type BulkStats ¶

type BulkStats struct {
	AvgSize           ByteSize `json:"avg_size,omitempty"`
	AvgSizeInBytes    int64    `json:"avg_size_in_bytes"`
	AvgTime           Duration `json:"avg_time,omitempty"`
	AvgTimeInMillis   int64    `json:"avg_time_in_millis"`
	TotalOperations   int64    `json:"total_operations"`
	TotalSize         ByteSize `json:"total_size,omitempty"`
	TotalSizeInBytes  int64    `json:"total_size_in_bytes"`
	TotalTime         Duration `json:"total_time,omitempty"`
	TotalTimeInMillis int64    `json:"total_time_in_millis"`
}

BulkStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L71-L81

func NewBulkStats ¶

func NewBulkStats() *BulkStats

NewBulkStats returns a BulkStats.

func (*BulkStats) UnmarshalJSON ¶

func (s *BulkStats) UnmarshalJSON(data []byte) error

type ByteNumberProperty ¶

type ByteNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *byte                                            `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

ByteNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L187-L190

func NewByteNumberProperty ¶

func NewByteNumberProperty() *ByteNumberProperty

NewByteNumberProperty returns a ByteNumberProperty.

func (*ByteNumberProperty) ByteNumberPropertyCaster ¶

func (s *ByteNumberProperty) ByteNumberPropertyCaster() *ByteNumberProperty

func (ByteNumberProperty) MarshalJSON ¶

func (s ByteNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ByteNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *ByteNumberProperty) PropertyCaster() *Property

func (*ByteNumberProperty) UnmarshalJSON ¶

func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error

type ByteNumberPropertyVariant ¶

type ByteNumberPropertyVariant interface {
	ByteNumberPropertyCaster() *ByteNumberProperty
}

type ByteSizeVariant ¶

type ByteSizeVariant interface {
	ByteSizeCaster() *ByteSize
}

type BytesProcessor ¶

type BytesProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to convert.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

BytesProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L556-L572

func NewBytesProcessor ¶

func NewBytesProcessor() *BytesProcessor

NewBytesProcessor returns a BytesProcessor.

func (*BytesProcessor) BytesProcessorCaster ¶

func (s *BytesProcessor) BytesProcessorCaster() *BytesProcessor

func (*BytesProcessor) UnmarshalJSON ¶

func (s *BytesProcessor) UnmarshalJSON(data []byte) error

type BytesProcessorVariant ¶

type BytesProcessorVariant interface {
	BytesProcessorCaster() *BytesProcessor
}

type CCSStats ¶ added in v9.0.1

type CCSStats struct {
	// Clusters Contains remote cluster settings and metrics collected from them.
	// The keys are cluster names, and the values are per-cluster data.
	// Only present if `include_remotes` option is set to true.
	Clusters map[string]RemoteClusterInfo `json:"clusters,omitempty"`
	// Esql_ Information about ES|QL cross-cluster query usage.
	Esql_ *CCSUsageStats `json:"_esql,omitempty"`
	// Search_ Information about cross-cluster search usage.
	Search_ CCSUsageStats `json:"_search"`
}

CCSStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L769-L784

func NewCCSStats ¶ added in v9.0.1

func NewCCSStats() *CCSStats

NewCCSStats returns a CCSStats.

type CCSUsageClusterStats ¶ added in v9.0.1

type CCSUsageClusterStats struct {
	// Skipped The total number of cross-cluster search requests for which this cluster was
	// skipped.
	Skipped int `json:"skipped"`
	// Took Statistics about the time taken to execute requests against this cluster.
	Took CCSUsageTimeValue `json:"took"`
	// Total The total number of successful (not skipped) cross-cluster search requests
	// that were executed against this cluster. This may include requests where
	// partial results were returned, but not requests in which the cluster has been
	// skipped entirely.
	Total int `json:"total"`
}

CCSUsageClusterStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L855-L862

func NewCCSUsageClusterStats ¶ added in v9.0.1

func NewCCSUsageClusterStats() *CCSUsageClusterStats

NewCCSUsageClusterStats returns a CCSUsageClusterStats.

func (*CCSUsageClusterStats) UnmarshalJSON ¶ added in v9.0.1

func (s *CCSUsageClusterStats) UnmarshalJSON(data []byte) error

type CCSUsageStats ¶ added in v9.0.1

type CCSUsageStats struct {
	// Clients Statistics about the clients that executed cross-cluster search requests. The
	// keys are the names of the clients, and the values are the number of requests
	// that were executed by that client. Only known clients (such as `kibana` or
	// `elasticsearch`) are counted.
	Clients map[string]int `json:"clients"`
	// Clusters Statistics about the clusters that were queried in cross-cluster search
	// requests. The keys are cluster names, and the values are per-cluster
	// telemetry data. This also includes the local cluster itself, which uses the
	// name `(local)`.
	Clusters map[string]CCSUsageClusterStats `json:"clusters"`
	// FailureReasons Statistics about the reasons for cross-cluster search request failures. The
	// keys are the failure reason names and the values are the number of requests
	// that failed for that reason.
	FailureReasons map[string]int `json:"failure_reasons"`
	// Features The keys are the names of the search feature, and the values are the number
	// of requests that used that feature. Single request can use more than one
	// feature (e.g. both `async` and `wildcard`).
	Features map[string]int `json:"features"`
	// RemotesPerSearchAvg The average number of remote clusters that were queried in a single
	// cross-cluster search request.
	RemotesPerSearchAvg Float64 `json:"remotes_per_search_avg"`
	// RemotesPerSearchMax The maximum number of remote clusters that were queried in a single
	// cross-cluster search request.
	RemotesPerSearchMax int `json:"remotes_per_search_max"`
	// Skipped The total number of cross-cluster search requests (successful or failed) that
	// had at least one remote cluster skipped.
	Skipped int `json:"skipped"`
	// Success The total number of cross-cluster search requests that have been successfully
	// executed by the cluster.
	Success int `json:"success"`
	// Took Statistics about the time taken to execute cross-cluster search requests.
	Took CCSUsageTimeValue `json:"took"`
	// TookMrtFalse Statistics about the time taken to execute cross-cluster search requests for
	// which the `ccs_minimize_roundtrips` setting was set to `false`.
	TookMrtFalse *CCSUsageTimeValue `json:"took_mrt_false,omitempty"`
	// TookMrtTrue Statistics about the time taken to execute cross-cluster search requests for
	// which the `ccs_minimize_roundtrips` setting was set to `true`.
	TookMrtTrue *CCSUsageTimeValue `json:"took_mrt_true,omitempty"`
	// Total The total number of cross-cluster search requests that have been executed by
	// the cluster.
	Total int `json:"total"`
}

CCSUsageStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L819-L844

func NewCCSUsageStats ¶ added in v9.0.1

func NewCCSUsageStats() *CCSUsageStats

NewCCSUsageStats returns a CCSUsageStats.

func (*CCSUsageStats) UnmarshalJSON ¶ added in v9.0.1

func (s *CCSUsageStats) UnmarshalJSON(data []byte) error

type CCSUsageTimeValue ¶ added in v9.0.1

type CCSUsageTimeValue struct {
	// Avg The average time taken to execute a request, in milliseconds.
	Avg int64 `json:"avg"`
	// Max The maximum time taken to execute a request, in milliseconds.
	Max int64 `json:"max"`
	// P90 The 90th percentile of the time taken to execute requests, in milliseconds.
	P90 int64 `json:"p90"`
}

CCSUsageTimeValue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L846-L853

func NewCCSUsageTimeValue ¶ added in v9.0.1

func NewCCSUsageTimeValue() *CCSUsageTimeValue

NewCCSUsageTimeValue returns a CCSUsageTimeValue.

func (*CCSUsageTimeValue) UnmarshalJSON ¶ added in v9.0.1

func (s *CCSUsageTimeValue) UnmarshalJSON(data []byte) error

type CacheQueries ¶

type CacheQueries struct {
	Enabled bool `json:"enabled"`
}

CacheQueries type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L434-L436

func NewCacheQueries ¶

func NewCacheQueries() *CacheQueries

NewCacheQueries returns a CacheQueries.

func (*CacheQueries) CacheQueriesCaster ¶

func (s *CacheQueries) CacheQueriesCaster() *CacheQueries

func (*CacheQueries) UnmarshalJSON ¶

func (s *CacheQueries) UnmarshalJSON(data []byte) error

type CacheQueriesVariant ¶

type CacheQueriesVariant interface {
	CacheQueriesCaster() *CacheQueries
}

type CacheStats ¶

type CacheStats struct {
	Count              int    `json:"count"`
	Evictions          int    `json:"evictions"`
	Hits               int    `json:"hits"`
	HitsTimeInMillis   int64  `json:"hits_time_in_millis"`
	Misses             int    `json:"misses"`
	MissesTimeInMillis int64  `json:"misses_time_in_millis"`
	NodeId             string `json:"node_id"`
	SizeInBytes        int64  `json:"size_in_bytes"`
}

CacheStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/enrich/stats/types.ts#L38-L50

func NewCacheStats ¶

func NewCacheStats() *CacheStats

NewCacheStats returns a CacheStats.

func (*CacheStats) UnmarshalJSON ¶

func (s *CacheStats) UnmarshalJSON(data []byte) error

type Calendar ¶

type Calendar struct {
	// CalendarId A string that uniquely identifies a calendar.
	CalendarId string `json:"calendar_id"`
	// Description A description of the calendar.
	Description *string `json:"description,omitempty"`
	// JobIds An array of anomaly detection job identifiers.
	JobIds []string `json:"job_ids"`
}

Calendar type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/get_calendars/types.ts#L22-L29

func NewCalendar ¶

func NewCalendar() *Calendar

NewCalendar returns a Calendar.

func (*Calendar) UnmarshalJSON ¶

func (s *Calendar) UnmarshalJSON(data []byte) error

type CalendarEvent ¶

type CalendarEvent struct {
	// CalendarId A string that uniquely identifies a calendar.
	CalendarId *string `json:"calendar_id,omitempty"`
	// Description A description of the scheduled event.
	Description string `json:"description"`
	// EndTime The timestamp for the end of the scheduled event in milliseconds since the
	// epoch or ISO 8601 format.
	EndTime DateTime `json:"end_time"`
	EventId *string  `json:"event_id,omitempty"`
	// ForceTimeShift Shift time by this many seconds. For example adjust time for daylight savings
	// changes
	ForceTimeShift *int `json:"force_time_shift,omitempty"`
	// SkipModelUpdate When true the model will not be updated for this calendar period.
	SkipModelUpdate *bool `json:"skip_model_update,omitempty"`
	// SkipResult When true the model will not create results for this calendar period.
	SkipResult *bool `json:"skip_result,omitempty"`
	// StartTime The timestamp for the beginning of the scheduled event in milliseconds since
	// the epoch or ISO 8601 format.
	StartTime DateTime `json:"start_time"`
}

CalendarEvent type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/CalendarEvent.ts#L24-L44

func NewCalendarEvent ¶

func NewCalendarEvent() *CalendarEvent

NewCalendarEvent returns a CalendarEvent.

func (*CalendarEvent) CalendarEventCaster ¶

func (s *CalendarEvent) CalendarEventCaster() *CalendarEvent

func (*CalendarEvent) UnmarshalJSON ¶

func (s *CalendarEvent) UnmarshalJSON(data []byte) error

type CalendarEventVariant ¶

type CalendarEventVariant interface {
	CalendarEventCaster() *CalendarEvent
}

type CardinalityAggregate ¶

type CardinalityAggregate struct {
	Meta  Metadata `json:"meta,omitempty"`
	Value int64    `json:"value"`
}

CardinalityAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L140-L143

func NewCardinalityAggregate ¶

func NewCardinalityAggregate() *CardinalityAggregate

NewCardinalityAggregate returns a CardinalityAggregate.

func (*CardinalityAggregate) UnmarshalJSON ¶

func (s *CardinalityAggregate) UnmarshalJSON(data []byte) error

type CardinalityAggregation ¶

type CardinalityAggregation struct {
	// ExecutionHint Mechanism by which cardinality aggregations is run.
	ExecutionHint *cardinalityexecutionmode.CardinalityExecutionMode `json:"execution_hint,omitempty"`
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// PrecisionThreshold A unique count below which counts are expected to be close to accurate.
	// This allows to trade memory for accuracy.
	PrecisionThreshold *int    `json:"precision_threshold,omitempty"`
	Rehash             *bool   `json:"rehash,omitempty"`
	Script             *Script `json:"script,omitempty"`
}

CardinalityAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L93-L105

func NewCardinalityAggregation ¶

func NewCardinalityAggregation() *CardinalityAggregation

NewCardinalityAggregation returns a CardinalityAggregation.

func (*CardinalityAggregation) CardinalityAggregationCaster ¶

func (s *CardinalityAggregation) CardinalityAggregationCaster() *CardinalityAggregation

func (*CardinalityAggregation) UnmarshalJSON ¶

func (s *CardinalityAggregation) UnmarshalJSON(data []byte) error

type CardinalityAggregationVariant ¶

type CardinalityAggregationVariant interface {
	CardinalityAggregationCaster() *CardinalityAggregation
}

type CatComponentTemplate ¶

type CatComponentTemplate struct {
	AliasCount    string  `json:"alias_count"`
	IncludedIn    string  `json:"included_in"`
	MappingCount  string  `json:"mapping_count"`
	MetadataCount string  `json:"metadata_count"`
	Name          string  `json:"name"`
	SettingsCount string  `json:"settings_count"`
	Version       *string `json:"version,omitempty"`
}

CatComponentTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/component_templates/types.ts#L20-L28

func NewCatComponentTemplate ¶

func NewCatComponentTemplate() *CatComponentTemplate

NewCatComponentTemplate returns a CatComponentTemplate.

func (*CatComponentTemplate) UnmarshalJSON ¶

func (s *CatComponentTemplate) UnmarshalJSON(data []byte) error

type CatalanAnalyzer ¶

type CatalanAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

CatalanAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L113-L118

func NewCatalanAnalyzer ¶

func NewCatalanAnalyzer() *CatalanAnalyzer

NewCatalanAnalyzer returns a CatalanAnalyzer.

func (*CatalanAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *CatalanAnalyzer) AnalyzerCaster() *Analyzer

func (*CatalanAnalyzer) CatalanAnalyzerCaster ¶

func (s *CatalanAnalyzer) CatalanAnalyzerCaster() *CatalanAnalyzer

func (CatalanAnalyzer) MarshalJSON ¶

func (s CatalanAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CatalanAnalyzer) UnmarshalJSON ¶

func (s *CatalanAnalyzer) UnmarshalJSON(data []byte) error

type CatalanAnalyzerVariant ¶

type CatalanAnalyzerVariant interface {
	CatalanAnalyzerCaster() *CatalanAnalyzer
}

type CategorizationAnalyzer ¶

type CategorizationAnalyzer any

CategorizationAnalyzer holds the union for the following types:

string
CategorizationAnalyzerDefinition

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L181-L182

type CategorizationAnalyzerDefinition ¶

type CategorizationAnalyzerDefinition struct {
	// CharFilter One or more character filters. In addition to the built-in character filters,
	// other plugins can provide more character filters. If this property is not
	// specified, no character filters are applied prior to categorization. If you
	// are customizing some other aspect of the analyzer and you need to achieve the
	// equivalent of `categorization_filters` (which are not permitted when some
	// other aspect of the analyzer is customized), add them here as pattern replace
	// character filters.
	CharFilter []CharFilter `json:"char_filter,omitempty"`
	// Filter One or more token filters. In addition to the built-in token filters, other
	// plugins can provide more token filters. If this property is not specified, no
	// token filters are applied prior to categorization.
	Filter []TokenFilter `json:"filter,omitempty"`
	// Tokenizer The name or definition of the tokenizer to use after character filters are
	// applied. This property is compulsory if `categorization_analyzer` is
	// specified as an object. Machine learning provides a tokenizer called
	// `ml_standard` that tokenizes in a way that has been determined to produce
	// good categorization results on a variety of log file formats for logs in
	// English. If you want to use that tokenizer but change the character or token
	// filters, specify "tokenizer": "ml_standard" in your
	// `categorization_analyzer`. Additionally, the `ml_classic` tokenizer is
	// available, which tokenizes in the same way as the non-customizable tokenizer
	// in old versions of the product (before 6.2). `ml_classic` was the default
	// categorization tokenizer in versions 6.2 to 7.13, so if you need
	// categorization identical to the default for jobs created in these versions,
	// specify "tokenizer": "ml_classic" in your `categorization_analyzer`.
	Tokenizer Tokenizer `json:"tokenizer,omitempty"`
}

CategorizationAnalyzerDefinition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L184-L198

func NewCategorizationAnalyzerDefinition ¶

func NewCategorizationAnalyzerDefinition() *CategorizationAnalyzerDefinition

NewCategorizationAnalyzerDefinition returns a CategorizationAnalyzerDefinition.

func (*CategorizationAnalyzerDefinition) CategorizationAnalyzerCaster ¶ added in v9.0.1

func (s *CategorizationAnalyzerDefinition) CategorizationAnalyzerCaster() *CategorizationAnalyzer

func (*CategorizationAnalyzerDefinition) CategorizationAnalyzerDefinitionCaster ¶

func (s *CategorizationAnalyzerDefinition) CategorizationAnalyzerDefinitionCaster() *CategorizationAnalyzerDefinition

func (*CategorizationAnalyzerDefinition) UnmarshalJSON ¶

func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error

type CategorizationAnalyzerDefinitionVariant ¶

type CategorizationAnalyzerDefinitionVariant interface {
	CategorizationAnalyzerDefinitionCaster() *CategorizationAnalyzerDefinition
}

type CategorizationAnalyzerVariant ¶

type CategorizationAnalyzerVariant interface {
	CategorizationAnalyzerCaster() *CategorizationAnalyzer
}

type CategorizeTextAggregation ¶

type CategorizeTextAggregation struct {
	// CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized
	// before being categorized.
	// The syntax is very similar to that used to define the analyzer in the analyze
	// API. This property
	// cannot be used at the same time as `categorization_filters`.
	CategorizationAnalyzer CategorizeTextAnalyzer `json:"categorization_analyzer,omitempty"`
	// CategorizationFilters This property expects an array of regular expressions. The expressions are
	// used to filter out matching
	// sequences from the categorization field values. You can use this
	// functionality to fine tune the categorization
	// by excluding sequences from consideration when categories are defined. For
	// example, you can exclude SQL
	// statements that appear in your log files. This property cannot be used at the
	// same time as categorization_analyzer.
	// If you only want to define simple regular expression filters that are applied
	// prior to tokenization, setting
	// this property is the easiest method. If you also want to customize the
	// tokenizer or post-tokenization filtering,
	// use the categorization_analyzer property instead and include the filters as
	// pattern_replace character filters.
	CategorizationFilters []string `json:"categorization_filters,omitempty"`
	// Field The semi-structured text field to categorize.
	Field string `json:"field"`
	// MaxMatchedTokens The maximum number of token positions to match on before attempting to merge
	// categories. Larger
	// values will use more memory and create narrower categories. Max allowed value
	// is 100.
	MaxMatchedTokens *int `json:"max_matched_tokens,omitempty"`
	// MaxUniqueTokens The maximum number of unique tokens at any position up to max_matched_tokens.
	// Must be larger than 1.
	// Smaller values use less memory and create fewer categories. Larger values
	// will use more memory and
	// create narrower categories. Max allowed value is 100.
	MaxUniqueTokens *int `json:"max_unique_tokens,omitempty"`
	// MinDocCount The minimum number of documents in a bucket to be returned to the results.
	MinDocCount *int `json:"min_doc_count,omitempty"`
	// ShardMinDocCount The minimum number of documents in a bucket to be returned from the shard
	// before merging.
	ShardMinDocCount *int `json:"shard_min_doc_count,omitempty"`
	// ShardSize The number of categorization buckets to return from each shard before merging
	// all the results.
	ShardSize *int `json:"shard_size,omitempty"`
	// SimilarityThreshold The minimum percentage of tokens that must match for text to be added to the
	// category bucket. Must
	// be between 1 and 100. The larger the value the narrower the categories.
	// Larger values will increase memory
	// usage and create narrower categories.
	SimilarityThreshold *int `json:"similarity_threshold,omitempty"`
	// Size The number of buckets to return.
	Size *int `json:"size,omitempty"`
}

CategorizeTextAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1117-L1183

func NewCategorizeTextAggregation ¶

func NewCategorizeTextAggregation() *CategorizeTextAggregation

NewCategorizeTextAggregation returns a CategorizeTextAggregation.

func (*CategorizeTextAggregation) CategorizeTextAggregationCaster ¶

func (s *CategorizeTextAggregation) CategorizeTextAggregationCaster() *CategorizeTextAggregation

func (*CategorizeTextAggregation) UnmarshalJSON ¶

func (s *CategorizeTextAggregation) UnmarshalJSON(data []byte) error

type CategorizeTextAggregationVariant ¶

type CategorizeTextAggregationVariant interface {
	CategorizeTextAggregationCaster() *CategorizeTextAggregation
}

type CategorizeTextAnalyzer ¶

type CategorizeTextAnalyzer any

CategorizeTextAnalyzer holds the union for the following types:

string
CustomCategorizeTextAnalyzer

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1185-L1188

type CategorizeTextAnalyzerVariant ¶

type CategorizeTextAnalyzerVariant interface {
	CategorizeTextAnalyzerCaster() *CategorizeTextAnalyzer
}

type Category ¶

type Category struct {
	// CategoryId A unique identifier for the category. category_id is unique at the job level,
	// even when per-partition categorization is enabled.
	CategoryId uint64 `json:"category_id"`
	// Examples A list of examples of actual values that matched the category.
	Examples []string `json:"examples"`
	// GrokPattern [experimental] A Grok pattern that could be used in Logstash or an ingest
	// pipeline to extract fields from messages that match the category. This field
	// is experimental and may be changed or removed in a future release. The Grok
	// patterns that are found are not optimal, but are often a good starting point
	// for manual tweaking.
	GrokPattern *string `json:"grok_pattern,omitempty"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// MaxMatchingLength The maximum length of the fields that matched the category. The value is
	// increased by 10% to enable matching for similar fields that have not been
	// analyzed.
	MaxMatchingLength uint64 `json:"max_matching_length"`
	Mlcategory        string `json:"mlcategory"`
	// NumMatches The number of messages that have been matched by this category. This is only
	// guaranteed to have the latest accurate count after a job _flush or _close
	NumMatches *int64  `json:"num_matches,omitempty"`
	P          *string `json:"p,omitempty"`
	// PartitionFieldName If per-partition categorization is enabled, this property identifies the
	// field used to segment the categorization. It is not present when
	// per-partition categorization is disabled.
	PartitionFieldName *string `json:"partition_field_name,omitempty"`
	// PartitionFieldValue If per-partition categorization is enabled, this property identifies the
	// value of the partition_field_name for the category. It is not present when
	// per-partition categorization is disabled.
	PartitionFieldValue *string `json:"partition_field_value,omitempty"`
	// PreferredToCategories A list of category_id entries that this current category encompasses. Any new
	// message that is processed by the categorizer will match against this category
	// and not any of the categories in this list. This is only guaranteed to have
	// the latest accurate list of categories after a job _flush or _close
	PreferredToCategories []string `json:"preferred_to_categories,omitempty"`
	// Regex A regular expression that is used to search for values that match the
	// category.
	Regex      string `json:"regex"`
	ResultType string `json:"result_type"`
	// Terms A space separated list of the common tokens that are matched in values of the
	// category.
	Terms string `json:"terms"`
}

Category type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Category.ts#L23-L49

func NewCategory ¶

func NewCategory() *Category

NewCategory returns a Category.

func (*Category) UnmarshalJSON ¶

func (s *Category) UnmarshalJSON(data []byte) error

type Ccr ¶

type Ccr struct {
	AutoFollowPatternsCount int  `json:"auto_follow_patterns_count"`
	Available               bool `json:"available"`
	Enabled                 bool `json:"enabled"`
	FollowerIndicesCount    int  `json:"follower_indices_count"`
}

Ccr type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L344-L347

func NewCcr ¶

func NewCcr() *Ccr

NewCcr returns a Ccr.

func (*Ccr) UnmarshalJSON ¶

func (s *Ccr) UnmarshalJSON(data []byte) error

type CcrShardStats ¶

type CcrShardStats struct {
	// BytesRead The total of transferred bytes read from the leader.
	// This is only an estimate and does not account for compression if enabled.
	BytesRead int64 `json:"bytes_read"`
	// FailedReadRequests The number of failed reads.
	FailedReadRequests int64 `json:"failed_read_requests"`
	// FailedWriteRequests The number of failed bulk write requests on the follower.
	FailedWriteRequests int64       `json:"failed_write_requests"`
	FatalException      *ErrorCause `json:"fatal_exception,omitempty"`
	// FollowerAliasesVersion The index aliases version the follower is synced up to.
	FollowerAliasesVersion int64 `json:"follower_aliases_version"`
	// FollowerGlobalCheckpoint The current global checkpoint on the follower.
	// The difference between the `leader_global_checkpoint` and the
	// `follower_global_checkpoint` is an indication of how much the follower is
	// lagging the leader.
	FollowerGlobalCheckpoint int64 `json:"follower_global_checkpoint"`
	// FollowerIndex The name of the follower index.
	FollowerIndex string `json:"follower_index"`
	// FollowerMappingVersion The mapping version the follower is synced up to.
	FollowerMappingVersion int64 `json:"follower_mapping_version"`
	// FollowerMaxSeqNo The current maximum sequence number on the follower.
	FollowerMaxSeqNo int64 `json:"follower_max_seq_no"`
	// FollowerSettingsVersion The index settings version the follower is synced up to.
	FollowerSettingsVersion int64 `json:"follower_settings_version"`
	// LastRequestedSeqNo The starting sequence number of the last batch of operations requested from
	// the leader.
	LastRequestedSeqNo int64 `json:"last_requested_seq_no"`
	// LeaderGlobalCheckpoint The current global checkpoint on the leader known to the follower task.
	LeaderGlobalCheckpoint int64 `json:"leader_global_checkpoint"`
	// LeaderIndex The name of the index in the leader cluster being followed.
	LeaderIndex string `json:"leader_index"`
	// LeaderMaxSeqNo The current maximum sequence number on the leader known to the follower task.
	LeaderMaxSeqNo int64 `json:"leader_max_seq_no"`
	// OperationsRead The total number of operations read from the leader.
	OperationsRead int64 `json:"operations_read"`
	// OperationsWritten The number of operations written on the follower.
	OperationsWritten int64 `json:"operations_written"`
	// OutstandingReadRequests The number of active read requests from the follower.
	OutstandingReadRequests int `json:"outstanding_read_requests"`
	// OutstandingWriteRequests The number of active bulk write requests on the follower.
	OutstandingWriteRequests int `json:"outstanding_write_requests"`
	// ReadExceptions An array of objects representing failed reads.
	ReadExceptions []ReadException `json:"read_exceptions"`
	// RemoteCluster The remote cluster containing the leader index.
	RemoteCluster string `json:"remote_cluster"`
	// ShardId The numerical shard ID, with values from 0 to one less than the number of
	// replicas.
	ShardId int `json:"shard_id"`
	// SuccessfulReadRequests The number of successful fetches.
	SuccessfulReadRequests int64 `json:"successful_read_requests"`
	// SuccessfulWriteRequests The number of bulk write requests run on the follower.
	SuccessfulWriteRequests int64    `json:"successful_write_requests"`
	TimeSinceLastRead       Duration `json:"time_since_last_read,omitempty"`
	// TimeSinceLastReadMillis The number of milliseconds since a read request was sent to the leader.
	// When the follower is caught up to the leader, this number will increase up to
	// the configured `read_poll_timeout` at which point another read request will
	// be sent to the leader.
	TimeSinceLastReadMillis int64    `json:"time_since_last_read_millis"`
	TotalReadRemoteExecTime Duration `json:"total_read_remote_exec_time,omitempty"`
	// TotalReadRemoteExecTimeMillis The total time reads spent running on the remote cluster.
	TotalReadRemoteExecTimeMillis int64    `json:"total_read_remote_exec_time_millis"`
	TotalReadTime                 Duration `json:"total_read_time,omitempty"`
	// TotalReadTimeMillis The total time reads were outstanding, measured from the time a read was sent
	// to the leader to the time a reply was returned to the follower.
	TotalReadTimeMillis int64    `json:"total_read_time_millis"`
	TotalWriteTime      Duration `json:"total_write_time,omitempty"`
	// TotalWriteTimeMillis The total time spent writing on the follower.
	TotalWriteTimeMillis int64 `json:"total_write_time_millis"`
	// WriteBufferOperationCount The number of write operations queued on the follower.
	WriteBufferOperationCount int64 `json:"write_buffer_operation_count"`
	// WriteBufferSizeInBytes The total number of bytes of operations currently queued for writing.
	WriteBufferSizeInBytes ByteSize `json:"write_buffer_size_in_bytes"`
}

CcrShardStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/_types/FollowIndexStats.ts#L37-L109

func NewCcrShardStats ¶

func NewCcrShardStats() *CcrShardStats

NewCcrShardStats returns a CcrShardStats.

func (*CcrShardStats) UnmarshalJSON ¶

func (s *CcrShardStats) UnmarshalJSON(data []byte) error

type CertificateInformation ¶

type CertificateInformation struct {
	// Alias If the path refers to a container file (a jks keystore, or a PKCS#12 file),
	// it is the alias of the certificate.
	// Otherwise, it is null.
	Alias *string `json:"alias,omitempty"`
	// Expiry The ISO formatted date of the certificate's expiry (not-after) date.
	Expiry DateTime `json:"expiry"`
	// Format The format of the file.
	// Valid values include `jks`, `PKCS12`, and `PEM`.
	Format string `json:"format"`
	// HasPrivateKey Indicates whether Elasticsearch has access to the private key for this
	// certificate.
	HasPrivateKey bool `json:"has_private_key"`
	// Issuer The Distinguished Name of the certificate's issuer.
	Issuer *string `json:"issuer,omitempty"`
	// Path The path to the certificate, as configured in the `elasticsearch.yml` file.
	Path string `json:"path"`
	// SerialNumber The hexadecimal representation of the certificate's serial number.
	SerialNumber string `json:"serial_number"`
	// SubjectDn The Distinguished Name of the certificate's subject.
	SubjectDn string `json:"subject_dn"`
}

CertificateInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ssl/certificates/types.ts#L22-L57

func NewCertificateInformation ¶

func NewCertificateInformation() *CertificateInformation

NewCertificateInformation returns a CertificateInformation.

func (*CertificateInformation) UnmarshalJSON ¶

func (s *CertificateInformation) UnmarshalJSON(data []byte) error

type Cgroup ¶

type Cgroup struct {
	// Cpu Contains statistics about `cpu` control group for the node.
	Cpu *CgroupCpu `json:"cpu,omitempty"`
	// Cpuacct Contains statistics about `cpuacct` control group for the node.
	Cpuacct *CpuAcct `json:"cpuacct,omitempty"`
	// Memory Contains statistics about the memory control group for the node.
	Memory *CgroupMemory `json:"memory,omitempty"`
}

Cgroup type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L499-L512

func NewCgroup ¶

func NewCgroup() *Cgroup

NewCgroup returns a Cgroup.

type CgroupCpu ¶

type CgroupCpu struct {
	// CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same
	// cgroup as the Elasticsearch process should have their access to CPU resources
	// reallocated.
	CfsPeriodMicros *int `json:"cfs_period_micros,omitempty"`
	// CfsQuotaMicros The total amount of time, in microseconds, for which all tasks in the same
	// cgroup as the Elasticsearch process can run during one period
	// `cfs_period_micros`.
	CfsQuotaMicros *int `json:"cfs_quota_micros,omitempty"`
	// ControlGroup The `cpu` control group to which the Elasticsearch process belongs.
	ControlGroup *string `json:"control_group,omitempty"`
	// Stat Contains CPU statistics for the node.
	Stat *CgroupCpuStat `json:"stat,omitempty"`
}

CgroupCpu type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L525-L542

func NewCgroupCpu ¶

func NewCgroupCpu() *CgroupCpu

NewCgroupCpu returns a CgroupCpu.

func (*CgroupCpu) UnmarshalJSON ¶

func (s *CgroupCpu) UnmarshalJSON(data []byte) error

type CgroupCpuStat ¶

type CgroupCpuStat struct {
	// NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that
	// have elapsed.
	NumberOfElapsedPeriods *int64 `json:"number_of_elapsed_periods,omitempty"`
	// NumberOfTimesThrottled The number of times all tasks in the same cgroup as the Elasticsearch process
	// have been throttled.
	NumberOfTimesThrottled *int64 `json:"number_of_times_throttled,omitempty"`
	// TimeThrottledNanos The total amount of time, in nanoseconds, for which all tasks in the same
	// cgroup as the Elasticsearch process have been throttled.
	TimeThrottledNanos *int64 `json:"time_throttled_nanos,omitempty"`
}

CgroupCpuStat type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L544-L557

func NewCgroupCpuStat ¶

func NewCgroupCpuStat() *CgroupCpuStat

NewCgroupCpuStat returns a CgroupCpuStat.

func (*CgroupCpuStat) UnmarshalJSON ¶

func (s *CgroupCpuStat) UnmarshalJSON(data []byte) error

type CgroupMemory ¶

type CgroupMemory struct {
	// ControlGroup The `memory` control group to which the Elasticsearch process belongs.
	ControlGroup *string `json:"control_group,omitempty"`
	// LimitInBytes The maximum amount of user memory (including file cache) allowed for all
	// tasks in the same cgroup as the Elasticsearch process.
	// This value can be too big to store in a `long`, so is returned as a string so
	// that the value returned can exactly match what the underlying operating
	// system interface returns.
	// Any value that is too large to parse into a `long` almost certainly means no
	// limit has been set for the cgroup.
	LimitInBytes *string `json:"limit_in_bytes,omitempty"`
	// UsageInBytes The total current memory usage by processes in the cgroup, in bytes, by all
	// tasks in the same cgroup as the Elasticsearch process.
	// This value is stored as a string for consistency with `limit_in_bytes`.
	UsageInBytes *string `json:"usage_in_bytes,omitempty"`
}

CgroupMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L559-L575

func NewCgroupMemory ¶

func NewCgroupMemory() *CgroupMemory

NewCgroupMemory returns a CgroupMemory.

func (*CgroupMemory) UnmarshalJSON ¶

func (s *CgroupMemory) UnmarshalJSON(data []byte) error

type ChainInput ¶

type ChainInput struct {
	Inputs []map[string]WatcherInput `json:"inputs"`
}

ChainInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L35-L37

func NewChainInput ¶

func NewChainInput() *ChainInput

NewChainInput returns a ChainInput.

func (*ChainInput) ChainInputCaster ¶

func (s *ChainInput) ChainInputCaster() *ChainInput

type ChainInputVariant ¶

type ChainInputVariant interface {
	ChainInputCaster() *ChainInput
}

type CharFilterDefinition ¶

type CharFilterDefinition any

CharFilterDefinition holds the union for the following types:

HtmlStripCharFilter
MappingCharFilter
PatternReplaceCharFilter
IcuNormalizationCharFilter
KuromojiIterationMarkCharFilter

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/char_filters.ts#L35-L44

type CharFilterDefinitionVariant ¶

type CharFilterDefinitionVariant interface {
	CharFilterDefinitionCaster() *CharFilterDefinition
}

type CharFilterDetail ¶

type CharFilterDetail struct {
	FilteredText []string `json:"filtered_text"`
	Name         string   `json:"name"`
}

CharFilterDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L46-L49

func NewCharFilterDetail ¶

func NewCharFilterDetail() *CharFilterDetail

NewCharFilterDetail returns a CharFilterDetail.

func (*CharFilterDetail) UnmarshalJSON ¶

func (s *CharFilterDetail) UnmarshalJSON(data []byte) error

type CharFilterTypes ¶

type CharFilterTypes struct {
	// AnalyzerTypes Contains statistics about analyzer types used in selected nodes.
	AnalyzerTypes []FieldTypes `json:"analyzer_types"`
	// BuiltInAnalyzers Contains statistics about built-in analyzers used in selected nodes.
	BuiltInAnalyzers []FieldTypes `json:"built_in_analyzers"`
	// BuiltInCharFilters Contains statistics about built-in character filters used in selected nodes.
	BuiltInCharFilters []FieldTypes `json:"built_in_char_filters"`
	// BuiltInFilters Contains statistics about built-in token filters used in selected nodes.
	BuiltInFilters []FieldTypes `json:"built_in_filters"`
	// BuiltInTokenizers Contains statistics about built-in tokenizers used in selected nodes.
	BuiltInTokenizers []FieldTypes `json:"built_in_tokenizers"`
	// CharFilterTypes Contains statistics about character filter types used in selected nodes.
	CharFilterTypes []FieldTypes `json:"char_filter_types"`
	// FilterTypes Contains statistics about token filter types used in selected nodes.
	FilterTypes []FieldTypes `json:"filter_types"`
	// Synonyms Contains statistics about synonyms types used in selected nodes.
	Synonyms map[string]SynonymsStats `json:"synonyms"`
	// TokenizerTypes Contains statistics about tokenizer types used in selected nodes.
	TokenizerTypes []FieldTypes `json:"tokenizer_types"`
}

CharFilterTypes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L315-L352

func NewCharFilterTypes ¶

func NewCharFilterTypes() *CharFilterTypes

NewCharFilterTypes returns a CharFilterTypes.

type CharFilterVariant ¶

type CharFilterVariant interface {
	CharFilterCaster() *CharFilter
}

type CharGroupTokenizer ¶

type CharGroupTokenizer struct {
	MaxTokenLength  *int     `json:"max_token_length,omitempty"`
	TokenizeOnChars []string `json:"tokenize_on_chars"`
	Type            string   `json:"type,omitempty"`
	Version         *string  `json:"version,omitempty"`
}

CharGroupTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L31-L38

func NewCharGroupTokenizer ¶

func NewCharGroupTokenizer() *CharGroupTokenizer

NewCharGroupTokenizer returns a CharGroupTokenizer.

func (*CharGroupTokenizer) CharGroupTokenizerCaster ¶

func (s *CharGroupTokenizer) CharGroupTokenizerCaster() *CharGroupTokenizer

func (CharGroupTokenizer) MarshalJSON ¶

func (s CharGroupTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CharGroupTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *CharGroupTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*CharGroupTokenizer) UnmarshalJSON ¶

func (s *CharGroupTokenizer) UnmarshalJSON(data []byte) error

type CharGroupTokenizerVariant ¶

type CharGroupTokenizerVariant interface {
	CharGroupTokenizerCaster() *CharGroupTokenizer
}

type CheckpointStats ¶

type CheckpointStats struct {
	Checkpoint           int64              `json:"checkpoint"`
	CheckpointProgress   *TransformProgress `json:"checkpoint_progress,omitempty"`
	TimeUpperBound       DateTime           `json:"time_upper_bound,omitempty"`
	TimeUpperBoundMillis *int64             `json:"time_upper_bound_millis,omitempty"`
	Timestamp            DateTime           `json:"timestamp,omitempty"`
	TimestampMillis      *int64             `json:"timestamp_millis,omitempty"`
}

CheckpointStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L93-L100

func NewCheckpointStats ¶

func NewCheckpointStats() *CheckpointStats

NewCheckpointStats returns a CheckpointStats.

func (*CheckpointStats) UnmarshalJSON ¶

func (s *CheckpointStats) UnmarshalJSON(data []byte) error

type Checkpointing ¶

type Checkpointing struct {
	ChangesLastDetectedAt       *int64           `json:"changes_last_detected_at,omitempty"`
	ChangesLastDetectedAtString DateTime         `json:"changes_last_detected_at_string,omitempty"`
	Last                        CheckpointStats  `json:"last"`
	LastSearchTime              *int64           `json:"last_search_time,omitempty"`
	LastSearchTimeString        DateTime         `json:"last_search_time_string,omitempty"`
	Next                        *CheckpointStats `json:"next,omitempty"`
	OperationsBehind            *int64           `json:"operations_behind,omitempty"`
}

Checkpointing type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L102-L110

func NewCheckpointing ¶

func NewCheckpointing() *Checkpointing

NewCheckpointing returns a Checkpointing.

func (*Checkpointing) UnmarshalJSON ¶

func (s *Checkpointing) UnmarshalJSON(data []byte) error

type ChiSquareHeuristic ¶

type ChiSquareHeuristic struct {
	// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
	// different set of documents that you want to compare to.
	BackgroundIsSuperset bool `json:"background_is_superset"`
	// IncludeNegatives Set to `false` to filter out the terms that appear less often in the subset
	// than in documents outside the subset.
	IncludeNegatives bool `json:"include_negatives"`
}

ChiSquareHeuristic type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L782-L791

func NewChiSquareHeuristic ¶

func NewChiSquareHeuristic() *ChiSquareHeuristic

NewChiSquareHeuristic returns a ChiSquareHeuristic.

func (*ChiSquareHeuristic) ChiSquareHeuristicCaster ¶

func (s *ChiSquareHeuristic) ChiSquareHeuristicCaster() *ChiSquareHeuristic

func (*ChiSquareHeuristic) UnmarshalJSON ¶

func (s *ChiSquareHeuristic) UnmarshalJSON(data []byte) error

type ChiSquareHeuristicVariant ¶

type ChiSquareHeuristicVariant interface {
	ChiSquareHeuristicCaster() *ChiSquareHeuristic
}

type ChildrenAggregate ¶

type ChildrenAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

ChildrenAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L890-L894

func NewChildrenAggregate ¶

func NewChildrenAggregate() *ChildrenAggregate

NewChildrenAggregate returns a ChildrenAggregate.

func (ChildrenAggregate) MarshalJSON ¶

func (s ChildrenAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ChildrenAggregate) UnmarshalJSON ¶

func (s *ChildrenAggregate) UnmarshalJSON(data []byte) error

type ChildrenAggregation ¶

type ChildrenAggregation struct {
	// Type The child type that should be selected.
	Type *string `json:"type,omitempty"`
}

ChildrenAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L121-L126

func NewChildrenAggregation ¶

func NewChildrenAggregation() *ChildrenAggregation

NewChildrenAggregation returns a ChildrenAggregation.

func (*ChildrenAggregation) ChildrenAggregationCaster ¶

func (s *ChildrenAggregation) ChildrenAggregationCaster() *ChildrenAggregation

func (*ChildrenAggregation) UnmarshalJSON ¶

func (s *ChildrenAggregation) UnmarshalJSON(data []byte) error

type ChildrenAggregationVariant ¶

type ChildrenAggregationVariant interface {
	ChildrenAggregationCaster() *ChildrenAggregation
}

type ChineseAnalyzer ¶

type ChineseAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

ChineseAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L120-L124

func NewChineseAnalyzer ¶

func NewChineseAnalyzer() *ChineseAnalyzer

NewChineseAnalyzer returns a ChineseAnalyzer.

func (*ChineseAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *ChineseAnalyzer) AnalyzerCaster() *Analyzer

func (*ChineseAnalyzer) ChineseAnalyzerCaster ¶

func (s *ChineseAnalyzer) ChineseAnalyzerCaster() *ChineseAnalyzer

func (ChineseAnalyzer) MarshalJSON ¶

func (s ChineseAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ChineseAnalyzer) UnmarshalJSON ¶

func (s *ChineseAnalyzer) UnmarshalJSON(data []byte) error

type ChineseAnalyzerVariant ¶

type ChineseAnalyzerVariant interface {
	ChineseAnalyzerCaster() *ChineseAnalyzer
}

type ChunkingConfig ¶

type ChunkingConfig struct {
	// Mode If the mode is `auto`, the chunk size is dynamically calculated;
	// this is the recommended value when the datafeed does not use aggregations.
	// If the mode is `manual`, chunking is applied according to the specified
	// `time_span`;
	// use this mode when the datafeed uses aggregations. If the mode is `off`, no
	// chunking is applied.
	Mode chunkingmode.ChunkingMode `json:"mode"`
	// TimeSpan The time span that each search will be querying. This setting is applicable
	// only when the `mode` is set to `manual`.
	TimeSpan Duration `json:"time_span,omitempty"`
}

ChunkingConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L251-L264

func NewChunkingConfig ¶

func NewChunkingConfig() *ChunkingConfig

NewChunkingConfig returns a ChunkingConfig.

func (*ChunkingConfig) ChunkingConfigCaster ¶

func (s *ChunkingConfig) ChunkingConfigCaster() *ChunkingConfig

func (*ChunkingConfig) UnmarshalJSON ¶

func (s *ChunkingConfig) UnmarshalJSON(data []byte) error

type ChunkingConfigVariant ¶

type ChunkingConfigVariant interface {
	ChunkingConfigCaster() *ChunkingConfig
}

type ChunkingSettings ¶ added in v9.1.0

type ChunkingSettings struct {
	// MaxChunkSize The maximum size of a chunk in words.
	// This value cannot be higher than `300` or lower than `20` (for `sentence`
	// strategy) or `10` (for `word` strategy).
	MaxChunkSize int `json:"max_chunk_size"`
	// Overlap The number of overlapping words for chunks.
	// It is applicable only to a `word` chunking strategy.
	// This value cannot be higher than half the `max_chunk_size` value.
	Overlap *int `json:"overlap,omitempty"`
	// SentenceOverlap The number of overlapping sentences for chunks.
	// It is applicable only for a `sentence` chunking strategy.
	// It can be either `1` or `0`.
	SentenceOverlap *int `json:"sentence_overlap,omitempty"`
	// Strategy The chunking strategy: `sentence` or `word`.
	Strategy string `json:"strategy"`
}

ChunkingSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/ChunkingSettings.ts#L24-L32

func NewChunkingSettings ¶ added in v9.1.0

func NewChunkingSettings() *ChunkingSettings

NewChunkingSettings returns a ChunkingSettings.

func (*ChunkingSettings) ChunkingSettingsCaster ¶ added in v9.1.0

func (s *ChunkingSettings) ChunkingSettingsCaster() *ChunkingSettings

func (*ChunkingSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *ChunkingSettings) UnmarshalJSON(data []byte) error

type ChunkingSettingsVariant ¶ added in v9.1.0

type ChunkingSettingsVariant interface {
	ChunkingSettingsCaster() *ChunkingSettings
}

type CircleProcessor ¶

type CircleProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// ErrorDistance The difference between the resulting inscribed distance from center to side
	// and the circle’s radius (measured in meters for `geo_shape`, unit-less for
	// `shape`).
	ErrorDistance Float64 `json:"error_distance"`
	// Field The field to interpret as a circle. Either a string in WKT format or a map
	// for GeoJSON.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// ShapeType Which field mapping type is to be used when processing the circle:
	// `geo_shape` or `shape`.
	ShapeType shapetype.ShapeType `json:"shape_type"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the polygon shape to
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

CircleProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L574-L597

func NewCircleProcessor ¶

func NewCircleProcessor() *CircleProcessor

NewCircleProcessor returns a CircleProcessor.

func (*CircleProcessor) CircleProcessorCaster ¶

func (s *CircleProcessor) CircleProcessorCaster() *CircleProcessor

func (*CircleProcessor) UnmarshalJSON ¶

func (s *CircleProcessor) UnmarshalJSON(data []byte) error

type CircleProcessorVariant ¶

type CircleProcessorVariant interface {
	CircleProcessorCaster() *CircleProcessor
}

type CjkAnalyzer ¶

type CjkAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

CjkAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L126-L130

func NewCjkAnalyzer ¶

func NewCjkAnalyzer() *CjkAnalyzer

NewCjkAnalyzer returns a CjkAnalyzer.

func (*CjkAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *CjkAnalyzer) AnalyzerCaster() *Analyzer

func (*CjkAnalyzer) CjkAnalyzerCaster ¶

func (s *CjkAnalyzer) CjkAnalyzerCaster() *CjkAnalyzer

func (CjkAnalyzer) MarshalJSON ¶

func (s CjkAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CjkAnalyzer) UnmarshalJSON ¶

func (s *CjkAnalyzer) UnmarshalJSON(data []byte) error

type CjkAnalyzerVariant ¶

type CjkAnalyzerVariant interface {
	CjkAnalyzerCaster() *CjkAnalyzer
}

type CjkBigramTokenFilter ¶ added in v9.0.1

type CjkBigramTokenFilter struct {
	// IgnoredScripts Array of character scripts for which to disable bigrams.
	IgnoredScripts []cjkbigramignoredscript.CjkBigramIgnoredScript `json:"ignored_scripts,omitempty"`
	// OutputUnigrams If `true`, emit tokens in both bigram and unigram form. If `false`, a CJK
	// character is output in unigram form when it has no adjacent characters.
	// Defaults to `false`.
	OutputUnigrams *bool   `json:"output_unigrams,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

CjkBigramTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L466-L472

func NewCjkBigramTokenFilter ¶ added in v9.0.1

func NewCjkBigramTokenFilter() *CjkBigramTokenFilter

NewCjkBigramTokenFilter returns a CjkBigramTokenFilter.

func (*CjkBigramTokenFilter) CjkBigramTokenFilterCaster ¶ added in v9.0.1

func (s *CjkBigramTokenFilter) CjkBigramTokenFilterCaster() *CjkBigramTokenFilter

func (CjkBigramTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s CjkBigramTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CjkBigramTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *CjkBigramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*CjkBigramTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *CjkBigramTokenFilter) UnmarshalJSON(data []byte) error

type CjkBigramTokenFilterVariant ¶ added in v9.0.1

type CjkBigramTokenFilterVariant interface {
	CjkBigramTokenFilterCaster() *CjkBigramTokenFilter
}

type CjkWidthTokenFilter ¶ added in v9.0.1

type CjkWidthTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

CjkWidthTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L474-L476

func NewCjkWidthTokenFilter ¶ added in v9.0.1

func NewCjkWidthTokenFilter() *CjkWidthTokenFilter

NewCjkWidthTokenFilter returns a CjkWidthTokenFilter.

func (*CjkWidthTokenFilter) CjkWidthTokenFilterCaster ¶ added in v9.0.1

func (s *CjkWidthTokenFilter) CjkWidthTokenFilterCaster() *CjkWidthTokenFilter

func (CjkWidthTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s CjkWidthTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CjkWidthTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *CjkWidthTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*CjkWidthTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *CjkWidthTokenFilter) UnmarshalJSON(data []byte) error

type CjkWidthTokenFilterVariant ¶ added in v9.0.1

type CjkWidthTokenFilterVariant interface {
	CjkWidthTokenFilterCaster() *CjkWidthTokenFilter
}

type ClassicTokenFilter ¶ added in v9.0.1

type ClassicTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ClassicTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L478-L480

func NewClassicTokenFilter ¶ added in v9.0.1

func NewClassicTokenFilter() *ClassicTokenFilter

NewClassicTokenFilter returns a ClassicTokenFilter.

func (*ClassicTokenFilter) ClassicTokenFilterCaster ¶ added in v9.0.1

func (s *ClassicTokenFilter) ClassicTokenFilterCaster() *ClassicTokenFilter

func (ClassicTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ClassicTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ClassicTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ClassicTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ClassicTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ClassicTokenFilter) UnmarshalJSON(data []byte) error

type ClassicTokenFilterVariant ¶ added in v9.0.1

type ClassicTokenFilterVariant interface {
	ClassicTokenFilterCaster() *ClassicTokenFilter
}

type ClassicTokenizer ¶

type ClassicTokenizer struct {
	MaxTokenLength *int    `json:"max_token_length,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

ClassicTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L40-L46

func NewClassicTokenizer ¶

func NewClassicTokenizer() *ClassicTokenizer

NewClassicTokenizer returns a ClassicTokenizer.

func (*ClassicTokenizer) ClassicTokenizerCaster ¶

func (s *ClassicTokenizer) ClassicTokenizerCaster() *ClassicTokenizer

func (ClassicTokenizer) MarshalJSON ¶

func (s ClassicTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ClassicTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *ClassicTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*ClassicTokenizer) UnmarshalJSON ¶

func (s *ClassicTokenizer) UnmarshalJSON(data []byte) error

type ClassicTokenizerVariant ¶

type ClassicTokenizerVariant interface {
	ClassicTokenizerCaster() *ClassicTokenizer
}

type ClassificationInferenceOptions ¶

type ClassificationInferenceOptions struct {
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// PredictionFieldType Specifies the type of the predicted field to write. Acceptable values are:
	// string, number, boolean. When boolean is provided 1.0 is transformed to true
	// and 0.0 to false.
	PredictionFieldType *string `json:"prediction_field_type,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// TopClassesResultsField Specifies the field to which the top classes are written. Defaults to
	// top_classes.
	TopClassesResultsField *string `json:"top_classes_results_field,omitempty"`
}

ClassificationInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L118-L133

func NewClassificationInferenceOptions ¶

func NewClassificationInferenceOptions() *ClassificationInferenceOptions

NewClassificationInferenceOptions returns a ClassificationInferenceOptions.

func (*ClassificationInferenceOptions) ClassificationInferenceOptionsCaster ¶

func (s *ClassificationInferenceOptions) ClassificationInferenceOptionsCaster() *ClassificationInferenceOptions

func (*ClassificationInferenceOptions) UnmarshalJSON ¶

func (s *ClassificationInferenceOptions) UnmarshalJSON(data []byte) error

type ClassificationInferenceOptionsVariant ¶

type ClassificationInferenceOptionsVariant interface {
	ClassificationInferenceOptionsCaster() *ClassificationInferenceOptions
}

type CleanupRepositoryResults ¶

type CleanupRepositoryResults struct {
	// DeletedBlobs The number of binary large objects (blobs) removed from the snapshot
	// repository during cleanup operations.
	// A non-zero value indicates that unreferenced blobs were found and
	// subsequently cleaned up.
	DeletedBlobs int64 `json:"deleted_blobs"`
	// DeletedBytes The number of bytes freed by cleanup operations.
	DeletedBytes int64 `json:"deleted_bytes"`
}

CleanupRepositoryResults type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37

func NewCleanupRepositoryResults ¶

func NewCleanupRepositoryResults() *CleanupRepositoryResults

NewCleanupRepositoryResults returns a CleanupRepositoryResults.

func (*CleanupRepositoryResults) UnmarshalJSON ¶

func (s *CleanupRepositoryResults) UnmarshalJSON(data []byte) error

type Client ¶

type Client struct {
	// Agent Reported agent for the HTTP client.
	// If unavailable, this property is not included in the response.
	Agent *string `json:"agent,omitempty"`
	// ClosedTimeMillis Time at which the client closed the connection if the connection is closed.
	ClosedTimeMillis *int64 `json:"closed_time_millis,omitempty"`
	// Id Unique ID for the HTTP client.
	Id *int64 `json:"id,omitempty"`
	// LastRequestTimeMillis Time of the most recent request from this client.
	LastRequestTimeMillis *int64 `json:"last_request_time_millis,omitempty"`
	// LastUri The URI of the client’s most recent request.
	LastUri *string `json:"last_uri,omitempty"`
	// LocalAddress Local address for the HTTP connection.
	LocalAddress *string `json:"local_address,omitempty"`
	// OpenedTimeMillis Time at which the client opened the connection.
	OpenedTimeMillis *int64 `json:"opened_time_millis,omitempty"`
	// RemoteAddress Remote address for the HTTP connection.
	RemoteAddress *string `json:"remote_address,omitempty"`
	// RequestCount Number of requests from this client.
	RequestCount *int64 `json:"request_count,omitempty"`
	// RequestSizeBytes Cumulative size in bytes of all requests from this client.
	RequestSizeBytes *int64 `json:"request_size_bytes,omitempty"`
	// XOpaqueId Value from the client’s `x-opaque-id` HTTP header.
	// If unavailable, this property is not included in the response.
	XOpaqueId *string `json:"x_opaque_id,omitempty"`
}

Client type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L722-L769

func NewClient ¶

func NewClient() *Client

NewClient returns a Client.

func (*Client) UnmarshalJSON ¶

func (s *Client) UnmarshalJSON(data []byte) error

type CloseIndexResult ¶

type CloseIndexResult struct {
	Closed bool                        `json:"closed"`
	Shards map[string]CloseShardResult `json:"shards,omitempty"`
}

CloseIndexResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/close/CloseIndexResponse.ts#L32-L35

func NewCloseIndexResult ¶

func NewCloseIndexResult() *CloseIndexResult

NewCloseIndexResult returns a CloseIndexResult.

func (*CloseIndexResult) UnmarshalJSON ¶

func (s *CloseIndexResult) UnmarshalJSON(data []byte) error

type CloseShardResult ¶

type CloseShardResult struct {
	Failures []ShardFailure `json:"failures"`
}

CloseShardResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/close/CloseIndexResponse.ts#L37-L39

func NewCloseShardResult ¶

func NewCloseShardResult() *CloseShardResult

NewCloseShardResult returns a CloseShardResult.

type ClusterAppliedStats ¶

type ClusterAppliedStats struct {
	Recordings []Recording `json:"recordings,omitempty"`
}

ClusterAppliedStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L223-L225

func NewClusterAppliedStats ¶

func NewClusterAppliedStats() *ClusterAppliedStats

NewClusterAppliedStats returns a ClusterAppliedStats.

type ClusterComponentTemplate ¶

type ClusterComponentTemplate struct {
	ComponentTemplate ComponentTemplateNode `json:"component_template"`
	Name              string                `json:"name"`
}

ClusterComponentTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/_types/ComponentTemplate.ts#L28-L31

func NewClusterComponentTemplate ¶

func NewClusterComponentTemplate() *ClusterComponentTemplate

NewClusterComponentTemplate returns a ClusterComponentTemplate.

func (*ClusterComponentTemplate) UnmarshalJSON ¶

func (s *ClusterComponentTemplate) UnmarshalJSON(data []byte) error

type ClusterDetails ¶

type ClusterDetails struct {
	Failures []ShardFailure                          `json:"failures,omitempty"`
	Indices  string                                  `json:"indices"`
	Shards_  *ShardStatistics                        `json:"_shards,omitempty"`
	Status   clustersearchstatus.ClusterSearchStatus `json:"status"`
	TimedOut bool                                    `json:"timed_out"`
	Took     *int64                                  `json:"took,omitempty"`
}

ClusterDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L45-L52

func NewClusterDetails ¶

func NewClusterDetails() *ClusterDetails

NewClusterDetails returns a ClusterDetails.

func (*ClusterDetails) UnmarshalJSON ¶

func (s *ClusterDetails) UnmarshalJSON(data []byte) error

type ClusterFileSystem ¶

type ClusterFileSystem struct {
	// Available Total number of bytes available to JVM in file stores across all selected
	// nodes.
	// Depending on operating system or process-level restrictions, this number may
	// be less than `nodes.fs.free_in_byes`.
	// This is the actual amount of free disk space the selected Elasticsearch nodes
	// can use.
	Available ByteSize `json:"available,omitempty"`
	// AvailableInBytes Total number of bytes available to JVM in file stores across all selected
	// nodes.
	// Depending on operating system or process-level restrictions, this number may
	// be less than `nodes.fs.free_in_byes`.
	// This is the actual amount of free disk space the selected Elasticsearch nodes
	// can use.
	AvailableInBytes           *int64   `json:"available_in_bytes,omitempty"`
	FloodStageFreeSpace        ByteSize `json:"flood_stage_free_space,omitempty"`
	FloodStageFreeSpaceInBytes *int64   `json:"flood_stage_free_space_in_bytes,omitempty"`
	// Free Total number of unallocated bytes in file stores across all selected nodes.
	Free ByteSize `json:"free,omitempty"`
	// FreeInBytes Total number, in bytes, of unallocated bytes in file stores across all
	// selected nodes.
	FreeInBytes                      *int64   `json:"free_in_bytes,omitempty"`
	FrozenFloodStageFreeSpace        ByteSize `json:"frozen_flood_stage_free_space,omitempty"`
	FrozenFloodStageFreeSpaceInBytes *int64   `json:"frozen_flood_stage_free_space_in_bytes,omitempty"`
	HighWatermarkFreeSpace           ByteSize `json:"high_watermark_free_space,omitempty"`
	HighWatermarkFreeSpaceInBytes    *int64   `json:"high_watermark_free_space_in_bytes,omitempty"`
	LowWatermarkFreeSpace            ByteSize `json:"low_watermark_free_space,omitempty"`
	LowWatermarkFreeSpaceInBytes     *int64   `json:"low_watermark_free_space_in_bytes,omitempty"`
	Mount                            *string  `json:"mount,omitempty"`
	Path                             *string  `json:"path,omitempty"`
	// Total Total size of all file stores across all selected nodes.
	Total ByteSize `json:"total,omitempty"`
	// TotalInBytes Total size, in bytes, of all file stores across all selected nodes.
	TotalInBytes *int64  `json:"total_in_bytes,omitempty"`
	Type         *string `json:"type,omitempty"`
}

ClusterFileSystem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L35-L75

func NewClusterFileSystem ¶

func NewClusterFileSystem() *ClusterFileSystem

NewClusterFileSystem returns a ClusterFileSystem.

func (*ClusterFileSystem) UnmarshalJSON ¶

func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error

type ClusterIndexingPressure ¶

type ClusterIndexingPressure struct {
	Memory NodesIndexingPressureMemory `json:"memory"`
}

ClusterIndexingPressure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L765-L767

func NewClusterIndexingPressure ¶

func NewClusterIndexingPressure() *ClusterIndexingPressure

NewClusterIndexingPressure returns a ClusterIndexingPressure.

type ClusterIndices ¶

type ClusterIndices struct {
	// Analysis Contains statistics about analyzers and analyzer components used in selected
	// nodes.
	Analysis *CharFilterTypes `json:"analysis,omitempty"`
	// Completion Contains statistics about memory used for completion in selected nodes.
	Completion CompletionStats `json:"completion"`
	// Count Total number of indices with shards assigned to selected nodes.
	Count int64 `json:"count"`
	// DenseVector Contains statistics about indexed dense vector
	DenseVector DenseVectorStats `json:"dense_vector"`
	// Docs Contains counts for documents in selected nodes.
	Docs DocStats `json:"docs"`
	// Fielddata Contains statistics about the field data cache of selected nodes.
	Fielddata FielddataStats `json:"fielddata"`
	// Mappings Contains statistics about field mappings in selected nodes.
	Mappings *FieldTypesMappings `json:"mappings,omitempty"`
	// QueryCache Contains statistics about the query cache of selected nodes.
	QueryCache QueryCacheStats `json:"query_cache"`
	// Search Holds a snapshot of the search usage statistics.
	// Used to hold the stats for a single node that's part of a
	// ClusterStatsNodeResponse, as well as to
	// accumulate stats for the entire cluster and return them as part of the
	// ClusterStatsResponse.
	Search SearchUsageStats `json:"search"`
	// Segments Contains statistics about segments in selected nodes.
	Segments SegmentsStats `json:"segments"`
	// Shards Contains statistics about indices with shards assigned to selected nodes.
	Shards ClusterIndicesShards `json:"shards"`
	// SparseVector Contains statistics about indexed sparse vector
	SparseVector SparseVectorStats `json:"sparse_vector"`
	// Store Contains statistics about the size of shards assigned to selected nodes.
	Store StoreStats `json:"store"`
	// Versions Contains statistics about analyzers and analyzer components used in selected
	// nodes.
	Versions []IndicesVersions `json:"versions,omitempty"`
}

ClusterIndices type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L100-L147

func NewClusterIndices ¶

func NewClusterIndices() *ClusterIndices

NewClusterIndices returns a ClusterIndices.

func (*ClusterIndices) UnmarshalJSON ¶

func (s *ClusterIndices) UnmarshalJSON(data []byte) error

type ClusterIndicesShards ¶

type ClusterIndicesShards struct {
	// Index Contains statistics about shards assigned to selected nodes.
	Index *ClusterIndicesShardsIndex `json:"index,omitempty"`
	// Primaries Number of primary shards assigned to selected nodes.
	Primaries *Float64 `json:"primaries,omitempty"`
	// Replication Ratio of replica shards to primary shards across all selected nodes.
	Replication *Float64 `json:"replication,omitempty"`
	// Total Total number of shards assigned to selected nodes.
	Total *Float64 `json:"total,omitempty"`
}

ClusterIndicesShards type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L86-L98

func NewClusterIndicesShards ¶

func NewClusterIndicesShards() *ClusterIndicesShards

NewClusterIndicesShards returns a ClusterIndicesShards.

func (*ClusterIndicesShards) UnmarshalJSON ¶

func (s *ClusterIndicesShards) UnmarshalJSON(data []byte) error

type ClusterIndicesShardsIndex ¶

type ClusterIndicesShardsIndex struct {
	// Primaries Contains statistics about the number of primary shards assigned to selected
	// nodes.
	Primaries ClusterShardMetrics `json:"primaries"`
	// Replication Contains statistics about the number of replication shards assigned to
	// selected nodes.
	Replication ClusterShardMetrics `json:"replication"`
	// Shards Contains statistics about the number of shards assigned to selected nodes.
	Shards ClusterShardMetrics `json:"shards"`
}

ClusterIndicesShardsIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L77-L84

func NewClusterIndicesShardsIndex ¶

func NewClusterIndicesShardsIndex() *ClusterIndicesShardsIndex

NewClusterIndicesShardsIndex returns a ClusterIndicesShardsIndex.

type ClusterInfo ¶

type ClusterInfo struct {
	Nodes             map[string]NodeDiskUsage `json:"nodes"`
	ReservedSizes     []ReservedSize           `json:"reserved_sizes"`
	ShardDataSetSizes map[string]string        `json:"shard_data_set_sizes,omitempty"`
	ShardPaths        map[string]string        `json:"shard_paths"`
	ShardSizes        map[string]int64         `json:"shard_sizes"`
}

ClusterInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L49-L55

func NewClusterInfo ¶

func NewClusterInfo() *ClusterInfo

NewClusterInfo returns a ClusterInfo.

type ClusterIngest ¶

type ClusterIngest struct {
	NumberOfPipelines int                         `json:"number_of_pipelines"`
	ProcessorStats    map[string]ClusterProcessor `json:"processor_stats"`
}

ClusterIngest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L367-L370

func NewClusterIngest ¶

func NewClusterIngest() *ClusterIngest

NewClusterIngest returns a ClusterIngest.

func (*ClusterIngest) UnmarshalJSON ¶

func (s *ClusterIngest) UnmarshalJSON(data []byte) error

type ClusterJvm ¶

type ClusterJvm struct {
	// MaxUptime Uptime duration since JVM last started.
	MaxUptime Duration `json:"max_uptime,omitempty"`
	// MaxUptimeInMillis Uptime duration, in milliseconds, since JVM last started.
	MaxUptimeInMillis int64 `json:"max_uptime_in_millis"`
	// Mem Contains statistics about memory used by selected nodes.
	Mem ClusterJvmMemory `json:"mem"`
	// Threads Number of active threads in use by JVM across all selected nodes.
	Threads int64 `json:"threads"`
	// Versions Contains statistics about the JVM versions used by selected nodes.
	Versions []ClusterJvmVersion `json:"versions"`
}

ClusterJvm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L372-L393

func NewClusterJvm ¶

func NewClusterJvm() *ClusterJvm

NewClusterJvm returns a ClusterJvm.

func (*ClusterJvm) UnmarshalJSON ¶

func (s *ClusterJvm) UnmarshalJSON(data []byte) error

type ClusterJvmMemory ¶

type ClusterJvmMemory struct {
	// HeapMax Maximum amount of memory available for use by the heap across all selected
	// nodes.
	HeapMax ByteSize `json:"heap_max,omitempty"`
	// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap across all
	// selected nodes.
	HeapMaxInBytes int64 `json:"heap_max_in_bytes"`
	// HeapUsed Memory currently in use by the heap across all selected nodes.
	HeapUsed ByteSize `json:"heap_used,omitempty"`
	// HeapUsedInBytes Memory, in bytes, currently in use by the heap across all selected nodes.
	HeapUsedInBytes int64 `json:"heap_used_in_bytes"`
}

ClusterJvmMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L395-L412

func NewClusterJvmMemory ¶

func NewClusterJvmMemory() *ClusterJvmMemory

NewClusterJvmMemory returns a ClusterJvmMemory.

func (*ClusterJvmMemory) UnmarshalJSON ¶

func (s *ClusterJvmMemory) UnmarshalJSON(data []byte) error

type ClusterJvmVersion ¶

type ClusterJvmVersion struct {
	// BundledJdk Always `true`. All distributions come with a bundled Java Development Kit
	// (JDK).
	BundledJdk bool `json:"bundled_jdk"`
	// Count Total number of selected nodes using JVM.
	Count int `json:"count"`
	// UsingBundledJdk If `true`, a bundled JDK is in use by JVM.
	UsingBundledJdk bool `json:"using_bundled_jdk"`
	// Version Version of JVM used by one or more selected nodes.
	Version string `json:"version"`
	// VmName Name of the JVM.
	VmName string `json:"vm_name"`
	// VmVendor Vendor of the JVM.
	VmVendor string `json:"vm_vendor"`
	// VmVersion Full version number of JVM.
	// The full version number includes a plus sign (+) followed by the build
	// number.
	VmVersion string `json:"vm_version"`
}

ClusterJvmVersion type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L414-L444

func NewClusterJvmVersion ¶

func NewClusterJvmVersion() *ClusterJvmVersion

NewClusterJvmVersion returns a ClusterJvmVersion.

func (*ClusterJvmVersion) UnmarshalJSON ¶

func (s *ClusterJvmVersion) UnmarshalJSON(data []byte) error

type ClusterNetworkTypes ¶

type ClusterNetworkTypes struct {
	// HttpTypes Contains statistics about the HTTP network types used by selected nodes.
	HttpTypes map[string]int `json:"http_types"`
	// TransportTypes Contains statistics about the transport network types used by selected nodes.
	TransportTypes map[string]int `json:"transport_types"`
}

ClusterNetworkTypes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L446-L455

func NewClusterNetworkTypes ¶

func NewClusterNetworkTypes() *ClusterNetworkTypes

NewClusterNetworkTypes returns a ClusterNetworkTypes.

type ClusterNode ¶

type ClusterNode struct {
	Name string `json:"name"`
}

ClusterNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/ClusterNode.ts#L22-L24

func NewClusterNode ¶

func NewClusterNode() *ClusterNode

NewClusterNode returns a ClusterNode.

func (*ClusterNode) UnmarshalJSON ¶

func (s *ClusterNode) UnmarshalJSON(data []byte) error

type ClusterNodeCount ¶

type ClusterNodeCount struct {
	CoordinatingOnly    *int `json:"coordinating_only,omitempty"`
	Data                *int `json:"data,omitempty"`
	DataCold            *int `json:"data_cold,omitempty"`
	DataContent         *int `json:"data_content,omitempty"`
	DataFrozen          *int `json:"data_frozen,omitempty"`
	DataHot             *int `json:"data_hot,omitempty"`
	DataWarm            *int `json:"data_warm,omitempty"`
	Index               *int `json:"index,omitempty"`
	Ingest              *int `json:"ingest,omitempty"`
	Master              *int `json:"master,omitempty"`
	Ml                  *int `json:"ml,omitempty"`
	RemoteClusterClient *int `json:"remote_cluster_client,omitempty"`
	Search              *int `json:"search,omitempty"`
	Total               int  `json:"total"`
	Transform           *int `json:"transform,omitempty"`
	VotingOnly          *int `json:"voting_only,omitempty"`
}

ClusterNodeCount type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L457-L478

func NewClusterNodeCount ¶

func NewClusterNodeCount() *ClusterNodeCount

NewClusterNodeCount returns a ClusterNodeCount.

func (*ClusterNodeCount) UnmarshalJSON ¶

func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error

type ClusterNodes ¶

type ClusterNodes struct {
	// Count Contains counts for nodes selected by the request’s node filters.
	Count ClusterNodeCount `json:"count"`
	// DiscoveryTypes Contains statistics about the discovery types used by selected nodes.
	DiscoveryTypes map[string]int `json:"discovery_types"`
	// Fs Contains statistics about file stores by selected nodes.
	Fs               ClusterFileSystem       `json:"fs"`
	IndexingPressure ClusterIndexingPressure `json:"indexing_pressure"`
	Ingest           ClusterIngest           `json:"ingest"`
	// Jvm Contains statistics about the Java Virtual Machines (JVMs) used by selected
	// nodes.
	Jvm ClusterJvm `json:"jvm"`
	// NetworkTypes Contains statistics about the transport and HTTP networks used by selected
	// nodes.
	NetworkTypes ClusterNetworkTypes `json:"network_types"`
	// Os Contains statistics about the operating systems used by selected nodes.
	Os ClusterOperatingSystem `json:"os"`
	// PackagingTypes Contains statistics about Elasticsearch distributions installed on selected
	// nodes.
	PackagingTypes []NodePackagingType `json:"packaging_types"`
	// Plugins Contains statistics about installed plugins and modules by selected nodes.
	// If no plugins or modules are installed, this array is empty.
	Plugins []PluginStats `json:"plugins"`
	// Process Contains statistics about processes used by selected nodes.
	Process ClusterProcess `json:"process"`
	// Versions Array of Elasticsearch versions used on selected nodes.
	Versions []string `json:"versions"`
}

ClusterNodes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L480-L513

func NewClusterNodes ¶

func NewClusterNodes() *ClusterNodes

NewClusterNodes returns a ClusterNodes.

type ClusterOperatingSystem ¶

type ClusterOperatingSystem struct {
	// AllocatedProcessors Number of processors used to calculate thread pool size across all selected
	// nodes.
	// This number can be set with the processors setting of a node and defaults to
	// the number of processors reported by the operating system.
	// In both cases, this number will never be larger than 32.
	AllocatedProcessors int `json:"allocated_processors"`
	// Architectures Contains statistics about processor architectures (for example, x86_64 or
	// aarch64) used by selected nodes.
	Architectures []ClusterOperatingSystemArchitecture `json:"architectures,omitempty"`
	// AvailableProcessors Number of processors available to JVM across all selected nodes.
	AvailableProcessors int `json:"available_processors"`
	// Mem Contains statistics about memory used by selected nodes.
	Mem OperatingSystemMemoryInfo `json:"mem"`
	// Names Contains statistics about operating systems used by selected nodes.
	Names []ClusterOperatingSystemName `json:"names"`
	// PrettyNames Contains statistics about operating systems used by selected nodes.
	PrettyNames []ClusterOperatingSystemPrettyName `json:"pretty_names"`
}

ClusterOperatingSystem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L526-L553

func NewClusterOperatingSystem ¶

func NewClusterOperatingSystem() *ClusterOperatingSystem

NewClusterOperatingSystem returns a ClusterOperatingSystem.

func (*ClusterOperatingSystem) UnmarshalJSON ¶

func (s *ClusterOperatingSystem) UnmarshalJSON(data []byte) error

type ClusterOperatingSystemArchitecture ¶

type ClusterOperatingSystemArchitecture struct {
	// Arch Name of an architecture used by one or more selected nodes.
	Arch string `json:"arch"`
	// Count Number of selected nodes using the architecture.
	Count int `json:"count"`
}

ClusterOperatingSystemArchitecture type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L515-L524

func NewClusterOperatingSystemArchitecture ¶

func NewClusterOperatingSystemArchitecture() *ClusterOperatingSystemArchitecture

NewClusterOperatingSystemArchitecture returns a ClusterOperatingSystemArchitecture.

func (*ClusterOperatingSystemArchitecture) UnmarshalJSON ¶

func (s *ClusterOperatingSystemArchitecture) UnmarshalJSON(data []byte) error

type ClusterOperatingSystemName ¶

type ClusterOperatingSystemName struct {
	// Count Number of selected nodes using the operating system.
	Count int `json:"count"`
	// Name Name of an operating system used by one or more selected nodes.
	Name string `json:"name"`
}

ClusterOperatingSystemName type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L555-L564

func NewClusterOperatingSystemName ¶

func NewClusterOperatingSystemName() *ClusterOperatingSystemName

NewClusterOperatingSystemName returns a ClusterOperatingSystemName.

func (*ClusterOperatingSystemName) UnmarshalJSON ¶

func (s *ClusterOperatingSystemName) UnmarshalJSON(data []byte) error

type ClusterOperatingSystemPrettyName ¶

type ClusterOperatingSystemPrettyName struct {
	// Count Number of selected nodes using the operating system.
	Count int `json:"count"`
	// PrettyName Human-readable name of an operating system used by one or more selected
	// nodes.
	PrettyName string `json:"pretty_name"`
}

ClusterOperatingSystemPrettyName type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L566-L575

func NewClusterOperatingSystemPrettyName ¶

func NewClusterOperatingSystemPrettyName() *ClusterOperatingSystemPrettyName

NewClusterOperatingSystemPrettyName returns a ClusterOperatingSystemPrettyName.

func (*ClusterOperatingSystemPrettyName) UnmarshalJSON ¶

func (s *ClusterOperatingSystemPrettyName) UnmarshalJSON(data []byte) error

type ClusterProcess ¶

type ClusterProcess struct {
	// Cpu Contains statistics about CPU used by selected nodes.
	Cpu ClusterProcessCpu `json:"cpu"`
	// OpenFileDescriptors Contains statistics about open file descriptors in selected nodes.
	OpenFileDescriptors ClusterProcessOpenFileDescriptors `json:"open_file_descriptors"`
}

ClusterProcess type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L577-L586

func NewClusterProcess ¶

func NewClusterProcess() *ClusterProcess

NewClusterProcess returns a ClusterProcess.

type ClusterProcessCpu ¶

type ClusterProcessCpu struct {
	// Percent Percentage of CPU used across all selected nodes.
	// Returns `-1` if not supported.
	Percent int `json:"percent"`
}

ClusterProcessCpu type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L588-L594

func NewClusterProcessCpu ¶

func NewClusterProcessCpu() *ClusterProcessCpu

NewClusterProcessCpu returns a ClusterProcessCpu.

func (*ClusterProcessCpu) UnmarshalJSON ¶

func (s *ClusterProcessCpu) UnmarshalJSON(data []byte) error

type ClusterProcessOpenFileDescriptors ¶

type ClusterProcessOpenFileDescriptors struct {
	// Avg Average number of concurrently open file descriptors.
	// Returns `-1` if not supported.
	Avg int64 `json:"avg"`
	// Max Maximum number of concurrently open file descriptors allowed across all
	// selected nodes.
	// Returns `-1` if not supported.
	Max int64 `json:"max"`
	// Min Minimum number of concurrently open file descriptors across all selected
	// nodes.
	// Returns -1 if not supported.
	Min int64 `json:"min"`
}

ClusterProcessOpenFileDescriptors type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L596-L612

func NewClusterProcessOpenFileDescriptors ¶

func NewClusterProcessOpenFileDescriptors() *ClusterProcessOpenFileDescriptors

NewClusterProcessOpenFileDescriptors returns a ClusterProcessOpenFileDescriptors.

func (*ClusterProcessOpenFileDescriptors) UnmarshalJSON ¶

func (s *ClusterProcessOpenFileDescriptors) UnmarshalJSON(data []byte) error

type ClusterProcessor ¶

type ClusterProcessor struct {
	Count        int64    `json:"count"`
	Current      int64    `json:"current"`
	Failed       int64    `json:"failed"`
	Time         Duration `json:"time,omitempty"`
	TimeInMillis int64    `json:"time_in_millis"`
}

ClusterProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L614-L620

func NewClusterProcessor ¶

func NewClusterProcessor() *ClusterProcessor

NewClusterProcessor returns a ClusterProcessor.

func (*ClusterProcessor) UnmarshalJSON ¶

func (s *ClusterProcessor) UnmarshalJSON(data []byte) error

type ClusterRemoteInfo ¶

type ClusterRemoteInfo any

ClusterRemoteInfo holds the union for the following types:

ClusterRemoteSniffInfo
ClusterRemoteProxyInfo

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30

type ClusterRemoteProxyInfo ¶

type ClusterRemoteProxyInfo struct {
	// ClusterCredentials This field is present and has a value of `::es_redacted::` only when the
	// remote cluster is configured with the API key based model. Otherwise, the
	// field is not present.
	ClusterCredentials *string `json:"cluster_credentials,omitempty"`
	// Connected If it is `true`, there is at least one open connection to the remote cluster.
	// If it is `false`, it means that the cluster no longer has an open connection
	// to the remote cluster.
	// It does not necessarily mean that the remote cluster is down or unavailable,
	// just that at some point a connection was lost.
	Connected bool `json:"connected"`
	// InitialConnectTimeout The initial connect timeout for remote cluster connections.
	InitialConnectTimeout Duration `json:"initial_connect_timeout"`
	// MaxProxySocketConnections The maximum number of socket connections to the remote cluster when proxy
	// mode is configured.
	MaxProxySocketConnections int `json:"max_proxy_socket_connections"`
	// Mode The connection mode for the remote cluster.
	Mode string `json:"mode,omitempty"`
	// NumProxySocketsConnected The number of open socket connections to the remote cluster when proxy mode
	// is configured.
	NumProxySocketsConnected int `json:"num_proxy_sockets_connected"`
	// ProxyAddress The address for remote connections when proxy mode is configured.
	ProxyAddress string `json:"proxy_address"`
	ServerName   string `json:"server_name"`
	// SkipUnavailable If `true`, cross-cluster search skips the remote cluster when its nodes are
	// unavailable during the search and ignores errors returned by the remote
	// cluster.
	SkipUnavailable bool `json:"skip_unavailable"`
}

ClusterRemoteProxyInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83

func NewClusterRemoteProxyInfo ¶

func NewClusterRemoteProxyInfo() *ClusterRemoteProxyInfo

NewClusterRemoteProxyInfo returns a ClusterRemoteProxyInfo.

func (ClusterRemoteProxyInfo) MarshalJSON ¶

func (s ClusterRemoteProxyInfo) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ClusterRemoteProxyInfo) UnmarshalJSON ¶

func (s *ClusterRemoteProxyInfo) UnmarshalJSON(data []byte) error

type ClusterRemoteSniffInfo ¶

type ClusterRemoteSniffInfo struct {
	// Connected If it is `true`, there is at least one open connection to the remote cluster.
	// If it is `false`, it means that the cluster no longer has an open connection
	// to the remote cluster.
	// It does not necessarily mean that the remote cluster is down or unavailable,
	// just that at some point a connection was lost.
	Connected bool `json:"connected"`
	// InitialConnectTimeout The initial connect timeout for remote cluster connections.
	InitialConnectTimeout Duration `json:"initial_connect_timeout"`
	// MaxConnectionsPerCluster The maximum number of connections maintained for the remote cluster when
	// sniff mode is configured.
	MaxConnectionsPerCluster int `json:"max_connections_per_cluster"`
	// Mode The connection mode for the remote cluster.
	Mode string `json:"mode,omitempty"`
	// NumNodesConnected The number of connected nodes in the remote cluster when sniff mode is
	// configured.
	NumNodesConnected int64 `json:"num_nodes_connected"`
	// Seeds The initial seed transport addresses of the remote cluster when sniff mode is
	// configured.
	Seeds []string `json:"seeds"`
	// SkipUnavailable If `true`, cross-cluster search skips the remote cluster when its nodes are
	// unavailable during the search and ignores errors returned by the remote
	// cluster.
	SkipUnavailable bool `json:"skip_unavailable"`
}

ClusterRemoteSniffInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56

func NewClusterRemoteSniffInfo ¶

func NewClusterRemoteSniffInfo() *ClusterRemoteSniffInfo

NewClusterRemoteSniffInfo returns a ClusterRemoteSniffInfo.

func (ClusterRemoteSniffInfo) MarshalJSON ¶

func (s ClusterRemoteSniffInfo) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ClusterRemoteSniffInfo) UnmarshalJSON ¶

func (s *ClusterRemoteSniffInfo) UnmarshalJSON(data []byte) error

type ClusterRuntimeFieldTypes ¶

type ClusterRuntimeFieldTypes struct {
	// CharsMax Maximum number of characters for a single runtime field script.
	CharsMax int `json:"chars_max"`
	// CharsTotal Total number of characters for the scripts that define the current runtime
	// field data type.
	CharsTotal int `json:"chars_total"`
	// Count Number of runtime fields mapped to the field data type in selected nodes.
	Count int `json:"count"`
	// DocMax Maximum number of accesses to doc_values for a single runtime field script
	DocMax int `json:"doc_max"`
	// DocTotal Total number of accesses to doc_values for the scripts that define the
	// current runtime field data type.
	DocTotal int `json:"doc_total"`
	// IndexCount Number of indices containing a mapping of the runtime field data type in
	// selected nodes.
	IndexCount int `json:"index_count"`
	// Lang Script languages used for the runtime fields scripts.
	Lang []string `json:"lang"`
	// LinesMax Maximum number of lines for a single runtime field script.
	LinesMax int `json:"lines_max"`
	// LinesTotal Total number of lines for the scripts that define the current runtime field
	// data type.
	LinesTotal int `json:"lines_total"`
	// Name Field data type used in selected nodes.
	Name string `json:"name"`
	// ScriptlessCount Number of runtime fields that don’t declare a script.
	ScriptlessCount int `json:"scriptless_count"`
	// ShadowedCount Number of runtime fields that shadow an indexed field.
	ShadowedCount int `json:"shadowed_count"`
	// SourceMax Maximum number of accesses to _source for a single runtime field script.
	SourceMax int `json:"source_max"`
	// SourceTotal Total number of accesses to _source for the scripts that define the current
	// runtime field data type.
	SourceTotal int `json:"source_total"`
}

ClusterRuntimeFieldTypes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L256-L313

func NewClusterRuntimeFieldTypes ¶

func NewClusterRuntimeFieldTypes() *ClusterRuntimeFieldTypes

NewClusterRuntimeFieldTypes returns a ClusterRuntimeFieldTypes.

func (*ClusterRuntimeFieldTypes) UnmarshalJSON ¶

func (s *ClusterRuntimeFieldTypes) UnmarshalJSON(data []byte) error

type ClusterShardMetrics ¶

type ClusterShardMetrics struct {
	// Avg Mean number of shards in an index, counting only shards assigned to selected
	// nodes.
	Avg Float64 `json:"avg"`
	// Max Maximum number of shards in an index, counting only shards assigned to
	// selected nodes.
	Max Float64 `json:"max"`
	// Min Minimum number of shards in an index, counting only shards assigned to
	// selected nodes.
	Min Float64 `json:"min"`
}

ClusterShardMetrics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L622-L635

func NewClusterShardMetrics ¶

func NewClusterShardMetrics() *ClusterShardMetrics

NewClusterShardMetrics returns a ClusterShardMetrics.

func (*ClusterShardMetrics) UnmarshalJSON ¶

func (s *ClusterShardMetrics) UnmarshalJSON(data []byte) error

type ClusterSnapshotStats ¶ added in v9.0.1

type ClusterSnapshotStats struct {
	CurrentCounts SnapshotCurrentCounts         `json:"current_counts"`
	Repositories  map[string]PerRepositoryStats `json:"repositories"`
}

ClusterSnapshotStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L637-L640

func NewClusterSnapshotStats ¶ added in v9.0.1

func NewClusterSnapshotStats() *ClusterSnapshotStats

NewClusterSnapshotStats returns a ClusterSnapshotStats.

type ClusterStateQueue ¶

type ClusterStateQueue struct {
	// Committed Number of committed cluster states in queue.
	Committed *int64 `json:"committed,omitempty"`
	// Pending Number of pending cluster states in queue.
	Pending *int64 `json:"pending,omitempty"`
	// Total Total number of cluster states in queue.
	Total *int64 `json:"total,omitempty"`
}

ClusterStateQueue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L250-L263

func NewClusterStateQueue ¶

func NewClusterStateQueue() *ClusterStateQueue

NewClusterStateQueue returns a ClusterStateQueue.

func (*ClusterStateQueue) UnmarshalJSON ¶

func (s *ClusterStateQueue) UnmarshalJSON(data []byte) error

type ClusterStateUpdate ¶

type ClusterStateUpdate struct {
	// CommitTime The cumulative amount of time spent waiting for a successful cluster state
	// update to commit, which measures the time from the start of each publication
	// until a majority of the master-eligible nodes have written the state to disk
	// and confirmed the write to the elected master.
	CommitTime Duration `json:"commit_time,omitempty"`
	// CommitTimeMillis The cumulative amount of time, in milliseconds, spent waiting for a
	// successful cluster state update to commit, which measures the time from the
	// start of each publication until a majority of the master-eligible nodes have
	// written the state to disk and confirmed the write to the elected master.
	CommitTimeMillis *int64 `json:"commit_time_millis,omitempty"`
	// CompletionTime The cumulative amount of time spent waiting for a successful cluster state
	// update to complete, which measures the time from the start of each
	// publication until all the other nodes have notified the elected master that
	// they have applied the cluster state.
	CompletionTime Duration `json:"completion_time,omitempty"`
	// CompletionTimeMillis The cumulative amount of time, in milliseconds,  spent waiting for a
	// successful cluster state update to complete, which measures the time from the
	// start of each publication until all the other nodes have notified the elected
	// master that they have applied the cluster state.
	CompletionTimeMillis *int64 `json:"completion_time_millis,omitempty"`
	// ComputationTime The cumulative amount of time spent computing no-op cluster state updates
	// since the node started.
	ComputationTime Duration `json:"computation_time,omitempty"`
	// ComputationTimeMillis The cumulative amount of time, in milliseconds, spent computing no-op cluster
	// state updates since the node started.
	ComputationTimeMillis *int64 `json:"computation_time_millis,omitempty"`
	// ContextConstructionTime The cumulative amount of time spent constructing a publication context since
	// the node started for publications that ultimately succeeded.
	// This statistic includes the time spent computing the difference between the
	// current and new cluster state preparing a serialized representation of this
	// difference.
	ContextConstructionTime Duration `json:"context_construction_time,omitempty"`
	// ContextConstructionTimeMillis The cumulative amount of time, in milliseconds, spent constructing a
	// publication context since the node started for publications that ultimately
	// succeeded.
	// This statistic includes the time spent computing the difference between the
	// current and new cluster state preparing a serialized representation of this
	// difference.
	ContextConstructionTimeMillis *int64 `json:"context_construction_time_millis,omitempty"`
	// Count The number of cluster state update attempts that did not change the cluster
	// state since the node started.
	Count int64 `json:"count"`
	// MasterApplyTime The cumulative amount of time spent successfully applying cluster state
	// updates on the elected master since the node started.
	MasterApplyTime Duration `json:"master_apply_time,omitempty"`
	// MasterApplyTimeMillis The cumulative amount of time, in milliseconds, spent successfully applying
	// cluster state updates on the elected master since the node started.
	MasterApplyTimeMillis *int64 `json:"master_apply_time_millis,omitempty"`
	// NotificationTime The cumulative amount of time spent notifying listeners of a no-op cluster
	// state update since the node started.
	NotificationTime Duration `json:"notification_time,omitempty"`
	// NotificationTimeMillis The cumulative amount of time, in milliseconds, spent notifying listeners of
	// a no-op cluster state update since the node started.
	NotificationTimeMillis *int64 `json:"notification_time_millis,omitempty"`
	// PublicationTime The cumulative amount of time spent publishing cluster state updates which
	// ultimately succeeded, which includes everything from the start of the
	// publication (just after the computation of the new cluster state) until the
	// publication has finished and the master node is ready to start processing the
	// next state update.
	// This includes the time measured by `context_construction_time`,
	// `commit_time`, `completion_time` and `master_apply_time`.
	PublicationTime Duration `json:"publication_time,omitempty"`
	// PublicationTimeMillis The cumulative amount of time, in milliseconds, spent publishing cluster
	// state updates which ultimately succeeded, which includes everything from the
	// start of the publication (just after the computation of the new cluster
	// state) until the publication has finished and the master node is ready to
	// start processing the next state update.
	// This includes the time measured by `context_construction_time`,
	// `commit_time`, `completion_time` and `master_apply_time`.
	PublicationTimeMillis *int64 `json:"publication_time_millis,omitempty"`
}

ClusterStateUpdate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L280-L345

func NewClusterStateUpdate ¶

func NewClusterStateUpdate() *ClusterStateUpdate

NewClusterStateUpdate returns a ClusterStateUpdate.

func (*ClusterStateUpdate) UnmarshalJSON ¶

func (s *ClusterStateUpdate) UnmarshalJSON(data []byte) error

type ClusterStatistics ¶

type ClusterStatistics struct {
	Details    map[string]ClusterDetails `json:"details,omitempty"`
	Failed     int                       `json:"failed"`
	Partial    int                       `json:"partial"`
	Running    int                       `json:"running"`
	Skipped    int                       `json:"skipped"`
	Successful int                       `json:"successful"`
	Total      int                       `json:"total"`
}

ClusterStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L27-L35

func NewClusterStatistics ¶

func NewClusterStatistics() *ClusterStatistics

NewClusterStatistics returns a ClusterStatistics.

func (*ClusterStatistics) UnmarshalJSON ¶

func (s *ClusterStatistics) UnmarshalJSON(data []byte) error

type CohereServiceSettings ¶

type CohereServiceSettings struct {
	// ApiKey A valid API key for your Cohere account.
	// You can find or create your Cohere API keys on the Cohere API key settings
	// page.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// EmbeddingType For a `text_embedding` task, the types of embeddings you want to get back.
	// Use `binary` for binary embeddings, which are encoded as bytes with signed
	// int8 precision.
	// Use `bit` for binary embeddings, which are encoded as bytes with signed int8
	// precision (this is a synonym of `binary`).
	// Use `byte` for signed int8 embeddings (this is a synonym of `int8`).
	// Use `float` for the default float embeddings.
	// Use `int8` for signed int8 embeddings.
	EmbeddingType *cohereembeddingtype.CohereEmbeddingType `json:"embedding_type,omitempty"`
	// ModelId For a `completion`, `rerank`, or `text_embedding` task, the name of the model
	// to use for the inference task.
	//
	// * For the available `completion` models, refer to the [Cohere command
	// docs](https://docs.cohere.com/docs/models#command).
	// * For the available `rerank` models, refer to the [Cohere rerank
	// docs](https://docs.cohere.com/reference/rerank-1).
	// * For the available `text_embedding` models, refer to [Cohere embed
	// docs](https://docs.cohere.com/reference/embed).
	//
	// The default value for a text embedding task is `embed-english-v2.0`.
	ModelId *string `json:"model_id,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Cohere.
	// By default, the `cohere` service sets the number of requests allowed per
	// minute to 10000.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Similarity The similarity measure.
	// If the `embedding_type` is `float`, the default value is `dot_product`.
	// If the `embedding_type` is `int8` or `byte`, the default value is `cosine`.
	Similarity *coheresimilaritytype.CohereSimilarityType `json:"similarity,omitempty"`
}

CohereServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L788-L831

func NewCohereServiceSettings ¶

func NewCohereServiceSettings() *CohereServiceSettings

NewCohereServiceSettings returns a CohereServiceSettings.

func (*CohereServiceSettings) CohereServiceSettingsCaster ¶

func (s *CohereServiceSettings) CohereServiceSettingsCaster() *CohereServiceSettings

func (*CohereServiceSettings) UnmarshalJSON ¶

func (s *CohereServiceSettings) UnmarshalJSON(data []byte) error

type CohereServiceSettingsVariant ¶

type CohereServiceSettingsVariant interface {
	CohereServiceSettingsCaster() *CohereServiceSettings
}

type CohereTaskSettings ¶

type CohereTaskSettings struct {
	// InputType For a `text_embedding` task, the type of input passed to the model.
	// Valid values are:
	//
	// * `classification`: Use it for embeddings passed through a text classifier.
	// * `clustering`: Use it for the embeddings run through a clustering algorithm.
	// * `ingest`: Use it for storing document embeddings in a vector database.
	// * `search`: Use it for storing embeddings of search queries run against a
	// vector database to find relevant documents.
	//
	// IMPORTANT: The `input_type` field is required when using embedding models
	// `v3` and higher.
	InputType *cohereinputtype.CohereInputType `json:"input_type,omitempty"`
	// ReturnDocuments For a `rerank` task, return doc text within the results.
	ReturnDocuments *bool `json:"return_documents,omitempty"`
	// TopN For a `rerank` task, the number of most relevant documents to return.
	// It defaults to the number of the documents.
	// If this inference endpoint is used in a `text_similarity_reranker` retriever
	// query and `top_n` is set, it must be greater than or equal to
	// `rank_window_size` in the query.
	TopN *int `json:"top_n,omitempty"`
	// Truncate For a `text_embedding` task, the method to handle inputs longer than the
	// maximum token length.
	// Valid values are:
	//
	// * `END`: When the input exceeds the maximum input token length, the end of
	// the input is discarded.
	// * `NONE`: When the input exceeds the maximum input token length, an error is
	// returned.
	// * `START`: When the input exceeds the maximum input token length, the start
	// of the input is discarded.
	Truncate *coheretruncatetype.CohereTruncateType `json:"truncate,omitempty"`
}

CohereTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L870-L902

func NewCohereTaskSettings ¶

func NewCohereTaskSettings() *CohereTaskSettings

NewCohereTaskSettings returns a CohereTaskSettings.

func (*CohereTaskSettings) CohereTaskSettingsCaster ¶

func (s *CohereTaskSettings) CohereTaskSettingsCaster() *CohereTaskSettings

func (*CohereTaskSettings) UnmarshalJSON ¶

func (s *CohereTaskSettings) UnmarshalJSON(data []byte) error

type CohereTaskSettingsVariant ¶

type CohereTaskSettingsVariant interface {
	CohereTaskSettingsCaster() *CohereTaskSettings
}

type Collector ¶

type Collector struct {
	Children    []Collector `json:"children,omitempty"`
	Name        string      `json:"name"`
	Reason      string      `json:"reason"`
	TimeInNanos int64       `json:"time_in_nanos"`
}

Collector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L94-L99

func NewCollector ¶

func NewCollector() *Collector

NewCollector returns a Collector.

func (*Collector) UnmarshalJSON ¶

func (s *Collector) UnmarshalJSON(data []byte) error

type Column ¶

type Column struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Column type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/sql/_types/types.ts#L23-L26

func NewColumn ¶

func NewColumn() *Column

NewColumn returns a Column.

func (*Column) UnmarshalJSON ¶

func (s *Column) UnmarshalJSON(data []byte) error

type CombinedFieldsQuery ¶

type CombinedFieldsQuery struct {
	// AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term
	// synonyms.
	AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Fields List of fields to search. Field wildcard patterns are allowed. Only `text`
	// fields are supported, and they must all have the same search `analyzer`.
	Fields []string `json:"fields"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Operator Boolean logic used to interpret text in the query value.
	Operator *combinedfieldsoperator.CombinedFieldsOperator `json:"operator,omitempty"`
	// Query Text to search for in the provided `fields`.
	// The `combined_fields` query analyzes the provided text before performing a
	// search.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// ZeroTermsQuery Indicates whether no documents are returned if the analyzer removes all
	// tokens, such as when using a `stop` filter.
	ZeroTermsQuery *combinedfieldszeroterms.CombinedFieldsZeroTerms `json:"zero_terms_query,omitempty"`
}

CombinedFieldsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/abstractions.ts#L472-L506

func NewCombinedFieldsQuery ¶

func NewCombinedFieldsQuery() *CombinedFieldsQuery

NewCombinedFieldsQuery returns a CombinedFieldsQuery.

func (*CombinedFieldsQuery) CombinedFieldsQueryCaster ¶

func (s *CombinedFieldsQuery) CombinedFieldsQueryCaster() *CombinedFieldsQuery

func (*CombinedFieldsQuery) UnmarshalJSON ¶

func (s *CombinedFieldsQuery) UnmarshalJSON(data []byte) error

type CombinedFieldsQueryVariant ¶

type CombinedFieldsQueryVariant interface {
	CombinedFieldsQueryCaster() *CombinedFieldsQuery
}

type Command ¶

type Command struct {
	// AllocateEmptyPrimary Allocate an empty primary shard to a node. Accepts the index and shard for
	// index name and shard number, and node to allocate the shard to. Using this
	// command leads to a complete loss of all data that was indexed into this
	// shard, if it was previously started. If a node which has a copy of the data
	// rejoins the cluster later on, that data will be deleted. To ensure that these
	// implications are well-understood, this command requires the flag
	// accept_data_loss to be explicitly set to true.
	AllocateEmptyPrimary *CommandAllocatePrimaryAction `json:"allocate_empty_primary,omitempty"`
	// AllocateReplica Allocate an unassigned replica shard to a node. Accepts index and shard for
	// index name and shard number, and node to allocate the shard to. Takes
	// allocation deciders into account.
	AllocateReplica *CommandAllocateReplicaAction `json:"allocate_replica,omitempty"`
	// AllocateStalePrimary Allocate a primary shard to a node that holds a stale copy. Accepts the index
	// and shard for index name and shard number, and node to allocate the shard to.
	// Using this command may lead to data loss for the provided shard id. If a node
	// which has the good copy of the data rejoins the cluster later on, that data
	// will be deleted or overwritten with the data of the stale copy that was
	// forcefully allocated with this command. To ensure that these implications are
	// well-understood, this command requires the flag accept_data_loss to be
	// explicitly set to true.
	AllocateStalePrimary *CommandAllocatePrimaryAction `json:"allocate_stale_primary,omitempty"`
	// Cancel Cancel allocation of a shard (or recovery). Accepts index and shard for index
	// name and shard number, and node for the node to cancel the shard allocation
	// on. This can be used to force resynchronization of existing replicas from the
	// primary shard by cancelling them and allowing them to be reinitialized
	// through the standard recovery process. By default only replica shard
	// allocations can be cancelled. If it is necessary to cancel the allocation of
	// a primary shard then the allow_primary flag must also be included in the
	// request.
	Cancel *CommandCancelAction `json:"cancel,omitempty"`
	// Move Move a started shard from one node to another node. Accepts index and shard
	// for index name and shard number, from_node for the node to move the shard
	// from, and to_node for the node to move the shard to.
	Move *CommandMoveAction `json:"move,omitempty"`
}

Command type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L22-L43

func NewCommand ¶

func NewCommand() *Command

NewCommand returns a Command.

func (*Command) CommandCaster ¶

func (s *Command) CommandCaster() *Command

type CommandAllocatePrimaryAction ¶

type CommandAllocatePrimaryAction struct {
	// AcceptDataLoss If a node which has a copy of the data rejoins the cluster later on, that
	// data will be deleted. To ensure that these implications are well-understood,
	// this command requires the flag accept_data_loss to be explicitly set to true
	AcceptDataLoss bool   `json:"accept_data_loss"`
	Index          string `json:"index"`
	Node           string `json:"node"`
	Shard          int    `json:"shard"`
}

CommandAllocatePrimaryAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L78-L84

func NewCommandAllocatePrimaryAction ¶

func NewCommandAllocatePrimaryAction() *CommandAllocatePrimaryAction

NewCommandAllocatePrimaryAction returns a CommandAllocatePrimaryAction.

func (*CommandAllocatePrimaryAction) CommandAllocatePrimaryActionCaster ¶

func (s *CommandAllocatePrimaryAction) CommandAllocatePrimaryActionCaster() *CommandAllocatePrimaryAction

func (*CommandAllocatePrimaryAction) UnmarshalJSON ¶

func (s *CommandAllocatePrimaryAction) UnmarshalJSON(data []byte) error

type CommandAllocatePrimaryActionVariant ¶

type CommandAllocatePrimaryActionVariant interface {
	CommandAllocatePrimaryActionCaster() *CommandAllocatePrimaryAction
}

type CommandAllocateReplicaAction ¶

type CommandAllocateReplicaAction struct {
	Index string `json:"index"`
	Node  string `json:"node"`
	Shard int    `json:"shard"`
}

CommandAllocateReplicaAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L69-L76

func NewCommandAllocateReplicaAction ¶

func NewCommandAllocateReplicaAction() *CommandAllocateReplicaAction

NewCommandAllocateReplicaAction returns a CommandAllocateReplicaAction.

func (*CommandAllocateReplicaAction) CommandAllocateReplicaActionCaster ¶

func (s *CommandAllocateReplicaAction) CommandAllocateReplicaActionCaster() *CommandAllocateReplicaAction

func (*CommandAllocateReplicaAction) UnmarshalJSON ¶

func (s *CommandAllocateReplicaAction) UnmarshalJSON(data []byte) error

type CommandAllocateReplicaActionVariant ¶

type CommandAllocateReplicaActionVariant interface {
	CommandAllocateReplicaActionCaster() *CommandAllocateReplicaAction
}

type CommandCancelAction ¶

type CommandCancelAction struct {
	AllowPrimary *bool  `json:"allow_primary,omitempty"`
	Index        string `json:"index"`
	Node         string `json:"node"`
	Shard        int    `json:"shard"`
}

CommandCancelAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L45-L50

func NewCommandCancelAction ¶

func NewCommandCancelAction() *CommandCancelAction

NewCommandCancelAction returns a CommandCancelAction.

func (*CommandCancelAction) CommandCancelActionCaster ¶

func (s *CommandCancelAction) CommandCancelActionCaster() *CommandCancelAction

func (*CommandCancelAction) UnmarshalJSON ¶

func (s *CommandCancelAction) UnmarshalJSON(data []byte) error

type CommandCancelActionVariant ¶

type CommandCancelActionVariant interface {
	CommandCancelActionCaster() *CommandCancelAction
}

type CommandMoveAction ¶

type CommandMoveAction struct {
	// FromNode The node to move the shard from
	FromNode string `json:"from_node"`
	Index    string `json:"index"`
	Shard    int    `json:"shard"`
	// ToNode The node to move the shard to
	ToNode string `json:"to_node"`
}

CommandMoveAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L60-L67

func NewCommandMoveAction ¶

func NewCommandMoveAction() *CommandMoveAction

NewCommandMoveAction returns a CommandMoveAction.

func (*CommandMoveAction) CommandMoveActionCaster ¶

func (s *CommandMoveAction) CommandMoveActionCaster() *CommandMoveAction

func (*CommandMoveAction) UnmarshalJSON ¶

func (s *CommandMoveAction) UnmarshalJSON(data []byte) error

type CommandMoveActionVariant ¶

type CommandMoveActionVariant interface {
	CommandMoveActionCaster() *CommandMoveAction
}

type CommandVariant ¶

type CommandVariant interface {
	CommandCaster() *Command
}

type CommonGramsTokenFilter ¶

type CommonGramsTokenFilter struct {
	// CommonWords A list of tokens. The filter generates bigrams for these tokens.
	// Either this or the `common_words_path` parameter is required.
	CommonWords []string `json:"common_words,omitempty"`
	// CommonWordsPath Path to a file containing a list of tokens. The filter generates bigrams for
	// these tokens.
	// This path must be absolute or relative to the `config` location. The file
	// must be UTF-8 encoded. Each token in the file must be separated by a line
	// break.
	// Either this or the `common_words` parameter is required.
	CommonWordsPath *string `json:"common_words_path,omitempty"`
	// IgnoreCase If `true`, matches for common words matching are case-insensitive. Defaults
	// to `false`.
	IgnoreCase *bool `json:"ignore_case,omitempty"`
	// QueryMode If `true`, the filter excludes the following tokens from the output:
	// - Unigrams for common words
	// - Unigrams for terms followed by common words
	// Defaults to `false`. We recommend enabling this parameter for search
	// analyzers.
	QueryMode *bool   `json:"query_mode,omitempty"`
	Type      string  `json:"type,omitempty"`
	Version   *string `json:"version,omitempty"`
}

CommonGramsTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L219-L235

func NewCommonGramsTokenFilter ¶

func NewCommonGramsTokenFilter() *CommonGramsTokenFilter

NewCommonGramsTokenFilter returns a CommonGramsTokenFilter.

func (*CommonGramsTokenFilter) CommonGramsTokenFilterCaster ¶

func (s *CommonGramsTokenFilter) CommonGramsTokenFilterCaster() *CommonGramsTokenFilter

func (CommonGramsTokenFilter) MarshalJSON ¶

func (s CommonGramsTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CommonGramsTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *CommonGramsTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*CommonGramsTokenFilter) UnmarshalJSON ¶

func (s *CommonGramsTokenFilter) UnmarshalJSON(data []byte) error

type CommonGramsTokenFilterVariant ¶

type CommonGramsTokenFilterVariant interface {
	CommonGramsTokenFilterCaster() *CommonGramsTokenFilter
}

type CommonTermsQuery ¶

type CommonTermsQuery struct {
	Analyzer *string `json:"analyzer,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost              *float32           `json:"boost,omitempty"`
	CutoffFrequency    *Float64           `json:"cutoff_frequency,omitempty"`
	HighFreqOperator   *operator.Operator `json:"high_freq_operator,omitempty"`
	LowFreqOperator    *operator.Operator `json:"low_freq_operator,omitempty"`
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	Query              string             `json:"query"`
	QueryName_         *string            `json:"_name,omitempty"`
}

CommonTermsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L34-L44

func NewCommonTermsQuery ¶

func NewCommonTermsQuery() *CommonTermsQuery

NewCommonTermsQuery returns a CommonTermsQuery.

func (*CommonTermsQuery) CommonTermsQueryCaster ¶

func (s *CommonTermsQuery) CommonTermsQueryCaster() *CommonTermsQuery

func (*CommonTermsQuery) UnmarshalJSON ¶

func (s *CommonTermsQuery) UnmarshalJSON(data []byte) error

type CommonTermsQueryVariant ¶

type CommonTermsQueryVariant interface {
	CommonTermsQueryCaster() *CommonTermsQuery
}

type CommunityIDProcessor ¶

type CommunityIDProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// DestinationIp Field containing the destination IP address.
	DestinationIp *string `json:"destination_ip,omitempty"`
	// DestinationPort Field containing the destination port.
	DestinationPort *string `json:"destination_port,omitempty"`
	// IanaNumber Field containing the IANA number.
	IanaNumber *string `json:"iana_number,omitempty"`
	// IcmpCode Field containing the ICMP code.
	IcmpCode *string `json:"icmp_code,omitempty"`
	// IcmpType Field containing the ICMP type.
	IcmpType *string `json:"icmp_type,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If true and any required fields are missing, the processor quietly exits
	// without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Seed Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The
	// seed can prevent hash collisions between network domains, such as a staging
	// and production network that use the same addressing scheme.
	Seed *int `json:"seed,omitempty"`
	// SourceIp Field containing the source IP address.
	SourceIp *string `json:"source_ip,omitempty"`
	// SourcePort Field containing the source port.
	SourcePort *string `json:"source_port,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Output field for the community ID.
	TargetField *string `json:"target_field,omitempty"`
	// Transport Field containing the transport protocol name or number. Used only when the
	// iana_number field is not present. The following protocol names are currently
	// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp,
	// udp
	Transport *string `json:"transport,omitempty"`
}

CommunityIDProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L599-L660

func NewCommunityIDProcessor ¶

func NewCommunityIDProcessor() *CommunityIDProcessor

NewCommunityIDProcessor returns a CommunityIDProcessor.

func (*CommunityIDProcessor) CommunityIDProcessorCaster ¶

func (s *CommunityIDProcessor) CommunityIDProcessorCaster() *CommunityIDProcessor

func (*CommunityIDProcessor) UnmarshalJSON ¶

func (s *CommunityIDProcessor) UnmarshalJSON(data []byte) error

type CommunityIDProcessorVariant ¶

type CommunityIDProcessorVariant interface {
	CommunityIDProcessorCaster() *CommunityIDProcessor
}

type CompactNodeInfo ¶

type CompactNodeInfo struct {
	// Name A human-readable name for the node.
	// You can set this name using the `node.name` property in `elasticsearch.yml`.
	// The default value is the machine's hostname.
	Name string `json:"name"`
}

CompactNodeInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40

func NewCompactNodeInfo ¶

func NewCompactNodeInfo() *CompactNodeInfo

NewCompactNodeInfo returns a CompactNodeInfo.

func (*CompactNodeInfo) UnmarshalJSON ¶

func (s *CompactNodeInfo) UnmarshalJSON(data []byte) error

type CompletionContext ¶

type CompletionContext struct {
	// Boost The factor by which the score of the suggestion should be boosted.
	// The score is computed by multiplying the boost with the suggestion weight.
	Boost *Float64 `json:"boost,omitempty"`
	// Context The value of the category to filter/boost on.
	Context Context `json:"context"`
	// Neighbours An array of precision values at which neighboring geohashes should be taken
	// into account.
	// Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash
	// precision (`1`..`12`).
	// Defaults to generating neighbors for index time precision level.
	Neighbours []GeoHashPrecision `json:"neighbours,omitempty"`
	// Precision The precision of the geohash to encode the query geo point.
	// Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw
	// geohash precision (`1`..`12`).
	// Defaults to index time precision level.
	Precision GeoHashPrecision `json:"precision,omitempty"`
	// Prefix Whether the category value should be treated as a prefix or not.
	Prefix *bool `json:"prefix,omitempty"`
}

CompletionContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L236-L265

func NewCompletionContext ¶

func NewCompletionContext() *CompletionContext

NewCompletionContext returns a CompletionContext.

func (*CompletionContext) CompletionContextCaster ¶

func (s *CompletionContext) CompletionContextCaster() *CompletionContext

func (*CompletionContext) UnmarshalJSON ¶

func (s *CompletionContext) UnmarshalJSON(data []byte) error

type CompletionContextVariant ¶

type CompletionContextVariant interface {
	CompletionContextCaster() *CompletionContext
}

type CompletionProperty ¶

type CompletionProperty struct {
	Analyzer       *string                        `json:"analyzer,omitempty"`
	Contexts       []SuggestContext               `json:"contexts,omitempty"`
	CopyTo         []string                       `json:"copy_to,omitempty"`
	DocValues      *bool                          `json:"doc_values,omitempty"`
	Dynamic        *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields         map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove    *int                           `json:"ignore_above,omitempty"`
	MaxInputLength *int                           `json:"max_input_length,omitempty"`
	// Meta Metadata about the field.
	Meta                       map[string]string                                `json:"meta,omitempty"`
	PreservePositionIncrements *bool                                            `json:"preserve_position_increments,omitempty"`
	PreserveSeparators         *bool                                            `json:"preserve_separators,omitempty"`
	Properties                 map[string]Property                              `json:"properties,omitempty"`
	SearchAnalyzer             *string                                          `json:"search_analyzer,omitempty"`
	Store                      *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep        *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                       string                                           `json:"type,omitempty"`
}

CompletionProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L33-L41

func NewCompletionProperty ¶

func NewCompletionProperty() *CompletionProperty

NewCompletionProperty returns a CompletionProperty.

func (*CompletionProperty) CompletionPropertyCaster ¶

func (s *CompletionProperty) CompletionPropertyCaster() *CompletionProperty

func (CompletionProperty) MarshalJSON ¶

func (s CompletionProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CompletionProperty) PropertyCaster ¶ added in v9.0.1

func (s *CompletionProperty) PropertyCaster() *Property

func (*CompletionProperty) UnmarshalJSON ¶

func (s *CompletionProperty) UnmarshalJSON(data []byte) error

type CompletionPropertyVariant ¶

type CompletionPropertyVariant interface {
	CompletionPropertyCaster() *CompletionProperty
}

type CompletionResult ¶

type CompletionResult struct {
	Result string `json:"result"`
}

CompletionResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Results.ts#L77-L82

func NewCompletionResult ¶

func NewCompletionResult() *CompletionResult

NewCompletionResult returns a CompletionResult.

func (*CompletionResult) UnmarshalJSON ¶

func (s *CompletionResult) UnmarshalJSON(data []byte) error

type CompletionStats ¶

type CompletionStats struct {
	Fields map[string]FieldSizeUsage `json:"fields,omitempty"`
	// Size Total amount of memory used for completion across all shards assigned to
	// selected nodes.
	Size ByteSize `json:"size,omitempty"`
	// SizeInBytes Total amount, in bytes, of memory used for completion across all shards
	// assigned to selected nodes.
	SizeInBytes int64 `json:"size_in_bytes"`
}

CompletionStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L83-L93

func NewCompletionStats ¶

func NewCompletionStats() *CompletionStats

NewCompletionStats returns a CompletionStats.

func (*CompletionStats) UnmarshalJSON ¶

func (s *CompletionStats) UnmarshalJSON(data []byte) error

type CompletionSuggest ¶

type CompletionSuggest struct {
	Length  int                       `json:"length"`
	Offset  int                       `json:"offset"`
	Options []CompletionSuggestOption `json:"options"`
	Text    string                    `json:"text"`
}

CompletionSuggest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L49-L56

func NewCompletionSuggest ¶

func NewCompletionSuggest() *CompletionSuggest

NewCompletionSuggest returns a CompletionSuggest.

func (*CompletionSuggest) UnmarshalJSON ¶

func (s *CompletionSuggest) UnmarshalJSON(data []byte) error

type CompletionSuggestOption ¶

type CompletionSuggestOption struct {
	CollateMatch *bool                      `json:"collate_match,omitempty"`
	Contexts     map[string][]Context       `json:"contexts,omitempty"`
	Fields       map[string]json.RawMessage `json:"fields,omitempty"`
	Id_          *string                    `json:"_id,omitempty"`
	Index_       *string                    `json:"_index,omitempty"`
	Routing_     *string                    `json:"_routing,omitempty"`
	Score        *Float64                   `json:"score,omitempty"`
	Score_       *Float64                   `json:"_score,omitempty"`
	Source_      json.RawMessage            `json:"_source,omitempty"`
	Text         string                     `json:"text"`
}

CompletionSuggestOption type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L74-L85

func NewCompletionSuggestOption ¶

func NewCompletionSuggestOption() *CompletionSuggestOption

NewCompletionSuggestOption returns a CompletionSuggestOption.

func (*CompletionSuggestOption) UnmarshalJSON ¶

func (s *CompletionSuggestOption) UnmarshalJSON(data []byte) error

type CompletionSuggester ¶

type CompletionSuggester struct {
	// Analyzer The analyzer to analyze the suggest text with.
	// Defaults to the search analyzer of the suggest field.
	Analyzer *string `json:"analyzer,omitempty"`
	// Contexts A value, geo point object, or a geo hash string to filter or boost the
	// suggestion on.
	Contexts map[string][]CompletionContext `json:"contexts,omitempty"`
	// Field The field to fetch the candidate suggestions from.
	// Needs to be set globally or per suggestion.
	Field string `json:"field"`
	// Fuzzy Enables fuzziness, meaning you can have a typo in your search and still get
	// results back.
	Fuzzy *SuggestFuzziness `json:"fuzzy,omitempty"`
	// Regex A regex query that expresses a prefix as a regular expression.
	Regex *RegexOptions `json:"regex,omitempty"`
	// Size The maximum corrections to be returned per suggest text token.
	Size *int `json:"size,omitempty"`
	// SkipDuplicates Whether duplicate suggestions should be filtered out.
	SkipDuplicates *bool `json:"skip_duplicates,omitempty"`
}

CompletionSuggester type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L164-L182

func NewCompletionSuggester ¶

func NewCompletionSuggester() *CompletionSuggester

NewCompletionSuggester returns a CompletionSuggester.

func (*CompletionSuggester) CompletionSuggesterCaster ¶

func (s *CompletionSuggester) CompletionSuggesterCaster() *CompletionSuggester

func (*CompletionSuggester) UnmarshalJSON ¶

func (s *CompletionSuggester) UnmarshalJSON(data []byte) error

type CompletionSuggesterVariant ¶

type CompletionSuggesterVariant interface {
	CompletionSuggesterCaster() *CompletionSuggester
}

type CompletionTool ¶

type CompletionTool struct {
	// Function The function definition.
	Function CompletionToolFunction `json:"function"`
	// Type The type of tool.
	Type string `json:"type"`
}

CompletionTool type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L278-L290

func NewCompletionTool ¶

func NewCompletionTool() *CompletionTool

NewCompletionTool returns a CompletionTool.

func (*CompletionTool) CompletionToolCaster ¶

func (s *CompletionTool) CompletionToolCaster() *CompletionTool

func (*CompletionTool) UnmarshalJSON ¶

func (s *CompletionTool) UnmarshalJSON(data []byte) error

type CompletionToolChoice ¶

type CompletionToolChoice struct {
	// Function The tool choice function.
	Function CompletionToolChoiceFunction `json:"function"`
	// Type The type of the tool.
	Type string `json:"type"`
}

CompletionToolChoice type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L241-L253

func NewCompletionToolChoice ¶

func NewCompletionToolChoice() *CompletionToolChoice

NewCompletionToolChoice returns a CompletionToolChoice.

func (*CompletionToolChoice) CompletionToolChoiceCaster ¶

func (s *CompletionToolChoice) CompletionToolChoiceCaster() *CompletionToolChoice

func (*CompletionToolChoice) CompletionToolTypeCaster ¶ added in v9.0.1

func (s *CompletionToolChoice) CompletionToolTypeCaster() *CompletionToolType

func (*CompletionToolChoice) UnmarshalJSON ¶

func (s *CompletionToolChoice) UnmarshalJSON(data []byte) error

type CompletionToolChoiceFunction ¶

type CompletionToolChoiceFunction struct {
	// Name The name of the function to call.
	Name string `json:"name"`
}

CompletionToolChoiceFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L230-L239

func NewCompletionToolChoiceFunction ¶

func NewCompletionToolChoiceFunction() *CompletionToolChoiceFunction

NewCompletionToolChoiceFunction returns a CompletionToolChoiceFunction.

func (*CompletionToolChoiceFunction) CompletionToolChoiceFunctionCaster ¶

func (s *CompletionToolChoiceFunction) CompletionToolChoiceFunctionCaster() *CompletionToolChoiceFunction

func (*CompletionToolChoiceFunction) UnmarshalJSON ¶

func (s *CompletionToolChoiceFunction) UnmarshalJSON(data []byte) error

type CompletionToolChoiceFunctionVariant ¶

type CompletionToolChoiceFunctionVariant interface {
	CompletionToolChoiceFunctionCaster() *CompletionToolChoiceFunction
}

type CompletionToolChoiceVariant ¶

type CompletionToolChoiceVariant interface {
	CompletionToolChoiceCaster() *CompletionToolChoice
}

type CompletionToolFunction ¶

type CompletionToolFunction struct {
	// Description A description of what the function does.
	// This is used by the model to choose when and how to call the function.
	Description *string `json:"description,omitempty"`
	// Name The name of the function.
	Name string `json:"name"`
	// Parameters The parameters the functional accepts. This should be formatted as a JSON
	// object.
	Parameters json.RawMessage `json:"parameters,omitempty"`
	// Strict Whether to enable schema adherence when generating the function call.
	Strict *bool `json:"strict,omitempty"`
}

CompletionToolFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L255-L276

func NewCompletionToolFunction ¶

func NewCompletionToolFunction() *CompletionToolFunction

NewCompletionToolFunction returns a CompletionToolFunction.

func (*CompletionToolFunction) CompletionToolFunctionCaster ¶

func (s *CompletionToolFunction) CompletionToolFunctionCaster() *CompletionToolFunction

func (*CompletionToolFunction) UnmarshalJSON ¶

func (s *CompletionToolFunction) UnmarshalJSON(data []byte) error

type CompletionToolFunctionVariant ¶

type CompletionToolFunctionVariant interface {
	CompletionToolFunctionCaster() *CompletionToolFunction
}

type CompletionToolType ¶

type CompletionToolType any

CompletionToolType holds the union for the following types:

string
CompletionToolChoice

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L118-L121

type CompletionToolTypeVariant ¶

type CompletionToolTypeVariant interface {
	CompletionToolTypeCaster() *CompletionToolType
}

type CompletionToolVariant ¶

type CompletionToolVariant interface {
	CompletionToolCaster() *CompletionTool
}

type ComponentTemplateNode ¶

type ComponentTemplateNode struct {
	Deprecated *bool                    `json:"deprecated,omitempty"`
	Meta_      Metadata                 `json:"_meta,omitempty"`
	Template   ComponentTemplateSummary `json:"template"`
	Version    *int64                   `json:"version,omitempty"`
}

ComponentTemplateNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/_types/ComponentTemplate.ts#L33-L42

func NewComponentTemplateNode ¶

func NewComponentTemplateNode() *ComponentTemplateNode

NewComponentTemplateNode returns a ComponentTemplateNode.

func (*ComponentTemplateNode) ComponentTemplateNodeCaster ¶

func (s *ComponentTemplateNode) ComponentTemplateNodeCaster() *ComponentTemplateNode

func (*ComponentTemplateNode) UnmarshalJSON ¶

func (s *ComponentTemplateNode) UnmarshalJSON(data []byte) error

type ComponentTemplateNodeVariant ¶

type ComponentTemplateNodeVariant interface {
	ComponentTemplateNodeCaster() *ComponentTemplateNode
}

type ComponentTemplateSummary ¶

type ComponentTemplateSummary struct {
	Aliases           map[string]AliasDefinition       `json:"aliases,omitempty"`
	DataStreamOptions *DataStreamOptionsTemplate       `json:"data_stream_options,omitempty"`
	Lifecycle         *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
	Mappings          *TypeMapping                     `json:"mappings,omitempty"`
	Meta_             Metadata                         `json:"_meta,omitempty"`
	Settings          map[string]IndexSettings         `json:"settings,omitempty"`
	Version           *int64                           `json:"version,omitempty"`
}

ComponentTemplateSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/_types/ComponentTemplate.ts#L44-L61

func NewComponentTemplateSummary ¶

func NewComponentTemplateSummary() *ComponentTemplateSummary

NewComponentTemplateSummary returns a ComponentTemplateSummary.

func (*ComponentTemplateSummary) ComponentTemplateSummaryCaster ¶

func (s *ComponentTemplateSummary) ComponentTemplateSummaryCaster() *ComponentTemplateSummary

func (*ComponentTemplateSummary) UnmarshalJSON ¶

func (s *ComponentTemplateSummary) UnmarshalJSON(data []byte) error

type ComponentTemplateSummaryVariant ¶

type ComponentTemplateSummaryVariant interface {
	ComponentTemplateSummaryCaster() *ComponentTemplateSummary
}

type CompositeAggregate ¶

type CompositeAggregate struct {
	AfterKey CompositeAggregateKey  `json:"after_key,omitempty"`
	Buckets  BucketsCompositeBucket `json:"buckets"`
	Meta     Metadata               `json:"meta,omitempty"`
}

CompositeAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L700-L705

func NewCompositeAggregate ¶

func NewCompositeAggregate() *CompositeAggregate

NewCompositeAggregate returns a CompositeAggregate.

func (*CompositeAggregate) UnmarshalJSON ¶

func (s *CompositeAggregate) UnmarshalJSON(data []byte) error

type CompositeAggregateKeyVariant ¶

type CompositeAggregateKeyVariant interface {
	CompositeAggregateKeyCaster() *CompositeAggregateKey
}

type CompositeAggregation ¶

type CompositeAggregation struct {
	// After When paginating, use the `after_key` value returned in the previous response
	// to retrieve the next page.
	After CompositeAggregateKey `json:"after,omitempty"`
	// Size The number of composite buckets that should be returned.
	Size *int `json:"size,omitempty"`
	// Sources The value sources used to build composite buckets.
	// Keys are returned in the order of the `sources` definition.
	Sources []map[string]CompositeAggregationSource `json:"sources,omitempty"`
}

CompositeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L130-L149

func NewCompositeAggregation ¶

func NewCompositeAggregation() *CompositeAggregation

NewCompositeAggregation returns a CompositeAggregation.

func (*CompositeAggregation) CompositeAggregationCaster ¶

func (s *CompositeAggregation) CompositeAggregationCaster() *CompositeAggregation

func (*CompositeAggregation) UnmarshalJSON ¶

func (s *CompositeAggregation) UnmarshalJSON(data []byte) error

type CompositeAggregationSource ¶

type CompositeAggregationSource struct {
	// DateHistogram A date histogram aggregation.
	DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"`
	// GeotileGrid A geotile grid aggregation.
	GeotileGrid *CompositeGeoTileGridAggregation `json:"geotile_grid,omitempty"`
	// Histogram A histogram aggregation.
	Histogram *CompositeHistogramAggregation `json:"histogram,omitempty"`
	// Terms A terms aggregation.
	Terms *CompositeTermsAggregation `json:"terms,omitempty"`
}

CompositeAggregationSource type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L151-L168

func NewCompositeAggregationSource ¶

func NewCompositeAggregationSource() *CompositeAggregationSource

NewCompositeAggregationSource returns a CompositeAggregationSource.

func (*CompositeAggregationSource) CompositeAggregationSourceCaster ¶

func (s *CompositeAggregationSource) CompositeAggregationSourceCaster() *CompositeAggregationSource

type CompositeAggregationSourceVariant ¶

type CompositeAggregationSourceVariant interface {
	CompositeAggregationSourceCaster() *CompositeAggregationSource
}

type CompositeAggregationVariant ¶

type CompositeAggregationVariant interface {
	CompositeAggregationCaster() *CompositeAggregation
}

type CompositeBucket ¶

type CompositeBucket struct {
	Aggregations map[string]Aggregate  `json:"-"`
	DocCount     int64                 `json:"doc_count"`
	Key          CompositeAggregateKey `json:"key"`
}

CompositeBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L707-L709

func NewCompositeBucket ¶

func NewCompositeBucket() *CompositeBucket

NewCompositeBucket returns a CompositeBucket.

func (CompositeBucket) MarshalJSON ¶

func (s CompositeBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*CompositeBucket) UnmarshalJSON ¶

func (s *CompositeBucket) UnmarshalJSON(data []byte) error

type CompositeDateHistogramAggregation ¶

type CompositeDateHistogramAggregation struct {
	// CalendarInterval Either `calendar_interval` or `fixed_interval` must be present
	CalendarInterval *string `json:"calendar_interval,omitempty"`
	// Field Either `field` or `script` must be present
	Field *string `json:"field,omitempty"`
	// FixedInterval Either `calendar_interval` or `fixed_interval` must be present
	FixedInterval *string                    `json:"fixed_interval,omitempty"`
	Format        *string                    `json:"format,omitempty"`
	MissingBucket *bool                      `json:"missing_bucket,omitempty"`
	MissingOrder  *missingorder.MissingOrder `json:"missing_order,omitempty"`
	Offset        Duration                   `json:"offset,omitempty"`
	Order         *sortorder.SortOrder       `json:"order,omitempty"`
	// Script Either `field` or `script` must be present
	Script    *Script              `json:"script,omitempty"`
	TimeZone  *string              `json:"time_zone,omitempty"`
	ValueType *valuetype.ValueType `json:"value_type,omitempty"`
}

CompositeDateHistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L187-L195

func NewCompositeDateHistogramAggregation ¶

func NewCompositeDateHistogramAggregation() *CompositeDateHistogramAggregation

NewCompositeDateHistogramAggregation returns a CompositeDateHistogramAggregation.

func (*CompositeDateHistogramAggregation) CompositeDateHistogramAggregationCaster ¶

func (s *CompositeDateHistogramAggregation) CompositeDateHistogramAggregationCaster() *CompositeDateHistogramAggregation

func (*CompositeDateHistogramAggregation) UnmarshalJSON ¶

func (s *CompositeDateHistogramAggregation) UnmarshalJSON(data []byte) error

type CompositeDateHistogramAggregationVariant ¶

type CompositeDateHistogramAggregationVariant interface {
	CompositeDateHistogramAggregationCaster() *CompositeDateHistogramAggregation
}

type CompositeGeoTileGridAggregation ¶

type CompositeGeoTileGridAggregation struct {
	Bounds GeoBounds `json:"bounds,omitempty"`
	// Field Either `field` or `script` must be present
	Field         *string                    `json:"field,omitempty"`
	MissingBucket *bool                      `json:"missing_bucket,omitempty"`
	MissingOrder  *missingorder.MissingOrder `json:"missing_order,omitempty"`
	Order         *sortorder.SortOrder       `json:"order,omitempty"`
	Precision     *int                       `json:"precision,omitempty"`
	// Script Either `field` or `script` must be present
	Script    *Script              `json:"script,omitempty"`
	ValueType *valuetype.ValueType `json:"value_type,omitempty"`
}

CompositeGeoTileGridAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L197-L200

func NewCompositeGeoTileGridAggregation ¶

func NewCompositeGeoTileGridAggregation() *CompositeGeoTileGridAggregation

NewCompositeGeoTileGridAggregation returns a CompositeGeoTileGridAggregation.

func (*CompositeGeoTileGridAggregation) CompositeGeoTileGridAggregationCaster ¶

func (s *CompositeGeoTileGridAggregation) CompositeGeoTileGridAggregationCaster() *CompositeGeoTileGridAggregation

func (*CompositeGeoTileGridAggregation) UnmarshalJSON ¶

func (s *CompositeGeoTileGridAggregation) UnmarshalJSON(data []byte) error

type CompositeGeoTileGridAggregationVariant ¶

type CompositeGeoTileGridAggregationVariant interface {
	CompositeGeoTileGridAggregationCaster() *CompositeGeoTileGridAggregation
}

type CompositeHistogramAggregation ¶

type CompositeHistogramAggregation struct {
	// Field Either `field` or `script` must be present
	Field         *string                    `json:"field,omitempty"`
	Interval      Float64                    `json:"interval"`
	MissingBucket *bool                      `json:"missing_bucket,omitempty"`
	MissingOrder  *missingorder.MissingOrder `json:"missing_order,omitempty"`
	Order         *sortorder.SortOrder       `json:"order,omitempty"`
	// Script Either `field` or `script` must be present
	Script    *Script              `json:"script,omitempty"`
	ValueType *valuetype.ValueType `json:"value_type,omitempty"`
}

CompositeHistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L183-L185

func NewCompositeHistogramAggregation ¶

func NewCompositeHistogramAggregation() *CompositeHistogramAggregation

NewCompositeHistogramAggregation returns a CompositeHistogramAggregation.

func (*CompositeHistogramAggregation) CompositeHistogramAggregationCaster ¶

func (s *CompositeHistogramAggregation) CompositeHistogramAggregationCaster() *CompositeHistogramAggregation

func (*CompositeHistogramAggregation) UnmarshalJSON ¶

func (s *CompositeHistogramAggregation) UnmarshalJSON(data []byte) error

type CompositeHistogramAggregationVariant ¶

type CompositeHistogramAggregationVariant interface {
	CompositeHistogramAggregationCaster() *CompositeHistogramAggregation
}

type CompositeSubField ¶

type CompositeSubField struct {
	Type runtimefieldtype.RuntimeFieldType `json:"type"`
}

CompositeSubField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/RuntimeFields.ts#L52-L54

func NewCompositeSubField ¶

func NewCompositeSubField() *CompositeSubField

NewCompositeSubField returns a CompositeSubField.

func (*CompositeSubField) CompositeSubFieldCaster ¶

func (s *CompositeSubField) CompositeSubFieldCaster() *CompositeSubField

type CompositeSubFieldVariant ¶

type CompositeSubFieldVariant interface {
	CompositeSubFieldCaster() *CompositeSubField
}

type CompositeTermsAggregation ¶

type CompositeTermsAggregation struct {
	// Field Either `field` or `script` must be present
	Field         *string                    `json:"field,omitempty"`
	MissingBucket *bool                      `json:"missing_bucket,omitempty"`
	MissingOrder  *missingorder.MissingOrder `json:"missing_order,omitempty"`
	Order         *sortorder.SortOrder       `json:"order,omitempty"`
	// Script Either `field` or `script` must be present
	Script    *Script              `json:"script,omitempty"`
	ValueType *valuetype.ValueType `json:"value_type,omitempty"`
}

CompositeTermsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L181-L181

func NewCompositeTermsAggregation ¶

func NewCompositeTermsAggregation() *CompositeTermsAggregation

NewCompositeTermsAggregation returns a CompositeTermsAggregation.

func (*CompositeTermsAggregation) CompositeTermsAggregationCaster ¶

func (s *CompositeTermsAggregation) CompositeTermsAggregationCaster() *CompositeTermsAggregation

func (*CompositeTermsAggregation) UnmarshalJSON ¶

func (s *CompositeTermsAggregation) UnmarshalJSON(data []byte) error

type CompositeTermsAggregationVariant ¶

type CompositeTermsAggregationVariant interface {
	CompositeTermsAggregationCaster() *CompositeTermsAggregation
}

type ConditionTokenFilter ¶

type ConditionTokenFilter struct {
	// Filter Array of token filters. If a token matches the predicate script in the
	// `script` parameter, these filters are applied to the token in the order
	// provided.
	Filter []string `json:"filter"`
	// Script Predicate script used to apply token filters. If a token matches this script,
	// the filters in the `filter` parameter are applied to the token.
	Script  Script  `json:"script"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ConditionTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L237-L243

func NewConditionTokenFilter ¶

func NewConditionTokenFilter() *ConditionTokenFilter

NewConditionTokenFilter returns a ConditionTokenFilter.

func (*ConditionTokenFilter) ConditionTokenFilterCaster ¶

func (s *ConditionTokenFilter) ConditionTokenFilterCaster() *ConditionTokenFilter

func (ConditionTokenFilter) MarshalJSON ¶

func (s ConditionTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ConditionTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ConditionTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ConditionTokenFilter) UnmarshalJSON ¶

func (s *ConditionTokenFilter) UnmarshalJSON(data []byte) error

type ConditionTokenFilterVariant ¶

type ConditionTokenFilterVariant interface {
	ConditionTokenFilterCaster() *ConditionTokenFilter
}

type Configuration ¶

type Configuration struct {
	// FeatureStates A list of feature states to be included in this snapshot. A list of features
	// available for inclusion in the snapshot and their descriptions be can be
	// retrieved using the get features API.
	// Each feature state includes one or more system indices containing data
	// necessary for the function of that feature. Providing an empty array will
	// include no feature states in the snapshot, regardless of the value of
	// include_global_state. By default, all available feature states will be
	// included in the snapshot if include_global_state is true, or no feature
	// states if include_global_state is false.
	FeatureStates []string `json:"feature_states,omitempty"`
	// IgnoreUnavailable If false, the snapshot fails if any data stream or index in indices is
	// missing or closed. If true, the snapshot ignores missing or closed data
	// streams and indices.
	IgnoreUnavailable *bool `json:"ignore_unavailable,omitempty"`
	// IncludeGlobalState If true, the current global state is included in the snapshot.
	IncludeGlobalState *bool `json:"include_global_state,omitempty"`
	// Indices A comma-separated list of data streams and indices to include in the
	// snapshot. Multi-index syntax is supported.
	// By default, a snapshot includes all data streams and indices in the cluster.
	// If this argument is provided, the snapshot only includes the specified data
	// streams and clusters.
	Indices []string `json:"indices,omitempty"`
	// Metadata Attaches arbitrary metadata to the snapshot, such as a record of who took the
	// snapshot, why it was taken, or any other useful data. Metadata must be less
	// than 1024 bytes.
	Metadata Metadata `json:"metadata,omitempty"`
	// Partial If false, the entire snapshot will fail if one or more indices included in
	// the snapshot do not have all primary shards available.
	Partial *bool `json:"partial,omitempty"`
}

Configuration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L109-L139

func NewConfiguration ¶

func NewConfiguration() *Configuration

NewConfiguration returns a Configuration.

func (*Configuration) ConfigurationCaster ¶

func (s *Configuration) ConfigurationCaster() *Configuration

func (*Configuration) UnmarshalJSON ¶

func (s *Configuration) UnmarshalJSON(data []byte) error

type ConfigurationVariant ¶

type ConfigurationVariant interface {
	ConfigurationCaster() *Configuration
}

type ConfusionMatrixItem ¶

type ConfusionMatrixItem struct {
	ActualClass                 string                      `json:"actual_class"`
	ActualClassDocCount         int                         `json:"actual_class_doc_count"`
	OtherPredictedClassDocCount int                         `json:"other_predicted_class_doc_count"`
	PredictedClasses            []ConfusionMatrixPrediction `json:"predicted_classes"`
}

ConfusionMatrixItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L125-L130

func NewConfusionMatrixItem ¶

func NewConfusionMatrixItem() *ConfusionMatrixItem

NewConfusionMatrixItem returns a ConfusionMatrixItem.

func (*ConfusionMatrixItem) UnmarshalJSON ¶

func (s *ConfusionMatrixItem) UnmarshalJSON(data []byte) error

type ConfusionMatrixPrediction ¶

type ConfusionMatrixPrediction struct {
	Count          int    `json:"count"`
	PredictedClass string `json:"predicted_class"`
}

ConfusionMatrixPrediction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L132-L135

func NewConfusionMatrixPrediction ¶

func NewConfusionMatrixPrediction() *ConfusionMatrixPrediction

NewConfusionMatrixPrediction returns a ConfusionMatrixPrediction.

func (*ConfusionMatrixPrediction) UnmarshalJSON ¶

func (s *ConfusionMatrixPrediction) UnmarshalJSON(data []byte) error

type ConfusionMatrixThreshold ¶

type ConfusionMatrixThreshold struct {
	// FalseNegative False Negative
	FalseNegative int `json:"fn"`
	// FalsePositive False Positive
	FalsePositive int `json:"fp"`
	// TrueNegative True Negative
	TrueNegative int `json:"tn"`
	// TruePositive True Positive
	TruePositive int `json:"tp"`
}

ConfusionMatrixThreshold type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L137-L158

func NewConfusionMatrixThreshold ¶

func NewConfusionMatrixThreshold() *ConfusionMatrixThreshold

NewConfusionMatrixThreshold returns a ConfusionMatrixThreshold.

func (*ConfusionMatrixThreshold) UnmarshalJSON ¶

func (s *ConfusionMatrixThreshold) UnmarshalJSON(data []byte) error

type Connection ¶

type Connection struct {
	DocCount int64   `json:"doc_count"`
	Source   int64   `json:"source"`
	Target   int64   `json:"target"`
	Weight   Float64 `json:"weight"`
}

Connection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/Connection.ts#L22-L27

func NewConnection ¶

func NewConnection() *Connection

NewConnection returns a Connection.

func (*Connection) UnmarshalJSON ¶

func (s *Connection) UnmarshalJSON(data []byte) error

type Connector ¶

type Connector struct {
	ApiKeyId                         *string                         `json:"api_key_id,omitempty"`
	ApiKeySecretId                   *string                         `json:"api_key_secret_id,omitempty"`
	Configuration                    ConnectorConfiguration          `json:"configuration"`
	CustomScheduling                 ConnectorCustomScheduling       `json:"custom_scheduling"`
	Deleted                          bool                            `json:"deleted"`
	Description                      *string                         `json:"description,omitempty"`
	Error                            *string                         `json:"error,omitempty"`
	Features                         *ConnectorFeatures              `json:"features,omitempty"`
	Filtering                        []FilteringConfig               `json:"filtering"`
	Id                               *string                         `json:"id,omitempty"`
	IndexName                        *string                         `json:"index_name,omitempty"`
	IsNative                         bool                            `json:"is_native"`
	Language                         *string                         `json:"language,omitempty"`
	LastAccessControlSyncError       *string                         `json:"last_access_control_sync_error,omitempty"`
	LastAccessControlSyncScheduledAt DateTime                        `json:"last_access_control_sync_scheduled_at,omitempty"`
	LastAccessControlSyncStatus      *syncstatus.SyncStatus          `json:"last_access_control_sync_status,omitempty"`
	LastDeletedDocumentCount         *int64                          `json:"last_deleted_document_count,omitempty"`
	LastIncrementalSyncScheduledAt   DateTime                        `json:"last_incremental_sync_scheduled_at,omitempty"`
	LastIndexedDocumentCount         *int64                          `json:"last_indexed_document_count,omitempty"`
	LastSeen                         DateTime                        `json:"last_seen,omitempty"`
	LastSyncError                    *string                         `json:"last_sync_error,omitempty"`
	LastSyncScheduledAt              DateTime                        `json:"last_sync_scheduled_at,omitempty"`
	LastSyncStatus                   *syncstatus.SyncStatus          `json:"last_sync_status,omitempty"`
	LastSynced                       DateTime                        `json:"last_synced,omitempty"`
	Name                             *string                         `json:"name,omitempty"`
	Pipeline                         *IngestPipelineParams           `json:"pipeline,omitempty"`
	Scheduling                       SchedulingConfiguration         `json:"scheduling"`
	ServiceType                      *string                         `json:"service_type,omitempty"`
	Status                           connectorstatus.ConnectorStatus `json:"status"`
	SyncCursor                       json.RawMessage                 `json:"sync_cursor,omitempty"`
	SyncNow                          bool                            `json:"sync_now"`
}

Connector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L252-L284

func NewConnector ¶

func NewConnector() *Connector

NewConnector returns a Connector.

func (*Connector) UnmarshalJSON ¶

func (s *Connector) UnmarshalJSON(data []byte) error

type ConnectorConfigProperties ¶

type ConnectorConfigProperties struct {
	Category       *string                                `json:"category,omitempty"`
	DefaultValue   ScalarValue                            `json:"default_value"`
	DependsOn      []Dependency                           `json:"depends_on"`
	Display        displaytype.DisplayType                `json:"display"`
	Label          string                                 `json:"label"`
	Options        []SelectOption                         `json:"options"`
	Order          *int                                   `json:"order,omitempty"`
	Placeholder    *string                                `json:"placeholder,omitempty"`
	Required       bool                                   `json:"required"`
	Sensitive      bool                                   `json:"sensitive"`
	Tooltip        *string                                `json:"tooltip,omitempty"`
	Type           *connectorfieldtype.ConnectorFieldType `json:"type,omitempty"`
	UiRestrictions []string                               `json:"ui_restrictions,omitempty"`
	Validations    []Validation                           `json:"validations,omitempty"`
	Value          json.RawMessage                        `json:"value,omitempty"`
}

ConnectorConfigProperties type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L83-L99

func NewConnectorConfigProperties ¶

func NewConnectorConfigProperties() *ConnectorConfigProperties

NewConnectorConfigProperties returns a ConnectorConfigProperties.

func (*ConnectorConfigProperties) ConnectorConfigPropertiesCaster ¶

func (s *ConnectorConfigProperties) ConnectorConfigPropertiesCaster() *ConnectorConfigProperties

func (*ConnectorConfigProperties) UnmarshalJSON ¶

func (s *ConnectorConfigProperties) UnmarshalJSON(data []byte) error

type ConnectorConfigPropertiesVariant ¶

type ConnectorConfigPropertiesVariant interface {
	ConnectorConfigPropertiesCaster() *ConnectorConfigProperties
}

type ConnectorConfigurationVariant ¶

type ConnectorConfigurationVariant interface {
	ConnectorConfigurationCaster() *ConnectorConfiguration
}

type ConnectorFeatures ¶

type ConnectorFeatures struct {
	// DocumentLevelSecurity Indicates whether document-level security is enabled.
	DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"`
	// IncrementalSync Indicates whether incremental syncs are enabled.
	IncrementalSync *FeatureEnabled `json:"incremental_sync,omitempty"`
	// NativeConnectorApiKeys Indicates whether managed connector API keys are enabled.
	NativeConnectorApiKeys *FeatureEnabled   `json:"native_connector_api_keys,omitempty"`
	SyncRules              *SyncRulesFeature `json:"sync_rules,omitempty"`
}

ConnectorFeatures type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L230-L244

func NewConnectorFeatures ¶

func NewConnectorFeatures() *ConnectorFeatures

NewConnectorFeatures returns a ConnectorFeatures.

func (*ConnectorFeatures) ConnectorFeaturesCaster ¶

func (s *ConnectorFeatures) ConnectorFeaturesCaster() *ConnectorFeatures

type ConnectorFeaturesVariant ¶

type ConnectorFeaturesVariant interface {
	ConnectorFeaturesCaster() *ConnectorFeatures
}

type ConnectorScheduling ¶

type ConnectorScheduling struct {
	Enabled bool `json:"enabled"`
	// Interval The interval is expressed using the crontab syntax
	Interval string `json:"interval"`
}

ConnectorScheduling type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L106-L110

func NewConnectorScheduling ¶

func NewConnectorScheduling() *ConnectorScheduling

NewConnectorScheduling returns a ConnectorScheduling.

func (*ConnectorScheduling) ConnectorSchedulingCaster ¶

func (s *ConnectorScheduling) ConnectorSchedulingCaster() *ConnectorScheduling

func (*ConnectorScheduling) UnmarshalJSON ¶

func (s *ConnectorScheduling) UnmarshalJSON(data []byte) error

type ConnectorSchedulingVariant ¶

type ConnectorSchedulingVariant interface {
	ConnectorSchedulingCaster() *ConnectorScheduling
}

type ConnectorSyncJob ¶

type ConnectorSyncJob struct {
	CancelationRequestedAt DateTime                                  `json:"cancelation_requested_at,omitempty"`
	CanceledAt             DateTime                                  `json:"canceled_at,omitempty"`
	CompletedAt            DateTime                                  `json:"completed_at,omitempty"`
	Connector              SyncJobConnectorReference                 `json:"connector"`
	CreatedAt              DateTime                                  `json:"created_at"`
	DeletedDocumentCount   int64                                     `json:"deleted_document_count"`
	Error                  *string                                   `json:"error,omitempty"`
	Id                     string                                    `json:"id"`
	IndexedDocumentCount   int64                                     `json:"indexed_document_count"`
	IndexedDocumentVolume  int64                                     `json:"indexed_document_volume"`
	JobType                syncjobtype.SyncJobType                   `json:"job_type"`
	LastSeen               DateTime                                  `json:"last_seen,omitempty"`
	Metadata               map[string]json.RawMessage                `json:"metadata"`
	StartedAt              DateTime                                  `json:"started_at,omitempty"`
	Status                 syncstatus.SyncStatus                     `json:"status"`
	TotalDocumentCount     int64                                     `json:"total_document_count"`
	TriggerMethod          syncjobtriggermethod.SyncJobTriggerMethod `json:"trigger_method"`
	WorkerHostname         *string                                   `json:"worker_hostname,omitempty"`
}

ConnectorSyncJob type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/SyncJob.ts#L53-L72

func NewConnectorSyncJob ¶

func NewConnectorSyncJob() *ConnectorSyncJob

NewConnectorSyncJob returns a ConnectorSyncJob.

func (*ConnectorSyncJob) UnmarshalJSON ¶

func (s *ConnectorSyncJob) UnmarshalJSON(data []byte) error

type ConstantKeywordProperty ¶

type ConstantKeywordProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
	Value               json.RawMessage                                  `json:"value,omitempty"`
}

ConstantKeywordProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L50-L53

func NewConstantKeywordProperty ¶

func NewConstantKeywordProperty() *ConstantKeywordProperty

NewConstantKeywordProperty returns a ConstantKeywordProperty.

func (*ConstantKeywordProperty) ConstantKeywordPropertyCaster ¶

func (s *ConstantKeywordProperty) ConstantKeywordPropertyCaster() *ConstantKeywordProperty

func (ConstantKeywordProperty) MarshalJSON ¶

func (s ConstantKeywordProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ConstantKeywordProperty) PropertyCaster ¶ added in v9.0.1

func (s *ConstantKeywordProperty) PropertyCaster() *Property

func (*ConstantKeywordProperty) UnmarshalJSON ¶

func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error

type ConstantKeywordPropertyVariant ¶

type ConstantKeywordPropertyVariant interface {
	ConstantKeywordPropertyCaster() *ConstantKeywordProperty
}

type ConstantScoreQuery ¶

type ConstantScoreQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Filter Filter query you wish to run. Any returned documents must match this query.
	// Filter queries do not calculate relevance scores.
	// To speed up performance, Elasticsearch automatically caches frequently used
	// filter queries.
	Filter     Query   `json:"filter"`
	QueryName_ *string `json:"_name,omitempty"`
}

ConstantScoreQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L76-L86

func NewConstantScoreQuery ¶

func NewConstantScoreQuery() *ConstantScoreQuery

NewConstantScoreQuery returns a ConstantScoreQuery.

func (*ConstantScoreQuery) ConstantScoreQueryCaster ¶

func (s *ConstantScoreQuery) ConstantScoreQueryCaster() *ConstantScoreQuery

func (*ConstantScoreQuery) UnmarshalJSON ¶

func (s *ConstantScoreQuery) UnmarshalJSON(data []byte) error

type ConstantScoreQueryVariant ¶

type ConstantScoreQueryVariant interface {
	ConstantScoreQueryCaster() *ConstantScoreQuery
}

type ContentObject ¶

type ContentObject struct {
	// Text The text content.
	Text string `json:"text"`
	// Type The type of content.
	Type string `json:"type"`
}

ContentObject type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L123-L135

func NewContentObject ¶

func NewContentObject() *ContentObject

NewContentObject returns a ContentObject.

func (*ContentObject) ContentObjectCaster ¶

func (s *ContentObject) ContentObjectCaster() *ContentObject

func (*ContentObject) UnmarshalJSON ¶

func (s *ContentObject) UnmarshalJSON(data []byte) error

type ContentObjectVariant ¶

type ContentObjectVariant interface {
	ContentObjectCaster() *ContentObject
}

type ContextMethod ¶

type ContextMethod struct {
	Name       string               `json:"name"`
	Params     []ContextMethodParam `json:"params"`
	ReturnType string               `json:"return_type"`
}

ContextMethod type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/get_script_context/types.ts#L27-L31

func NewContextMethod ¶

func NewContextMethod() *ContextMethod

NewContextMethod returns a ContextMethod.

func (*ContextMethod) UnmarshalJSON ¶

func (s *ContextMethod) UnmarshalJSON(data []byte) error

type ContextMethodParam ¶

type ContextMethodParam struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

ContextMethodParam type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/get_script_context/types.ts#L33-L36

func NewContextMethodParam ¶

func NewContextMethodParam() *ContextMethodParam

NewContextMethodParam returns a ContextMethodParam.

func (*ContextMethodParam) UnmarshalJSON ¶

func (s *ContextMethodParam) UnmarshalJSON(data []byte) error

type ContextVariant ¶

type ContextVariant interface {
	ContextCaster() *Context
}

type ConvertProcessor ¶

type ConvertProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field whose value is to be converted.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to.
	// By default, the `field` is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
	// Type The type to convert the existing value to.
	Type converttype.ConvertType `json:"type"`
}

ConvertProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L673-L693

func NewConvertProcessor ¶

func NewConvertProcessor() *ConvertProcessor

NewConvertProcessor returns a ConvertProcessor.

func (*ConvertProcessor) ConvertProcessorCaster ¶

func (s *ConvertProcessor) ConvertProcessorCaster() *ConvertProcessor

func (*ConvertProcessor) UnmarshalJSON ¶

func (s *ConvertProcessor) UnmarshalJSON(data []byte) error

type ConvertProcessorVariant ¶

type ConvertProcessorVariant interface {
	ConvertProcessorCaster() *ConvertProcessor
}

type CoordinatorStats ¶

type CoordinatorStats struct {
	ExecutedSearchesTotal int64  `json:"executed_searches_total"`
	NodeId                string `json:"node_id"`
	QueueSize             int    `json:"queue_size"`
	RemoteRequestsCurrent int    `json:"remote_requests_current"`
	RemoteRequestsTotal   int64  `json:"remote_requests_total"`
}

CoordinatorStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/enrich/stats/types.ts#L30-L36

func NewCoordinatorStats ¶

func NewCoordinatorStats() *CoordinatorStats

NewCoordinatorStats returns a CoordinatorStats.

func (*CoordinatorStats) UnmarshalJSON ¶

func (s *CoordinatorStats) UnmarshalJSON(data []byte) error

type CoordsGeoBounds ¶

type CoordsGeoBounds struct {
	Bottom Float64 `json:"bottom"`
	Left   Float64 `json:"left"`
	Right  Float64 `json:"right"`
	Top    Float64 `json:"top"`
}

CoordsGeoBounds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L154-L159

func NewCoordsGeoBounds ¶

func NewCoordsGeoBounds() *CoordsGeoBounds

NewCoordsGeoBounds returns a CoordsGeoBounds.

func (*CoordsGeoBounds) CoordsGeoBoundsCaster ¶

func (s *CoordsGeoBounds) CoordsGeoBoundsCaster() *CoordsGeoBounds

func (*CoordsGeoBounds) GeoBoundsCaster ¶ added in v9.0.1

func (s *CoordsGeoBounds) GeoBoundsCaster() *GeoBounds

func (*CoordsGeoBounds) UnmarshalJSON ¶

func (s *CoordsGeoBounds) UnmarshalJSON(data []byte) error

type CoordsGeoBoundsVariant ¶

type CoordsGeoBoundsVariant interface {
	CoordsGeoBoundsCaster() *CoordsGeoBounds
}

type CountRecord ¶

type CountRecord struct {
	// Count the document count
	Count *string `json:"count,omitempty"`
	// Epoch seconds since 1970-01-01 00:00:00
	Epoch StringifiedEpochTimeUnitSeconds `json:"epoch,omitempty"`
	// Timestamp time in HH:MM:SS
	Timestamp *string `json:"timestamp,omitempty"`
}

CountRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/count/types.ts#L23-L39

func NewCountRecord ¶

func NewCountRecord() *CountRecord

NewCountRecord returns a CountRecord.

func (*CountRecord) UnmarshalJSON ¶

func (s *CountRecord) UnmarshalJSON(data []byte) error

type CountedKeywordProperty ¶

type CountedKeywordProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

CountedKeywordProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L55-L62

func NewCountedKeywordProperty ¶

func NewCountedKeywordProperty() *CountedKeywordProperty

NewCountedKeywordProperty returns a CountedKeywordProperty.

func (*CountedKeywordProperty) CountedKeywordPropertyCaster ¶

func (s *CountedKeywordProperty) CountedKeywordPropertyCaster() *CountedKeywordProperty

func (CountedKeywordProperty) MarshalJSON ¶

func (s CountedKeywordProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CountedKeywordProperty) PropertyCaster ¶ added in v9.0.1

func (s *CountedKeywordProperty) PropertyCaster() *Property

func (*CountedKeywordProperty) UnmarshalJSON ¶

func (s *CountedKeywordProperty) UnmarshalJSON(data []byte) error

type CountedKeywordPropertyVariant ¶

type CountedKeywordPropertyVariant interface {
	CountedKeywordPropertyCaster() *CountedKeywordProperty
}

type Counter ¶

type Counter struct {
	Active int64 `json:"active"`
	Total  int64 `json:"total"`
}

Counter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L32-L35

func NewCounter ¶

func NewCounter() *Counter

NewCounter returns a Counter.

func (*Counter) UnmarshalJSON ¶

func (s *Counter) UnmarshalJSON(data []byte) error

type Cpu ¶

type Cpu struct {
	LoadAverage   map[string]Float64 `json:"load_average,omitempty"`
	Percent       *int               `json:"percent,omitempty"`
	Sys           Duration           `json:"sys,omitempty"`
	SysInMillis   *int64             `json:"sys_in_millis,omitempty"`
	Total         Duration           `json:"total,omitempty"`
	TotalInMillis *int64             `json:"total_in_millis,omitempty"`
	User          Duration           `json:"user,omitempty"`
	UserInMillis  *int64             `json:"user_in_millis,omitempty"`
}

Cpu type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L577-L586

func NewCpu ¶

func NewCpu() *Cpu

NewCpu returns a Cpu.

func (*Cpu) UnmarshalJSON ¶

func (s *Cpu) UnmarshalJSON(data []byte) error

type CpuAcct ¶

type CpuAcct struct {
	// ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs.
	ControlGroup *string `json:"control_group,omitempty"`
	// UsageNanos The total CPU time, in nanoseconds, consumed by all tasks in the same cgroup
	// as the Elasticsearch process.
	UsageNanos *int64 `json:"usage_nanos,omitempty"`
}

CpuAcct type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L514-L523

func NewCpuAcct ¶

func NewCpuAcct() *CpuAcct

NewCpuAcct returns a CpuAcct.

func (*CpuAcct) UnmarshalJSON ¶

func (s *CpuAcct) UnmarshalJSON(data []byte) error

type CreateFrom ¶

type CreateFrom struct {
	// MappingsOverride Mappings overrides to be applied to the destination index (optional)
	MappingsOverride *TypeMapping `json:"mappings_override,omitempty"`
	// RemoveIndexBlocks If index blocks should be removed when creating destination index (optional)
	RemoveIndexBlocks *bool `json:"remove_index_blocks,omitempty"`
	// SettingsOverride Settings overrides to be applied to the destination index (optional)
	SettingsOverride *IndexSettings `json:"settings_override,omitempty"`
}

CreateFrom type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60

func NewCreateFrom ¶

func NewCreateFrom() *CreateFrom

NewCreateFrom returns a CreateFrom.

func (*CreateFrom) CreateFromCaster ¶

func (s *CreateFrom) CreateFromCaster() *CreateFrom

func (*CreateFrom) UnmarshalJSON ¶

func (s *CreateFrom) UnmarshalJSON(data []byte) error

type CreateFromVariant ¶

type CreateFromVariant interface {
	CreateFromCaster() *CreateFrom
}

type CreateOperation ¶

type CreateOperation struct {
	// DynamicTemplates A map from the full name of fields to the name of dynamic templates.
	// It defaults to an empty map.
	// If a name matches a dynamic template, that template will be applied
	// regardless of other match predicates defined in the template.
	// If a field is already defined in the mapping, then this parameter won't be
	// used.
	DynamicTemplates map[string]string `json:"dynamic_templates,omitempty"`
	// Id_ The document ID.
	Id_           *string `json:"_id,omitempty"`
	IfPrimaryTerm *int64  `json:"if_primary_term,omitempty"`
	IfSeqNo       *int64  `json:"if_seq_no,omitempty"`
	// Index_ The name of the index or index alias to perform the action on.
	Index_ *string `json:"_index,omitempty"`
	// Pipeline The ID of the pipeline to use to preprocess incoming documents.
	// If the index has a default ingest pipeline specified, setting the value to
	// `_none` turns off the default ingest pipeline for this request.
	// If a final pipeline is configured, it will always run regardless of the value
	// of this parameter.
	Pipeline *string `json:"pipeline,omitempty"`
	// RequireAlias If `true`, the request's actions must target an index alias.
	RequireAlias *bool `json:"require_alias,omitempty"`
	// Routing A custom value used to route operations to a specific shard.
	Routing     *string                  `json:"routing,omitempty"`
	Version     *int64                   `json:"version,omitempty"`
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

CreateOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L140-L140

func NewCreateOperation ¶

func NewCreateOperation() *CreateOperation

NewCreateOperation returns a CreateOperation.

func (*CreateOperation) CreateOperationCaster ¶

func (s *CreateOperation) CreateOperationCaster() *CreateOperation

func (*CreateOperation) UnmarshalJSON ¶

func (s *CreateOperation) UnmarshalJSON(data []byte) error

type CreateOperationVariant ¶

type CreateOperationVariant interface {
	CreateOperationCaster() *CreateOperation
}

type CreatedStatus ¶

type CreatedStatus struct {
	Created bool `json:"created"`
}

CreatedStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/CreatedStatus.ts#L20-L22

func NewCreatedStatus ¶

func NewCreatedStatus() *CreatedStatus

NewCreatedStatus returns a CreatedStatus.

func (*CreatedStatus) UnmarshalJSON ¶

func (s *CreatedStatus) UnmarshalJSON(data []byte) error

type CsvProcessor ¶

type CsvProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// EmptyValue Value used to fill empty fields.
	// Empty fields are skipped if this is not provided.
	// An empty field is one with no value (2 consecutive separators) or empty
	// quotes (`""`).
	EmptyValue json.RawMessage `json:"empty_value,omitempty"`
	// Field The field to extract data from.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Quote Quote used in CSV, has to be single character string.
	Quote *string `json:"quote,omitempty"`
	// Separator Separator used in CSV, has to be single character string.
	Separator *string `json:"separator,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetFields The array of fields to assign extracted values to.
	TargetFields []string `json:"target_fields"`
	// Trim Trim whitespaces in unquoted fields.
	Trim *bool `json:"trim,omitempty"`
}

CsvProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L695-L728

func NewCsvProcessor ¶

func NewCsvProcessor() *CsvProcessor

NewCsvProcessor returns a CsvProcessor.

func (*CsvProcessor) CsvProcessorCaster ¶

func (s *CsvProcessor) CsvProcessorCaster() *CsvProcessor

func (*CsvProcessor) UnmarshalJSON ¶

func (s *CsvProcessor) UnmarshalJSON(data []byte) error

type CsvProcessorVariant ¶

type CsvProcessorVariant interface {
	CsvProcessorCaster() *CsvProcessor
}

type CumulativeCardinalityAggregate ¶

type CumulativeCardinalityAggregate struct {
	Meta          Metadata `json:"meta,omitempty"`
	Value         int64    `json:"value"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

CumulativeCardinalityAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L858-L866

func NewCumulativeCardinalityAggregate ¶

func NewCumulativeCardinalityAggregate() *CumulativeCardinalityAggregate

NewCumulativeCardinalityAggregate returns a CumulativeCardinalityAggregate.

func (*CumulativeCardinalityAggregate) UnmarshalJSON ¶

func (s *CumulativeCardinalityAggregate) UnmarshalJSON(data []byte) error

type CumulativeCardinalityAggregation ¶

type CumulativeCardinalityAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

CumulativeCardinalityAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L206-L209

func NewCumulativeCardinalityAggregation ¶

func NewCumulativeCardinalityAggregation() *CumulativeCardinalityAggregation

NewCumulativeCardinalityAggregation returns a CumulativeCardinalityAggregation.

func (*CumulativeCardinalityAggregation) CumulativeCardinalityAggregationCaster ¶

func (s *CumulativeCardinalityAggregation) CumulativeCardinalityAggregationCaster() *CumulativeCardinalityAggregation

func (*CumulativeCardinalityAggregation) UnmarshalJSON ¶

func (s *CumulativeCardinalityAggregation) UnmarshalJSON(data []byte) error

type CumulativeCardinalityAggregationVariant ¶

type CumulativeCardinalityAggregationVariant interface {
	CumulativeCardinalityAggregationCaster() *CumulativeCardinalityAggregation
}

type CumulativeSumAggregation ¶

type CumulativeSumAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

CumulativeSumAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L211-L214

func NewCumulativeSumAggregation ¶

func NewCumulativeSumAggregation() *CumulativeSumAggregation

NewCumulativeSumAggregation returns a CumulativeSumAggregation.

func (*CumulativeSumAggregation) CumulativeSumAggregationCaster ¶

func (s *CumulativeSumAggregation) CumulativeSumAggregationCaster() *CumulativeSumAggregation

func (*CumulativeSumAggregation) UnmarshalJSON ¶

func (s *CumulativeSumAggregation) UnmarshalJSON(data []byte) error

type CumulativeSumAggregationVariant ¶

type CumulativeSumAggregationVariant interface {
	CumulativeSumAggregationCaster() *CumulativeSumAggregation
}

type CurrentNode ¶

type CurrentNode struct {
	Attributes       map[string]string   `json:"attributes"`
	Id               string              `json:"id"`
	Name             string              `json:"name"`
	Roles            []noderole.NodeRole `json:"roles"`
	TransportAddress string              `json:"transport_address"`
	WeightRanking    int                 `json:"weight_ranking"`
}

CurrentNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L79-L90

func NewCurrentNode ¶

func NewCurrentNode() *CurrentNode

NewCurrentNode returns a CurrentNode.

func (*CurrentNode) UnmarshalJSON ¶

func (s *CurrentNode) UnmarshalJSON(data []byte) error

type CustomAnalyzer ¶

type CustomAnalyzer struct {
	CharFilter           []string `json:"char_filter,omitempty"`
	Filter               []string `json:"filter,omitempty"`
	PositionIncrementGap *int     `json:"position_increment_gap,omitempty"`
	PositionOffsetGap    *int     `json:"position_offset_gap,omitempty"`
	Tokenizer            string   `json:"tokenizer"`
	Type                 string   `json:"type,omitempty"`
}

CustomAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L28-L35

func NewCustomAnalyzer ¶

func NewCustomAnalyzer() *CustomAnalyzer

NewCustomAnalyzer returns a CustomAnalyzer.

func (*CustomAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *CustomAnalyzer) AnalyzerCaster() *Analyzer

func (*CustomAnalyzer) CustomAnalyzerCaster ¶

func (s *CustomAnalyzer) CustomAnalyzerCaster() *CustomAnalyzer

func (CustomAnalyzer) MarshalJSON ¶

func (s CustomAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CustomAnalyzer) UnmarshalJSON ¶

func (s *CustomAnalyzer) UnmarshalJSON(data []byte) error

type CustomAnalyzerVariant ¶

type CustomAnalyzerVariant interface {
	CustomAnalyzerCaster() *CustomAnalyzer
}

type CustomCategorizeTextAnalyzer ¶

type CustomCategorizeTextAnalyzer struct {
	CharFilter []string `json:"char_filter,omitempty"`
	Filter     []string `json:"filter,omitempty"`
	Tokenizer  *string  `json:"tokenizer,omitempty"`
}

CustomCategorizeTextAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1190-L1194

func NewCustomCategorizeTextAnalyzer ¶

func NewCustomCategorizeTextAnalyzer() *CustomCategorizeTextAnalyzer

NewCustomCategorizeTextAnalyzer returns a CustomCategorizeTextAnalyzer.

func (*CustomCategorizeTextAnalyzer) CategorizeTextAnalyzerCaster ¶ added in v9.0.1

func (s *CustomCategorizeTextAnalyzer) CategorizeTextAnalyzerCaster() *CategorizeTextAnalyzer

func (*CustomCategorizeTextAnalyzer) CustomCategorizeTextAnalyzerCaster ¶

func (s *CustomCategorizeTextAnalyzer) CustomCategorizeTextAnalyzerCaster() *CustomCategorizeTextAnalyzer

func (*CustomCategorizeTextAnalyzer) UnmarshalJSON ¶

func (s *CustomCategorizeTextAnalyzer) UnmarshalJSON(data []byte) error

type CustomCategorizeTextAnalyzerVariant ¶

type CustomCategorizeTextAnalyzerVariant interface {
	CustomCategorizeTextAnalyzerCaster() *CustomCategorizeTextAnalyzer
}

type CustomNormalizer ¶

type CustomNormalizer struct {
	CharFilter []string `json:"char_filter,omitempty"`
	Filter     []string `json:"filter,omitempty"`
	Type       string   `json:"type,omitempty"`
}

CustomNormalizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/normalizers.ts#L30-L34

func NewCustomNormalizer ¶

func NewCustomNormalizer() *CustomNormalizer

NewCustomNormalizer returns a CustomNormalizer.

func (*CustomNormalizer) CustomNormalizerCaster ¶

func (s *CustomNormalizer) CustomNormalizerCaster() *CustomNormalizer

func (CustomNormalizer) MarshalJSON ¶

func (s CustomNormalizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CustomNormalizer) NormalizerCaster ¶ added in v9.0.1

func (s *CustomNormalizer) NormalizerCaster() *Normalizer

type CustomNormalizerVariant ¶

type CustomNormalizerVariant interface {
	CustomNormalizerCaster() *CustomNormalizer
}

type CustomRequestParams ¶ added in v9.1.0

type CustomRequestParams struct {
	// Content The body structure of the request. It requires passing in the string-escaped
	// result of the JSON format HTTP request body.
	// For example:
	// “`
	// "request": "{\"input\":${input}}"
	// “`
	// > info
	// > The content string needs to be a single line except when using the Kibana
	// console.
	Content string `json:"content"`
}

CustomRequestParams type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L974-L985

func NewCustomRequestParams ¶ added in v9.1.0

func NewCustomRequestParams() *CustomRequestParams

NewCustomRequestParams returns a CustomRequestParams.

func (*CustomRequestParams) CustomRequestParamsCaster ¶ added in v9.1.0

func (s *CustomRequestParams) CustomRequestParamsCaster() *CustomRequestParams

func (*CustomRequestParams) UnmarshalJSON ¶ added in v9.1.0

func (s *CustomRequestParams) UnmarshalJSON(data []byte) error

type CustomRequestParamsVariant ¶ added in v9.1.0

type CustomRequestParamsVariant interface {
	CustomRequestParamsCaster() *CustomRequestParams
}

type CustomResponseParams ¶ added in v9.1.0

type CustomResponseParams struct {
	// JsonParser Specifies the JSON parser that is used to parse the response from the custom
	// service.
	// Different task types require different json_parser parameters.
	// For example:
	// “`
	// # text_embedding
	// # For a response like this:
	//
	//	{
	//	 "object": "list",
	//	 "data": [
	//	     {
	//	       "object": "embedding",
	//	       "index": 0,
	//	       "embedding": [
	//	           0.014539449,
	//	           -0.015288644
	//	       ]
	//	     }
	//	 ],
	//	 "model": "text-embedding-ada-002-v2",
	//	 "usage": {
	//	     "prompt_tokens": 8,
	//	     "total_tokens": 8
	//	 }
	//	}
	//
	// # the json_parser definition should look like this:
	//
	//	"response":{
	//	  "json_parser":{
	//	    "text_embeddings":"$.data[*].embedding[*]"
	//	  }
	//	}
	//
	// # sparse_embedding
	// # For a response like this:
	//
	//	{
	//	  "request_id": "75C50B5B-E79E-4930-****-F48DBB392231",
	//	  "latency": 22,
	//	  "usage": {
	//	     "token_count": 11
	//	  },
	//	  "result": {
	//	     "sparse_embeddings": [
	//	        {
	//	          "index": 0,
	//	          "embedding": [
	//	            {
	//	              "token_id": 6,
	//	              "weight": 0.101
	//	            },
	//	            {
	//	              "token_id": 163040,
	//	              "weight": 0.28417
	//	            }
	//	          ]
	//	        }
	//	     ]
	//	  }
	//	}
	//
	// # the json_parser definition should look like this:
	//
	//	"response":{
	//	  "json_parser":{
	//	    "token_path":"$.result.sparse_embeddings[*].embedding[*].token_id",
	//	    "weight_path":"$.result.sparse_embeddings[*].embedding[*].weight"
	//	  }
	//	}
	//
	// # rerank
	// # For a response like this:
	//
	//	{
	//	  "results": [
	//	    {
	//	      "index": 3,
	//	      "relevance_score": 0.999071,
	//	      "document": "abc"
	//	    },
	//	    {
	//	      "index": 4,
	//	      "relevance_score": 0.7867867,
	//	      "document": "123"
	//	    },
	//	    {
	//	      "index": 0,
	//	      "relevance_score": 0.32713068,
	//	      "document": "super"
	//	    }
	//	  ],
	//	}
	//
	// # the json_parser definition should look like this:
	//
	//	"response":{
	//	  "json_parser":{
	//	    "reranked_index":"$.result.scores[*].index",    // optional
	//	    "relevance_score":"$.result.scores[*].score",
	//	    "document_text":"xxx"    // optional
	//	  }
	//	}
	//
	// # completion
	// # For a response like this:
	//
	//	{
	//	 "id": "chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT",
	//	 "object": "chat.completion",
	//	 "created": 1741569952,
	//	 "model": "gpt-4.1-2025-04-14",
	//	 "choices": [
	//	   {
	//	    "index": 0,
	//	    "message": {
	//	      "role": "assistant",
	//	      "content": "Hello! How can I assist you today?",
	//	      "refusal": null,
	//	      "annotations": []
	//	    },
	//	    "logprobs": null,
	//	    "finish_reason": "stop"
	//	  }
	//	 ]
	//	}
	//
	// # the json_parser definition should look like this:
	//
	//	"response":{
	//	  "json_parser":{
	//	    "completion_result":"$.choices[*].message.content"
	//	  }
	//	}
	JsonParser json.RawMessage `json:"json_parser,omitempty"`
}

CustomResponseParams type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L987-L1125

func NewCustomResponseParams ¶ added in v9.1.0

func NewCustomResponseParams() *CustomResponseParams

NewCustomResponseParams returns a CustomResponseParams.

func (*CustomResponseParams) CustomResponseParamsCaster ¶ added in v9.1.0

func (s *CustomResponseParams) CustomResponseParamsCaster() *CustomResponseParams

type CustomResponseParamsVariant ¶ added in v9.1.0

type CustomResponseParamsVariant interface {
	CustomResponseParamsCaster() *CustomResponseParams
}

type CustomScheduling ¶

type CustomScheduling struct {
	ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"`
	Enabled                bool                                   `json:"enabled"`
	Interval               string                                 `json:"interval"`
	LastSynced             DateTime                               `json:"last_synced,omitempty"`
	Name                   string                                 `json:"name"`
}

CustomScheduling type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L120-L126

func NewCustomScheduling ¶

func NewCustomScheduling() *CustomScheduling

NewCustomScheduling returns a CustomScheduling.

func (*CustomScheduling) UnmarshalJSON ¶

func (s *CustomScheduling) UnmarshalJSON(data []byte) error

type CustomSchedulingConfigurationOverrides ¶

type CustomSchedulingConfigurationOverrides struct {
	DomainAllowlist          []string `json:"domain_allowlist,omitempty"`
	MaxCrawlDepth            *int     `json:"max_crawl_depth,omitempty"`
	SeedUrls                 []string `json:"seed_urls,omitempty"`
	SitemapDiscoveryDisabled *bool    `json:"sitemap_discovery_disabled,omitempty"`
	SitemapUrls              []string `json:"sitemap_urls,omitempty"`
}

CustomSchedulingConfigurationOverrides type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L112-L118

func NewCustomSchedulingConfigurationOverrides ¶

func NewCustomSchedulingConfigurationOverrides() *CustomSchedulingConfigurationOverrides

NewCustomSchedulingConfigurationOverrides returns a CustomSchedulingConfigurationOverrides.

func (*CustomSchedulingConfigurationOverrides) UnmarshalJSON ¶

func (s *CustomSchedulingConfigurationOverrides) UnmarshalJSON(data []byte) error

type CustomServiceSettings ¶ added in v9.1.0

type CustomServiceSettings struct {
	// Headers Specifies the HTTPS header parameters – such as `Authentication` or
	// `Contet-Type` – that are required to access the custom service.
	// For example:
	// “`
	//
	//	"headers":{
	//	  "Authorization": "Bearer ${api_key}",
	//	  "Content-Type": "application/json;charset=utf-8"
	//	}
	//
	// “`
	Headers json.RawMessage `json:"headers,omitempty"`
	// InputType Specifies the input type translation values that are used to replace the
	// `${input_type}` template in the request body.
	// For example:
	// “`
	//
	//	"input_type": {
	//	  "translation": {
	//	    "ingest": "do_ingest",
	//	    "search": "do_search"
	//	  },
	//	  "default": "a_default"
	//	},
	//
	// “`
	// If the subsequent inference requests come from a search context, the `search`
	// key will be used and the template will be replaced with `do_search`.
	// If it comes from the ingest context `do_ingest` is used. If it's a different
	// context that is not specified, the default value will be used. If no default
	// is specified an empty string is used.
	// `translation` can be:
	// * `classification`
	// * `clustering`
	// * `ingest`
	// * `search`
	InputType json.RawMessage `json:"input_type,omitempty"`
	// QueryParameters Specifies the query parameters as a list of tuples. The arrays inside the
	// `query_parameters` must have two items, a key and a value.
	// For example:
	// “`
	// "query_parameters":[
	//
	//	["param_key", "some_value"],
	//	["param_key", "another_value"],
	//	["other_key", "other_value"]
	//
	// ]
	// “`
	// If the base url is `https://www.elastic.co` it results in:
	// `https://www.elastic.co?param_key=some_value&param_key=another_value&other_key=other_value`.
	QueryParameters json.RawMessage `json:"query_parameters,omitempty"`
	// Request The request configuration object.
	Request CustomRequestParams `json:"request"`
	// Response The response configuration object.
	Response CustomResponseParams `json:"response"`
	// SecretParameters Specifies secret parameters, like `api_key` or `api_token`, that are required
	// to access the custom service.
	// For example:
	// “`
	//
	//	"secret_parameters":{
	//	  "api_key":"<api_key>"
	//	}
	//
	// “`
	SecretParameters json.RawMessage `json:"secret_parameters,omitempty"`
	// Url The URL endpoint to use for the requests.
	Url *string `json:"url,omitempty"`
}

CustomServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L904-L972

func NewCustomServiceSettings ¶ added in v9.1.0

func NewCustomServiceSettings() *CustomServiceSettings

NewCustomServiceSettings returns a CustomServiceSettings.

func (*CustomServiceSettings) CustomServiceSettingsCaster ¶ added in v9.1.0

func (s *CustomServiceSettings) CustomServiceSettingsCaster() *CustomServiceSettings

func (*CustomServiceSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *CustomServiceSettings) UnmarshalJSON(data []byte) error

type CustomServiceSettingsVariant ¶ added in v9.1.0

type CustomServiceSettingsVariant interface {
	CustomServiceSettingsCaster() *CustomServiceSettings
}

type CustomTaskSettings ¶ added in v9.1.0

type CustomTaskSettings struct {
	// Parameters Specifies parameters that are required to run the custom service. The
	// parameters depend on the model your custom service uses.
	// For example:
	// “`
	//
	//	"task_settings":{
	//	  "parameters":{
	//	    "input_type":"query",
	//	    "return_token":true
	//	  }
	//	}
	//
	// “`
	Parameters json.RawMessage `json:"parameters,omitempty"`
}

CustomTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1138-L1152

func NewCustomTaskSettings ¶ added in v9.1.0

func NewCustomTaskSettings() *CustomTaskSettings

NewCustomTaskSettings returns a CustomTaskSettings.

func (*CustomTaskSettings) CustomTaskSettingsCaster ¶ added in v9.1.0

func (s *CustomTaskSettings) CustomTaskSettingsCaster() *CustomTaskSettings

type CustomTaskSettingsVariant ¶ added in v9.1.0

type CustomTaskSettingsVariant interface {
	CustomTaskSettingsCaster() *CustomTaskSettings
}

type CzechAnalyzer ¶

type CzechAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

CzechAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L132-L137

func NewCzechAnalyzer ¶

func NewCzechAnalyzer() *CzechAnalyzer

NewCzechAnalyzer returns a CzechAnalyzer.

func (*CzechAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *CzechAnalyzer) AnalyzerCaster() *Analyzer

func (*CzechAnalyzer) CzechAnalyzerCaster ¶

func (s *CzechAnalyzer) CzechAnalyzerCaster() *CzechAnalyzer

func (CzechAnalyzer) MarshalJSON ¶

func (s CzechAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CzechAnalyzer) UnmarshalJSON ¶

func (s *CzechAnalyzer) UnmarshalJSON(data []byte) error

type CzechAnalyzerVariant ¶

type CzechAnalyzerVariant interface {
	CzechAnalyzerCaster() *CzechAnalyzer
}

type CzechStemTokenFilter ¶ added in v9.0.1

type CzechStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

CzechStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L551-L553

func NewCzechStemTokenFilter ¶ added in v9.0.1

func NewCzechStemTokenFilter() *CzechStemTokenFilter

NewCzechStemTokenFilter returns a CzechStemTokenFilter.

func (*CzechStemTokenFilter) CzechStemTokenFilterCaster ¶ added in v9.0.1

func (s *CzechStemTokenFilter) CzechStemTokenFilterCaster() *CzechStemTokenFilter

func (CzechStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s CzechStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*CzechStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *CzechStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*CzechStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *CzechStemTokenFilter) UnmarshalJSON(data []byte) error

type CzechStemTokenFilterVariant ¶ added in v9.0.1

type CzechStemTokenFilterVariant interface {
	CzechStemTokenFilterCaster() *CzechStemTokenFilter
}

type DailySchedule ¶

type DailySchedule struct {
	At []ScheduleTimeOfDay `json:"at"`
}

DailySchedule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L33-L35

func NewDailySchedule ¶

func NewDailySchedule() *DailySchedule

NewDailySchedule returns a DailySchedule.

func (*DailySchedule) DailyScheduleCaster ¶

func (s *DailySchedule) DailyScheduleCaster() *DailySchedule

func (*DailySchedule) UnmarshalJSON ¶ added in v9.0.1

func (s *DailySchedule) UnmarshalJSON(data []byte) error

type DailyScheduleVariant ¶

type DailyScheduleVariant interface {
	DailyScheduleCaster() *DailySchedule
}

type DanglingIndex ¶

type DanglingIndex struct {
	CreationDateMillis int64    `json:"creation_date_millis"`
	IndexName          string   `json:"index_name"`
	IndexUuid          string   `json:"index_uuid"`
	NodeIds            []string `json:"node_ids"`
}

DanglingIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34

func NewDanglingIndex ¶

func NewDanglingIndex() *DanglingIndex

NewDanglingIndex returns a DanglingIndex.

func (*DanglingIndex) UnmarshalJSON ¶

func (s *DanglingIndex) UnmarshalJSON(data []byte) error

type DanishAnalyzer ¶

type DanishAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

DanishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L139-L143

func NewDanishAnalyzer ¶

func NewDanishAnalyzer() *DanishAnalyzer

NewDanishAnalyzer returns a DanishAnalyzer.

func (*DanishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *DanishAnalyzer) AnalyzerCaster() *Analyzer

func (*DanishAnalyzer) DanishAnalyzerCaster ¶

func (s *DanishAnalyzer) DanishAnalyzerCaster() *DanishAnalyzer

func (DanishAnalyzer) MarshalJSON ¶

func (s DanishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DanishAnalyzer) UnmarshalJSON ¶

func (s *DanishAnalyzer) UnmarshalJSON(data []byte) error

type DanishAnalyzerVariant ¶

type DanishAnalyzerVariant interface {
	DanishAnalyzerCaster() *DanishAnalyzer
}

type DataCounts ¶

type DataCounts struct {
	BucketCount                 int64  `json:"bucket_count"`
	EarliestRecordTimestamp     *int64 `json:"earliest_record_timestamp,omitempty"`
	EmptyBucketCount            int64  `json:"empty_bucket_count"`
	InputBytes                  int64  `json:"input_bytes"`
	InputFieldCount             int64  `json:"input_field_count"`
	InputRecordCount            int64  `json:"input_record_count"`
	InvalidDateCount            int64  `json:"invalid_date_count"`
	JobId                       string `json:"job_id"`
	LastDataTime                *int64 `json:"last_data_time,omitempty"`
	LatestBucketTimestamp       *int64 `json:"latest_bucket_timestamp,omitempty"`
	LatestEmptyBucketTimestamp  *int64 `json:"latest_empty_bucket_timestamp,omitempty"`
	LatestRecordTimestamp       *int64 `json:"latest_record_timestamp,omitempty"`
	LatestSparseBucketTimestamp *int64 `json:"latest_sparse_bucket_timestamp,omitempty"`
	LogTime                     *int64 `json:"log_time,omitempty"`
	MissingFieldCount           int64  `json:"missing_field_count"`
	OutOfOrderTimestampCount    int64  `json:"out_of_order_timestamp_count"`
	ProcessedFieldCount         int64  `json:"processed_field_count"`
	ProcessedRecordCount        int64  `json:"processed_record_count"`
	SparseBucketCount           int64  `json:"sparse_bucket_count"`
}

DataCounts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L352-L372

func NewDataCounts ¶

func NewDataCounts() *DataCounts

NewDataCounts returns a DataCounts.

func (*DataCounts) UnmarshalJSON ¶

func (s *DataCounts) UnmarshalJSON(data []byte) error

type DataDescription ¶

type DataDescription struct {
	FieldDelimiter *string `json:"field_delimiter,omitempty"`
	// Format Only JSON format is supported at this time.
	Format *string `json:"format,omitempty"`
	// TimeField The name of the field that contains the timestamp.
	TimeField *string `json:"time_field,omitempty"`
	// TimeFormat The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The
	// value `epoch` refers to UNIX or Epoch time (the number of seconds since 1 Jan
	// 1970). The value `epoch_ms` indicates that time is measured in milliseconds
	// since the epoch. The `epoch` and `epoch_ms` time formats accept either
	// integer or real values. Custom patterns must conform to the Java
	// DateTimeFormatter class. When you use date-time formatting patterns, it is
	// recommended that you provide the full date, time and time zone. For example:
	// `yyyy-MM-dd'T'HH:mm:ssX`. If the pattern that you specify is not sufficient
	// to produce a complete timestamp, job creation fails.
	TimeFormat *string `json:"time_format,omitempty"`
}

DataDescription type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L374-L390

func NewDataDescription ¶

func NewDataDescription() *DataDescription

NewDataDescription returns a DataDescription.

func (*DataDescription) DataDescriptionCaster ¶

func (s *DataDescription) DataDescriptionCaster() *DataDescription

func (*DataDescription) UnmarshalJSON ¶

func (s *DataDescription) UnmarshalJSON(data []byte) error

type DataDescriptionVariant ¶

type DataDescriptionVariant interface {
	DataDescriptionCaster() *DataDescription
}

type DataEmailAttachment ¶

type DataEmailAttachment struct {
	Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"`
}

DataEmailAttachment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L234-L236

func NewDataEmailAttachment ¶

func NewDataEmailAttachment() *DataEmailAttachment

NewDataEmailAttachment returns a DataEmailAttachment.

func (*DataEmailAttachment) DataEmailAttachmentCaster ¶

func (s *DataEmailAttachment) DataEmailAttachmentCaster() *DataEmailAttachment

type DataEmailAttachmentVariant ¶

type DataEmailAttachmentVariant interface {
	DataEmailAttachmentCaster() *DataEmailAttachment
}

type DataFrameAnalyticsRecord ¶

type DataFrameAnalyticsRecord struct {
	// AssignmentExplanation Messages related to the selection of a node.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// CreateTime The time when the job was created.
	CreateTime *string `json:"create_time,omitempty"`
	// Description A description of the job.
	Description *string `json:"description,omitempty"`
	// DestIndex The name of the destination index.
	DestIndex *string `json:"dest_index,omitempty"`
	// FailureReason Messages about the reason why the job failed.
	FailureReason *string `json:"failure_reason,omitempty"`
	// Id The identifier for the job.
	Id *string `json:"id,omitempty"`
	// ModelMemoryLimit The approximate maximum amount of memory resources that are permitted for the
	// job.
	ModelMemoryLimit *string `json:"model_memory_limit,omitempty"`
	// NodeAddress The network address of the assigned node.
	NodeAddress *string `json:"node.address,omitempty"`
	// NodeEphemeralId The ephemeral identifier of the assigned node.
	NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`
	// NodeId The unique identifier of the assigned node.
	NodeId *string `json:"node.id,omitempty"`
	// NodeName The name of the assigned node.
	NodeName *string `json:"node.name,omitempty"`
	// Progress The progress report for the job by phase.
	Progress *string `json:"progress,omitempty"`
	// SourceIndex The name of the source index.
	SourceIndex *string `json:"source_index,omitempty"`
	// State The current status of the job.
	State *string `json:"state,omitempty"`
	// Type The type of analysis that the job performs.
	Type *string `json:"type,omitempty"`
	// Version The version of Elasticsearch when the job was created.
	Version *string `json:"version,omitempty"`
}

DataFrameAnalyticsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/ml_data_frame_analytics/types.ts#L22-L102

func NewDataFrameAnalyticsRecord ¶

func NewDataFrameAnalyticsRecord() *DataFrameAnalyticsRecord

NewDataFrameAnalyticsRecord returns a DataFrameAnalyticsRecord.

func (*DataFrameAnalyticsRecord) UnmarshalJSON ¶

func (s *DataFrameAnalyticsRecord) UnmarshalJSON(data []byte) error

type DataPathStats ¶

type DataPathStats struct {
	// Available Total amount of disk space available to this Java virtual machine on this
	// file store.
	Available *string `json:"available,omitempty"`
	// AvailableInBytes Total number of bytes available to this Java virtual machine on this file
	// store.
	AvailableInBytes     *int64  `json:"available_in_bytes,omitempty"`
	DiskQueue            *string `json:"disk_queue,omitempty"`
	DiskReadSize         *string `json:"disk_read_size,omitempty"`
	DiskReadSizeInBytes  *int64  `json:"disk_read_size_in_bytes,omitempty"`
	DiskReads            *int64  `json:"disk_reads,omitempty"`
	DiskWriteSize        *string `json:"disk_write_size,omitempty"`
	DiskWriteSizeInBytes *int64  `json:"disk_write_size_in_bytes,omitempty"`
	DiskWrites           *int64  `json:"disk_writes,omitempty"`
	// Free Total amount of unallocated disk space in the file store.
	Free *string `json:"free,omitempty"`
	// FreeInBytes Total number of unallocated bytes in the file store.
	FreeInBytes *int64 `json:"free_in_bytes,omitempty"`
	// Mount Mount point of the file store (for example: `/dev/sda2`).
	Mount *string `json:"mount,omitempty"`
	// Path Path to the file store.
	Path *string `json:"path,omitempty"`
	// Total Total size of the file store.
	Total *string `json:"total,omitempty"`
	// TotalInBytes Total size of the file store in bytes.
	TotalInBytes *int64 `json:"total_in_bytes,omitempty"`
	// Type Type of the file store (ex: ext4).
	Type *string `json:"type,omitempty"`
}

DataPathStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L588-L632

func NewDataPathStats ¶

func NewDataPathStats() *DataPathStats

NewDataPathStats returns a DataPathStats.

func (*DataPathStats) UnmarshalJSON ¶

func (s *DataPathStats) UnmarshalJSON(data []byte) error

type DataStream ¶

type DataStream struct {
	// AllowCustomRouting If `true`, the data stream allows custom routing on write request.
	AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
	// FailureStore Information about failure store backing indices
	FailureStore *FailureStore `json:"failure_store,omitempty"`
	// Generation Current generation for the data stream. This number acts as a cumulative
	// count of the stream’s rollovers, starting at 1.
	Generation int `json:"generation"`
	// Hidden If `true`, the data stream is hidden.
	Hidden bool `json:"hidden"`
	// IlmPolicy Name of the current ILM lifecycle policy in the stream’s matching index
	// template.
	// This lifecycle policy is set in the `index.lifecycle.name` setting.
	// If the template does not include a lifecycle policy, this property is not
	// included in the response.
	// NOTE: A data stream’s backing indices may be assigned different lifecycle
	// policies. To retrieve the lifecycle policy for individual backing indices,
	// use the get index settings API.
	IlmPolicy *string `json:"ilm_policy,omitempty"`
	// IndexMode The index mode for the data stream that will be used for newly created
	// backing indices.
	IndexMode *indexmode.IndexMode `json:"index_mode,omitempty"`
	// Indices Array of objects containing information about the data stream’s backing
	// indices.
	// The last item in this array contains information about the stream’s current
	// write index.
	Indices []DataStreamIndex `json:"indices"`
	// Lifecycle Contains the configuration for the data stream lifecycle of this data stream.
	Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
	// Meta_ Custom metadata for the stream, copied from the `_meta` object of the
	// stream’s matching index template.
	// If empty, the response omits this property.
	Meta_ Metadata `json:"_meta,omitempty"`
	// Name Name of the data stream.
	Name string `json:"name"`
	// NextGenerationManagedBy Name of the lifecycle system that'll manage the next generation of the data
	// stream.
	NextGenerationManagedBy managedby.ManagedBy `json:"next_generation_managed_by"`
	// PreferIlm Indicates if ILM should take precedence over DSL in case both are configured
	// to managed this data stream.
	PreferIlm bool `json:"prefer_ilm"`
	// Replicated If `true`, the data stream is created and managed by cross-cluster
	// replication and the local cluster can not write into this data stream or
	// change its mappings.
	Replicated *bool `json:"replicated,omitempty"`
	// RolloverOnWrite If `true`, the next write to this data stream will trigger a rollover first
	// and the document will be indexed in the new backing index. If the rollover
	// fails the indexing request will fail too.
	RolloverOnWrite bool `json:"rollover_on_write"`
	// Settings The settings specific to this data stream that will take precedence over the
	// settings in the matching index
	// template.
	Settings IndexSettings `json:"settings"`
	// Status Health status of the data stream.
	// This health status is based on the state of the primary and replica shards of
	// the stream’s backing indices.
	Status healthstatus.HealthStatus `json:"status"`
	// System If `true`, the data stream is created and managed by an Elastic stack
	// component and cannot be modified through normal user interaction.
	System *bool `json:"system,omitempty"`
	// Template Name of the index template used to create the data stream’s backing indices.
	// The template’s index pattern must match the name of this data stream.
	Template string `json:"template"`
	// TimestampField Information about the `@timestamp` field in the data stream.
	TimestampField DataStreamTimestampField `json:"timestamp_field"`
}

DataStream type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStream.ts#L54-L145

func NewDataStream ¶

func NewDataStream() *DataStream

NewDataStream returns a DataStream.

func (*DataStream) UnmarshalJSON ¶

func (s *DataStream) UnmarshalJSON(data []byte) error

type DataStreamFailureStore ¶ added in v9.1.0

type DataStreamFailureStore struct {
	// Enabled If defined, it turns the failure store on/off (`true`/`false`) for this data
	// stream. A data stream failure store
	// that's disabled (enabled: `false`) will redirect no new failed indices to the
	// failure store; however, it will
	// not remove any existing data from the failure store.
	Enabled *bool `json:"enabled,omitempty"`
	// Lifecycle If defined, it specifies the lifecycle configuration for the failure store of
	// this data stream.
	Lifecycle *FailureStoreLifecycle `json:"lifecycle,omitempty"`
}

DataStreamFailureStore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamFailureStore.ts#L22-L37

func NewDataStreamFailureStore ¶ added in v9.1.0

func NewDataStreamFailureStore() *DataStreamFailureStore

NewDataStreamFailureStore returns a DataStreamFailureStore.

func (*DataStreamFailureStore) DataStreamFailureStoreCaster ¶ added in v9.1.0

func (s *DataStreamFailureStore) DataStreamFailureStoreCaster() *DataStreamFailureStore

func (*DataStreamFailureStore) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamFailureStore) UnmarshalJSON(data []byte) error

type DataStreamFailureStoreTemplate ¶ added in v9.1.0

type DataStreamFailureStoreTemplate struct {
	// Enabled If defined, it turns the failure store on/off (`true`/`false`) for this data
	// stream. A data stream failure store
	// that's disabled (enabled: `false`) will redirect no new failed indices to the
	// failure store; however, it will
	// not remove any existing data from the failure store.
	Enabled *bool `json:"enabled,omitempty"`
	// Lifecycle If defined, it specifies the lifecycle configuration for the failure store of
	// this data stream.
	Lifecycle *FailureStoreLifecycleTemplate `json:"lifecycle,omitempty"`
}

DataStreamFailureStoreTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamFailureStore.ts#L39-L54

func NewDataStreamFailureStoreTemplate ¶ added in v9.1.0

func NewDataStreamFailureStoreTemplate() *DataStreamFailureStoreTemplate

NewDataStreamFailureStoreTemplate returns a DataStreamFailureStoreTemplate.

func (*DataStreamFailureStoreTemplate) DataStreamFailureStoreTemplateCaster ¶ added in v9.1.0

func (s *DataStreamFailureStoreTemplate) DataStreamFailureStoreTemplateCaster() *DataStreamFailureStoreTemplate

func (*DataStreamFailureStoreTemplate) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamFailureStoreTemplate) UnmarshalJSON(data []byte) error

type DataStreamFailureStoreTemplateVariant ¶ added in v9.1.0

type DataStreamFailureStoreTemplateVariant interface {
	DataStreamFailureStoreTemplateCaster() *DataStreamFailureStoreTemplate
}

type DataStreamFailureStoreVariant ¶ added in v9.1.0

type DataStreamFailureStoreVariant interface {
	DataStreamFailureStoreCaster() *DataStreamFailureStore
}

type DataStreamIndex ¶

type DataStreamIndex struct {
	// IlmPolicy Name of the current ILM lifecycle policy configured for this backing index.
	IlmPolicy *string `json:"ilm_policy,omitempty"`
	// IndexMode The index mode of this backing index of the data stream.
	IndexMode *indexmode.IndexMode `json:"index_mode,omitempty"`
	// IndexName Name of the backing index.
	IndexName string `json:"index_name"`
	// IndexUuid Universally unique identifier (UUID) for the index.
	IndexUuid string `json:"index_uuid"`
	// ManagedBy Name of the lifecycle system that's currently managing this backing index.
	ManagedBy *managedby.ManagedBy `json:"managed_by,omitempty"`
	// PreferIlm Indicates if ILM should take precedence over DSL in case both are configured
	// to manage this index.
	PreferIlm *bool `json:"prefer_ilm,omitempty"`
}

DataStreamIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStream.ts#L154-L179

func NewDataStreamIndex ¶

func NewDataStreamIndex() *DataStreamIndex

NewDataStreamIndex returns a DataStreamIndex.

func (*DataStreamIndex) UnmarshalJSON ¶

func (s *DataStreamIndex) UnmarshalJSON(data []byte) error

type DataStreamLifecycle ¶

type DataStreamLifecycle struct {
	// DataRetention If defined, every document added to this data stream will be stored at least
	// for this time frame.
	// Any time after this duration the document could be deleted.
	// When empty, every document in this data stream will be stored indefinitely.
	DataRetention Duration `json:"data_retention,omitempty"`
	// Downsampling The downsampling configuration to execute for the managed backing index after
	// rollover.
	Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"`
	// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this
	// data stream. A data stream lifecycle
	// that's disabled (enabled: `false`) will have no effect on the data stream.
	Enabled *bool `json:"enabled,omitempty"`
}

DataStreamLifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamLifecycle.ts#L25-L45

func NewDataStreamLifecycle ¶

func NewDataStreamLifecycle() *DataStreamLifecycle

NewDataStreamLifecycle returns a DataStreamLifecycle.

func (*DataStreamLifecycle) DataStreamLifecycleCaster ¶

func (s *DataStreamLifecycle) DataStreamLifecycleCaster() *DataStreamLifecycle

func (*DataStreamLifecycle) UnmarshalJSON ¶

func (s *DataStreamLifecycle) UnmarshalJSON(data []byte) error

type DataStreamLifecycleDetails ¶

type DataStreamLifecycleDetails struct {
	StagnatingBackingIndices      []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"`
	StagnatingBackingIndicesCount int                        `json:"stagnating_backing_indices_count"`
	TotalBackingIndicesInError    int                        `json:"total_backing_indices_in_error"`
}

DataStreamLifecycleDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L154-L158

func NewDataStreamLifecycleDetails ¶

func NewDataStreamLifecycleDetails() *DataStreamLifecycleDetails

NewDataStreamLifecycleDetails returns a DataStreamLifecycleDetails.

func (*DataStreamLifecycleDetails) UnmarshalJSON ¶

func (s *DataStreamLifecycleDetails) UnmarshalJSON(data []byte) error

type DataStreamLifecycleDownsampling ¶

type DataStreamLifecycleDownsampling struct {
	// Rounds The list of downsampling rounds to execute as part of this downsampling
	// configuration
	Rounds []DownsamplingRound `json:"rounds"`
}

DataStreamLifecycleDownsampling type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27

func NewDataStreamLifecycleDownsampling ¶

func NewDataStreamLifecycleDownsampling() *DataStreamLifecycleDownsampling

NewDataStreamLifecycleDownsampling returns a DataStreamLifecycleDownsampling.

func (*DataStreamLifecycleDownsampling) DataStreamLifecycleDownsamplingCaster ¶

func (s *DataStreamLifecycleDownsampling) DataStreamLifecycleDownsamplingCaster() *DataStreamLifecycleDownsampling

type DataStreamLifecycleDownsamplingVariant ¶

type DataStreamLifecycleDownsamplingVariant interface {
	DataStreamLifecycleDownsamplingCaster() *DataStreamLifecycleDownsampling
}

type DataStreamLifecycleExplain ¶

type DataStreamLifecycleExplain struct {
	Error                   *string                          `json:"error,omitempty"`
	GenerationTime          Duration                         `json:"generation_time,omitempty"`
	Index                   string                           `json:"index"`
	IndexCreationDateMillis *int64                           `json:"index_creation_date_millis,omitempty"`
	Lifecycle               *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
	ManagedByLifecycle      bool                             `json:"managed_by_lifecycle"`
	RolloverDateMillis      *int64                           `json:"rollover_date_millis,omitempty"`
	TimeSinceIndexCreation  Duration                         `json:"time_since_index_creation,omitempty"`
	TimeSinceRollover       Duration                         `json:"time_since_rollover,omitempty"`
}

DataStreamLifecycleExplain type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41

func NewDataStreamLifecycleExplain ¶

func NewDataStreamLifecycleExplain() *DataStreamLifecycleExplain

NewDataStreamLifecycleExplain returns a DataStreamLifecycleExplain.

func (*DataStreamLifecycleExplain) UnmarshalJSON ¶

func (s *DataStreamLifecycleExplain) UnmarshalJSON(data []byte) error

type DataStreamLifecycleIndicator ¶

type DataStreamLifecycleIndicator struct {
	Details   *DataStreamLifecycleDetails                 `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

DataStreamLifecycleIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L149-L153

func NewDataStreamLifecycleIndicator ¶

func NewDataStreamLifecycleIndicator() *DataStreamLifecycleIndicator

NewDataStreamLifecycleIndicator returns a DataStreamLifecycleIndicator.

func (*DataStreamLifecycleIndicator) UnmarshalJSON ¶

func (s *DataStreamLifecycleIndicator) UnmarshalJSON(data []byte) error

type DataStreamLifecycleRolloverConditions ¶

type DataStreamLifecycleRolloverConditions struct {
	MaxAge              *string  `json:"max_age,omitempty"`
	MaxDocs             *int64   `json:"max_docs,omitempty"`
	MaxPrimaryShardDocs *int64   `json:"max_primary_shard_docs,omitempty"`
	MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"`
	MaxSize             ByteSize `json:"max_size,omitempty"`
	MinAge              Duration `json:"min_age,omitempty"`
	MinDocs             *int64   `json:"min_docs,omitempty"`
	MinPrimaryShardDocs *int64   `json:"min_primary_shard_docs,omitempty"`
	MinPrimaryShardSize ByteSize `json:"min_primary_shard_size,omitempty"`
	MinSize             ByteSize `json:"min_size,omitempty"`
}

DataStreamLifecycleRolloverConditions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamLifecycle.ts#L60-L72

func NewDataStreamLifecycleRolloverConditions ¶

func NewDataStreamLifecycleRolloverConditions() *DataStreamLifecycleRolloverConditions

NewDataStreamLifecycleRolloverConditions returns a DataStreamLifecycleRolloverConditions.

func (*DataStreamLifecycleRolloverConditions) DataStreamLifecycleRolloverConditionsCaster ¶

func (s *DataStreamLifecycleRolloverConditions) DataStreamLifecycleRolloverConditionsCaster() *DataStreamLifecycleRolloverConditions

func (*DataStreamLifecycleRolloverConditions) UnmarshalJSON ¶

func (s *DataStreamLifecycleRolloverConditions) UnmarshalJSON(data []byte) error

type DataStreamLifecycleRolloverConditionsVariant ¶

type DataStreamLifecycleRolloverConditionsVariant interface {
	DataStreamLifecycleRolloverConditionsCaster() *DataStreamLifecycleRolloverConditions
}

type DataStreamLifecycleVariant ¶

type DataStreamLifecycleVariant interface {
	DataStreamLifecycleCaster() *DataStreamLifecycle
}

type DataStreamLifecycleWithRollover ¶

type DataStreamLifecycleWithRollover struct {
	// DataRetention If defined, every document added to this data stream will be stored at least
	// for this time frame.
	// Any time after this duration the document could be deleted.
	// When empty, every document in this data stream will be stored indefinitely.
	DataRetention Duration `json:"data_retention,omitempty"`
	// Downsampling The downsampling configuration to execute for the managed backing index after
	// rollover.
	Downsampling *DataStreamLifecycleDownsampling `json:"downsampling,omitempty"`
	// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this
	// data stream. A data stream lifecycle
	// that's disabled (enabled: `false`) will have no effect on the data stream.
	Enabled *bool `json:"enabled,omitempty"`
	// Rollover The conditions which will trigger the rollover of a backing index as
	// configured by the cluster setting `cluster.lifecycle.default.rollover`.
	// This property is an implementation detail and it will only be retrieved when
	// the query param `include_defaults` is set to true.
	// The contents of this field are subject to change.
	Rollover *DataStreamLifecycleRolloverConditions `json:"rollover,omitempty"`
}

DataStreamLifecycleWithRollover type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamLifecycle.ts#L47-L58

func NewDataStreamLifecycleWithRollover ¶

func NewDataStreamLifecycleWithRollover() *DataStreamLifecycleWithRollover

NewDataStreamLifecycleWithRollover returns a DataStreamLifecycleWithRollover.

func (*DataStreamLifecycleWithRollover) DataStreamLifecycleWithRolloverCaster ¶

func (s *DataStreamLifecycleWithRollover) DataStreamLifecycleWithRolloverCaster() *DataStreamLifecycleWithRollover

func (*DataStreamLifecycleWithRollover) UnmarshalJSON ¶

func (s *DataStreamLifecycleWithRollover) UnmarshalJSON(data []byte) error

type DataStreamLifecycleWithRolloverVariant ¶

type DataStreamLifecycleWithRolloverVariant interface {
	DataStreamLifecycleWithRolloverCaster() *DataStreamLifecycleWithRollover
}

type DataStreamOptions ¶ added in v9.1.0

type DataStreamOptions struct {
	// FailureStore If defined, it specifies configuration for the failure store of this data
	// stream.
	FailureStore *DataStreamFailureStore `json:"failure_store,omitempty"`
}

DataStreamOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamOptions.ts#L25-L34

func NewDataStreamOptions ¶ added in v9.1.0

func NewDataStreamOptions() *DataStreamOptions

NewDataStreamOptions returns a DataStreamOptions.

type DataStreamOptionsTemplate ¶ added in v9.1.0

type DataStreamOptionsTemplate struct {
	FailureStore *DataStreamFailureStoreTemplate `json:"failure_store,omitempty"`
}

DataStreamOptionsTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamOptions.ts#L36-L41

func NewDataStreamOptionsTemplate ¶ added in v9.1.0

func NewDataStreamOptionsTemplate() *DataStreamOptionsTemplate

NewDataStreamOptionsTemplate returns a DataStreamOptionsTemplate.

func (*DataStreamOptionsTemplate) DataStreamOptionsTemplateCaster ¶ added in v9.1.0

func (s *DataStreamOptionsTemplate) DataStreamOptionsTemplateCaster() *DataStreamOptionsTemplate

func (*DataStreamOptionsTemplate) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamOptionsTemplate) UnmarshalJSON(data []byte) error

type DataStreamOptionsTemplateVariant ¶ added in v9.1.0

type DataStreamOptionsTemplateVariant interface {
	DataStreamOptionsTemplateCaster() *DataStreamOptionsTemplate
}

type DataStreamSettings ¶ added in v9.1.0

type DataStreamSettings struct {
	// EffectiveSettings The settings specific to this data stream merged with the settings from its
	// template. These `effective_settings`
	// are the settings that will be used when a new index is created for this data
	// stream.
	EffectiveSettings IndexSettings `json:"effective_settings"`
	// Name The name of the data stream.
	Name string `json:"name"`
	// Settings The settings specific to this data stream
	Settings IndexSettings `json:"settings"`
}

DataStreamSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsResponse.ts#L29-L39

func NewDataStreamSettings ¶ added in v9.1.0

func NewDataStreamSettings() *DataStreamSettings

NewDataStreamSettings returns a DataStreamSettings.

func (*DataStreamSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamSettings) UnmarshalJSON(data []byte) error

type DataStreamSettingsError ¶ added in v9.1.0

type DataStreamSettingsError struct {
	// Error A message explaining why the settings could not be applied to specific
	// indices.
	Error string `json:"error"`
	Index string `json:"index"`
}

DataStreamSettingsError type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L71-L77

func NewDataStreamSettingsError ¶ added in v9.1.0

func NewDataStreamSettingsError() *DataStreamSettingsError

NewDataStreamSettingsError returns a DataStreamSettingsError.

func (*DataStreamSettingsError) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamSettingsError) UnmarshalJSON(data []byte) error

type DataStreamStats ¶

type DataStreamStats struct {
	// BackingIndicesInError The count of the backing indices for the data stream.
	BackingIndicesInError int `json:"backing_indices_in_error"`
	// BackingIndicesInTotal The count of the backing indices for the data stream that have encountered an
	// error.
	BackingIndicesInTotal int `json:"backing_indices_in_total"`
	// Name The name of the data stream.
	Name string `json:"name"`
}

DataStreamStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59

func NewDataStreamStats ¶

func NewDataStreamStats() *DataStreamStats

NewDataStreamStats returns a DataStreamStats.

func (*DataStreamStats) UnmarshalJSON ¶

func (s *DataStreamStats) UnmarshalJSON(data []byte) error

type DataStreamTimestamp ¶

type DataStreamTimestamp struct {
	Enabled bool `json:"enabled"`
}

DataStreamTimestamp type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/TypeMapping.ts#L59-L61

func NewDataStreamTimestamp ¶

func NewDataStreamTimestamp() *DataStreamTimestamp

NewDataStreamTimestamp returns a DataStreamTimestamp.

func (*DataStreamTimestamp) DataStreamTimestampCaster ¶

func (s *DataStreamTimestamp) DataStreamTimestampCaster() *DataStreamTimestamp

func (*DataStreamTimestamp) UnmarshalJSON ¶

func (s *DataStreamTimestamp) UnmarshalJSON(data []byte) error

type DataStreamTimestampField ¶

type DataStreamTimestampField struct {
	// Name Name of the timestamp field for the data stream, which must be `@timestamp`.
	// The `@timestamp` field must be included in every document indexed to the data
	// stream.
	Name string `json:"name"`
}

DataStreamTimestampField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStream.ts#L147-L152

func NewDataStreamTimestampField ¶

func NewDataStreamTimestampField() *DataStreamTimestampField

NewDataStreamTimestampField returns a DataStreamTimestampField.

func (*DataStreamTimestampField) UnmarshalJSON ¶

func (s *DataStreamTimestampField) UnmarshalJSON(data []byte) error

type DataStreamTimestampVariant ¶

type DataStreamTimestampVariant interface {
	DataStreamTimestampCaster() *DataStreamTimestamp
}

type DataStreamVisibility ¶

type DataStreamVisibility struct {
	AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
	Hidden             *bool `json:"hidden,omitempty"`
}

DataStreamVisibility type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStream.ts#L181-L184

func NewDataStreamVisibility ¶

func NewDataStreamVisibility() *DataStreamVisibility

NewDataStreamVisibility returns a DataStreamVisibility.

func (*DataStreamVisibility) DataStreamVisibilityCaster ¶

func (s *DataStreamVisibility) DataStreamVisibilityCaster() *DataStreamVisibility

func (*DataStreamVisibility) UnmarshalJSON ¶

func (s *DataStreamVisibility) UnmarshalJSON(data []byte) error

type DataStreamVisibilityVariant ¶

type DataStreamVisibilityVariant interface {
	DataStreamVisibilityCaster() *DataStreamVisibility
}

type DataStreamWithLifecycle ¶

type DataStreamWithLifecycle struct {
	Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
	Name      string                           `json:"name"`
}

DataStreamWithLifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30

func NewDataStreamWithLifecycle ¶

func NewDataStreamWithLifecycle() *DataStreamWithLifecycle

NewDataStreamWithLifecycle returns a DataStreamWithLifecycle.

func (*DataStreamWithLifecycle) UnmarshalJSON ¶

func (s *DataStreamWithLifecycle) UnmarshalJSON(data []byte) error

type DataStreamWithOptions ¶ added in v9.1.0

type DataStreamWithOptions struct {
	Name    string             `json:"name"`
	Options *DataStreamOptions `json:"options,omitempty"`
}

DataStreamWithOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_data_stream_options/IndicesGetDataStreamOptionsResponse.ts#L27-L30

func NewDataStreamWithOptions ¶ added in v9.1.0

func NewDataStreamWithOptions() *DataStreamWithOptions

NewDataStreamWithOptions returns a DataStreamWithOptions.

func (*DataStreamWithOptions) UnmarshalJSON ¶ added in v9.1.0

func (s *DataStreamWithOptions) UnmarshalJSON(data []byte) error

type DataStreams ¶

type DataStreams struct {
	Available    bool  `json:"available"`
	DataStreams  int64 `json:"data_streams"`
	Enabled      bool  `json:"enabled"`
	IndicesCount int64 `json:"indices_count"`
}

DataStreams type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L78-L81

func NewDataStreams ¶

func NewDataStreams() *DataStreams

NewDataStreams returns a DataStreams.

func (*DataStreams) UnmarshalJSON ¶

func (s *DataStreams) UnmarshalJSON(data []byte) error

type DataStreamsStatsItem ¶

type DataStreamsStatsItem struct {
	// BackingIndices Current number of backing indices for the data stream.
	BackingIndices int `json:"backing_indices"`
	// DataStream Name of the data stream.
	DataStream string `json:"data_stream"`
	// MaximumTimestamp The data stream’s highest `@timestamp` value, converted to milliseconds since
	// the Unix epoch.
	// NOTE: This timestamp is provided as a best effort.
	// The data stream may contain `@timestamp` values higher than this if one or
	// more of the following conditions are met:
	// The stream contains closed backing indices;
	// Backing indices with a lower generation contain higher `@timestamp` values.
	MaximumTimestamp int64 `json:"maximum_timestamp"`
	// StoreSize Total size of all shards for the data stream’s backing indices.
	// This parameter is only returned if the `human` query parameter is `true`.
	StoreSize ByteSize `json:"store_size,omitempty"`
	// StoreSizeBytes Total size, in bytes, of all shards for the data stream’s backing indices.
	StoreSizeBytes int64 `json:"store_size_bytes"`
}

DataStreamsStatsItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65

func NewDataStreamsStatsItem ¶

func NewDataStreamsStatsItem() *DataStreamsStatsItem

NewDataStreamsStatsItem returns a DataStreamsStatsItem.

func (*DataStreamsStatsItem) UnmarshalJSON ¶

func (s *DataStreamsStatsItem) UnmarshalJSON(data []byte) error

type DataTierPhaseStatistics ¶

type DataTierPhaseStatistics struct {
	DocCount                    int64 `json:"doc_count"`
	IndexCount                  int64 `json:"index_count"`
	NodeCount                   int64 `json:"node_count"`
	PrimaryShardCount           int64 `json:"primary_shard_count"`
	PrimaryShardSizeAvgBytes    int64 `json:"primary_shard_size_avg_bytes"`
	PrimaryShardSizeMadBytes    int64 `json:"primary_shard_size_mad_bytes"`
	PrimaryShardSizeMedianBytes int64 `json:"primary_shard_size_median_bytes"`
	PrimarySizeBytes            int64 `json:"primary_size_bytes"`
	TotalShardCount             int64 `json:"total_shard_count"`
	TotalSizeBytes              int64 `json:"total_size_bytes"`
}

DataTierPhaseStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L83-L94

func NewDataTierPhaseStatistics ¶

func NewDataTierPhaseStatistics() *DataTierPhaseStatistics

NewDataTierPhaseStatistics returns a DataTierPhaseStatistics.

func (*DataTierPhaseStatistics) UnmarshalJSON ¶

func (s *DataTierPhaseStatistics) UnmarshalJSON(data []byte) error

type DataTiers ¶

type DataTiers struct {
	Available   bool                     `json:"available"`
	DataCold    DataTierPhaseStatistics  `json:"data_cold"`
	DataContent DataTierPhaseStatistics  `json:"data_content"`
	DataFrozen  *DataTierPhaseStatistics `json:"data_frozen,omitempty"`
	DataHot     DataTierPhaseStatistics  `json:"data_hot"`
	DataWarm    DataTierPhaseStatistics  `json:"data_warm"`
	Enabled     bool                     `json:"enabled"`
}

DataTiers type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L349-L359

func NewDataTiers ¶

func NewDataTiers() *DataTiers

NewDataTiers returns a DataTiers.

func (*DataTiers) UnmarshalJSON ¶

func (s *DataTiers) UnmarshalJSON(data []byte) error

type DatabaseConfiguration ¶

type DatabaseConfiguration struct {
	AdditionalDatabaseConfigurationProperty map[string]json.RawMessage `json:"-"`
	Ipinfo                                  *Ipinfo                    `json:"ipinfo,omitempty"`
	Maxmind                                 *Maxmind                   `json:"maxmind,omitempty"`
	// Name The provider-assigned name of the IP geolocation database to download.
	Name string `json:"name"`
}

DatabaseConfiguration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Database.ts#L22-L37

func NewDatabaseConfiguration ¶

func NewDatabaseConfiguration() *DatabaseConfiguration

NewDatabaseConfiguration returns a DatabaseConfiguration.

func (*DatabaseConfiguration) DatabaseConfigurationCaster ¶

func (s *DatabaseConfiguration) DatabaseConfigurationCaster() *DatabaseConfiguration

func (DatabaseConfiguration) MarshalJSON ¶

func (s DatabaseConfiguration) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DatabaseConfiguration) UnmarshalJSON ¶

func (s *DatabaseConfiguration) UnmarshalJSON(data []byte) error

type DatabaseConfigurationFull ¶

type DatabaseConfigurationFull struct {
	AdditionalDatabaseConfigurationFullProperty map[string]json.RawMessage `json:"-"`
	Ipinfo                                      *Ipinfo                    `json:"ipinfo,omitempty"`
	Local                                       *Local                     `json:"local,omitempty"`
	Maxmind                                     *Maxmind                   `json:"maxmind,omitempty"`
	// Name The provider-assigned name of the IP geolocation database to download.
	Name string `json:"name"`
	Web  *Web   `json:"web,omitempty"`
}

DatabaseConfigurationFull type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Database.ts#L39-L53

func NewDatabaseConfigurationFull ¶

func NewDatabaseConfigurationFull() *DatabaseConfigurationFull

NewDatabaseConfigurationFull returns a DatabaseConfigurationFull.

func (DatabaseConfigurationFull) MarshalJSON ¶

func (s DatabaseConfigurationFull) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DatabaseConfigurationFull) UnmarshalJSON ¶

func (s *DatabaseConfigurationFull) UnmarshalJSON(data []byte) error

type DatabaseConfigurationVariant ¶

type DatabaseConfigurationVariant interface {
	DatabaseConfigurationCaster() *DatabaseConfiguration
}

type DatafeedAuthorization ¶

type DatafeedAuthorization struct {
	// ApiKey If an API key was used for the most recent update to the datafeed, its name
	// and identifier are listed in the response.
	ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`
	// Roles If a user ID was used for the most recent update to the datafeed, its roles
	// at the time of the update are listed in the response.
	Roles []string `json:"roles,omitempty"`
	// ServiceAccount If a service account was used for the most recent update to the datafeed, the
	// account name is listed in the response.
	ServiceAccount *string `json:"service_account,omitempty"`
}

DatafeedAuthorization type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Authorization.ts#L31-L43

func NewDatafeedAuthorization ¶

func NewDatafeedAuthorization() *DatafeedAuthorization

NewDatafeedAuthorization returns a DatafeedAuthorization.

func (*DatafeedAuthorization) UnmarshalJSON ¶

func (s *DatafeedAuthorization) UnmarshalJSON(data []byte) error

type DatafeedConfig ¶

type DatafeedConfig struct {
	// Aggregations If set, the datafeed performs aggregation searches. Support for aggregations
	// is limited and should be used only with low cardinality data.
	Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
	// ChunkingConfig Datafeeds might be required to search over long time periods, for several
	// months or years. This search is split into time chunks in order to ensure the
	// load on Elasticsearch is managed. Chunking configuration controls how the
	// size of these time chunks are calculated and is an advanced configuration
	// option.
	ChunkingConfig *ChunkingConfig `json:"chunking_config,omitempty"`
	// DatafeedId A numerical character string that uniquely identifies the datafeed. This
	// identifier can contain lowercase alphanumeric characters (a-z and 0-9),
	// hyphens, and underscores. It must start and end with alphanumeric characters.
	// The default value is the job identifier.
	DatafeedId *string `json:"datafeed_id,omitempty"`
	// DelayedDataCheckConfig Specifies whether the datafeed checks for missing data and the size of the
	// window. The datafeed can optionally search over indices that have already
	// been read in an effort to determine whether any data has subsequently been
	// added to the index. If missing data is found, it is a good indication that
	// the `query_delay` option is set too low and the data is being indexed after
	// the datafeed has passed that moment in time. This check runs only on
	// real-time datafeeds.
	DelayedDataCheckConfig *DelayedDataCheckConfig `json:"delayed_data_check_config,omitempty"`
	// Frequency The interval at which scheduled queries are made while the datafeed runs in
	// real time. The default value is either the bucket span for short bucket
	// spans, or, for longer bucket spans, a sensible fraction of the bucket span.
	// For example: `150s`. When `frequency` is shorter than the bucket span,
	// interim results for the last (partial) bucket are written then eventually
	// overwritten by the full bucket results. If the datafeed uses aggregations,
	// this value must be divisible by the interval of the date histogram
	// aggregation.
	Frequency Duration `json:"frequency,omitempty"`
	// Indices An array of index names. Wildcards are supported. If any indices are in
	// remote clusters, the machine learning nodes must have the
	// `remote_cluster_client` role.
	Indices []string `json:"indices,omitempty"`
	// IndicesOptions Specifies index expansion options that are used during search.
	IndicesOptions *IndicesOptions `json:"indices_options,omitempty"`
	JobId          *string         `json:"job_id,omitempty"`
	// MaxEmptySearches If a real-time datafeed has never seen any data (including during any initial
	// training period) then it will automatically stop itself and close its
	// associated job after this many real-time searches that return no documents.
	// In other words, it will stop after `frequency` times `max_empty_searches` of
	// real-time operation. If not set then a datafeed with no end time that sees no
	// data will remain started until it is explicitly stopped.
	MaxEmptySearches *int `json:"max_empty_searches,omitempty"`
	// Query The Elasticsearch query domain-specific language (DSL). This value
	// corresponds to the query object in an Elasticsearch search POST body. All the
	// options that are supported by Elasticsearch can be used, as this object is
	// passed verbatim to Elasticsearch.
	Query *Query `json:"query,omitempty"`
	// QueryDelay The number of seconds behind real time that data is queried. For example, if
	// data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06
	// a.m., set this property to 120 seconds. The default value is randomly
	// selected between `60s` and `120s`. This randomness improves the query
	// performance when there are multiple jobs running on the same node.
	QueryDelay Duration `json:"query_delay,omitempty"`
	// RuntimeMappings Specifies runtime fields for the datafeed search.
	RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"`
	// ScriptFields Specifies scripts that evaluate custom expressions and returns script fields
	// to the datafeed. The detector configuration objects in a job can contain
	// functions that use these script fields.
	ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`
	// ScrollSize The size parameter that is used in Elasticsearch searches when the datafeed
	// does not use aggregations. The maximum value is the value of
	// `index.max_result_window`, which is 10,000 by default.
	ScrollSize *int `json:"scroll_size,omitempty"`
}

DatafeedConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L63-L120

func NewDatafeedConfig ¶

func NewDatafeedConfig() *DatafeedConfig

NewDatafeedConfig returns a DatafeedConfig.

func (*DatafeedConfig) DatafeedConfigCaster ¶

func (s *DatafeedConfig) DatafeedConfigCaster() *DatafeedConfig

func (*DatafeedConfig) UnmarshalJSON ¶

func (s *DatafeedConfig) UnmarshalJSON(data []byte) error

type DatafeedConfigVariant ¶

type DatafeedConfigVariant interface {
	DatafeedConfigCaster() *DatafeedConfig
}

type DatafeedRunningState ¶

type DatafeedRunningState struct {
	// RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no
	// configured `end` time.
	RealTimeConfigured bool `json:"real_time_configured"`
	// RealTimeRunning Indicates whether the datafeed has finished running on the available past
	// data.
	// For datafeeds without a configured `end` time, this means that the datafeed
	// is now running on "real-time" data.
	RealTimeRunning bool `json:"real_time_running"`
	// SearchInterval Provides the latest time interval the datafeed has searched.
	SearchInterval *RunningStateSearchInterval `json:"search_interval,omitempty"`
}

DatafeedRunningState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L210-L224

func NewDatafeedRunningState ¶

func NewDatafeedRunningState() *DatafeedRunningState

NewDatafeedRunningState returns a DatafeedRunningState.

func (*DatafeedRunningState) UnmarshalJSON ¶

func (s *DatafeedRunningState) UnmarshalJSON(data []byte) error

type DatafeedStats ¶

type DatafeedStats struct {
	// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a
	// node.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// DatafeedId A numerical character string that uniquely identifies the datafeed.
	// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),
	// hyphens, and underscores.
	// It must start and end with alphanumeric characters.
	DatafeedId string `json:"datafeed_id"`
	// Node For started datafeeds only, this information pertains to the node upon which
	// the datafeed is started.
	Node *DiscoveryNodeCompact `json:"node,omitempty"`
	// RunningState An object containing the running state for this datafeed.
	// It is only provided if the datafeed is started.
	RunningState *DatafeedRunningState `json:"running_state,omitempty"`
	// State The status of the datafeed, which can be one of the following values:
	// `starting`, `started`, `stopping`, `stopped`.
	State datafeedstate.DatafeedState `json:"state"`
	// TimingStats An object that provides statistical information about timing aspect of this
	// datafeed.
	TimingStats *DatafeedTimingStats `json:"timing_stats,omitempty"`
}

DatafeedStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L143-L172

func NewDatafeedStats ¶

func NewDatafeedStats() *DatafeedStats

NewDatafeedStats returns a DatafeedStats.

func (*DatafeedStats) UnmarshalJSON ¶

func (s *DatafeedStats) UnmarshalJSON(data []byte) error

type DatafeedTimingStats ¶

type DatafeedTimingStats struct {
	// AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds.
	AverageSearchTimePerBucketMs Float64 `json:"average_search_time_per_bucket_ms,omitempty"`
	// BucketCount The number of buckets processed.
	BucketCount                          int64                                 `json:"bucket_count"`
	ExponentialAverageCalculationContext *ExponentialAverageCalculationContext `json:"exponential_average_calculation_context,omitempty"`
	// ExponentialAverageSearchTimePerHourMs The exponential average search time per hour, in milliseconds.
	ExponentialAverageSearchTimePerHourMs Float64 `json:"exponential_average_search_time_per_hour_ms"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// SearchCount The number of searches run by the datafeed.
	SearchCount int64 `json:"search_count"`
	// TotalSearchTimeMs The total time the datafeed spent searching, in milliseconds.
	TotalSearchTimeMs Float64 `json:"total_search_time_ms"`
}

DatafeedTimingStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L174-L202

func NewDatafeedTimingStats ¶

func NewDatafeedTimingStats() *DatafeedTimingStats

NewDatafeedTimingStats returns a DatafeedTimingStats.

func (*DatafeedTimingStats) UnmarshalJSON ¶

func (s *DatafeedTimingStats) UnmarshalJSON(data []byte) error

type Datafeeds ¶

type Datafeeds struct {
	ScrollSize int `json:"scroll_size"`
}

Datafeeds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/info/types.ts#L42-L44

func NewDatafeeds ¶

func NewDatafeeds() *Datafeeds

NewDatafeeds returns a Datafeeds.

func (*Datafeeds) UnmarshalJSON ¶

func (s *Datafeeds) UnmarshalJSON(data []byte) error

type DatafeedsRecord ¶

type DatafeedsRecord struct {
	// AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a
	// node.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// BucketsCount The number of buckets processed.
	BucketsCount *string `json:"buckets.count,omitempty"`
	// Id The datafeed identifier.
	Id *string `json:"id,omitempty"`
	// NodeAddress The network address of the assigned node.
	// For started datafeeds only, this information pertains to the node upon which
	// the datafeed is started.
	NodeAddress *string `json:"node.address,omitempty"`
	// NodeEphemeralId The ephemeral identifier of the assigned node.
	// For started datafeeds only, this information pertains to the node upon which
	// the datafeed is started.
	NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`
	// NodeId The unique identifier of the assigned node.
	// For started datafeeds only, this information pertains to the node upon which
	// the datafeed is started.
	NodeId *string `json:"node.id,omitempty"`
	// NodeName The name of the assigned node.
	// For started datafeeds only, this information pertains to the node upon which
	// the datafeed is started.
	NodeName *string `json:"node.name,omitempty"`
	// SearchBucketAvg The average search time per bucket, in milliseconds.
	SearchBucketAvg *string `json:"search.bucket_avg,omitempty"`
	// SearchCount The number of searches run by the datafeed.
	SearchCount *string `json:"search.count,omitempty"`
	// SearchExpAvgHour The exponential average search time per hour, in milliseconds.
	SearchExpAvgHour *string `json:"search.exp_avg_hour,omitempty"`
	// SearchTime The total time the datafeed spent searching, in milliseconds.
	SearchTime *string `json:"search.time,omitempty"`
	// State The status of the datafeed.
	State *datafeedstate.DatafeedState `json:"state,omitempty"`
}

DatafeedsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/ml_datafeeds/types.ts#L22-L87

func NewDatafeedsRecord ¶

func NewDatafeedsRecord() *DatafeedsRecord

NewDatafeedsRecord returns a DatafeedsRecord.

func (*DatafeedsRecord) UnmarshalJSON ¶

func (s *DatafeedsRecord) UnmarshalJSON(data []byte) error

type DataframeAnalysisAnalyzedFields ¶

type DataframeAnalysisAnalyzedFields struct {
	// Excludes An array of strings that defines the fields that will be included in the
	// analysis.
	Excludes []string `json:"excludes,omitempty"`
	// Includes An array of strings that defines the fields that will be excluded from the
	// analysis. You do not need to add fields with unsupported data types to
	// excludes, these fields are excluded from the analysis automatically.
	Includes []string `json:"includes,omitempty"`
}

DataframeAnalysisAnalyzedFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L238-L244

func NewDataframeAnalysisAnalyzedFields ¶

func NewDataframeAnalysisAnalyzedFields() *DataframeAnalysisAnalyzedFields

NewDataframeAnalysisAnalyzedFields returns a DataframeAnalysisAnalyzedFields.

func (*DataframeAnalysisAnalyzedFields) DataframeAnalysisAnalyzedFieldsCaster ¶

func (s *DataframeAnalysisAnalyzedFields) DataframeAnalysisAnalyzedFieldsCaster() *DataframeAnalysisAnalyzedFields

func (*DataframeAnalysisAnalyzedFields) UnmarshalJSON ¶

func (s *DataframeAnalysisAnalyzedFields) UnmarshalJSON(data []byte) error

type DataframeAnalysisAnalyzedFieldsVariant ¶

type DataframeAnalysisAnalyzedFieldsVariant interface {
	DataframeAnalysisAnalyzedFieldsCaster() *DataframeAnalysisAnalyzedFields
}

type DataframeAnalysisClassification ¶

type DataframeAnalysisClassification struct {
	// Alpha Advanced configuration option. Machine learning uses loss guided tree
	// growing, which means that the decision trees grow where the regularized loss
	// decreases most quickly. This parameter affects loss calculations by acting as
	// a multiplier of the tree depth. Higher alpha values result in shallower trees
	// and faster training times. By default, this value is calculated during
	// hyperparameter optimization. It must be greater than or equal to zero.
	Alpha                    *Float64 `json:"alpha,omitempty"`
	ClassAssignmentObjective *string  `json:"class_assignment_objective,omitempty"`
	// DependentVariable Defines which field of the document is to be predicted. It must match one of
	// the fields in the index being used to train. If this field is missing from a
	// document, then that document will not be used for training, but a prediction
	// with the trained model will be generated for it. It is also known as
	// continuous target variable.
	// For classification analysis, the data type of the field must be numeric
	// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or
	// `boolean`. There must be no more than 30 different values in this field.
	// For regression analysis, the data type of the field must be numeric.
	DependentVariable string `json:"dependent_variable"`
	// DownsampleFactor Advanced configuration option. Controls the fraction of data that is used to
	// compute the derivatives of the loss function for tree training. A small value
	// results in the use of a small fraction of the data. If this value is set to
	// be less than 1, accuracy typically improves. However, too small a value may
	// result in poor convergence for the ensemble and so require more trees. By
	// default, this value is calculated during hyperparameter optimization. It must
	// be greater than zero and less than or equal to 1.
	DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`
	// EarlyStoppingEnabled Advanced configuration option. Specifies whether the training process should
	// finish if it is not finding any better performing models. If disabled, the
	// training process can take significantly longer and the chance of finding a
	// better performing model is unremarkable.
	EarlyStoppingEnabled *bool `json:"early_stopping_enabled,omitempty"`
	// Eta Advanced configuration option. The shrinkage applied to the weights. Smaller
	// values result in larger forests which have a better generalization error.
	// However, larger forests cause slower training. By default, this value is
	// calculated during hyperparameter optimization. It must be a value between
	// 0.001 and 1.
	Eta *Float64 `json:"eta,omitempty"`
	// EtaGrowthRatePerTree Advanced configuration option. Specifies the rate at which `eta` increases
	// for each new tree that is added to the forest. For example, a rate of 1.05
	// increases `eta` by 5% for each extra tree. By default, this value is
	// calculated during hyperparameter optimization. It must be between 0.5 and 2.
	EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`
	// FeatureBagFraction Advanced configuration option. Defines the fraction of features that will be
	// used when selecting a random bag for each candidate split. By default, this
	// value is calculated during hyperparameter optimization.
	FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`
	// FeatureProcessors Advanced configuration option. A collection of feature preprocessors that
	// modify one or more included fields. The analysis uses the resulting one or
	// more features instead of the original document field. However, these features
	// are ephemeral; they are not stored in the destination index. Multiple
	// `feature_processors` entries can refer to the same document fields. Automatic
	// categorical feature encoding still occurs for the fields that are unprocessed
	// by a custom processor or that have categorical values. Use this property only
	// if you want to override the automatic feature encoding of the specified
	// fields.
	FeatureProcessors []DataframeAnalysisFeatureProcessor `json:"feature_processors,omitempty"`
	// Gamma Advanced configuration option. Regularization parameter to prevent
	// overfitting on the training data set. Multiplies a linear penalty associated
	// with the size of individual trees in the forest. A high gamma value causes
	// training to prefer small trees. A small gamma value results in larger
	// individual trees and slower training. By default, this value is calculated
	// during hyperparameter optimization. It must be a nonnegative value.
	Gamma *Float64 `json:"gamma,omitempty"`
	// Lambda Advanced configuration option. Regularization parameter to prevent
	// overfitting on the training data set. Multiplies an L2 regularization term
	// which applies to leaf weights of the individual trees in the forest. A high
	// lambda value causes training to favor small leaf weights. This behavior makes
	// the prediction function smoother at the expense of potentially not being able
	// to capture relevant relationships between the features and the dependent
	// variable. A small lambda value results in large individual trees and slower
	// training. By default, this value is calculated during hyperparameter
	// optimization. It must be a nonnegative value.
	Lambda *Float64 `json:"lambda,omitempty"`
	// MaxOptimizationRoundsPerHyperparameter Advanced configuration option. A multiplier responsible for determining the
	// maximum number of hyperparameter optimization steps in the Bayesian
	// optimization procedure. The maximum number of steps is determined based on
	// the number of undefined hyperparameters times the maximum optimization rounds
	// per hyperparameter. By default, this value is calculated during
	// hyperparameter optimization.
	MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`
	// MaxTrees Advanced configuration option. Defines the maximum number of decision trees
	// in the forest. The maximum value is 2000. By default, this value is
	// calculated during hyperparameter optimization.
	MaxTrees *int `json:"max_trees,omitempty"`
	// NumTopClasses Defines the number of categories for which the predicted probabilities are
	// reported. It must be non-negative or -1. If it is -1 or greater than the
	// total number of categories, probabilities are reported for all categories; if
	// you have a large number of categories, there could be a significant effect on
	// the size of your destination index. NOTE: To use the AUC ROC evaluation
	// method, `num_top_classes` must be set to -1 or a value greater than or equal
	// to the total number of categories.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// NumTopFeatureImportanceValues Advanced configuration option. Specifies the maximum number of feature
	// importance values per document to return. By default, no feature importance
	// calculation occurs.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// PredictionFieldName Defines the name of the prediction field in the results. Defaults to
	// `<dependent_variable>_prediction`.
	PredictionFieldName *string `json:"prediction_field_name,omitempty"`
	// RandomizeSeed Defines the seed for the random generator that is used to pick training data.
	// By default, it is randomly generated. Set it to a specific value to use the
	// same training data each time you start a job (assuming other related
	// parameters such as `source` and `analyzed_fields` are the same).
	RandomizeSeed *Float64 `json:"randomize_seed,omitempty"`
	// SoftTreeDepthLimit Advanced configuration option. Machine learning uses loss guided tree
	// growing, which means that the decision trees grow where the regularized loss
	// decreases most quickly. This soft limit combines with the
	// `soft_tree_depth_tolerance` to penalize trees that exceed the specified
	// depth; the regularized loss increases quickly beyond this depth. By default,
	// this value is calculated during hyperparameter optimization. It must be
	// greater than or equal to 0.
	SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`
	// SoftTreeDepthTolerance Advanced configuration option. This option controls how quickly the
	// regularized loss increases when the tree depth exceeds
	// `soft_tree_depth_limit`. By default, this value is calculated during
	// hyperparameter optimization. It must be greater than or equal to 0.01.
	SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`
	// TrainingPercent Defines what percentage of the eligible documents that will be used for
	// training. Documents that are ignored by the analysis (for example those that
	// contain arrays with more than one value) won’t be included in the calculation
	// for used percentage.
	TrainingPercent Percentage `json:"training_percent,omitempty"`
}

DataframeAnalysisClassification type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L227-L236

func NewDataframeAnalysisClassification ¶

func NewDataframeAnalysisClassification() *DataframeAnalysisClassification

NewDataframeAnalysisClassification returns a DataframeAnalysisClassification.

func (*DataframeAnalysisClassification) DataframeAnalysisClassificationCaster ¶

func (s *DataframeAnalysisClassification) DataframeAnalysisClassificationCaster() *DataframeAnalysisClassification

func (*DataframeAnalysisClassification) UnmarshalJSON ¶

func (s *DataframeAnalysisClassification) UnmarshalJSON(data []byte) error

type DataframeAnalysisClassificationVariant ¶

type DataframeAnalysisClassificationVariant interface {
	DataframeAnalysisClassificationCaster() *DataframeAnalysisClassification
}

type DataframeAnalysisContainer ¶

type DataframeAnalysisContainer struct {
	AdditionalDataframeAnalysisContainerProperty map[string]json.RawMessage `json:"-"`
	// Classification The configuration information necessary to perform classification.
	Classification *DataframeAnalysisClassification `json:"classification,omitempty"`
	// OutlierDetection The configuration information necessary to perform outlier detection. NOTE:
	// Advanced parameters are for fine-tuning classification analysis. They are set
	// automatically by hyperparameter optimization to give the minimum validation
	// error. It is highly recommended to use the default values unless you fully
	// understand the function of these parameters.
	OutlierDetection *DataframeAnalysisOutlierDetection `json:"outlier_detection,omitempty"`
	// Regression The configuration information necessary to perform regression. NOTE: Advanced
	// parameters are for fine-tuning regression analysis. They are set
	// automatically by hyperparameter optimization to give the minimum validation
	// error. It is highly recommended to use the default values unless you fully
	// understand the function of these parameters.
	Regression *DataframeAnalysisRegression `json:"regression,omitempty"`
}

DataframeAnalysisContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L84-L101

func NewDataframeAnalysisContainer ¶

func NewDataframeAnalysisContainer() *DataframeAnalysisContainer

NewDataframeAnalysisContainer returns a DataframeAnalysisContainer.

func (*DataframeAnalysisContainer) DataframeAnalysisContainerCaster ¶

func (s *DataframeAnalysisContainer) DataframeAnalysisContainerCaster() *DataframeAnalysisContainer

func (DataframeAnalysisContainer) MarshalJSON ¶

func (s DataframeAnalysisContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type DataframeAnalysisContainerVariant ¶

type DataframeAnalysisContainerVariant interface {
	DataframeAnalysisContainerCaster() *DataframeAnalysisContainer
}

type DataframeAnalysisFeatureProcessor ¶

type DataframeAnalysisFeatureProcessor struct {
	AdditionalDataframeAnalysisFeatureProcessorProperty map[string]json.RawMessage `json:"-"`
	// FrequencyEncoding The configuration information necessary to perform frequency encoding.
	FrequencyEncoding *DataframeAnalysisFeatureProcessorFrequencyEncoding `json:"frequency_encoding,omitempty"`
	// MultiEncoding The configuration information necessary to perform multi encoding. It allows
	// multiple processors to be changed together. This way the output of a
	// processor can then be passed to another as an input.
	MultiEncoding *DataframeAnalysisFeatureProcessorMultiEncoding `json:"multi_encoding,omitempty"`
	// NGramEncoding The configuration information necessary to perform n-gram encoding. Features
	// created by this encoder have the following name format:
	// <feature_prefix>.<ngram><string position>. For example, if the feature_prefix
	// is f, the feature name for the second unigram in a string is f.11.
	NGramEncoding *DataframeAnalysisFeatureProcessorNGramEncoding `json:"n_gram_encoding,omitempty"`
	// OneHotEncoding The configuration information necessary to perform one hot encoding.
	OneHotEncoding *DataframeAnalysisFeatureProcessorOneHotEncoding `json:"one_hot_encoding,omitempty"`
	// TargetMeanEncoding The configuration information necessary to perform target mean encoding.
	TargetMeanEncoding *DataframeAnalysisFeatureProcessorTargetMeanEncoding `json:"target_mean_encoding,omitempty"`
}

DataframeAnalysisFeatureProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L246-L258

func NewDataframeAnalysisFeatureProcessor ¶

func NewDataframeAnalysisFeatureProcessor() *DataframeAnalysisFeatureProcessor

NewDataframeAnalysisFeatureProcessor returns a DataframeAnalysisFeatureProcessor.

func (*DataframeAnalysisFeatureProcessor) DataframeAnalysisFeatureProcessorCaster ¶

func (s *DataframeAnalysisFeatureProcessor) DataframeAnalysisFeatureProcessorCaster() *DataframeAnalysisFeatureProcessor

func (DataframeAnalysisFeatureProcessor) MarshalJSON ¶

func (s DataframeAnalysisFeatureProcessor) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type DataframeAnalysisFeatureProcessorFrequencyEncoding ¶

type DataframeAnalysisFeatureProcessorFrequencyEncoding struct {
	// FeatureName The resulting feature name.
	FeatureName string `json:"feature_name"`
	Field       string `json:"field"`
	// FrequencyMap The resulting frequency map for the field value. If the field value is
	// missing from the frequency_map, the resulting value is 0.
	FrequencyMap map[string]Float64 `json:"frequency_map"`
}

DataframeAnalysisFeatureProcessorFrequencyEncoding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L260-L267

func NewDataframeAnalysisFeatureProcessorFrequencyEncoding ¶

func NewDataframeAnalysisFeatureProcessorFrequencyEncoding() *DataframeAnalysisFeatureProcessorFrequencyEncoding

NewDataframeAnalysisFeatureProcessorFrequencyEncoding returns a DataframeAnalysisFeatureProcessorFrequencyEncoding.

func (*DataframeAnalysisFeatureProcessorFrequencyEncoding) DataframeAnalysisFeatureProcessorFrequencyEncodingCaster ¶

func (s *DataframeAnalysisFeatureProcessorFrequencyEncoding) DataframeAnalysisFeatureProcessorFrequencyEncodingCaster() *DataframeAnalysisFeatureProcessorFrequencyEncoding

func (*DataframeAnalysisFeatureProcessorFrequencyEncoding) UnmarshalJSON ¶

type DataframeAnalysisFeatureProcessorFrequencyEncodingVariant ¶

type DataframeAnalysisFeatureProcessorFrequencyEncodingVariant interface {
	DataframeAnalysisFeatureProcessorFrequencyEncodingCaster() *DataframeAnalysisFeatureProcessorFrequencyEncoding
}

type DataframeAnalysisFeatureProcessorMultiEncoding ¶

type DataframeAnalysisFeatureProcessorMultiEncoding struct {
	// Processors The ordered array of custom processors to execute. Must be more than 1.
	Processors []int `json:"processors"`
}

DataframeAnalysisFeatureProcessorMultiEncoding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L269-L272

func NewDataframeAnalysisFeatureProcessorMultiEncoding ¶

func NewDataframeAnalysisFeatureProcessorMultiEncoding() *DataframeAnalysisFeatureProcessorMultiEncoding

NewDataframeAnalysisFeatureProcessorMultiEncoding returns a DataframeAnalysisFeatureProcessorMultiEncoding.

func (*DataframeAnalysisFeatureProcessorMultiEncoding) DataframeAnalysisFeatureProcessorMultiEncodingCaster ¶

func (s *DataframeAnalysisFeatureProcessorMultiEncoding) DataframeAnalysisFeatureProcessorMultiEncodingCaster() *DataframeAnalysisFeatureProcessorMultiEncoding

type DataframeAnalysisFeatureProcessorMultiEncodingVariant ¶

type DataframeAnalysisFeatureProcessorMultiEncodingVariant interface {
	DataframeAnalysisFeatureProcessorMultiEncodingCaster() *DataframeAnalysisFeatureProcessorMultiEncoding
}

type DataframeAnalysisFeatureProcessorNGramEncoding ¶

type DataframeAnalysisFeatureProcessorNGramEncoding struct {
	Custom *bool `json:"custom,omitempty"`
	// FeaturePrefix The feature name prefix. Defaults to ngram_<start>_<length>.
	FeaturePrefix *string `json:"feature_prefix,omitempty"`
	// Field The name of the text field to encode.
	Field string `json:"field"`
	// Length Specifies the length of the n-gram substring. Defaults to 50. Must be greater
	// than 0.
	Length *int `json:"length,omitempty"`
	// NGrams Specifies which n-grams to gather. It’s an array of integer values where the
	// minimum value is 1, and a maximum value is 5.
	NGrams []int `json:"n_grams"`
	// Start Specifies the zero-indexed start of the n-gram substring. Negative values are
	// allowed for encoding n-grams of string suffixes. Defaults to 0.
	Start *int `json:"start,omitempty"`
}

DataframeAnalysisFeatureProcessorNGramEncoding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L274-L286

func NewDataframeAnalysisFeatureProcessorNGramEncoding ¶

func NewDataframeAnalysisFeatureProcessorNGramEncoding() *DataframeAnalysisFeatureProcessorNGramEncoding

NewDataframeAnalysisFeatureProcessorNGramEncoding returns a DataframeAnalysisFeatureProcessorNGramEncoding.

func (*DataframeAnalysisFeatureProcessorNGramEncoding) DataframeAnalysisFeatureProcessorNGramEncodingCaster ¶

func (s *DataframeAnalysisFeatureProcessorNGramEncoding) DataframeAnalysisFeatureProcessorNGramEncodingCaster() *DataframeAnalysisFeatureProcessorNGramEncoding

func (*DataframeAnalysisFeatureProcessorNGramEncoding) UnmarshalJSON ¶

type DataframeAnalysisFeatureProcessorNGramEncodingVariant ¶

type DataframeAnalysisFeatureProcessorNGramEncodingVariant interface {
	DataframeAnalysisFeatureProcessorNGramEncodingCaster() *DataframeAnalysisFeatureProcessorNGramEncoding
}

type DataframeAnalysisFeatureProcessorOneHotEncoding ¶

type DataframeAnalysisFeatureProcessorOneHotEncoding struct {
	// Field The name of the field to encode.
	Field string `json:"field"`
	// HotMap The one hot map mapping the field value with the column name.
	HotMap string `json:"hot_map"`
}

DataframeAnalysisFeatureProcessorOneHotEncoding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L288-L293

func NewDataframeAnalysisFeatureProcessorOneHotEncoding ¶

func NewDataframeAnalysisFeatureProcessorOneHotEncoding() *DataframeAnalysisFeatureProcessorOneHotEncoding

NewDataframeAnalysisFeatureProcessorOneHotEncoding returns a DataframeAnalysisFeatureProcessorOneHotEncoding.

func (*DataframeAnalysisFeatureProcessorOneHotEncoding) DataframeAnalysisFeatureProcessorOneHotEncodingCaster ¶

func (s *DataframeAnalysisFeatureProcessorOneHotEncoding) DataframeAnalysisFeatureProcessorOneHotEncodingCaster() *DataframeAnalysisFeatureProcessorOneHotEncoding

func (*DataframeAnalysisFeatureProcessorOneHotEncoding) UnmarshalJSON ¶

type DataframeAnalysisFeatureProcessorOneHotEncodingVariant ¶

type DataframeAnalysisFeatureProcessorOneHotEncodingVariant interface {
	DataframeAnalysisFeatureProcessorOneHotEncodingCaster() *DataframeAnalysisFeatureProcessorOneHotEncoding
}

type DataframeAnalysisFeatureProcessorTargetMeanEncoding ¶

type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct {
	// DefaultValue The default value if field value is not found in the target_map.
	DefaultValue int `json:"default_value"`
	// FeatureName The resulting feature name.
	FeatureName string `json:"feature_name"`
	// Field The name of the field to encode.
	Field string `json:"field"`
	// TargetMap The field value to target mean transition map.
	TargetMap map[string]json.RawMessage `json:"target_map"`
}

DataframeAnalysisFeatureProcessorTargetMeanEncoding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L295-L304

func NewDataframeAnalysisFeatureProcessorTargetMeanEncoding ¶

func NewDataframeAnalysisFeatureProcessorTargetMeanEncoding() *DataframeAnalysisFeatureProcessorTargetMeanEncoding

NewDataframeAnalysisFeatureProcessorTargetMeanEncoding returns a DataframeAnalysisFeatureProcessorTargetMeanEncoding.

func (*DataframeAnalysisFeatureProcessorTargetMeanEncoding) DataframeAnalysisFeatureProcessorTargetMeanEncodingCaster ¶

func (s *DataframeAnalysisFeatureProcessorTargetMeanEncoding) DataframeAnalysisFeatureProcessorTargetMeanEncodingCaster() *DataframeAnalysisFeatureProcessorTargetMeanEncoding

func (*DataframeAnalysisFeatureProcessorTargetMeanEncoding) UnmarshalJSON ¶

type DataframeAnalysisFeatureProcessorTargetMeanEncodingVariant ¶

type DataframeAnalysisFeatureProcessorTargetMeanEncodingVariant interface {
	DataframeAnalysisFeatureProcessorTargetMeanEncodingCaster() *DataframeAnalysisFeatureProcessorTargetMeanEncoding
}

type DataframeAnalysisFeatureProcessorVariant ¶

type DataframeAnalysisFeatureProcessorVariant interface {
	DataframeAnalysisFeatureProcessorCaster() *DataframeAnalysisFeatureProcessor
}

type DataframeAnalysisOutlierDetection ¶

type DataframeAnalysisOutlierDetection struct {
	// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.
	ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`
	// FeatureInfluenceThreshold The minimum outlier score that a document needs to have in order to calculate
	// its feature influence score. Value range: 0-1.
	FeatureInfluenceThreshold *Float64 `json:"feature_influence_threshold,omitempty"`
	// Method The method that outlier detection uses. Available methods are `lof`, `ldof`,
	// `distance_kth_nn`, `distance_knn`, and `ensemble`. The default value is
	// ensemble, which means that outlier detection uses an ensemble of different
	// methods and normalises and combines their individual outlier scores to obtain
	// the overall outlier score.
	Method *string `json:"method,omitempty"`
	// NNeighbors Defines the value for how many nearest neighbors each method of outlier
	// detection uses to calculate its outlier score. When the value is not set,
	// different values are used for different ensemble members. This default
	// behavior helps improve the diversity in the ensemble; only override it if you
	// are confident that the value you choose is appropriate for the data set.
	NNeighbors *int `json:"n_neighbors,omitempty"`
	// OutlierFraction The proportion of the data set that is assumed to be outlying prior to
	// outlier detection. For example, 0.05 means it is assumed that 5% of values
	// are real outliers and 95% are inliers.
	OutlierFraction *Float64 `json:"outlier_fraction,omitempty"`
	// StandardizationEnabled If true, the following operation is performed on the columns before computing
	// outlier scores: `(x_i - mean(x_i)) / sd(x_i)`.
	StandardizationEnabled *bool `json:"standardization_enabled,omitempty"`
}

DataframeAnalysisOutlierDetection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L103-L132

func NewDataframeAnalysisOutlierDetection ¶

func NewDataframeAnalysisOutlierDetection() *DataframeAnalysisOutlierDetection

NewDataframeAnalysisOutlierDetection returns a DataframeAnalysisOutlierDetection.

func (*DataframeAnalysisOutlierDetection) DataframeAnalysisOutlierDetectionCaster ¶

func (s *DataframeAnalysisOutlierDetection) DataframeAnalysisOutlierDetectionCaster() *DataframeAnalysisOutlierDetection

func (*DataframeAnalysisOutlierDetection) UnmarshalJSON ¶

func (s *DataframeAnalysisOutlierDetection) UnmarshalJSON(data []byte) error

type DataframeAnalysisOutlierDetectionVariant ¶

type DataframeAnalysisOutlierDetectionVariant interface {
	DataframeAnalysisOutlierDetectionCaster() *DataframeAnalysisOutlierDetection
}

type DataframeAnalysisRegression ¶

type DataframeAnalysisRegression struct {
	// Alpha Advanced configuration option. Machine learning uses loss guided tree
	// growing, which means that the decision trees grow where the regularized loss
	// decreases most quickly. This parameter affects loss calculations by acting as
	// a multiplier of the tree depth. Higher alpha values result in shallower trees
	// and faster training times. By default, this value is calculated during
	// hyperparameter optimization. It must be greater than or equal to zero.
	Alpha *Float64 `json:"alpha,omitempty"`
	// DependentVariable Defines which field of the document is to be predicted. It must match one of
	// the fields in the index being used to train. If this field is missing from a
	// document, then that document will not be used for training, but a prediction
	// with the trained model will be generated for it. It is also known as
	// continuous target variable.
	// For classification analysis, the data type of the field must be numeric
	// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or
	// `boolean`. There must be no more than 30 different values in this field.
	// For regression analysis, the data type of the field must be numeric.
	DependentVariable string `json:"dependent_variable"`
	// DownsampleFactor Advanced configuration option. Controls the fraction of data that is used to
	// compute the derivatives of the loss function for tree training. A small value
	// results in the use of a small fraction of the data. If this value is set to
	// be less than 1, accuracy typically improves. However, too small a value may
	// result in poor convergence for the ensemble and so require more trees. By
	// default, this value is calculated during hyperparameter optimization. It must
	// be greater than zero and less than or equal to 1.
	DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`
	// EarlyStoppingEnabled Advanced configuration option. Specifies whether the training process should
	// finish if it is not finding any better performing models. If disabled, the
	// training process can take significantly longer and the chance of finding a
	// better performing model is unremarkable.
	EarlyStoppingEnabled *bool `json:"early_stopping_enabled,omitempty"`
	// Eta Advanced configuration option. The shrinkage applied to the weights. Smaller
	// values result in larger forests which have a better generalization error.
	// However, larger forests cause slower training. By default, this value is
	// calculated during hyperparameter optimization. It must be a value between
	// 0.001 and 1.
	Eta *Float64 `json:"eta,omitempty"`
	// EtaGrowthRatePerTree Advanced configuration option. Specifies the rate at which `eta` increases
	// for each new tree that is added to the forest. For example, a rate of 1.05
	// increases `eta` by 5% for each extra tree. By default, this value is
	// calculated during hyperparameter optimization. It must be between 0.5 and 2.
	EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`
	// FeatureBagFraction Advanced configuration option. Defines the fraction of features that will be
	// used when selecting a random bag for each candidate split. By default, this
	// value is calculated during hyperparameter optimization.
	FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`
	// FeatureProcessors Advanced configuration option. A collection of feature preprocessors that
	// modify one or more included fields. The analysis uses the resulting one or
	// more features instead of the original document field. However, these features
	// are ephemeral; they are not stored in the destination index. Multiple
	// `feature_processors` entries can refer to the same document fields. Automatic
	// categorical feature encoding still occurs for the fields that are unprocessed
	// by a custom processor or that have categorical values. Use this property only
	// if you want to override the automatic feature encoding of the specified
	// fields.
	FeatureProcessors []DataframeAnalysisFeatureProcessor `json:"feature_processors,omitempty"`
	// Gamma Advanced configuration option. Regularization parameter to prevent
	// overfitting on the training data set. Multiplies a linear penalty associated
	// with the size of individual trees in the forest. A high gamma value causes
	// training to prefer small trees. A small gamma value results in larger
	// individual trees and slower training. By default, this value is calculated
	// during hyperparameter optimization. It must be a nonnegative value.
	Gamma *Float64 `json:"gamma,omitempty"`
	// Lambda Advanced configuration option. Regularization parameter to prevent
	// overfitting on the training data set. Multiplies an L2 regularization term
	// which applies to leaf weights of the individual trees in the forest. A high
	// lambda value causes training to favor small leaf weights. This behavior makes
	// the prediction function smoother at the expense of potentially not being able
	// to capture relevant relationships between the features and the dependent
	// variable. A small lambda value results in large individual trees and slower
	// training. By default, this value is calculated during hyperparameter
	// optimization. It must be a nonnegative value.
	Lambda *Float64 `json:"lambda,omitempty"`
	// LossFunction The loss function used during regression. Available options are `mse` (mean
	// squared error), `msle` (mean squared logarithmic error), `huber`
	// (Pseudo-Huber loss).
	LossFunction *string `json:"loss_function,omitempty"`
	// LossFunctionParameter A positive number that is used as a parameter to the `loss_function`.
	LossFunctionParameter *Float64 `json:"loss_function_parameter,omitempty"`
	// MaxOptimizationRoundsPerHyperparameter Advanced configuration option. A multiplier responsible for determining the
	// maximum number of hyperparameter optimization steps in the Bayesian
	// optimization procedure. The maximum number of steps is determined based on
	// the number of undefined hyperparameters times the maximum optimization rounds
	// per hyperparameter. By default, this value is calculated during
	// hyperparameter optimization.
	MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`
	// MaxTrees Advanced configuration option. Defines the maximum number of decision trees
	// in the forest. The maximum value is 2000. By default, this value is
	// calculated during hyperparameter optimization.
	MaxTrees *int `json:"max_trees,omitempty"`
	// NumTopFeatureImportanceValues Advanced configuration option. Specifies the maximum number of feature
	// importance values per document to return. By default, no feature importance
	// calculation occurs.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// PredictionFieldName Defines the name of the prediction field in the results. Defaults to
	// `<dependent_variable>_prediction`.
	PredictionFieldName *string `json:"prediction_field_name,omitempty"`
	// RandomizeSeed Defines the seed for the random generator that is used to pick training data.
	// By default, it is randomly generated. Set it to a specific value to use the
	// same training data each time you start a job (assuming other related
	// parameters such as `source` and `analyzed_fields` are the same).
	RandomizeSeed *Float64 `json:"randomize_seed,omitempty"`
	// SoftTreeDepthLimit Advanced configuration option. Machine learning uses loss guided tree
	// growing, which means that the decision trees grow where the regularized loss
	// decreases most quickly. This soft limit combines with the
	// `soft_tree_depth_tolerance` to penalize trees that exceed the specified
	// depth; the regularized loss increases quickly beyond this depth. By default,
	// this value is calculated during hyperparameter optimization. It must be
	// greater than or equal to 0.
	SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`
	// SoftTreeDepthTolerance Advanced configuration option. This option controls how quickly the
	// regularized loss increases when the tree depth exceeds
	// `soft_tree_depth_limit`. By default, this value is calculated during
	// hyperparameter optimization. It must be greater than or equal to 0.01.
	SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`
	// TrainingPercent Defines what percentage of the eligible documents that will be used for
	// training. Documents that are ignored by the analysis (for example those that
	// contain arrays with more than one value) won’t be included in the calculation
	// for used percentage.
	TrainingPercent Percentage `json:"training_percent,omitempty"`
}

DataframeAnalysisRegression type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L215-L225

func NewDataframeAnalysisRegression ¶

func NewDataframeAnalysisRegression() *DataframeAnalysisRegression

NewDataframeAnalysisRegression returns a DataframeAnalysisRegression.

func (*DataframeAnalysisRegression) DataframeAnalysisRegressionCaster ¶

func (s *DataframeAnalysisRegression) DataframeAnalysisRegressionCaster() *DataframeAnalysisRegression

func (*DataframeAnalysisRegression) UnmarshalJSON ¶

func (s *DataframeAnalysisRegression) UnmarshalJSON(data []byte) error

type DataframeAnalysisRegressionVariant ¶

type DataframeAnalysisRegressionVariant interface {
	DataframeAnalysisRegressionCaster() *DataframeAnalysisRegression
}

type DataframeAnalytics ¶

type DataframeAnalytics struct {
	// AnalysisStats An object containing information about the analysis job.
	AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"`
	// AssignmentExplanation For running jobs only, contains messages relating to the selection of a node
	// to run the job.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// DataCounts An object that provides counts for the quantity of documents skipped, used in
	// training, or available for testing.
	DataCounts DataframeAnalyticsStatsDataCounts `json:"data_counts"`
	// Id The unique identifier of the data frame analytics job.
	Id string `json:"id"`
	// MemoryUsage An object describing memory usage of the analytics. It is present only after
	// the job is started and memory usage is reported.
	MemoryUsage DataframeAnalyticsStatsMemoryUsage `json:"memory_usage"`
	// Node Contains properties for the node that runs the job. This information is
	// available only for running jobs.
	Node *NodeAttributes `json:"node,omitempty"`
	// Progress The progress report of the data frame analytics job by phase.
	Progress []DataframeAnalyticsStatsProgress `json:"progress"`
	// State The status of the data frame analytics job, which can be one of the following
	// values: failed, started, starting, stopping, stopped.
	State dataframestate.DataframeState `json:"state"`
}

DataframeAnalytics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L325-L345

func NewDataframeAnalytics ¶

func NewDataframeAnalytics() *DataframeAnalytics

NewDataframeAnalytics returns a DataframeAnalytics.

func (*DataframeAnalytics) UnmarshalJSON ¶

func (s *DataframeAnalytics) UnmarshalJSON(data []byte) error

type DataframeAnalyticsAuthorization ¶

type DataframeAnalyticsAuthorization struct {
	// ApiKey If an API key was used for the most recent update to the job, its name and
	// identifier are listed in the response.
	ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`
	// Roles If a user ID was used for the most recent update to the job, its roles at the
	// time of the update are listed in the response.
	Roles []string `json:"roles,omitempty"`
	// ServiceAccount If a service account was used for the most recent update to the job, the
	// account name is listed in the response.
	ServiceAccount *string `json:"service_account,omitempty"`
}

DataframeAnalyticsAuthorization type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Authorization.ts#L45-L57

func NewDataframeAnalyticsAuthorization ¶

func NewDataframeAnalyticsAuthorization() *DataframeAnalyticsAuthorization

NewDataframeAnalyticsAuthorization returns a DataframeAnalyticsAuthorization.

func (*DataframeAnalyticsAuthorization) UnmarshalJSON ¶

func (s *DataframeAnalyticsAuthorization) UnmarshalJSON(data []byte) error

type DataframeAnalyticsDestination ¶

type DataframeAnalyticsDestination struct {
	// Index Defines the destination index to store the results of the data frame
	// analytics job.
	Index string `json:"index"`
	// ResultsField Defines the name of the field in which to store the results of the analysis.
	// Defaults to `ml`.
	ResultsField *string `json:"results_field,omitempty"`
}

DataframeAnalyticsDestination type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L77-L82

func NewDataframeAnalyticsDestination ¶

func NewDataframeAnalyticsDestination() *DataframeAnalyticsDestination

NewDataframeAnalyticsDestination returns a DataframeAnalyticsDestination.

func (*DataframeAnalyticsDestination) DataframeAnalyticsDestinationCaster ¶

func (s *DataframeAnalyticsDestination) DataframeAnalyticsDestinationCaster() *DataframeAnalyticsDestination

func (*DataframeAnalyticsDestination) UnmarshalJSON ¶

func (s *DataframeAnalyticsDestination) UnmarshalJSON(data []byte) error

type DataframeAnalyticsDestinationVariant ¶

type DataframeAnalyticsDestinationVariant interface {
	DataframeAnalyticsDestinationCaster() *DataframeAnalyticsDestination
}

type DataframeAnalyticsFieldSelection ¶

type DataframeAnalyticsFieldSelection struct {
	// FeatureType The feature type of this field for the analysis. May be categorical or
	// numerical.
	FeatureType *string `json:"feature_type,omitempty"`
	// IsIncluded Whether the field is selected to be included in the analysis.
	IsIncluded bool `json:"is_included"`
	// IsRequired Whether the field is required.
	IsRequired bool `json:"is_required"`
	// MappingTypes The mapping types of the field.
	MappingTypes []string `json:"mapping_types"`
	// Name The field name.
	Name string `json:"name"`
	// Reason The reason a field is not selected to be included in the analysis.
	Reason *string `json:"reason,omitempty"`
}

DataframeAnalyticsFieldSelection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L55-L68

func NewDataframeAnalyticsFieldSelection ¶

func NewDataframeAnalyticsFieldSelection() *DataframeAnalyticsFieldSelection

NewDataframeAnalyticsFieldSelection returns a DataframeAnalyticsFieldSelection.

func (*DataframeAnalyticsFieldSelection) UnmarshalJSON ¶

func (s *DataframeAnalyticsFieldSelection) UnmarshalJSON(data []byte) error

type DataframeAnalyticsMemoryEstimation ¶

type DataframeAnalyticsMemoryEstimation struct {
	// ExpectedMemoryWithDisk Estimated memory usage under the assumption that overflowing to disk is
	// allowed during data frame analytics. expected_memory_with_disk is usually
	// smaller than expected_memory_without_disk as using disk allows to limit the
	// main memory needed to perform data frame analytics.
	ExpectedMemoryWithDisk string `json:"expected_memory_with_disk"`
	// ExpectedMemoryWithoutDisk Estimated memory usage under the assumption that the whole data frame
	// analytics should happen in memory (i.e. without overflowing to disk).
	ExpectedMemoryWithoutDisk string `json:"expected_memory_without_disk"`
}

DataframeAnalyticsMemoryEstimation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L70-L75

func NewDataframeAnalyticsMemoryEstimation ¶

func NewDataframeAnalyticsMemoryEstimation() *DataframeAnalyticsMemoryEstimation

NewDataframeAnalyticsMemoryEstimation returns a DataframeAnalyticsMemoryEstimation.

func (*DataframeAnalyticsMemoryEstimation) UnmarshalJSON ¶

func (s *DataframeAnalyticsMemoryEstimation) UnmarshalJSON(data []byte) error

type DataframeAnalyticsSource ¶

type DataframeAnalyticsSource struct {
	// Index Index or indices on which to perform the analysis. It can be a single index
	// or index pattern as well as an array of indices or patterns. NOTE: If your
	// source indices contain documents with the same IDs, only the document that is
	// indexed last appears in the destination index.
	Index []string `json:"index"`
	// Query The Elasticsearch query domain-specific language (DSL). This value
	// corresponds to the query object in an Elasticsearch search POST body. All the
	// options that are supported by Elasticsearch can be used, as this object is
	// passed verbatim to Elasticsearch. By default, this property has the following
	// value: {"match_all": {}}.
	Query *Query `json:"query,omitempty"`
	// RuntimeMappings Definitions of runtime fields that will become part of the mapping of the
	// destination index.
	RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"`
	// Source_ Specify `includes` and/or `excludes patterns to select which fields will be
	// present in the destination. Fields that are excluded cannot be included in
	// the analysis.
	Source_ *DataframeAnalysisAnalyzedFields `json:"_source,omitempty"`
}

DataframeAnalyticsSource type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L39-L53

func NewDataframeAnalyticsSource ¶

func NewDataframeAnalyticsSource() *DataframeAnalyticsSource

NewDataframeAnalyticsSource returns a DataframeAnalyticsSource.

func (*DataframeAnalyticsSource) DataframeAnalyticsSourceCaster ¶

func (s *DataframeAnalyticsSource) DataframeAnalyticsSourceCaster() *DataframeAnalyticsSource

func (*DataframeAnalyticsSource) UnmarshalJSON ¶

func (s *DataframeAnalyticsSource) UnmarshalJSON(data []byte) error

type DataframeAnalyticsSourceVariant ¶

type DataframeAnalyticsSourceVariant interface {
	DataframeAnalyticsSourceCaster() *DataframeAnalyticsSource
}

type DataframeAnalyticsStatsContainer ¶

type DataframeAnalyticsStatsContainer struct {
	AdditionalDataframeAnalyticsStatsContainerProperty map[string]json.RawMessage `json:"-"`
	// ClassificationStats An object containing information about the classification analysis job.
	ClassificationStats *DataframeAnalyticsStatsHyperparameters `json:"classification_stats,omitempty"`
	// OutlierDetectionStats An object containing information about the outlier detection job.
	OutlierDetectionStats *DataframeAnalyticsStatsOutlierDetection `json:"outlier_detection_stats,omitempty"`
	// RegressionStats An object containing information about the regression analysis.
	RegressionStats *DataframeAnalyticsStatsHyperparameters `json:"regression_stats,omitempty"`
}

DataframeAnalyticsStatsContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L374-L382

func NewDataframeAnalyticsStatsContainer ¶

func NewDataframeAnalyticsStatsContainer() *DataframeAnalyticsStatsContainer

NewDataframeAnalyticsStatsContainer returns a DataframeAnalyticsStatsContainer.

func (DataframeAnalyticsStatsContainer) MarshalJSON ¶

func (s DataframeAnalyticsStatsContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type DataframeAnalyticsStatsDataCounts ¶

type DataframeAnalyticsStatsDataCounts struct {
	// SkippedDocsCount The number of documents that are skipped during the analysis because they
	// contained values that are not supported by the analysis. For example, outlier
	// detection does not support missing fields so it skips documents with missing
	// fields. Likewise, all types of analysis skip documents that contain arrays
	// with more than one element.
	SkippedDocsCount int `json:"skipped_docs_count"`
	// TestDocsCount The number of documents that are not used for training the model and can be
	// used for testing.
	TestDocsCount int `json:"test_docs_count"`
	// TrainingDocsCount The number of documents that are used for training the model.
	TrainingDocsCount int `json:"training_docs_count"`
}

DataframeAnalyticsStatsDataCounts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L365-L372

func NewDataframeAnalyticsStatsDataCounts ¶

func NewDataframeAnalyticsStatsDataCounts() *DataframeAnalyticsStatsDataCounts

NewDataframeAnalyticsStatsDataCounts returns a DataframeAnalyticsStatsDataCounts.

func (*DataframeAnalyticsStatsDataCounts) UnmarshalJSON ¶

func (s *DataframeAnalyticsStatsDataCounts) UnmarshalJSON(data []byte) error

type DataframeAnalyticsStatsHyperparameters ¶

type DataframeAnalyticsStatsHyperparameters struct {
	// Hyperparameters An object containing the parameters of the classification analysis job.
	Hyperparameters Hyperparameters `json:"hyperparameters"`
	// Iteration The number of iterations on the analysis.
	Iteration int `json:"iteration"`
	// Timestamp The timestamp when the statistics were reported in milliseconds since the
	// epoch.
	Timestamp int64 `json:"timestamp"`
	// TimingStats An object containing time statistics about the data frame analytics job.
	TimingStats TimingStats `json:"timing_stats"`
	// ValidationLoss An object containing information about validation loss.
	ValidationLoss ValidationLoss `json:"validation_loss"`
}

DataframeAnalyticsStatsHyperparameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L384-L403

func NewDataframeAnalyticsStatsHyperparameters ¶

func NewDataframeAnalyticsStatsHyperparameters() *DataframeAnalyticsStatsHyperparameters

NewDataframeAnalyticsStatsHyperparameters returns a DataframeAnalyticsStatsHyperparameters.

func (*DataframeAnalyticsStatsHyperparameters) UnmarshalJSON ¶

func (s *DataframeAnalyticsStatsHyperparameters) UnmarshalJSON(data []byte) error

type DataframeAnalyticsStatsMemoryUsage ¶

type DataframeAnalyticsStatsMemoryUsage struct {
	// MemoryReestimateBytes This value is present when the status is hard_limit and it is a new estimate
	// of how much memory the job needs.
	MemoryReestimateBytes *int64 `json:"memory_reestimate_bytes,omitempty"`
	// PeakUsageBytes The number of bytes used at the highest peak of memory usage.
	PeakUsageBytes int64 `json:"peak_usage_bytes"`
	// Status The memory usage status.
	Status string `json:"status"`
	// Timestamp The timestamp when memory usage was calculated.
	Timestamp *int64 `json:"timestamp,omitempty"`
}

DataframeAnalyticsStatsMemoryUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L354-L363

func NewDataframeAnalyticsStatsMemoryUsage ¶

func NewDataframeAnalyticsStatsMemoryUsage() *DataframeAnalyticsStatsMemoryUsage

NewDataframeAnalyticsStatsMemoryUsage returns a DataframeAnalyticsStatsMemoryUsage.

func (*DataframeAnalyticsStatsMemoryUsage) UnmarshalJSON ¶

func (s *DataframeAnalyticsStatsMemoryUsage) UnmarshalJSON(data []byte) error

type DataframeAnalyticsStatsOutlierDetection ¶

type DataframeAnalyticsStatsOutlierDetection struct {
	// Parameters The list of job parameters specified by the user or determined by algorithmic
	// heuristics.
	Parameters OutlierDetectionParameters `json:"parameters"`
	// Timestamp The timestamp when the statistics were reported in milliseconds since the
	// epoch.
	Timestamp int64 `json:"timestamp"`
	// TimingStats An object containing time statistics about the data frame analytics job.
	TimingStats TimingStats `json:"timing_stats"`
}

DataframeAnalyticsStatsOutlierDetection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L405-L418

func NewDataframeAnalyticsStatsOutlierDetection ¶

func NewDataframeAnalyticsStatsOutlierDetection() *DataframeAnalyticsStatsOutlierDetection

NewDataframeAnalyticsStatsOutlierDetection returns a DataframeAnalyticsStatsOutlierDetection.

func (*DataframeAnalyticsStatsOutlierDetection) UnmarshalJSON ¶

func (s *DataframeAnalyticsStatsOutlierDetection) UnmarshalJSON(data []byte) error

type DataframeAnalyticsStatsProgress ¶

type DataframeAnalyticsStatsProgress struct {
	// Phase Defines the phase of the data frame analytics job.
	Phase string `json:"phase"`
	// ProgressPercent The progress that the data frame analytics job has made expressed in
	// percentage.
	ProgressPercent int `json:"progress_percent"`
}

DataframeAnalyticsStatsProgress type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L347-L352

func NewDataframeAnalyticsStatsProgress ¶

func NewDataframeAnalyticsStatsProgress() *DataframeAnalyticsStatsProgress

NewDataframeAnalyticsStatsProgress returns a DataframeAnalyticsStatsProgress.

func (*DataframeAnalyticsStatsProgress) UnmarshalJSON ¶

func (s *DataframeAnalyticsStatsProgress) UnmarshalJSON(data []byte) error

type DataframeAnalyticsSummary ¶

type DataframeAnalyticsSummary struct {
	AllowLazyStart *bool                            `json:"allow_lazy_start,omitempty"`
	Analysis       DataframeAnalysisContainer       `json:"analysis"`
	AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"`
	// Authorization The security privileges that the job uses to run its queries. If Elastic
	// Stack security features were disabled at the time of the most recent update
	// to the job, this property is omitted.
	Authorization    *DataframeAnalyticsAuthorization `json:"authorization,omitempty"`
	CreateTime       *int64                           `json:"create_time,omitempty"`
	Description      *string                          `json:"description,omitempty"`
	Dest             DataframeAnalyticsDestination    `json:"dest"`
	Id               string                           `json:"id"`
	MaxNumThreads    *int                             `json:"max_num_threads,omitempty"`
	Meta_            Metadata                         `json:"_meta,omitempty"`
	ModelMemoryLimit *string                          `json:"model_memory_limit,omitempty"`
	Source           DataframeAnalyticsSource         `json:"source"`
	Version          *string                          `json:"version,omitempty"`
}

DataframeAnalyticsSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L306-L323

func NewDataframeAnalyticsSummary ¶

func NewDataframeAnalyticsSummary() *DataframeAnalyticsSummary

NewDataframeAnalyticsSummary returns a DataframeAnalyticsSummary.

func (*DataframeAnalyticsSummary) UnmarshalJSON ¶

func (s *DataframeAnalyticsSummary) UnmarshalJSON(data []byte) error

type DataframeClassificationSummary ¶

type DataframeClassificationSummary struct {
	// Accuracy Accuracy of predictions (per-class and overall).
	Accuracy *DataframeClassificationSummaryAccuracy `json:"accuracy,omitempty"`
	// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
	// score and optionally the curve.
	// It is calculated for a specific class (provided as "class_name") treated as
	// positive.
	AucRoc *DataframeEvaluationSummaryAucRoc `json:"auc_roc,omitempty"`
	// MulticlassConfusionMatrix Multiclass confusion matrix.
	MulticlassConfusionMatrix *DataframeClassificationSummaryMulticlassConfusionMatrix `json:"multiclass_confusion_matrix,omitempty"`
	// Precision Precision of predictions (per-class and average).
	Precision *DataframeClassificationSummaryPrecision `json:"precision,omitempty"`
	// Recall Recall of predictions (per-class and average).
	Recall *DataframeClassificationSummaryRecall `json:"recall,omitempty"`
}

DataframeClassificationSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L44-L66

func NewDataframeClassificationSummary ¶

func NewDataframeClassificationSummary() *DataframeClassificationSummary

NewDataframeClassificationSummary returns a DataframeClassificationSummary.

type DataframeClassificationSummaryAccuracy ¶

type DataframeClassificationSummaryAccuracy struct {
	Classes         []DataframeEvaluationClass `json:"classes"`
	OverallAccuracy Float64                    `json:"overall_accuracy"`
}

DataframeClassificationSummaryAccuracy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L111-L114

func NewDataframeClassificationSummaryAccuracy ¶

func NewDataframeClassificationSummaryAccuracy() *DataframeClassificationSummaryAccuracy

NewDataframeClassificationSummaryAccuracy returns a DataframeClassificationSummaryAccuracy.

func (*DataframeClassificationSummaryAccuracy) UnmarshalJSON ¶

func (s *DataframeClassificationSummaryAccuracy) UnmarshalJSON(data []byte) error

type DataframeClassificationSummaryMulticlassConfusionMatrix ¶

type DataframeClassificationSummaryMulticlassConfusionMatrix struct {
	ConfusionMatrix       []ConfusionMatrixItem `json:"confusion_matrix"`
	OtherActualClassCount int                   `json:"other_actual_class_count"`
}

DataframeClassificationSummaryMulticlassConfusionMatrix type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L120-L123

func NewDataframeClassificationSummaryMulticlassConfusionMatrix ¶

func NewDataframeClassificationSummaryMulticlassConfusionMatrix() *DataframeClassificationSummaryMulticlassConfusionMatrix

NewDataframeClassificationSummaryMulticlassConfusionMatrix returns a DataframeClassificationSummaryMulticlassConfusionMatrix.

func (*DataframeClassificationSummaryMulticlassConfusionMatrix) UnmarshalJSON ¶

type DataframeClassificationSummaryPrecision ¶

type DataframeClassificationSummaryPrecision struct {
	AvgPrecision Float64                    `json:"avg_precision"`
	Classes      []DataframeEvaluationClass `json:"classes"`
}

DataframeClassificationSummaryPrecision type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L101-L104

func NewDataframeClassificationSummaryPrecision ¶

func NewDataframeClassificationSummaryPrecision() *DataframeClassificationSummaryPrecision

NewDataframeClassificationSummaryPrecision returns a DataframeClassificationSummaryPrecision.

func (*DataframeClassificationSummaryPrecision) UnmarshalJSON ¶

func (s *DataframeClassificationSummaryPrecision) UnmarshalJSON(data []byte) error

type DataframeClassificationSummaryRecall ¶

type DataframeClassificationSummaryRecall struct {
	AvgRecall Float64                    `json:"avg_recall"`
	Classes   []DataframeEvaluationClass `json:"classes"`
}

DataframeClassificationSummaryRecall type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L106-L109

func NewDataframeClassificationSummaryRecall ¶

func NewDataframeClassificationSummaryRecall() *DataframeClassificationSummaryRecall

NewDataframeClassificationSummaryRecall returns a DataframeClassificationSummaryRecall.

func (*DataframeClassificationSummaryRecall) UnmarshalJSON ¶

func (s *DataframeClassificationSummaryRecall) UnmarshalJSON(data []byte) error

type DataframeEvaluationClass ¶

type DataframeEvaluationClass struct {
	ClassName string  `json:"class_name"`
	Value     Float64 `json:"value"`
}

DataframeEvaluationClass type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L116-L118

func NewDataframeEvaluationClass ¶

func NewDataframeEvaluationClass() *DataframeEvaluationClass

NewDataframeEvaluationClass returns a DataframeEvaluationClass.

func (*DataframeEvaluationClass) UnmarshalJSON ¶

func (s *DataframeEvaluationClass) UnmarshalJSON(data []byte) error

type DataframeEvaluationClassification ¶

type DataframeEvaluationClassification struct {
	// ActualField The field of the index which contains the ground truth. The data type of this
	// field can be boolean or integer. If the data type is integer, the value has
	// to be either 0 (false) or 1 (true).
	ActualField string `json:"actual_field"`
	// Metrics Specifies the metrics that are used for the evaluation.
	Metrics *DataframeEvaluationClassificationMetrics `json:"metrics,omitempty"`
	// PredictedField The field in the index which contains the predicted value, in other words the
	// results of the classification analysis.
	PredictedField *string `json:"predicted_field,omitempty"`
	// TopClassesField The field of the index which is an array of documents of the form {
	// "class_name": XXX, "class_probability": YYY }. This field must be defined as
	// nested in the mappings.
	TopClassesField *string `json:"top_classes_field,omitempty"`
}

DataframeEvaluationClassification type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L35-L44

func NewDataframeEvaluationClassification ¶

func NewDataframeEvaluationClassification() *DataframeEvaluationClassification

NewDataframeEvaluationClassification returns a DataframeEvaluationClassification.

func (*DataframeEvaluationClassification) DataframeEvaluationClassificationCaster ¶

func (s *DataframeEvaluationClassification) DataframeEvaluationClassificationCaster() *DataframeEvaluationClassification

func (*DataframeEvaluationClassification) UnmarshalJSON ¶

func (s *DataframeEvaluationClassification) UnmarshalJSON(data []byte) error

type DataframeEvaluationClassificationMetrics ¶

type DataframeEvaluationClassificationMetrics struct {
	// Accuracy Accuracy of predictions (per-class and overall).
	Accuracy map[string]json.RawMessage `json:"accuracy,omitempty"`
	// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
	// score and optionally the curve. It is calculated for a specific class
	// (provided as "class_name") treated as positive.
	AucRoc *DataframeEvaluationClassificationMetricsAucRoc `json:"auc_roc,omitempty"`
	// MulticlassConfusionMatrix Multiclass confusion matrix.
	MulticlassConfusionMatrix map[string]json.RawMessage `json:"multiclass_confusion_matrix,omitempty"`
	// Precision Precision of predictions (per-class and average).
	Precision map[string]json.RawMessage `json:"precision,omitempty"`
	// Recall Recall of predictions (per-class and average).
	Recall map[string]json.RawMessage `json:"recall,omitempty"`
}

DataframeEvaluationClassificationMetrics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L73-L78

func NewDataframeEvaluationClassificationMetrics ¶

func NewDataframeEvaluationClassificationMetrics() *DataframeEvaluationClassificationMetrics

NewDataframeEvaluationClassificationMetrics returns a DataframeEvaluationClassificationMetrics.

func (*DataframeEvaluationClassificationMetrics) DataframeEvaluationClassificationMetricsCaster ¶

func (s *DataframeEvaluationClassificationMetrics) DataframeEvaluationClassificationMetricsCaster() *DataframeEvaluationClassificationMetrics

type DataframeEvaluationClassificationMetricsAucRoc ¶

type DataframeEvaluationClassificationMetricsAucRoc struct {
	// ClassName Name of the only class that is treated as positive during AUC ROC
	// calculation. Other classes are treated as negative ("one-vs-all" strategy).
	// All the evaluated documents must have class_name in the list of their top
	// classes.
	ClassName *string `json:"class_name,omitempty"`
	// IncludeCurve Whether or not the curve should be returned in addition to the score. Default
	// value is false.
	IncludeCurve *bool `json:"include_curve,omitempty"`
}

DataframeEvaluationClassificationMetricsAucRoc type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L85-L90

func NewDataframeEvaluationClassificationMetricsAucRoc ¶

func NewDataframeEvaluationClassificationMetricsAucRoc() *DataframeEvaluationClassificationMetricsAucRoc

NewDataframeEvaluationClassificationMetricsAucRoc returns a DataframeEvaluationClassificationMetricsAucRoc.

func (*DataframeEvaluationClassificationMetricsAucRoc) DataframeEvaluationClassificationMetricsAucRocCaster ¶

func (s *DataframeEvaluationClassificationMetricsAucRoc) DataframeEvaluationClassificationMetricsAucRocCaster() *DataframeEvaluationClassificationMetricsAucRoc

func (*DataframeEvaluationClassificationMetricsAucRoc) UnmarshalJSON ¶

type DataframeEvaluationClassificationMetricsAucRocVariant ¶

type DataframeEvaluationClassificationMetricsAucRocVariant interface {
	DataframeEvaluationClassificationMetricsAucRocCaster() *DataframeEvaluationClassificationMetricsAucRoc
}

type DataframeEvaluationClassificationMetricsVariant ¶

type DataframeEvaluationClassificationMetricsVariant interface {
	DataframeEvaluationClassificationMetricsCaster() *DataframeEvaluationClassificationMetrics
}

type DataframeEvaluationClassificationVariant ¶

type DataframeEvaluationClassificationVariant interface {
	DataframeEvaluationClassificationCaster() *DataframeEvaluationClassification
}

type DataframeEvaluationContainer ¶

type DataframeEvaluationContainer struct {
	AdditionalDataframeEvaluationContainerProperty map[string]json.RawMessage `json:"-"`
	// Classification Classification evaluation evaluates the results of a classification analysis
	// which outputs a prediction that identifies to which of the classes each
	// document belongs.
	Classification *DataframeEvaluationClassification `json:"classification,omitempty"`
	// OutlierDetection Outlier detection evaluates the results of an outlier detection analysis
	// which outputs the probability that each document is an outlier.
	OutlierDetection *DataframeEvaluationOutlierDetection `json:"outlier_detection,omitempty"`
	// Regression Regression evaluation evaluates the results of a regression analysis which
	// outputs a prediction of values.
	Regression *DataframeEvaluationRegression `json:"regression,omitempty"`
}

DataframeEvaluationContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L25-L33

func NewDataframeEvaluationContainer ¶

func NewDataframeEvaluationContainer() *DataframeEvaluationContainer

NewDataframeEvaluationContainer returns a DataframeEvaluationContainer.

func (*DataframeEvaluationContainer) DataframeEvaluationContainerCaster ¶

func (s *DataframeEvaluationContainer) DataframeEvaluationContainerCaster() *DataframeEvaluationContainer

func (DataframeEvaluationContainer) MarshalJSON ¶

func (s DataframeEvaluationContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type DataframeEvaluationContainerVariant ¶

type DataframeEvaluationContainerVariant interface {
	DataframeEvaluationContainerCaster() *DataframeEvaluationContainer
}

type DataframeEvaluationOutlierDetection ¶

type DataframeEvaluationOutlierDetection struct {
	// ActualField The field of the index which contains the ground truth. The data type of this
	// field can be boolean or integer. If the data type is integer, the value has
	// to be either 0 (false) or 1 (true).
	ActualField string `json:"actual_field"`
	// Metrics Specifies the metrics that are used for the evaluation.
	Metrics *DataframeEvaluationOutlierDetectionMetrics `json:"metrics,omitempty"`
	// PredictedProbabilityField The field of the index that defines the probability of whether the item
	// belongs to the class in question or not. It’s the field that contains the
	// results of the analysis.
	PredictedProbabilityField string `json:"predicted_probability_field"`
}

DataframeEvaluationOutlierDetection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L46-L53

func NewDataframeEvaluationOutlierDetection ¶

func NewDataframeEvaluationOutlierDetection() *DataframeEvaluationOutlierDetection

NewDataframeEvaluationOutlierDetection returns a DataframeEvaluationOutlierDetection.

func (*DataframeEvaluationOutlierDetection) DataframeEvaluationOutlierDetectionCaster ¶

func (s *DataframeEvaluationOutlierDetection) DataframeEvaluationOutlierDetectionCaster() *DataframeEvaluationOutlierDetection

func (*DataframeEvaluationOutlierDetection) UnmarshalJSON ¶

func (s *DataframeEvaluationOutlierDetection) UnmarshalJSON(data []byte) error

type DataframeEvaluationOutlierDetectionMetrics ¶

type DataframeEvaluationOutlierDetectionMetrics struct {
	// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
	// score and optionally the curve. It is calculated for a specific class
	// (provided as "class_name") treated as positive.
	AucRoc *DataframeEvaluationClassificationMetricsAucRoc `json:"auc_roc,omitempty"`
	// ConfusionMatrix Accuracy of predictions (per-class and overall).
	ConfusionMatrix map[string]json.RawMessage `json:"confusion_matrix,omitempty"`
	// Precision Precision of predictions (per-class and average).
	Precision map[string]json.RawMessage `json:"precision,omitempty"`
	// Recall Recall of predictions (per-class and average).
	Recall map[string]json.RawMessage `json:"recall,omitempty"`
}

DataframeEvaluationOutlierDetectionMetrics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L80-L83

func NewDataframeEvaluationOutlierDetectionMetrics ¶

func NewDataframeEvaluationOutlierDetectionMetrics() *DataframeEvaluationOutlierDetectionMetrics

NewDataframeEvaluationOutlierDetectionMetrics returns a DataframeEvaluationOutlierDetectionMetrics.

func (*DataframeEvaluationOutlierDetectionMetrics) DataframeEvaluationOutlierDetectionMetricsCaster ¶

func (s *DataframeEvaluationOutlierDetectionMetrics) DataframeEvaluationOutlierDetectionMetricsCaster() *DataframeEvaluationOutlierDetectionMetrics

type DataframeEvaluationOutlierDetectionMetricsVariant ¶

type DataframeEvaluationOutlierDetectionMetricsVariant interface {
	DataframeEvaluationOutlierDetectionMetricsCaster() *DataframeEvaluationOutlierDetectionMetrics
}

type DataframeEvaluationOutlierDetectionVariant ¶

type DataframeEvaluationOutlierDetectionVariant interface {
	DataframeEvaluationOutlierDetectionCaster() *DataframeEvaluationOutlierDetection
}

type DataframeEvaluationRegression ¶

type DataframeEvaluationRegression struct {
	// ActualField The field of the index which contains the ground truth. The data type of this
	// field must be numerical.
	ActualField string `json:"actual_field"`
	// Metrics Specifies the metrics that are used for the evaluation. For more information
	// on mse, msle, and huber, consult the Jupyter notebook on regression loss
	// functions.
	Metrics *DataframeEvaluationRegressionMetrics `json:"metrics,omitempty"`
	// PredictedField The field in the index that contains the predicted value, in other words the
	// results of the regression analysis.
	PredictedField string `json:"predicted_field"`
}

DataframeEvaluationRegression type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L55-L62

func NewDataframeEvaluationRegression ¶

func NewDataframeEvaluationRegression() *DataframeEvaluationRegression

NewDataframeEvaluationRegression returns a DataframeEvaluationRegression.

func (*DataframeEvaluationRegression) DataframeEvaluationRegressionCaster ¶

func (s *DataframeEvaluationRegression) DataframeEvaluationRegressionCaster() *DataframeEvaluationRegression

func (*DataframeEvaluationRegression) UnmarshalJSON ¶

func (s *DataframeEvaluationRegression) UnmarshalJSON(data []byte) error

type DataframeEvaluationRegressionMetrics ¶

type DataframeEvaluationRegressionMetrics struct {
	// Huber Pseudo Huber loss function.
	Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"`
	// Mse Average squared difference between the predicted values and the actual
	// (ground truth) value. For more information, read this wiki article.
	Mse map[string]json.RawMessage `json:"mse,omitempty"`
	// Msle Average squared difference between the logarithm of the predicted values and
	// the logarithm of the actual (ground truth) value.
	Msle *DataframeEvaluationRegressionMetricsMsle `json:"msle,omitempty"`
	// RSquared Proportion of the variance in the dependent variable that is predictable from
	// the independent variables.
	RSquared map[string]json.RawMessage `json:"r_squared,omitempty"`
}

DataframeEvaluationRegressionMetrics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L92-L110

func NewDataframeEvaluationRegressionMetrics ¶

func NewDataframeEvaluationRegressionMetrics() *DataframeEvaluationRegressionMetrics

NewDataframeEvaluationRegressionMetrics returns a DataframeEvaluationRegressionMetrics.

func (*DataframeEvaluationRegressionMetrics) DataframeEvaluationRegressionMetricsCaster ¶

func (s *DataframeEvaluationRegressionMetrics) DataframeEvaluationRegressionMetricsCaster() *DataframeEvaluationRegressionMetrics

type DataframeEvaluationRegressionMetricsHuber ¶

type DataframeEvaluationRegressionMetricsHuber struct {
	// Delta Approximates 1/2 (prediction - actual)2 for values much less than delta and
	// approximates a straight line with slope delta for values much larger than
	// delta. Defaults to 1. Delta needs to be greater than 0.
	Delta *Float64 `json:"delta,omitempty"`
}

DataframeEvaluationRegressionMetricsHuber type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L117-L120

func NewDataframeEvaluationRegressionMetricsHuber ¶

func NewDataframeEvaluationRegressionMetricsHuber() *DataframeEvaluationRegressionMetricsHuber

NewDataframeEvaluationRegressionMetricsHuber returns a DataframeEvaluationRegressionMetricsHuber.

func (*DataframeEvaluationRegressionMetricsHuber) DataframeEvaluationRegressionMetricsHuberCaster ¶

func (s *DataframeEvaluationRegressionMetricsHuber) DataframeEvaluationRegressionMetricsHuberCaster() *DataframeEvaluationRegressionMetricsHuber

func (*DataframeEvaluationRegressionMetricsHuber) UnmarshalJSON ¶

func (s *DataframeEvaluationRegressionMetricsHuber) UnmarshalJSON(data []byte) error

type DataframeEvaluationRegressionMetricsHuberVariant ¶

type DataframeEvaluationRegressionMetricsHuberVariant interface {
	DataframeEvaluationRegressionMetricsHuberCaster() *DataframeEvaluationRegressionMetricsHuber
}

type DataframeEvaluationRegressionMetricsMsle ¶

type DataframeEvaluationRegressionMetricsMsle struct {
	// Offset Defines the transition point at which you switch from minimizing quadratic
	// error to minimizing quadratic log error. Defaults to 1.
	Offset *Float64 `json:"offset,omitempty"`
}

DataframeEvaluationRegressionMetricsMsle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeEvaluation.ts#L112-L115

func NewDataframeEvaluationRegressionMetricsMsle ¶

func NewDataframeEvaluationRegressionMetricsMsle() *DataframeEvaluationRegressionMetricsMsle

NewDataframeEvaluationRegressionMetricsMsle returns a DataframeEvaluationRegressionMetricsMsle.

func (*DataframeEvaluationRegressionMetricsMsle) DataframeEvaluationRegressionMetricsMsleCaster ¶

func (s *DataframeEvaluationRegressionMetricsMsle) DataframeEvaluationRegressionMetricsMsleCaster() *DataframeEvaluationRegressionMetricsMsle

func (*DataframeEvaluationRegressionMetricsMsle) UnmarshalJSON ¶

func (s *DataframeEvaluationRegressionMetricsMsle) UnmarshalJSON(data []byte) error

type DataframeEvaluationRegressionMetricsMsleVariant ¶

type DataframeEvaluationRegressionMetricsMsleVariant interface {
	DataframeEvaluationRegressionMetricsMsleCaster() *DataframeEvaluationRegressionMetricsMsle
}

type DataframeEvaluationRegressionMetricsVariant ¶

type DataframeEvaluationRegressionMetricsVariant interface {
	DataframeEvaluationRegressionMetricsCaster() *DataframeEvaluationRegressionMetrics
}

type DataframeEvaluationRegressionVariant ¶

type DataframeEvaluationRegressionVariant interface {
	DataframeEvaluationRegressionCaster() *DataframeEvaluationRegression
}

type DataframeEvaluationSummaryAucRoc ¶

type DataframeEvaluationSummaryAucRoc struct {
	Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"`
	Value Float64                                     `json:"value"`
}

DataframeEvaluationSummaryAucRoc type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L91-L93

func NewDataframeEvaluationSummaryAucRoc ¶

func NewDataframeEvaluationSummaryAucRoc() *DataframeEvaluationSummaryAucRoc

NewDataframeEvaluationSummaryAucRoc returns a DataframeEvaluationSummaryAucRoc.

func (*DataframeEvaluationSummaryAucRoc) UnmarshalJSON ¶

func (s *DataframeEvaluationSummaryAucRoc) UnmarshalJSON(data []byte) error

type DataframeEvaluationSummaryAucRocCurveItem ¶

type DataframeEvaluationSummaryAucRocCurveItem struct {
	Fpr       Float64 `json:"fpr"`
	Threshold Float64 `json:"threshold"`
	Tpr       Float64 `json:"tpr"`
}

DataframeEvaluationSummaryAucRocCurveItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L95-L99

func NewDataframeEvaluationSummaryAucRocCurveItem ¶

func NewDataframeEvaluationSummaryAucRocCurveItem() *DataframeEvaluationSummaryAucRocCurveItem

NewDataframeEvaluationSummaryAucRocCurveItem returns a DataframeEvaluationSummaryAucRocCurveItem.

func (*DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON ¶

func (s *DataframeEvaluationSummaryAucRocCurveItem) UnmarshalJSON(data []byte) error

type DataframeEvaluationValue ¶

type DataframeEvaluationValue struct {
	Value Float64 `json:"value"`
}

DataframeEvaluationValue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L87-L89

func NewDataframeEvaluationValue ¶

func NewDataframeEvaluationValue() *DataframeEvaluationValue

NewDataframeEvaluationValue returns a DataframeEvaluationValue.

func (*DataframeEvaluationValue) UnmarshalJSON ¶

func (s *DataframeEvaluationValue) UnmarshalJSON(data []byte) error

type DataframeOutlierDetectionSummary ¶

type DataframeOutlierDetectionSummary struct {
	// AucRoc The AUC ROC (area under the curve of the receiver operating characteristic)
	// score and optionally the curve.
	AucRoc *DataframeEvaluationSummaryAucRoc `json:"auc_roc,omitempty"`
	// ConfusionMatrix Set the different thresholds of the outlier score at where the metrics (`tp`
	// - true positive, `fp` - false positive, `tn` - true negative, `fn` - false
	// negative) are calculated.
	ConfusionMatrix map[string]ConfusionMatrixThreshold `json:"confusion_matrix,omitempty"`
	// Precision Set the different thresholds of the outlier score at where the metric is
	// calculated.
	Precision map[string]Float64 `json:"precision,omitempty"`
	// Recall Set the different thresholds of the outlier score at where the metric is
	// calculated.
	Recall map[string]Float64 `json:"recall,omitempty"`
}

DataframeOutlierDetectionSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L24-L42

func NewDataframeOutlierDetectionSummary ¶

func NewDataframeOutlierDetectionSummary() *DataframeOutlierDetectionSummary

NewDataframeOutlierDetectionSummary returns a DataframeOutlierDetectionSummary.

type DataframePreviewConfig ¶

type DataframePreviewConfig struct {
	Analysis         DataframeAnalysisContainer       `json:"analysis"`
	AnalyzedFields   *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"`
	MaxNumThreads    *int                             `json:"max_num_threads,omitempty"`
	ModelMemoryLimit *string                          `json:"model_memory_limit,omitempty"`
	Source           DataframeAnalyticsSource         `json:"source"`
}

DataframePreviewConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/preview_data_frame_analytics/types.ts#L27-L33

func NewDataframePreviewConfig ¶

func NewDataframePreviewConfig() *DataframePreviewConfig

NewDataframePreviewConfig returns a DataframePreviewConfig.

func (*DataframePreviewConfig) DataframePreviewConfigCaster ¶

func (s *DataframePreviewConfig) DataframePreviewConfigCaster() *DataframePreviewConfig

func (*DataframePreviewConfig) UnmarshalJSON ¶

func (s *DataframePreviewConfig) UnmarshalJSON(data []byte) error

type DataframePreviewConfigVariant ¶

type DataframePreviewConfigVariant interface {
	DataframePreviewConfigCaster() *DataframePreviewConfig
}

type DataframeRegressionSummary ¶

type DataframeRegressionSummary struct {
	// Huber Pseudo Huber loss function.
	Huber *DataframeEvaluationValue `json:"huber,omitempty"`
	// Mse Average squared difference between the predicted values and the actual
	// (`ground truth`) value.
	Mse *DataframeEvaluationValue `json:"mse,omitempty"`
	// Msle Average squared difference between the logarithm of the predicted values and
	// the logarithm of the actual (`ground truth`) value.
	Msle *DataframeEvaluationValue `json:"msle,omitempty"`
	// RSquared Proportion of the variance in the dependent variable that is predictable from
	// the independent variables.
	RSquared *DataframeEvaluationValue `json:"r_squared,omitempty"`
}

DataframeRegressionSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/evaluate_data_frame/types.ts#L68-L85

func NewDataframeRegressionSummary ¶

func NewDataframeRegressionSummary() *DataframeRegressionSummary

NewDataframeRegressionSummary returns a DataframeRegressionSummary.

type DateDecayFunction ¶

type DateDecayFunction struct {
	DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"`
	// MultiValueMode Determines how the distance is calculated when a field used for computing the
	// decay contains multiple values.
	MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`
}

DateDecayFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L209-L209

func NewDateDecayFunction ¶

func NewDateDecayFunction() *DateDecayFunction

NewDateDecayFunction returns a DateDecayFunction.

func (*DateDecayFunction) DateDecayFunctionCaster ¶

func (s *DateDecayFunction) DateDecayFunctionCaster() *DateDecayFunction

func (*DateDecayFunction) DecayFunctionCaster ¶ added in v9.0.1

func (s *DateDecayFunction) DecayFunctionCaster() *DecayFunction

func (DateDecayFunction) MarshalJSON ¶

func (s DateDecayFunction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type DateDecayFunctionVariant ¶

type DateDecayFunctionVariant interface {
	DateDecayFunctionCaster() *DateDecayFunction
}

type DateDistanceFeatureQuery ¶

type DateDistanceFeatureQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field Name of the field used to calculate distances. This field must meet the
	// following criteria:
	// be a `date`, `date_nanos` or `geo_point` field;
	// have an `index` mapping parameter value of `true`, which is the default;
	// have an `doc_values` mapping parameter value of `true`, which is the default.
	Field string `json:"field"`
	// Origin Date or point of origin used to calculate distances.
	// If the `field` value is a `date` or `date_nanos` field, the `origin` value
	// must be a date.
	// Date Math, such as `now-1h`, is supported.
	// If the field value is a `geo_point` field, the `origin` value must be a
	// geopoint.
	Origin string `json:"origin"`
	// Pivot Distance from the `origin` at which relevance scores receive half of the
	// `boost` value.
	// If the `field` value is a `date` or `date_nanos` field, the `pivot` value
	// must be a time unit, such as `1h` or `10d`. If the `field` value is a
	// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`
	// or `12m`.
	Pivot      Duration `json:"pivot"`
	QueryName_ *string  `json:"_name,omitempty"`
}

DateDistanceFeatureQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L71-L74

func NewDateDistanceFeatureQuery ¶

func NewDateDistanceFeatureQuery() *DateDistanceFeatureQuery

NewDateDistanceFeatureQuery returns a DateDistanceFeatureQuery.

func (*DateDistanceFeatureQuery) DateDistanceFeatureQueryCaster ¶

func (s *DateDistanceFeatureQuery) DateDistanceFeatureQueryCaster() *DateDistanceFeatureQuery

func (*DateDistanceFeatureQuery) DistanceFeatureQueryCaster ¶ added in v9.0.1

func (s *DateDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery

func (*DateDistanceFeatureQuery) UnmarshalJSON ¶

func (s *DateDistanceFeatureQuery) UnmarshalJSON(data []byte) error

type DateDistanceFeatureQueryVariant ¶

type DateDistanceFeatureQueryVariant interface {
	DateDistanceFeatureQueryCaster() *DateDistanceFeatureQuery
}

type DateHistogramAggregate ¶

type DateHistogramAggregate struct {
	Buckets BucketsDateHistogramBucket `json:"buckets"`
	Meta    Metadata                   `json:"meta,omitempty"`
}

DateHistogramAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L383-L386

func NewDateHistogramAggregate ¶

func NewDateHistogramAggregate() *DateHistogramAggregate

NewDateHistogramAggregate returns a DateHistogramAggregate.

func (*DateHistogramAggregate) UnmarshalJSON ¶

func (s *DateHistogramAggregate) UnmarshalJSON(data []byte) error

type DateHistogramAggregation ¶

type DateHistogramAggregation struct {
	// CalendarInterval Calendar-aware interval.
	// Can be specified using the unit name, such as `month`, or as a single unit
	// quantity, such as `1M`.
	CalendarInterval *calendarinterval.CalendarInterval `json:"calendar_interval,omitempty"`
	// ExtendedBounds Enables extending the bounds of the histogram beyond the data itself.
	ExtendedBounds *ExtendedBoundsFieldDateMath `json:"extended_bounds,omitempty"`
	// Field The date field whose values are use to build a histogram.
	Field *string `json:"field,omitempty"`
	// FixedInterval Fixed intervals: a fixed number of SI units and never deviate, regardless of
	// where they fall on the calendar.
	FixedInterval Duration `json:"fixed_interval,omitempty"`
	// Format The date format used to format `key_as_string` in the response.
	// If no `format` is specified, the first date format specified in the field
	// mapping is used.
	Format *string `json:"format,omitempty"`
	// HardBounds Limits the histogram to specified bounds.
	HardBounds *ExtendedBoundsFieldDateMath `json:"hard_bounds,omitempty"`
	Interval   Duration                     `json:"interval,omitempty"`
	// Keyed Set to `true` to associate a unique string key with each bucket and return
	// the ranges as a hash rather than an array.
	Keyed *bool `json:"keyed,omitempty"`
	// MinDocCount Only returns buckets that have `min_doc_count` number of documents.
	// By default, all buckets between the first bucket that matches documents and
	// the last one are returned.
	MinDocCount *int `json:"min_doc_count,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing DateTime `json:"missing,omitempty"`
	// Offset Changes the start value of each bucket by the specified positive (`+`) or
	// negative offset (`-`) duration.
	Offset Duration `json:"offset,omitempty"`
	// Order The sort order of the returned buckets.
	Order  AggregateOrder             `json:"order,omitempty"`
	Params map[string]json.RawMessage `json:"params,omitempty"`
	Script *Script                    `json:"script,omitempty"`
	// TimeZone Time zone used for bucketing and rounding.
	// Defaults to Coordinated Universal Time (UTC).
	TimeZone *string `json:"time_zone,omitempty"`
}

DateHistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L202-L260

func NewDateHistogramAggregation ¶

func NewDateHistogramAggregation() *DateHistogramAggregation

NewDateHistogramAggregation returns a DateHistogramAggregation.

func (*DateHistogramAggregation) DateHistogramAggregationCaster ¶

func (s *DateHistogramAggregation) DateHistogramAggregationCaster() *DateHistogramAggregation

func (*DateHistogramAggregation) UnmarshalJSON ¶

func (s *DateHistogramAggregation) UnmarshalJSON(data []byte) error

type DateHistogramAggregationVariant ¶

type DateHistogramAggregationVariant interface {
	DateHistogramAggregationCaster() *DateHistogramAggregation
}

type DateHistogramBucket ¶

type DateHistogramBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          int64                `json:"key"`
	KeyAsString  *string              `json:"key_as_string,omitempty"`
}

DateHistogramBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L388-L391

func NewDateHistogramBucket ¶

func NewDateHistogramBucket() *DateHistogramBucket

NewDateHistogramBucket returns a DateHistogramBucket.

func (DateHistogramBucket) MarshalJSON ¶

func (s DateHistogramBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DateHistogramBucket) UnmarshalJSON ¶

func (s *DateHistogramBucket) UnmarshalJSON(data []byte) error

type DateHistogramGrouping ¶

type DateHistogramGrouping struct {
	// CalendarInterval The interval of time buckets to be generated when rolling up.
	CalendarInterval Duration `json:"calendar_interval,omitempty"`
	// Delay How long to wait before rolling up new documents.
	// By default, the indexer attempts to roll up all data that is available.
	// However, it is not uncommon for data to arrive out of order.
	// The indexer is unable to deal with data that arrives after a time-span has
	// been rolled up.
	// You need to specify a delay that matches the longest period of time you
	// expect out-of-order data to arrive.
	Delay Duration `json:"delay,omitempty"`
	// Field The date field that is to be rolled up.
	Field string `json:"field"`
	// FixedInterval The interval of time buckets to be generated when rolling up.
	FixedInterval Duration `json:"fixed_interval,omitempty"`
	Format        *string  `json:"format,omitempty"`
	Interval      Duration `json:"interval,omitempty"`
	// TimeZone Defines what `time_zone` the rollup documents are stored as.
	// Unlike raw data, which can shift timezones on the fly, rolled documents have
	// to be stored with a specific timezone.
	// By default, rollup documents are stored in `UTC`.
	TimeZone *string `json:"time_zone,omitempty"`
}

DateHistogramGrouping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/_types/Groupings.ts#L42-L73

func NewDateHistogramGrouping ¶

func NewDateHistogramGrouping() *DateHistogramGrouping

NewDateHistogramGrouping returns a DateHistogramGrouping.

func (*DateHistogramGrouping) DateHistogramGroupingCaster ¶

func (s *DateHistogramGrouping) DateHistogramGroupingCaster() *DateHistogramGrouping

func (*DateHistogramGrouping) UnmarshalJSON ¶

func (s *DateHistogramGrouping) UnmarshalJSON(data []byte) error

type DateHistogramGroupingVariant ¶

type DateHistogramGroupingVariant interface {
	DateHistogramGroupingCaster() *DateHistogramGrouping
}

type DateIndexNameProcessor ¶

type DateIndexNameProcessor struct {
	// DateFormats An array of the expected date formats for parsing dates / timestamps in the
	// document being preprocessed.
	// Can be a java time pattern or one of the following formats: ISO8601, UNIX,
	// UNIX_MS, or TAI64N.
	DateFormats []string `json:"date_formats,omitempty"`
	// DateRounding How to round the date when formatting the date into the index name. Valid
	// values are:
	// `y` (year), `M` (month), `w` (week), `d` (day), `h` (hour), `m` (minute) and
	// `s` (second).
	// Supports template snippets.
	DateRounding string `json:"date_rounding"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to get the date or timestamp from.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IndexNameFormat The format to be used when printing the parsed date into the index name.
	// A valid java time pattern is expected here.
	// Supports template snippets.
	IndexNameFormat *string `json:"index_name_format,omitempty"`
	// IndexNamePrefix A prefix of the index name to be prepended before the printed date.
	// Supports template snippets.
	IndexNamePrefix *string `json:"index_name_prefix,omitempty"`
	// Locale The locale to use when parsing the date from the document being preprocessed,
	// relevant when parsing month names or week days.
	Locale *string `json:"locale,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// Timezone The timezone to use when parsing the date and when date math index supports
	// resolves expressions into concrete index names.
	Timezone *string `json:"timezone,omitempty"`
}

DateIndexNameProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L730-L768

func NewDateIndexNameProcessor ¶

func NewDateIndexNameProcessor() *DateIndexNameProcessor

NewDateIndexNameProcessor returns a DateIndexNameProcessor.

func (*DateIndexNameProcessor) DateIndexNameProcessorCaster ¶

func (s *DateIndexNameProcessor) DateIndexNameProcessorCaster() *DateIndexNameProcessor

func (*DateIndexNameProcessor) UnmarshalJSON ¶

func (s *DateIndexNameProcessor) UnmarshalJSON(data []byte) error

type DateIndexNameProcessorVariant ¶

type DateIndexNameProcessorVariant interface {
	DateIndexNameProcessorCaster() *DateIndexNameProcessor
}

type DateNanosProperty ¶

type DateNanosProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	Format          *string                        `json:"format,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           DateTime                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	PrecisionStep       *int                                             `json:"precision_step,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

DateNanosProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L91-L101

func NewDateNanosProperty ¶

func NewDateNanosProperty() *DateNanosProperty

NewDateNanosProperty returns a DateNanosProperty.

func (*DateNanosProperty) DateNanosPropertyCaster ¶

func (s *DateNanosProperty) DateNanosPropertyCaster() *DateNanosProperty

func (DateNanosProperty) MarshalJSON ¶

func (s DateNanosProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DateNanosProperty) PropertyCaster ¶ added in v9.0.1

func (s *DateNanosProperty) PropertyCaster() *Property

func (*DateNanosProperty) UnmarshalJSON ¶

func (s *DateNanosProperty) UnmarshalJSON(data []byte) error

type DateNanosPropertyVariant ¶

type DateNanosPropertyVariant interface {
	DateNanosPropertyCaster() *DateNanosProperty
}

type DateProcessor ¶

type DateProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to get the date from.
	Field string `json:"field"`
	// Formats An array of the expected date formats.
	// Can be a java time pattern or one of the following formats: ISO8601, UNIX,
	// UNIX_MS, or TAI64N.
	Formats []string `json:"formats"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// Locale The locale to use when parsing the date, relevant when parsing month names or
	// week days.
	// Supports template snippets.
	Locale *string `json:"locale,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// OutputFormat The format to use when writing the date to target_field. Must be a valid
	// java time pattern.
	OutputFormat *string `json:"output_format,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that will hold the parsed date.
	TargetField *string `json:"target_field,omitempty"`
	// Timezone The timezone to use when parsing the date.
	// Supports template snippets.
	Timezone *string `json:"timezone,omitempty"`
}

DateProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L770-L803

func NewDateProcessor ¶

func NewDateProcessor() *DateProcessor

NewDateProcessor returns a DateProcessor.

func (*DateProcessor) DateProcessorCaster ¶

func (s *DateProcessor) DateProcessorCaster() *DateProcessor

func (*DateProcessor) UnmarshalJSON ¶

func (s *DateProcessor) UnmarshalJSON(data []byte) error

type DateProcessorVariant ¶

type DateProcessorVariant interface {
	DateProcessorCaster() *DateProcessor
}

type DateProperty ¶

type DateProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fielddata       *NumericFielddata              `json:"fielddata,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	Format          *string                        `json:"format,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	Locale          *string                        `json:"locale,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           DateTime                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	PrecisionStep       *int                                             `json:"precision_step,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

DateProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L77-L89

func NewDateProperty ¶

func NewDateProperty() *DateProperty

NewDateProperty returns a DateProperty.

func (*DateProperty) DatePropertyCaster ¶

func (s *DateProperty) DatePropertyCaster() *DateProperty

func (DateProperty) MarshalJSON ¶

func (s DateProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DateProperty) PropertyCaster ¶ added in v9.0.1

func (s *DateProperty) PropertyCaster() *Property

func (*DateProperty) UnmarshalJSON ¶

func (s *DateProperty) UnmarshalJSON(data []byte) error

type DatePropertyVariant ¶

type DatePropertyVariant interface {
	DatePropertyCaster() *DateProperty
}

type DateRangeAggregate ¶

type DateRangeAggregate struct {
	Buckets BucketsRangeBucket `json:"buckets"`
	Meta    Metadata           `json:"meta,omitempty"`
}

DateRangeAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L609-L615

func NewDateRangeAggregate ¶

func NewDateRangeAggregate() *DateRangeAggregate

NewDateRangeAggregate returns a DateRangeAggregate.

func (*DateRangeAggregate) UnmarshalJSON ¶

func (s *DateRangeAggregate) UnmarshalJSON(data []byte) error

type DateRangeAggregation ¶

type DateRangeAggregation struct {
	// Field The date field whose values are use to build ranges.
	Field *string `json:"field,omitempty"`
	// Format The date format used to format `from` and `to` in the response.
	Format *string `json:"format,omitempty"`
	// Keyed Set to `true` to associate a unique string key with each bucket and returns
	// the ranges as a hash rather than an array.
	Keyed *bool `json:"keyed,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// Ranges Array of date ranges.
	Ranges []DateRangeExpression `json:"ranges,omitempty"`
	// TimeZone Time zone used to convert dates from another time zone to UTC.
	TimeZone *string `json:"time_zone,omitempty"`
}

DateRangeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L281-L307

func NewDateRangeAggregation ¶

func NewDateRangeAggregation() *DateRangeAggregation

NewDateRangeAggregation returns a DateRangeAggregation.

func (*DateRangeAggregation) DateRangeAggregationCaster ¶

func (s *DateRangeAggregation) DateRangeAggregationCaster() *DateRangeAggregation

func (*DateRangeAggregation) UnmarshalJSON ¶

func (s *DateRangeAggregation) UnmarshalJSON(data []byte) error

type DateRangeAggregationVariant ¶

type DateRangeAggregationVariant interface {
	DateRangeAggregationCaster() *DateRangeAggregation
}

type DateRangeExpression ¶

type DateRangeExpression struct {
	// From Start of the range (inclusive).
	From FieldDateMath `json:"from,omitempty"`
	// Key Custom key to return the range with.
	Key *string `json:"key,omitempty"`
	// To End of the range (exclusive).
	To FieldDateMath `json:"to,omitempty"`
}

DateRangeExpression type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L318-L331

func NewDateRangeExpression ¶

func NewDateRangeExpression() *DateRangeExpression

NewDateRangeExpression returns a DateRangeExpression.

func (*DateRangeExpression) DateRangeExpressionCaster ¶

func (s *DateRangeExpression) DateRangeExpressionCaster() *DateRangeExpression

func (*DateRangeExpression) UnmarshalJSON ¶

func (s *DateRangeExpression) UnmarshalJSON(data []byte) error

type DateRangeExpressionVariant ¶

type DateRangeExpressionVariant interface {
	DateRangeExpressionCaster() *DateRangeExpression
}

type DateRangeProperty ¶

type DateRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	Format      *string                        `json:"format,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

DateRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L29-L32

func NewDateRangeProperty ¶

func NewDateRangeProperty() *DateRangeProperty

NewDateRangeProperty returns a DateRangeProperty.

func (*DateRangeProperty) DateRangePropertyCaster ¶

func (s *DateRangeProperty) DateRangePropertyCaster() *DateRangeProperty

func (DateRangeProperty) MarshalJSON ¶

func (s DateRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DateRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *DateRangeProperty) PropertyCaster() *Property

func (*DateRangeProperty) UnmarshalJSON ¶

func (s *DateRangeProperty) UnmarshalJSON(data []byte) error

type DateRangePropertyVariant ¶

type DateRangePropertyVariant interface {
	DateRangePropertyCaster() *DateRangeProperty
}

type DateRangeQuery ¶

type DateRangeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Format Date format used to convert `date` values in the query.
	Format *string `json:"format,omitempty"`
	// Gt Greater than.
	Gt *string `json:"gt,omitempty"`
	// Gte Greater than or equal to.
	Gte *string `json:"gte,omitempty"`
	// Lt Less than.
	Lt *string `json:"lt,omitempty"`
	// Lte Less than or equal to.
	Lte        *string `json:"lte,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// Relation Indicates how the range query matches values for `range` fields.
	Relation *rangerelation.RangeRelation `json:"relation,omitempty"`
	// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert
	// `date` values in the query to UTC.
	TimeZone *string `json:"time_zone,omitempty"`
}

DateRangeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L157-L166

func NewDateRangeQuery ¶

func NewDateRangeQuery() *DateRangeQuery

NewDateRangeQuery returns a DateRangeQuery.

func (*DateRangeQuery) DateRangeQueryCaster ¶

func (s *DateRangeQuery) DateRangeQueryCaster() *DateRangeQuery

func (*DateRangeQuery) RangeQueryCaster ¶ added in v9.0.1

func (s *DateRangeQuery) RangeQueryCaster() *RangeQuery

func (*DateRangeQuery) UnmarshalJSON ¶

func (s *DateRangeQuery) UnmarshalJSON(data []byte) error

type DateRangeQueryVariant ¶

type DateRangeQueryVariant interface {
	DateRangeQueryCaster() *DateRangeQuery
}

type DateTimeVariant ¶

type DateTimeVariant interface {
	DateTimeCaster() *DateTime
}

type DecayFunction ¶

type DecayFunction any

DecayFunction holds the union for the following types:

UntypedDecayFunction
DateDecayFunction
NumericDecayFunction
GeoDecayFunction

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L215-L224

type DecayFunctionVariant ¶

type DecayFunctionVariant interface {
	DecayFunctionCaster() *DecayFunction
}

type DecayPlacement ¶

type DecayPlacement struct {
	// Decay Defines how documents are scored at the distance given at scale.
	Decay *Float64 `json:"decay,omitempty"`
	// Offset If defined, the decay function will only compute the decay function for
	// documents with a distance greater than the defined `offset`.
	Offset json.RawMessage `json:"offset,omitempty"`
	// Origin The point of origin used for calculating distance. Must be given as a number
	// for numeric field, date for date fields and geo point for geo fields.
	Origin json.RawMessage `json:"origin,omitempty"`
	// Scale Defines the distance from origin + offset at which the computed score will
	// equal `decay` parameter.
	Scale json.RawMessage `json:"scale,omitempty"`
}

DecayPlacement type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L170-L189

func NewDecayPlacement ¶

func NewDecayPlacement() *DecayPlacement

NewDecayPlacement returns a DecayPlacement.

func (*DecayPlacement) DecayPlacementCaster ¶

func (s *DecayPlacement) DecayPlacementCaster() *DecayPlacement

func (*DecayPlacement) UnmarshalJSON ¶

func (s *DecayPlacement) UnmarshalJSON(data []byte) error

type DecayPlacementDateMathDuration ¶

type DecayPlacementDateMathDuration struct {
	// Decay Defines how documents are scored at the distance given at scale.
	Decay *Float64 `json:"decay,omitempty"`
	// Offset If defined, the decay function will only compute the decay function for
	// documents with a distance greater than the defined `offset`.
	Offset Duration `json:"offset,omitempty"`
	// Origin The point of origin used for calculating distance. Must be given as a number
	// for numeric field, date for date fields and geo point for geo fields.
	Origin *string `json:"origin,omitempty"`
	// Scale Defines the distance from origin + offset at which the computed score will
	// equal `decay` parameter.
	Scale Duration `json:"scale,omitempty"`
}

DecayPlacementDateMathDuration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L170-L189

func NewDecayPlacementDateMathDuration ¶

func NewDecayPlacementDateMathDuration() *DecayPlacementDateMathDuration

NewDecayPlacementDateMathDuration returns a DecayPlacementDateMathDuration.

func (*DecayPlacementDateMathDuration) DecayPlacementDateMathDurationCaster ¶

func (s *DecayPlacementDateMathDuration) DecayPlacementDateMathDurationCaster() *DecayPlacementDateMathDuration

func (*DecayPlacementDateMathDuration) UnmarshalJSON ¶

func (s *DecayPlacementDateMathDuration) UnmarshalJSON(data []byte) error

type DecayPlacementDateMathDurationVariant ¶

type DecayPlacementDateMathDurationVariant interface {
	DecayPlacementDateMathDurationCaster() *DecayPlacementDateMathDuration
}

type DecayPlacementGeoLocationDistance ¶

type DecayPlacementGeoLocationDistance struct {
	// Decay Defines how documents are scored at the distance given at scale.
	Decay *Float64 `json:"decay,omitempty"`
	// Offset If defined, the decay function will only compute the decay function for
	// documents with a distance greater than the defined `offset`.
	Offset *string `json:"offset,omitempty"`
	// Origin The point of origin used for calculating distance. Must be given as a number
	// for numeric field, date for date fields and geo point for geo fields.
	Origin GeoLocation `json:"origin,omitempty"`
	// Scale Defines the distance from origin + offset at which the computed score will
	// equal `decay` parameter.
	Scale *string `json:"scale,omitempty"`
}

DecayPlacementGeoLocationDistance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L170-L189

func NewDecayPlacementGeoLocationDistance ¶

func NewDecayPlacementGeoLocationDistance() *DecayPlacementGeoLocationDistance

NewDecayPlacementGeoLocationDistance returns a DecayPlacementGeoLocationDistance.

func (*DecayPlacementGeoLocationDistance) DecayPlacementGeoLocationDistanceCaster ¶

func (s *DecayPlacementGeoLocationDistance) DecayPlacementGeoLocationDistanceCaster() *DecayPlacementGeoLocationDistance

func (*DecayPlacementGeoLocationDistance) UnmarshalJSON ¶

func (s *DecayPlacementGeoLocationDistance) UnmarshalJSON(data []byte) error

type DecayPlacementGeoLocationDistanceVariant ¶

type DecayPlacementGeoLocationDistanceVariant interface {
	DecayPlacementGeoLocationDistanceCaster() *DecayPlacementGeoLocationDistance
}

type DecayPlacementVariant ¶

type DecayPlacementVariant interface {
	DecayPlacementCaster() *DecayPlacement
}

type DecayPlacementdoubledouble ¶

type DecayPlacementdoubledouble struct {
	// Decay Defines how documents are scored at the distance given at scale.
	Decay *Float64 `json:"decay,omitempty"`
	// Offset If defined, the decay function will only compute the decay function for
	// documents with a distance greater than the defined `offset`.
	Offset *Float64 `json:"offset,omitempty"`
	// Origin The point of origin used for calculating distance. Must be given as a number
	// for numeric field, date for date fields and geo point for geo fields.
	Origin *Float64 `json:"origin,omitempty"`
	// Scale Defines the distance from origin + offset at which the computed score will
	// equal `decay` parameter.
	Scale *Float64 `json:"scale,omitempty"`
}

DecayPlacementdoubledouble type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L170-L189

func NewDecayPlacementdoubledouble ¶

func NewDecayPlacementdoubledouble() *DecayPlacementdoubledouble

NewDecayPlacementdoubledouble returns a DecayPlacementdoubledouble.

func (*DecayPlacementdoubledouble) DecayPlacementdoubledoubleCaster ¶

func (s *DecayPlacementdoubledouble) DecayPlacementdoubledoubleCaster() *DecayPlacementdoubledouble

func (*DecayPlacementdoubledouble) UnmarshalJSON ¶

func (s *DecayPlacementdoubledouble) UnmarshalJSON(data []byte) error

type DecayPlacementdoubledoubleVariant ¶

type DecayPlacementdoubledoubleVariant interface {
	DecayPlacementdoubledoubleCaster() *DecayPlacementdoubledouble
}

type DecimalDigitTokenFilter ¶ added in v9.0.1

type DecimalDigitTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

DecimalDigitTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L482-L484

func NewDecimalDigitTokenFilter ¶ added in v9.0.1

func NewDecimalDigitTokenFilter() *DecimalDigitTokenFilter

NewDecimalDigitTokenFilter returns a DecimalDigitTokenFilter.

func (*DecimalDigitTokenFilter) DecimalDigitTokenFilterCaster ¶ added in v9.0.1

func (s *DecimalDigitTokenFilter) DecimalDigitTokenFilterCaster() *DecimalDigitTokenFilter

func (DecimalDigitTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s DecimalDigitTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DecimalDigitTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *DecimalDigitTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*DecimalDigitTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *DecimalDigitTokenFilter) UnmarshalJSON(data []byte) error

type DecimalDigitTokenFilterVariant ¶ added in v9.0.1

type DecimalDigitTokenFilterVariant interface {
	DecimalDigitTokenFilterCaster() *DecimalDigitTokenFilter
}

type DeepSeekServiceSettings ¶ added in v9.1.0

type DeepSeekServiceSettings struct {
	// ApiKey A valid API key for your DeepSeek account.
	// You can find or create your DeepSeek API keys on the DeepSeek API key page.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// ModelId For a `completion` or `chat_completion` task, the name of the model to use
	// for the inference task.
	//
	// For the available `completion` and `chat_completion` models, refer to the
	// [DeepSeek Models & Pricing
	// docs](https://api-docs.deepseek.com/quick_start/pricing).
	ModelId string `json:"model_id"`
	// Url The URL endpoint to use for the requests. Defaults to
	// `https://api.deepseek.com/chat/completions`.
	Url *string `json:"url,omitempty"`
}

DeepSeekServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1166-L1188

func NewDeepSeekServiceSettings ¶ added in v9.1.0

func NewDeepSeekServiceSettings() *DeepSeekServiceSettings

NewDeepSeekServiceSettings returns a DeepSeekServiceSettings.

func (*DeepSeekServiceSettings) DeepSeekServiceSettingsCaster ¶ added in v9.1.0

func (s *DeepSeekServiceSettings) DeepSeekServiceSettingsCaster() *DeepSeekServiceSettings

func (*DeepSeekServiceSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *DeepSeekServiceSettings) UnmarshalJSON(data []byte) error

type DeepSeekServiceSettingsVariant ¶ added in v9.1.0

type DeepSeekServiceSettingsVariant interface {
	DeepSeekServiceSettingsCaster() *DeepSeekServiceSettings
}

type Defaults ¶

type Defaults struct {
	AnomalyDetectors AnomalyDetectors `json:"anomaly_detectors"`
	Datafeeds        Datafeeds        `json:"datafeeds"`
}

Defaults type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/info/types.ts#L24-L27

func NewDefaults ¶

func NewDefaults() *Defaults

NewDefaults returns a Defaults.

type Definition ¶

type Definition struct {
	// Preprocessors Collection of preprocessors
	Preprocessors []Preprocessor `json:"preprocessors,omitempty"`
	// TrainedModel The definition of the trained model.
	TrainedModel TrainedModel `json:"trained_model"`
}

Definition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L24-L29

func NewDefinition ¶

func NewDefinition() *Definition

NewDefinition returns a Definition.

func (*Definition) DefinitionCaster ¶

func (s *Definition) DefinitionCaster() *Definition

type DefinitionVariant ¶

type DefinitionVariant interface {
	DefinitionCaster() *Definition
}

type DelayedDataCheckConfig ¶

type DelayedDataCheckConfig struct {
	// CheckWindow The window of time that is searched for late data. This window of time ends
	// with the latest finalized bucket.
	// It defaults to null, which causes an appropriate `check_window` to be
	// calculated when the real-time datafeed runs.
	// In particular, the default `check_window` span calculation is based on the
	// maximum of `2h` or `8 * bucket_span`.
	CheckWindow Duration `json:"check_window,omitempty"`
	// Enabled Specifies whether the datafeed periodically checks for delayed data.
	Enabled bool `json:"enabled"`
}

DelayedDataCheckConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L122-L133

func NewDelayedDataCheckConfig ¶

func NewDelayedDataCheckConfig() *DelayedDataCheckConfig

NewDelayedDataCheckConfig returns a DelayedDataCheckConfig.

func (*DelayedDataCheckConfig) DelayedDataCheckConfigCaster ¶

func (s *DelayedDataCheckConfig) DelayedDataCheckConfigCaster() *DelayedDataCheckConfig

func (*DelayedDataCheckConfig) UnmarshalJSON ¶

func (s *DelayedDataCheckConfig) UnmarshalJSON(data []byte) error

type DelayedDataCheckConfigVariant ¶

type DelayedDataCheckConfigVariant interface {
	DelayedDataCheckConfigCaster() *DelayedDataCheckConfig
}

type DeleteAction ¶

type DeleteAction struct {
	DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"`
}

DeleteAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L149-L151

func NewDeleteAction ¶

func NewDeleteAction() *DeleteAction

NewDeleteAction returns a DeleteAction.

func (*DeleteAction) DeleteActionCaster ¶

func (s *DeleteAction) DeleteActionCaster() *DeleteAction

func (*DeleteAction) UnmarshalJSON ¶

func (s *DeleteAction) UnmarshalJSON(data []byte) error

type DeleteActionVariant ¶

type DeleteActionVariant interface {
	DeleteActionCaster() *DeleteAction
}

type DeleteOperation ¶

type DeleteOperation struct {
	// Id_ The document ID.
	Id_           *string `json:"_id,omitempty"`
	IfPrimaryTerm *int64  `json:"if_primary_term,omitempty"`
	IfSeqNo       *int64  `json:"if_seq_no,omitempty"`
	// Index_ The name of the index or index alias to perform the action on.
	Index_ *string `json:"_index,omitempty"`
	// Routing A custom value used to route operations to a specific shard.
	Routing     *string                  `json:"routing,omitempty"`
	Version     *int64                   `json:"version,omitempty"`
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

DeleteOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L144-L144

func NewDeleteOperation ¶

func NewDeleteOperation() *DeleteOperation

NewDeleteOperation returns a DeleteOperation.

func (*DeleteOperation) DeleteOperationCaster ¶

func (s *DeleteOperation) DeleteOperationCaster() *DeleteOperation

func (*DeleteOperation) UnmarshalJSON ¶

func (s *DeleteOperation) UnmarshalJSON(data []byte) error

type DeleteOperationVariant ¶

type DeleteOperationVariant interface {
	DeleteOperationCaster() *DeleteOperation
}

type DelimitedPayloadTokenFilter ¶

type DelimitedPayloadTokenFilter struct {
	// Delimiter Character used to separate tokens from payloads. Defaults to `|`.
	Delimiter *string `json:"delimiter,omitempty"`
	// Encoding Data type for the stored payload.
	Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"`
	Type     string                                             `json:"type,omitempty"`
	Version  *string                                            `json:"version,omitempty"`
}

DelimitedPayloadTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L84-L90

func NewDelimitedPayloadTokenFilter ¶

func NewDelimitedPayloadTokenFilter() *DelimitedPayloadTokenFilter

NewDelimitedPayloadTokenFilter returns a DelimitedPayloadTokenFilter.

func (*DelimitedPayloadTokenFilter) DelimitedPayloadTokenFilterCaster ¶

func (s *DelimitedPayloadTokenFilter) DelimitedPayloadTokenFilterCaster() *DelimitedPayloadTokenFilter

func (DelimitedPayloadTokenFilter) MarshalJSON ¶

func (s DelimitedPayloadTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DelimitedPayloadTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *DelimitedPayloadTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*DelimitedPayloadTokenFilter) UnmarshalJSON ¶

func (s *DelimitedPayloadTokenFilter) UnmarshalJSON(data []byte) error

type DelimitedPayloadTokenFilterVariant ¶

type DelimitedPayloadTokenFilterVariant interface {
	DelimitedPayloadTokenFilterCaster() *DelimitedPayloadTokenFilter
}

type DenseVectorIndexOptions ¶

type DenseVectorIndexOptions struct {
	// ConfidenceInterval The confidence interval to use when quantizing the vectors. Can be any value
	// between and including `0.90` and
	// `1.0` or exactly `0`. When the value is `0`, this indicates that dynamic
	// quantiles should be calculated for
	// optimized quantization. When between `0.90` and `1.0`, this value restricts
	// the values used when calculating
	// the quantization thresholds.
	//
	// For example, a value of `0.95` will only use the middle `95%` of the values
	// when calculating the quantization
	// thresholds (e.g. the highest and lowest `2.5%` of values will be ignored).
	//
	// Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4`
	// for dynamic quantile calculation.
	//
	// Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat`
	// index types.
	ConfidenceInterval *float32 `json:"confidence_interval,omitempty"`
	// EfConstruction The number of candidates to track while assembling the list of nearest
	// neighbors for each new node.
	//
	// Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index
	// types.
	EfConstruction *int `json:"ef_construction,omitempty"`
	// M The number of neighbors each node will be connected to in the HNSW graph.
	//
	// Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index
	// types.
	M *int `json:"m,omitempty"`
	// RescoreVector The rescore vector options. This is only applicable to `bbq_hnsw`,
	// `int4_hnsw`, `int8_hnsw`, `bbq_flat`, `int4_flat`, and `int8_flat` index
	// types.
	RescoreVector *DenseVectorIndexOptionsRescoreVector `json:"rescore_vector,omitempty"`
	// Type The type of kNN algorithm to use.
	Type densevectorindexoptionstype.DenseVectorIndexOptionsType `json:"type"`
}

DenseVectorIndexOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/DenseVectorProperty.ts#L129-L166

func NewDenseVectorIndexOptions ¶

func NewDenseVectorIndexOptions() *DenseVectorIndexOptions

NewDenseVectorIndexOptions returns a DenseVectorIndexOptions.

func (*DenseVectorIndexOptions) DenseVectorIndexOptionsCaster ¶

func (s *DenseVectorIndexOptions) DenseVectorIndexOptionsCaster() *DenseVectorIndexOptions

func (*DenseVectorIndexOptions) UnmarshalJSON ¶

func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error

type DenseVectorIndexOptionsRescoreVector ¶ added in v9.1.0

type DenseVectorIndexOptionsRescoreVector struct {
	// Oversample The oversampling factor to use when searching for the nearest neighbor. This
	// is only applicable to the quantized formats: `bbq_*`, `int4_*`, and `int8_*`.
	// When provided, `oversample * k` vectors will be gathered and then their
	// scores will be re-computed with the original vectors.
	//
	// valid values are between `1.0` and `10.0` (inclusive), or `0` exactly to
	// disable oversampling.
	Oversample float32 `json:"oversample"`
}

DenseVectorIndexOptionsRescoreVector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/DenseVectorProperty.ts#L215-L223

func NewDenseVectorIndexOptionsRescoreVector ¶ added in v9.1.0

func NewDenseVectorIndexOptionsRescoreVector() *DenseVectorIndexOptionsRescoreVector

NewDenseVectorIndexOptionsRescoreVector returns a DenseVectorIndexOptionsRescoreVector.

func (*DenseVectorIndexOptionsRescoreVector) DenseVectorIndexOptionsRescoreVectorCaster ¶ added in v9.1.0

func (s *DenseVectorIndexOptionsRescoreVector) DenseVectorIndexOptionsRescoreVectorCaster() *DenseVectorIndexOptionsRescoreVector

func (*DenseVectorIndexOptionsRescoreVector) UnmarshalJSON ¶ added in v9.1.0

func (s *DenseVectorIndexOptionsRescoreVector) UnmarshalJSON(data []byte) error

type DenseVectorIndexOptionsRescoreVectorVariant ¶ added in v9.1.0

type DenseVectorIndexOptionsRescoreVectorVariant interface {
	DenseVectorIndexOptionsRescoreVectorCaster() *DenseVectorIndexOptionsRescoreVector
}

type DenseVectorIndexOptionsVariant ¶

type DenseVectorIndexOptionsVariant interface {
	DenseVectorIndexOptionsCaster() *DenseVectorIndexOptions
}

type DenseVectorOffHeapStats ¶ added in v9.0.1

type DenseVectorOffHeapStats struct {
	Fielddata         map[string]map[string]int64 `json:"fielddata,omitempty"`
	TotalSize         ByteSize                    `json:"total_size,omitempty"`
	TotalSizeBytes    int64                       `json:"total_size_bytes"`
	TotalVebSize      ByteSize                    `json:"total_veb_size,omitempty"`
	TotalVebSizeBytes int64                       `json:"total_veb_size_bytes"`
	TotalVecSize      ByteSize                    `json:"total_vec_size,omitempty"`
	TotalVecSizeBytes int64                       `json:"total_vec_size_bytes"`
	TotalVeqSize      ByteSize                    `json:"total_veq_size,omitempty"`
	TotalVeqSizeBytes int64                       `json:"total_veq_size_bytes"`
	TotalVexSize      ByteSize                    `json:"total_vex_size,omitempty"`
	TotalVexSizeBytes int64                       `json:"total_vex_size_bytes"`
}

DenseVectorOffHeapStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L166-L178

func NewDenseVectorOffHeapStats ¶ added in v9.0.1

func NewDenseVectorOffHeapStats() *DenseVectorOffHeapStats

NewDenseVectorOffHeapStats returns a DenseVectorOffHeapStats.

func (*DenseVectorOffHeapStats) UnmarshalJSON ¶ added in v9.0.1

func (s *DenseVectorOffHeapStats) UnmarshalJSON(data []byte) error

type DenseVectorProperty ¶

type DenseVectorProperty struct {
	// Dims Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified,
	// it will be set to the length of
	// the first vector added to the field.
	Dims    *int                           `json:"dims,omitempty"`
	Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	// ElementType The data type used to encode vectors. The supported data types are `float`
	// (default), `byte`, and `bit`.
	ElementType *densevectorelementtype.DenseVectorElementType `json:"element_type,omitempty"`
	Fields      map[string]Property                            `json:"fields,omitempty"`
	IgnoreAbove *int                                           `json:"ignore_above,omitempty"`
	// Index If `true`, you can search this field using the kNN search API.
	Index *bool `json:"index,omitempty"`
	// IndexOptions An optional section that configures the kNN indexing algorithm. The HNSW
	// algorithm has two internal parameters
	// that influence how the data structure is built. These can be adjusted to
	// improve the accuracy of results, at the
	// expense of slower indexing speed.
	//
	// This parameter can only be specified when `index` is `true`.
	IndexOptions *DenseVectorIndexOptions `json:"index_options,omitempty"`
	// Meta Metadata about the field.
	Meta       map[string]string   `json:"meta,omitempty"`
	Properties map[string]Property `json:"properties,omitempty"`
	// Similarity The vector similarity metric to use in kNN search.
	//
	// Documents are ranked by their vector field's similarity to the query vector.
	// The `_score` of each document will
	// be derived from the similarity, in a way that ensures scores are positive and
	// that a larger score corresponds
	// to a higher ranking.
	//
	// Defaults to `l2_norm` when `element_type` is `bit` otherwise defaults to
	// `cosine`.
	//
	// `bit` vectors only support `l2_norm` as their similarity metric.
	//
	// This parameter can only be specified when `index` is `true`.
	Similarity          *densevectorsimilarity.DenseVectorSimilarity     `json:"similarity,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

DenseVectorProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/DenseVectorProperty.ts#L23-L62

func NewDenseVectorProperty ¶

func NewDenseVectorProperty() *DenseVectorProperty

NewDenseVectorProperty returns a DenseVectorProperty.

func (*DenseVectorProperty) DenseVectorPropertyCaster ¶

func (s *DenseVectorProperty) DenseVectorPropertyCaster() *DenseVectorProperty

func (DenseVectorProperty) MarshalJSON ¶

func (s DenseVectorProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DenseVectorProperty) PropertyCaster ¶ added in v9.0.1

func (s *DenseVectorProperty) PropertyCaster() *Property

func (*DenseVectorProperty) UnmarshalJSON ¶

func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error

type DenseVectorPropertyVariant ¶

type DenseVectorPropertyVariant interface {
	DenseVectorPropertyCaster() *DenseVectorProperty
}

type DenseVectorStats ¶ added in v9.0.1

type DenseVectorStats struct {
	OffHeap    *DenseVectorOffHeapStats `json:"off_heap,omitempty"`
	ValueCount int64                    `json:"value_count"`
}

DenseVectorStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L157-L160

func NewDenseVectorStats ¶ added in v9.0.1

func NewDenseVectorStats() *DenseVectorStats

NewDenseVectorStats returns a DenseVectorStats.

func (*DenseVectorStats) UnmarshalJSON ¶ added in v9.0.1

func (s *DenseVectorStats) UnmarshalJSON(data []byte) error

type Dependency ¶

type Dependency struct {
	Field string      `json:"field"`
	Value ScalarValue `json:"value"`
}

Dependency type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L30-L33

func NewDependency ¶

func NewDependency() *Dependency

NewDependency returns a Dependency.

func (*Dependency) DependencyCaster ¶

func (s *Dependency) DependencyCaster() *Dependency

func (*Dependency) UnmarshalJSON ¶

func (s *Dependency) UnmarshalJSON(data []byte) error

type DependencyVariant ¶

type DependencyVariant interface {
	DependencyCaster() *Dependency
}

type Deprecation ¶

type Deprecation struct {
	// Details Optional details about the deprecation warning.
	Details *string `json:"details,omitempty"`
	// Level The level property describes the significance of the issue.
	Level deprecationlevel.DeprecationLevel `json:"level"`
	// Message Descriptive information about the deprecation warning.
	Message                     string                     `json:"message"`
	Meta_                       map[string]json.RawMessage `json:"_meta,omitempty"`
	ResolveDuringRollingUpgrade bool                       `json:"resolve_during_rolling_upgrade"`
	// Url A link to the breaking change documentation, where you can find more
	// information about this change.
	Url string `json:"url"`
}

Deprecation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/migration/deprecations/types.ts#L32-L47

func NewDeprecation ¶

func NewDeprecation() *Deprecation

NewDeprecation returns a Deprecation.

func (*Deprecation) UnmarshalJSON ¶

func (s *Deprecation) UnmarshalJSON(data []byte) error

type DeprecationIndexing ¶

type DeprecationIndexing struct {
	Enabled string `json:"enabled"`
}

DeprecationIndexing type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L154-L156

func NewDeprecationIndexing ¶

func NewDeprecationIndexing() *DeprecationIndexing

NewDeprecationIndexing returns a DeprecationIndexing.

func (*DeprecationIndexing) UnmarshalJSON ¶

func (s *DeprecationIndexing) UnmarshalJSON(data []byte) error

type DerivativeAggregate ¶

type DerivativeAggregate struct {
	Meta                    Metadata `json:"meta,omitempty"`
	NormalizedValue         *Float64 `json:"normalized_value,omitempty"`
	NormalizedValueAsString *string  `json:"normalized_value_as_string,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

DerivativeAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L241-L248

func NewDerivativeAggregate ¶

func NewDerivativeAggregate() *DerivativeAggregate

NewDerivativeAggregate returns a DerivativeAggregate.

func (*DerivativeAggregate) UnmarshalJSON ¶

func (s *DerivativeAggregate) UnmarshalJSON(data []byte) error

type DerivativeAggregation ¶

type DerivativeAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

DerivativeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L216-L216

func NewDerivativeAggregation ¶

func NewDerivativeAggregation() *DerivativeAggregation

NewDerivativeAggregation returns a DerivativeAggregation.

func (*DerivativeAggregation) DerivativeAggregationCaster ¶

func (s *DerivativeAggregation) DerivativeAggregationCaster() *DerivativeAggregation

func (*DerivativeAggregation) UnmarshalJSON ¶

func (s *DerivativeAggregation) UnmarshalJSON(data []byte) error

type DerivativeAggregationVariant ¶

type DerivativeAggregationVariant interface {
	DerivativeAggregationCaster() *DerivativeAggregation
}

type DetailsInfo ¶

type DetailsInfo struct {
	// Blob A description of the blob that was written and read.
	Blob BlobDetails `json:"blob"`
	// OverwriteElapsed The elapsed time spent overwriting the blob.
	// If the blob was not overwritten, this information is omitted.
	OverwriteElapsed Duration `json:"overwrite_elapsed,omitempty"`
	// OverwriteElapsedNanos The elapsed time spent overwriting the blob, in nanoseconds.
	// If the blob was not overwritten, this information is omitted.
	OverwriteElapsedNanos *int64 `json:"overwrite_elapsed_nanos,omitempty"`
	// WriteElapsed The elapsed time spent writing the blob.
	WriteElapsed Duration `json:"write_elapsed"`
	// WriteElapsedNanos The elapsed time spent writing the blob, in nanoseconds.
	WriteElapsedNanos int64 `json:"write_elapsed_nanos"`
	// WriteThrottled The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or
	// `indices.recovery.max_bytes_per_sec` if the recovery settings for managed
	// services are set) throttle while writing the blob.
	WriteThrottled Duration `json:"write_throttled"`
	// WriteThrottledNanos The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or
	// `indices.recovery.max_bytes_per_sec` if the recovery settings for managed
	// services are set) throttle while writing the blob, in nanoseconds.
	WriteThrottledNanos int64 `json:"write_throttled_nanos"`
	// WriterNode The node which wrote the blob and coordinated the read operations.
	WriterNode SnapshotNodeInfo `json:"writer_node"`
}

DetailsInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321

func NewDetailsInfo ¶

func NewDetailsInfo() *DetailsInfo

NewDetailsInfo returns a DetailsInfo.

func (*DetailsInfo) UnmarshalJSON ¶

func (s *DetailsInfo) UnmarshalJSON(data []byte) error

type DetectionRule ¶

type DetectionRule struct {
	// Actions The set of actions to be triggered when the rule applies. If more than one
	// action is specified the effects of all actions are combined.
	Actions []ruleaction.RuleAction `json:"actions,omitempty"`
	// Conditions An array of numeric conditions when the rule applies. A rule must either have
	// a non-empty scope or at least one condition. Multiple conditions are combined
	// together with a logical AND.
	Conditions []RuleCondition `json:"conditions,omitempty"`
	// Scope A scope of series where the rule applies. A rule must either have a non-empty
	// scope or at least one condition. By default, the scope includes all series.
	// Scoping is allowed for any of the fields that are also specified in
	// `by_field_name`, `over_field_name`, or `partition_field_name`.
	Scope map[string]FilterRef `json:"scope,omitempty"`
}

DetectionRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Rule.ts#L25-L39

func NewDetectionRule ¶

func NewDetectionRule() *DetectionRule

NewDetectionRule returns a DetectionRule.

func (*DetectionRule) DetectionRuleCaster ¶

func (s *DetectionRule) DetectionRuleCaster() *DetectionRule

type DetectionRuleVariant ¶

type DetectionRuleVariant interface {
	DetectionRuleCaster() *DetectionRule
}

type Detector ¶

type Detector struct {
	// ByFieldName The field used to split the data. In particular, this property is used for
	// analyzing the splits with respect to their own history. It is used for
	// finding unusual values in the context of the split.
	ByFieldName *string `json:"by_field_name,omitempty"`
	// CustomRules Custom rules enable you to customize the way detectors operate. For example,
	// a rule may dictate conditions under which results should be skipped. Kibana
	// refers to custom rules as job rules.
	CustomRules []DetectionRule `json:"custom_rules,omitempty"`
	// DetectorDescription A description of the detector.
	DetectorDescription *string `json:"detector_description,omitempty"`
	// DetectorIndex A unique identifier for the detector. This identifier is based on the order
	// of the detectors in the `analysis_config`, starting at zero. If you specify a
	// value for this property, it is ignored.
	DetectorIndex *int `json:"detector_index,omitempty"`
	// ExcludeFrequent If set, frequent entities are excluded from influencing the anomaly results.
	// Entities can be considered frequent over time or frequent in a population. If
	// you are working with both over and by fields, you can set `exclude_frequent`
	// to `all` for both fields, or to `by` or `over` for those specific fields.
	ExcludeFrequent *excludefrequent.ExcludeFrequent `json:"exclude_frequent,omitempty"`
	// FieldName The field that the detector uses in the function. If you use an event rate
	// function such as count or rare, do not specify this field. The `field_name`
	// cannot contain double quotes or backslashes.
	FieldName *string `json:"field_name,omitempty"`
	// Function The analysis function that is used. For example, `count`, `rare`, `mean`,
	// `min`, `max`, or `sum`.
	Function *string `json:"function,omitempty"`
	// OverFieldName The field used to split the data. In particular, this property is used for
	// analyzing the splits with respect to the history of all splits. It is used
	// for finding unusual values in the population of all splits.
	OverFieldName *string `json:"over_field_name,omitempty"`
	// PartitionFieldName The field used to segment the analysis. When you use this property, you have
	// completely independent baselines for each value of this field.
	PartitionFieldName *string `json:"partition_field_name,omitempty"`
	// UseNull Defines whether a new series is used as the null series when there is no
	// value for the by or partition fields.
	UseNull *bool `json:"use_null,omitempty"`
}

Detector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Detector.ts#L25-L67

func NewDetector ¶

func NewDetector() *Detector

NewDetector returns a Detector.

func (*Detector) DetectorCaster ¶

func (s *Detector) DetectorCaster() *Detector

func (*Detector) UnmarshalJSON ¶

func (s *Detector) UnmarshalJSON(data []byte) error

type DetectorRead ¶

type DetectorRead struct {
	// ByFieldName The field used to split the data.
	// In particular, this property is used for analyzing the splits with respect to
	// their own history.
	// It is used for finding unusual values in the context of the split.
	ByFieldName *string `json:"by_field_name,omitempty"`
	// CustomRules An array of custom rule objects, which enable you to customize the way
	// detectors operate.
	// For example, a rule may dictate to the detector conditions under which
	// results should be skipped.
	// Kibana refers to custom rules as job rules.
	CustomRules []DetectionRule `json:"custom_rules,omitempty"`
	// DetectorDescription A description of the detector.
	DetectorDescription *string `json:"detector_description,omitempty"`
	// DetectorIndex A unique identifier for the detector.
	// This identifier is based on the order of the detectors in the
	// `analysis_config`, starting at zero.
	DetectorIndex *int `json:"detector_index,omitempty"`
	// ExcludeFrequent Contains one of the following values: `all`, `none`, `by`, or `over`.
	// If set, frequent entities are excluded from influencing the anomaly results.
	// Entities can be considered frequent over time or frequent in a population.
	// If you are working with both over and by fields, then you can set
	// `exclude_frequent` to all for both fields, or to `by` or `over` for those
	// specific fields.
	ExcludeFrequent *excludefrequent.ExcludeFrequent `json:"exclude_frequent,omitempty"`
	// FieldName The field that the detector uses in the function.
	// If you use an event rate function such as `count` or `rare`, do not specify
	// this field.
	FieldName *string `json:"field_name,omitempty"`
	// Function The analysis function that is used.
	// For example, `count`, `rare`, `mean`, `min`, `max`, and `sum`.
	Function string `json:"function"`
	// OverFieldName The field used to split the data.
	// In particular, this property is used for analyzing the splits with respect to
	// the history of all splits.
	// It is used for finding unusual values in the population of all splits.
	OverFieldName *string `json:"over_field_name,omitempty"`
	// PartitionFieldName The field used to segment the analysis.
	// When you use this property, you have completely independent baselines for
	// each value of this field.
	PartitionFieldName *string `json:"partition_field_name,omitempty"`
	// UseNull Defines whether a new series is used as the null series when there is no
	// value for the by or partition fields.
	UseNull *bool `json:"use_null,omitempty"`
}

DetectorRead type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Detector.ts#L69-L125

func NewDetectorRead ¶

func NewDetectorRead() *DetectorRead

NewDetectorRead returns a DetectorRead.

func (*DetectorRead) UnmarshalJSON ¶

func (s *DetectorRead) UnmarshalJSON(data []byte) error

type DetectorUpdate ¶

type DetectorUpdate struct {
	// CustomRules An array of custom rule objects, which enable you to customize the way
	// detectors operate.
	// For example, a rule may dictate to the detector conditions under which
	// results should be skipped.
	// Kibana refers to custom rules as job rules.
	CustomRules []DetectionRule `json:"custom_rules,omitempty"`
	// Description A description of the detector.
	Description *string `json:"description,omitempty"`
	// DetectorIndex A unique identifier for the detector.
	// This identifier is based on the order of the detectors in the
	// `analysis_config`, starting at zero.
	DetectorIndex int `json:"detector_index"`
}

DetectorUpdate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Detector.ts#L127-L143

func NewDetectorUpdate ¶

func NewDetectorUpdate() *DetectorUpdate

NewDetectorUpdate returns a DetectorUpdate.

func (*DetectorUpdate) DetectorUpdateCaster ¶

func (s *DetectorUpdate) DetectorUpdateCaster() *DetectorUpdate

func (*DetectorUpdate) UnmarshalJSON ¶

func (s *DetectorUpdate) UnmarshalJSON(data []byte) error

type DetectorUpdateVariant ¶

type DetectorUpdateVariant interface {
	DetectorUpdateCaster() *DetectorUpdate
}

type DetectorVariant ¶

type DetectorVariant interface {
	DetectorCaster() *Detector
}

type DfsKnnProfile ¶

type DfsKnnProfile struct {
	Collector             []KnnCollectorResult    `json:"collector"`
	Query                 []KnnQueryProfileResult `json:"query"`
	RewriteTime           int64                   `json:"rewrite_time"`
	VectorOperationsCount *int64                  `json:"vector_operations_count,omitempty"`
}

DfsKnnProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L181-L186

func NewDfsKnnProfile ¶

func NewDfsKnnProfile() *DfsKnnProfile

NewDfsKnnProfile returns a DfsKnnProfile.

func (*DfsKnnProfile) UnmarshalJSON ¶

func (s *DfsKnnProfile) UnmarshalJSON(data []byte) error

type DfsProfile ¶

type DfsProfile struct {
	Knn        []DfsKnnProfile       `json:"knn,omitempty"`
	Statistics *DfsStatisticsProfile `json:"statistics,omitempty"`
}

DfsProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L154-L157

func NewDfsProfile ¶

func NewDfsProfile() *DfsProfile

NewDfsProfile returns a DfsProfile.

type DfsStatisticsBreakdown ¶

type DfsStatisticsBreakdown struct {
	CollectionStatistics      int64 `json:"collection_statistics"`
	CollectionStatisticsCount int64 `json:"collection_statistics_count"`
	CreateWeight              int64 `json:"create_weight"`
	CreateWeightCount         int64 `json:"create_weight_count"`
	Rewrite                   int64 `json:"rewrite"`
	RewriteCount              int64 `json:"rewrite_count"`
	TermStatistics            int64 `json:"term_statistics"`
	TermStatisticsCount       int64 `json:"term_statistics_count"`
}

DfsStatisticsBreakdown type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L170-L179

func NewDfsStatisticsBreakdown ¶

func NewDfsStatisticsBreakdown() *DfsStatisticsBreakdown

NewDfsStatisticsBreakdown returns a DfsStatisticsBreakdown.

func (*DfsStatisticsBreakdown) UnmarshalJSON ¶

func (s *DfsStatisticsBreakdown) UnmarshalJSON(data []byte) error

type DfsStatisticsProfile ¶

type DfsStatisticsProfile struct {
	Breakdown   DfsStatisticsBreakdown     `json:"breakdown"`
	Children    []DfsStatisticsProfile     `json:"children,omitempty"`
	Debug       map[string]json.RawMessage `json:"debug,omitempty"`
	Description string                     `json:"description"`
	Time        Duration                   `json:"time,omitempty"`
	TimeInNanos int64                      `json:"time_in_nanos"`
	Type        string                     `json:"type"`
}

DfsStatisticsProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L159-L167

func NewDfsStatisticsProfile ¶

func NewDfsStatisticsProfile() *DfsStatisticsProfile

NewDfsStatisticsProfile returns a DfsStatisticsProfile.

func (*DfsStatisticsProfile) UnmarshalJSON ¶

func (s *DfsStatisticsProfile) UnmarshalJSON(data []byte) error

type Diagnosis ¶

type Diagnosis struct {
	Action            string                     `json:"action"`
	AffectedResources DiagnosisAffectedResources `json:"affected_resources"`
	Cause             string                     `json:"cause"`
	HelpUrl           string                     `json:"help_url"`
	Id                string                     `json:"id"`
}

Diagnosis type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L52-L58

func NewDiagnosis ¶

func NewDiagnosis() *Diagnosis

NewDiagnosis returns a Diagnosis.

func (*Diagnosis) UnmarshalJSON ¶

func (s *Diagnosis) UnmarshalJSON(data []byte) error

type DiagnosisAffectedResources ¶

type DiagnosisAffectedResources struct {
	FeatureStates        []string        `json:"feature_states,omitempty"`
	Indices              []string        `json:"indices,omitempty"`
	Nodes                []IndicatorNode `json:"nodes,omitempty"`
	SlmPolicies          []string        `json:"slm_policies,omitempty"`
	SnapshotRepositories []string        `json:"snapshot_repositories,omitempty"`
}

DiagnosisAffectedResources type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L60-L66

func NewDiagnosisAffectedResources ¶

func NewDiagnosisAffectedResources() *DiagnosisAffectedResources

NewDiagnosisAffectedResources returns a DiagnosisAffectedResources.

func (*DiagnosisAffectedResources) UnmarshalJSON ¶

func (s *DiagnosisAffectedResources) UnmarshalJSON(data []byte) error

type DictionaryDecompounderTokenFilter ¶

type DictionaryDecompounderTokenFilter struct {
	// MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the
	// output. Defaults to `15`.
	MaxSubwordSize *int `json:"max_subword_size,omitempty"`
	// MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from
	// the output. Defaults to `2`.
	MinSubwordSize *int `json:"min_subword_size,omitempty"`
	// MinWordSize Minimum word character length. Shorter word tokens are excluded from the
	// output. Defaults to `5`.
	MinWordSize *int `json:"min_word_size,omitempty"`
	// OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`.
	OnlyLongestMatch *bool   `json:"only_longest_match,omitempty"`
	Type             string  `json:"type,omitempty"`
	Version          *string `json:"version,omitempty"`
	// WordList A list of subwords to look for in the token stream. If found, the subword is
	// included in the token output.
	// Either this parameter or `word_list_path` must be specified.
	WordList []string `json:"word_list,omitempty"`
	// WordListPath Path to a file that contains a list of subwords to find in the token stream.
	// If found, the subword is included in the token output.
	// This path must be absolute or relative to the config location, and the file
	// must be UTF-8 encoded. Each token in the file must be separated by a line
	// break.
	// Either this parameter or `word_list` must be specified.
	WordListPath *string `json:"word_list_path,omitempty"`
}

DictionaryDecompounderTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L63-L65

func NewDictionaryDecompounderTokenFilter ¶

func NewDictionaryDecompounderTokenFilter() *DictionaryDecompounderTokenFilter

NewDictionaryDecompounderTokenFilter returns a DictionaryDecompounderTokenFilter.

func (*DictionaryDecompounderTokenFilter) DictionaryDecompounderTokenFilterCaster ¶

func (s *DictionaryDecompounderTokenFilter) DictionaryDecompounderTokenFilterCaster() *DictionaryDecompounderTokenFilter

func (DictionaryDecompounderTokenFilter) MarshalJSON ¶

func (s DictionaryDecompounderTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DictionaryDecompounderTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *DictionaryDecompounderTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*DictionaryDecompounderTokenFilter) UnmarshalJSON ¶

func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error

type DictionaryDecompounderTokenFilterVariant ¶

type DictionaryDecompounderTokenFilterVariant interface {
	DictionaryDecompounderTokenFilterCaster() *DictionaryDecompounderTokenFilter
}

type DirectGenerator ¶

type DirectGenerator struct {
	// Field The field to fetch the candidate suggestions from.
	// Needs to be set globally or per suggestion.
	Field string `json:"field"`
	// MaxEdits The maximum edit distance candidate suggestions can have in order to be
	// considered as a suggestion.
	// Can only be `1` or `2`.
	MaxEdits *int `json:"max_edits,omitempty"`
	// MaxInspections A factor that is used to multiply with the shard_size in order to inspect
	// more candidate spelling corrections on the shard level.
	// Can improve accuracy at the cost of performance.
	MaxInspections *float32 `json:"max_inspections,omitempty"`
	// MaxTermFreq The maximum threshold in number of documents in which a suggest text token
	// can exist in order to be included.
	// This can be used to exclude high frequency terms — which are usually spelled
	// correctly — from being spellchecked.
	// Can be a relative percentage number (for example `0.4`) or an absolute number
	// to represent document frequencies.
	// If a value higher than 1 is specified, then fractional can not be specified.
	MaxTermFreq *float32 `json:"max_term_freq,omitempty"`
	// MinDocFreq The minimal threshold in number of documents a suggestion should appear in.
	// This can improve quality by only suggesting high frequency terms.
	// Can be specified as an absolute number or as a relative percentage of number
	// of documents.
	// If a value higher than 1 is specified, the number cannot be fractional.
	MinDocFreq *float32 `json:"min_doc_freq,omitempty"`
	// MinWordLength The minimum length a suggest text term must have in order to be included.
	MinWordLength *int `json:"min_word_length,omitempty"`
	// PostFilter A filter (analyzer) that is applied to each of the generated tokens before
	// they are passed to the actual phrase scorer.
	PostFilter *string `json:"post_filter,omitempty"`
	// PreFilter A filter (analyzer) that is applied to each of the tokens passed to this
	// candidate generator.
	// This filter is applied to the original token before candidates are generated.
	PreFilter *string `json:"pre_filter,omitempty"`
	// PrefixLength The number of minimal prefix characters that must match in order be a
	// candidate suggestions.
	// Increasing this number improves spellcheck performance.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Size The maximum corrections to be returned per suggest text token.
	Size *int `json:"size,omitempty"`
	// SuggestMode Controls what suggestions are included on the suggestions generated on each
	// shard.
	SuggestMode *suggestmode.SuggestMode `json:"suggest_mode,omitempty"`
}

DirectGenerator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L269-L332

func NewDirectGenerator ¶

func NewDirectGenerator() *DirectGenerator

NewDirectGenerator returns a DirectGenerator.

func (*DirectGenerator) DirectGeneratorCaster ¶

func (s *DirectGenerator) DirectGeneratorCaster() *DirectGenerator

func (*DirectGenerator) UnmarshalJSON ¶

func (s *DirectGenerator) UnmarshalJSON(data []byte) error

type DirectGeneratorVariant ¶

type DirectGeneratorVariant interface {
	DirectGeneratorCaster() *DirectGenerator
}

type DisMaxQuery ¶

type DisMaxQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Queries One or more query clauses.
	// Returned documents must match one or more of these queries.
	// If a document matches multiple queries, Elasticsearch uses the highest
	// relevance score.
	Queries    []Query `json:"queries"`
	QueryName_ *string `json:"_name,omitempty"`
	// TieBreaker Floating point number between 0 and 1.0 used to increase the relevance scores
	// of documents matching multiple query clauses.
	TieBreaker *Float64 `json:"tie_breaker,omitempty"`
}

DisMaxQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L88-L103

func NewDisMaxQuery ¶

func NewDisMaxQuery() *DisMaxQuery

NewDisMaxQuery returns a DisMaxQuery.

func (*DisMaxQuery) DisMaxQueryCaster ¶

func (s *DisMaxQuery) DisMaxQueryCaster() *DisMaxQuery

func (*DisMaxQuery) UnmarshalJSON ¶

func (s *DisMaxQuery) UnmarshalJSON(data []byte) error

type DisMaxQueryVariant ¶

type DisMaxQueryVariant interface {
	DisMaxQueryCaster() *DisMaxQuery
}

type Discovery ¶

type Discovery struct {
	ClusterApplierStats *ClusterAppliedStats `json:"cluster_applier_stats,omitempty"`
	// ClusterStateQueue Contains statistics for the cluster state queue of the node.
	ClusterStateQueue *ClusterStateQueue `json:"cluster_state_queue,omitempty"`
	// ClusterStateUpdate Contains low-level statistics about how long various activities took during
	// cluster state updates while the node was the elected master.
	// Omitted if the node is not master-eligible.
	// Every field whose name ends in `_time` within this object is also represented
	// as a raw number of milliseconds in a field whose name ends in `_time_millis`.
	// The human-readable fields with a `_time` suffix are only returned if
	// requested with the `?human=true` query parameter.
	ClusterStateUpdate map[string]ClusterStateUpdate `json:"cluster_state_update,omitempty"`
	// PublishedClusterStates Contains statistics for the published cluster states of the node.
	PublishedClusterStates  *PublishedClusterStates `json:"published_cluster_states,omitempty"`
	SerializedClusterStates *SerializedClusterState `json:"serialized_cluster_states,omitempty"`
}

Discovery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L203-L221

func NewDiscovery ¶

func NewDiscovery() *Discovery

NewDiscovery returns a Discovery.

type DiscoveryNodeCompact ¶

type DiscoveryNodeCompact struct {
	Attributes       map[string]string `json:"attributes"`
	EphemeralId      string            `json:"ephemeral_id"`
	Id               string            `json:"id"`
	Name             string            `json:"name"`
	TransportAddress string            `json:"transport_address"`
}

DiscoveryNodeCompact type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DiscoveryNode.ts#L39-L48

func NewDiscoveryNodeCompact ¶

func NewDiscoveryNodeCompact() *DiscoveryNodeCompact

NewDiscoveryNodeCompact returns a DiscoveryNodeCompact.

func (*DiscoveryNodeCompact) UnmarshalJSON ¶

func (s *DiscoveryNodeCompact) UnmarshalJSON(data []byte) error

type DiscoveryNodeContent ¶

type DiscoveryNodeContent struct {
	Attributes       map[string]string `json:"attributes"`
	EphemeralId      string            `json:"ephemeral_id"`
	ExternalId       string            `json:"external_id"`
	MaxIndexVersion  int               `json:"max_index_version"`
	MinIndexVersion  int               `json:"min_index_version"`
	Name             *string           `json:"name,omitempty"`
	Roles            []string          `json:"roles"`
	TransportAddress string            `json:"transport_address"`
	Version          string            `json:"version"`
}

DiscoveryNodeContent type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DiscoveryNode.ts#L27-L37

func NewDiscoveryNodeContent ¶

func NewDiscoveryNodeContent() *DiscoveryNodeContent

NewDiscoveryNodeContent returns a DiscoveryNodeContent.

func (*DiscoveryNodeContent) UnmarshalJSON ¶

func (s *DiscoveryNodeContent) UnmarshalJSON(data []byte) error

type DiskIndicator ¶

type DiskIndicator struct {
	Details   *DiskIndicatorDetails                       `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

DiskIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L125-L129

func NewDiskIndicator ¶

func NewDiskIndicator() *DiskIndicator

NewDiskIndicator returns a DiskIndicator.

func (*DiskIndicator) UnmarshalJSON ¶

func (s *DiskIndicator) UnmarshalJSON(data []byte) error

type DiskIndicatorDetails ¶

type DiskIndicatorDetails struct {
	IndicesWithReadonlyBlock     int64 `json:"indices_with_readonly_block"`
	NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"`
	NodesOverHighWatermark       int64 `json:"nodes_over_high_watermark"`
	NodesWithEnoughDiskSpace     int64 `json:"nodes_with_enough_disk_space"`
	NodesWithUnknownDiskStatus   int64 `json:"nodes_with_unknown_disk_status"`
}

DiskIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L130-L136

func NewDiskIndicatorDetails ¶

func NewDiskIndicatorDetails() *DiskIndicatorDetails

NewDiskIndicatorDetails returns a DiskIndicatorDetails.

func (*DiskIndicatorDetails) UnmarshalJSON ¶

func (s *DiskIndicatorDetails) UnmarshalJSON(data []byte) error

type DiskUsage ¶

type DiskUsage struct {
	FreeBytes       int64   `json:"free_bytes"`
	FreeDiskPercent Float64 `json:"free_disk_percent"`
	Path            string  `json:"path"`
	TotalBytes      int64   `json:"total_bytes"`
	UsedBytes       int64   `json:"used_bytes"`
	UsedDiskPercent Float64 `json:"used_disk_percent"`
}

DiskUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L63-L70

func NewDiskUsage ¶

func NewDiskUsage() *DiskUsage

NewDiskUsage returns a DiskUsage.

func (*DiskUsage) UnmarshalJSON ¶

func (s *DiskUsage) UnmarshalJSON(data []byte) error

type DissectProcessor ¶

type DissectProcessor struct {
	// AppendSeparator The character(s) that separate the appended fields.
	AppendSeparator *string `json:"append_separator,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to dissect.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Pattern The pattern to apply to the field.
	Pattern string `json:"pattern"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

DissectProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L805-L824

func NewDissectProcessor ¶

func NewDissectProcessor() *DissectProcessor

NewDissectProcessor returns a DissectProcessor.

func (*DissectProcessor) DissectProcessorCaster ¶

func (s *DissectProcessor) DissectProcessorCaster() *DissectProcessor

func (*DissectProcessor) UnmarshalJSON ¶

func (s *DissectProcessor) UnmarshalJSON(data []byte) error

type DissectProcessorVariant ¶

type DissectProcessorVariant interface {
	DissectProcessorCaster() *DissectProcessor
}

type DistanceFeatureQuery ¶

type DistanceFeatureQuery any

DistanceFeatureQuery holds the union for the following types:

UntypedDistanceFeatureQuery
GeoDistanceFeatureQuery
DateDistanceFeatureQuery

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L76-L85

type DistanceFeatureQueryVariant ¶

type DistanceFeatureQueryVariant interface {
	DistanceFeatureQueryCaster() *DistanceFeatureQuery
}

type DiversifiedSamplerAggregation ¶

type DiversifiedSamplerAggregation struct {
	// ExecutionHint The type of value used for de-duplication.
	ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"`
	// Field The field used to provide values used for de-duplication.
	Field *string `json:"field,omitempty"`
	// MaxDocsPerValue Limits how many documents are permitted per choice of de-duplicating value.
	MaxDocsPerValue *int    `json:"max_docs_per_value,omitempty"`
	Script          *Script `json:"script,omitempty"`
	// ShardSize Limits how many top-scoring documents are collected in the sample processed
	// on each shard.
	ShardSize *int `json:"shard_size,omitempty"`
}

DiversifiedSamplerAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L333-L357

func NewDiversifiedSamplerAggregation ¶

func NewDiversifiedSamplerAggregation() *DiversifiedSamplerAggregation

NewDiversifiedSamplerAggregation returns a DiversifiedSamplerAggregation.

func (*DiversifiedSamplerAggregation) DiversifiedSamplerAggregationCaster ¶

func (s *DiversifiedSamplerAggregation) DiversifiedSamplerAggregationCaster() *DiversifiedSamplerAggregation

func (*DiversifiedSamplerAggregation) UnmarshalJSON ¶

func (s *DiversifiedSamplerAggregation) UnmarshalJSON(data []byte) error

type DiversifiedSamplerAggregationVariant ¶

type DiversifiedSamplerAggregationVariant interface {
	DiversifiedSamplerAggregationCaster() *DiversifiedSamplerAggregation
}

type DocStats ¶

type DocStats struct {
	// Count Total number of non-deleted documents across all primary shards assigned to
	// selected nodes.
	// This number is based on documents in Lucene segments and may include
	// documents from nested fields.
	Count int64 `json:"count"`
	// Deleted Total number of deleted documents across all primary shards assigned to
	// selected nodes.
	// This number is based on documents in Lucene segments.
	// Elasticsearch reclaims the disk space of deleted Lucene documents when a
	// segment is merged.
	Deleted *int64 `json:"deleted,omitempty"`
	// TotalSize Human readable total_size_in_bytes
	TotalSize ByteSize `json:"total_size,omitempty"`
	// TotalSizeInBytes Returns the total size in bytes of all documents in this stats.
	// This value may be more reliable than store_stats.size_in_bytes in estimating
	// the index size.
	TotalSizeInBytes int64 `json:"total_size_in_bytes"`
}

DocStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L100-L121

func NewDocStats ¶

func NewDocStats() *DocStats

NewDocStats returns a DocStats.

func (*DocStats) UnmarshalJSON ¶

func (s *DocStats) UnmarshalJSON(data []byte) error

type Document ¶

type Document struct {
	// Id_ Unique identifier for the document.
	// This ID must be unique within the `_index`.
	Id_ *string `json:"_id,omitempty"`
	// Index_ Name of the index containing the document.
	Index_ *string `json:"_index,omitempty"`
	// Source_ JSON body for the document.
	Source_ json.RawMessage `json:"_source,omitempty"`
}

Document type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L69-L83

func NewDocument ¶

func NewDocument() *Document

NewDocument returns a Document.

func (*Document) DocumentCaster ¶

func (s *Document) DocumentCaster() *Document

func (*Document) UnmarshalJSON ¶

func (s *Document) UnmarshalJSON(data []byte) error

type DocumentRating ¶

type DocumentRating struct {
	// Id_ The document ID.
	Id_ string `json:"_id"`
	// Index_ The document’s index. For data streams, this should be the document’s backing
	// index.
	Index_ string `json:"_index"`
	// Rating The document’s relevance with regard to this search request.
	Rating int `json:"rating"`
}

DocumentRating type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L119-L126

func NewDocumentRating ¶

func NewDocumentRating() *DocumentRating

NewDocumentRating returns a DocumentRating.

func (*DocumentRating) DocumentRatingCaster ¶

func (s *DocumentRating) DocumentRatingCaster() *DocumentRating

func (*DocumentRating) UnmarshalJSON ¶

func (s *DocumentRating) UnmarshalJSON(data []byte) error

type DocumentRatingVariant ¶

type DocumentRatingVariant interface {
	DocumentRatingCaster() *DocumentRating
}

type DocumentSimulation ¶

type DocumentSimulation struct {
	DocumentSimulation map[string]string `json:"-"`
	// Id_ Unique identifier for the document. This ID must be unique within the
	// `_index`.
	Id_ string `json:"_id"`
	// Index_ Name of the index containing the document.
	Index_  string `json:"_index"`
	Ingest_ Ingest `json:"_ingest"`
	// Routing_ Value used to send the document to a specific primary shard.
	Routing_ *string `json:"_routing,omitempty"`
	// Source_ JSON body for the document.
	Source_      map[string]json.RawMessage `json:"_source"`
	VersionType_ *versiontype.VersionType   `json:"_version_type,omitempty"`
	Version_     StringifiedVersionNumber   `json:"_version,omitempty"`
}

DocumentSimulation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L85-L115

func NewDocumentSimulation ¶

func NewDocumentSimulation() *DocumentSimulation

NewDocumentSimulation returns a DocumentSimulation.

func (DocumentSimulation) MarshalJSON ¶

func (s DocumentSimulation) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DocumentSimulation) UnmarshalJSON ¶

func (s *DocumentSimulation) UnmarshalJSON(data []byte) error

type DocumentVariant ¶

type DocumentVariant interface {
	DocumentCaster() *Document
}

type DotExpanderProcessor ¶

type DotExpanderProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to expand into an object field.
	// If set to `*`, all top-level fields will be expanded.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Override Controls the behavior when there is already an existing nested object that
	// conflicts with the expanded field.
	// When `false`, the processor will merge conflicts by combining the old and the
	// new values into an array.
	// When `true`, the value from the expanded field will overwrite the existing
	// value.
	Override *bool `json:"override,omitempty"`
	// Path The field that contains the field to expand.
	// Only required if the field to expand is part another object field, because
	// the `field` option can only understand leaf fields.
	Path *string `json:"path,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

DotExpanderProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L826-L844

func NewDotExpanderProcessor ¶

func NewDotExpanderProcessor() *DotExpanderProcessor

NewDotExpanderProcessor returns a DotExpanderProcessor.

func (*DotExpanderProcessor) DotExpanderProcessorCaster ¶

func (s *DotExpanderProcessor) DotExpanderProcessorCaster() *DotExpanderProcessor

func (*DotExpanderProcessor) UnmarshalJSON ¶

func (s *DotExpanderProcessor) UnmarshalJSON(data []byte) error

type DotExpanderProcessorVariant ¶

type DotExpanderProcessorVariant interface {
	DotExpanderProcessorCaster() *DotExpanderProcessor
}

type DoubleNumberProperty ¶

type DoubleNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *Float64                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

DoubleNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L167-L170

func NewDoubleNumberProperty ¶

func NewDoubleNumberProperty() *DoubleNumberProperty

NewDoubleNumberProperty returns a DoubleNumberProperty.

func (*DoubleNumberProperty) DoubleNumberPropertyCaster ¶

func (s *DoubleNumberProperty) DoubleNumberPropertyCaster() *DoubleNumberProperty

func (DoubleNumberProperty) MarshalJSON ¶

func (s DoubleNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DoubleNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *DoubleNumberProperty) PropertyCaster() *Property

func (*DoubleNumberProperty) UnmarshalJSON ¶

func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error

type DoubleNumberPropertyVariant ¶

type DoubleNumberPropertyVariant interface {
	DoubleNumberPropertyCaster() *DoubleNumberProperty
}

type DoubleRangeProperty ¶

type DoubleRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

DoubleRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L34-L36

func NewDoubleRangeProperty ¶

func NewDoubleRangeProperty() *DoubleRangeProperty

NewDoubleRangeProperty returns a DoubleRangeProperty.

func (*DoubleRangeProperty) DoubleRangePropertyCaster ¶

func (s *DoubleRangeProperty) DoubleRangePropertyCaster() *DoubleRangeProperty

func (DoubleRangeProperty) MarshalJSON ¶

func (s DoubleRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DoubleRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *DoubleRangeProperty) PropertyCaster() *Property

func (*DoubleRangeProperty) UnmarshalJSON ¶

func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error

type DoubleRangePropertyVariant ¶

type DoubleRangePropertyVariant interface {
	DoubleRangePropertyCaster() *DoubleRangeProperty
}

type DoubleTermsAggregate ¶

type DoubleTermsAggregate struct {
	Buckets                 BucketsDoubleTermsBucket `json:"buckets"`
	DocCountErrorUpperBound *int64                   `json:"doc_count_error_upper_bound,omitempty"`
	Meta                    Metadata                 `json:"meta,omitempty"`
	SumOtherDocCount        *int64                   `json:"sum_other_doc_count,omitempty"`
}

DoubleTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L451-L456

func NewDoubleTermsAggregate ¶

func NewDoubleTermsAggregate() *DoubleTermsAggregate

NewDoubleTermsAggregate returns a DoubleTermsAggregate.

func (*DoubleTermsAggregate) UnmarshalJSON ¶

func (s *DoubleTermsAggregate) UnmarshalJSON(data []byte) error

type DoubleTermsBucket ¶

type DoubleTermsBucket struct {
	Aggregations            map[string]Aggregate `json:"-"`
	DocCount                int64                `json:"doc_count"`
	DocCountErrorUpperBound *int64               `json:"doc_count_error_upper_bound,omitempty"`
	Key                     Float64              `json:"key"`
	KeyAsString             *string              `json:"key_as_string,omitempty"`
}

DoubleTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L458-L461

func NewDoubleTermsBucket ¶

func NewDoubleTermsBucket() *DoubleTermsBucket

NewDoubleTermsBucket returns a DoubleTermsBucket.

func (DoubleTermsBucket) MarshalJSON ¶

func (s DoubleTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DoubleTermsBucket) UnmarshalJSON ¶

func (s *DoubleTermsBucket) UnmarshalJSON(data []byte) error

type DownsampleAction ¶

type DownsampleAction struct {
	FixedInterval string   `json:"fixed_interval"`
	WaitTimeout   Duration `json:"wait_timeout,omitempty"`
}

DownsampleAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L112-L115

func NewDownsampleAction ¶

func NewDownsampleAction() *DownsampleAction

NewDownsampleAction returns a DownsampleAction.

func (*DownsampleAction) DownsampleActionCaster ¶

func (s *DownsampleAction) DownsampleActionCaster() *DownsampleAction

func (*DownsampleAction) UnmarshalJSON ¶

func (s *DownsampleAction) UnmarshalJSON(data []byte) error

type DownsampleActionVariant ¶

type DownsampleActionVariant interface {
	DownsampleActionCaster() *DownsampleAction
}

type DownsampleConfig ¶

type DownsampleConfig struct {
	// FixedInterval The interval at which to aggregate the original time series index.
	FixedInterval string `json:"fixed_interval"`
}

DownsampleConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/Downsample.ts#L22-L27

func NewDownsampleConfig ¶

func NewDownsampleConfig() *DownsampleConfig

NewDownsampleConfig returns a DownsampleConfig.

func (*DownsampleConfig) DownsampleConfigCaster ¶

func (s *DownsampleConfig) DownsampleConfigCaster() *DownsampleConfig

func (*DownsampleConfig) UnmarshalJSON ¶

func (s *DownsampleConfig) UnmarshalJSON(data []byte) error

type DownsampleConfigVariant ¶

type DownsampleConfigVariant interface {
	DownsampleConfigCaster() *DownsampleConfig
}

type DownsamplingRound ¶

type DownsamplingRound struct {
	// After The duration since rollover when this downsampling round should execute
	After Duration `json:"after"`
	// Config The downsample configuration to execute.
	Config DownsampleConfig `json:"config"`
}

DownsamplingRound type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DownsamplingRound.ts#L23-L32

func NewDownsamplingRound ¶

func NewDownsamplingRound() *DownsamplingRound

NewDownsamplingRound returns a DownsamplingRound.

func (*DownsamplingRound) DownsamplingRoundCaster ¶

func (s *DownsamplingRound) DownsamplingRoundCaster() *DownsamplingRound

func (*DownsamplingRound) UnmarshalJSON ¶

func (s *DownsamplingRound) UnmarshalJSON(data []byte) error

type DownsamplingRoundVariant ¶

type DownsamplingRoundVariant interface {
	DownsamplingRoundCaster() *DownsamplingRound
}

type DropProcessor ¶

type DropProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

DropProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L846-L846

func NewDropProcessor ¶

func NewDropProcessor() *DropProcessor

NewDropProcessor returns a DropProcessor.

func (*DropProcessor) DropProcessorCaster ¶

func (s *DropProcessor) DropProcessorCaster() *DropProcessor

func (*DropProcessor) UnmarshalJSON ¶

func (s *DropProcessor) UnmarshalJSON(data []byte) error

type DropProcessorVariant ¶

type DropProcessorVariant interface {
	DropProcessorCaster() *DropProcessor
}

type DurationValueUnitMillisVariant ¶

type DurationValueUnitMillisVariant interface {
	DurationValueUnitMillisCaster() *DurationValueUnitMillis
}

type DurationVariant ¶

type DurationVariant interface {
	DurationCaster() *Duration
}

type DutchAnalyzer ¶

type DutchAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

DutchAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L145-L150

func NewDutchAnalyzer ¶

func NewDutchAnalyzer() *DutchAnalyzer

NewDutchAnalyzer returns a DutchAnalyzer.

func (*DutchAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *DutchAnalyzer) AnalyzerCaster() *Analyzer

func (*DutchAnalyzer) DutchAnalyzerCaster ¶

func (s *DutchAnalyzer) DutchAnalyzerCaster() *DutchAnalyzer

func (DutchAnalyzer) MarshalJSON ¶

func (s DutchAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DutchAnalyzer) UnmarshalJSON ¶

func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error

type DutchAnalyzerVariant ¶

type DutchAnalyzerVariant interface {
	DutchAnalyzerCaster() *DutchAnalyzer
}

type DutchStemTokenFilter ¶ added in v9.0.1

type DutchStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

DutchStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L559-L561

func NewDutchStemTokenFilter ¶ added in v9.0.1

func NewDutchStemTokenFilter() *DutchStemTokenFilter

NewDutchStemTokenFilter returns a DutchStemTokenFilter.

func (*DutchStemTokenFilter) DutchStemTokenFilterCaster ¶ added in v9.0.1

func (s *DutchStemTokenFilter) DutchStemTokenFilterCaster() *DutchStemTokenFilter

func (DutchStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s DutchStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DutchStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *DutchStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*DutchStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *DutchStemTokenFilter) UnmarshalJSON(data []byte) error

type DutchStemTokenFilterVariant ¶ added in v9.0.1

type DutchStemTokenFilterVariant interface {
	DutchStemTokenFilterCaster() *DutchStemTokenFilter
}

type DynamicProperty ¶

type DynamicProperty struct {
	Analyzer            *string                        `json:"analyzer,omitempty"`
	Boost               *Float64                       `json:"boost,omitempty"`
	Coerce              *bool                          `json:"coerce,omitempty"`
	CopyTo              []string                       `json:"copy_to,omitempty"`
	DocValues           *bool                          `json:"doc_values,omitempty"`
	Dynamic             *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EagerGlobalOrdinals *bool                          `json:"eager_global_ordinals,omitempty"`
	Enabled             *bool                          `json:"enabled,omitempty"`
	Fields              map[string]Property            `json:"fields,omitempty"`
	Format              *string                        `json:"format,omitempty"`
	IgnoreAbove         *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed     *bool                          `json:"ignore_malformed,omitempty"`
	Index               *bool                          `json:"index,omitempty"`
	IndexOptions        *indexoptions.IndexOptions     `json:"index_options,omitempty"`
	IndexPhrases        *bool                          `json:"index_phrases,omitempty"`
	IndexPrefixes       *TextIndexPrefixes             `json:"index_prefixes,omitempty"`
	Locale              *string                        `json:"locale,omitempty"`
	// Meta Metadata about the field.
	Meta                 map[string]string                                `json:"meta,omitempty"`
	Norms                *bool                                            `json:"norms,omitempty"`
	NullValue            FieldValue                                       `json:"null_value,omitempty"`
	OnScriptError        *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	PositionIncrementGap *int                                             `json:"position_increment_gap,omitempty"`
	PrecisionStep        *int                                             `json:"precision_step,omitempty"`
	Properties           map[string]Property                              `json:"properties,omitempty"`
	Script               *Script                                          `json:"script,omitempty"`
	SearchAnalyzer       *string                                          `json:"search_analyzer,omitempty"`
	SearchQuoteAnalyzer  *string                                          `json:"search_quote_analyzer,omitempty"`
	Store                *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep  *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TermVector           *termvectoroption.TermVectorOption               `json:"term_vector,omitempty"`
	TimeSeriesMetric     *timeseriesmetrictype.TimeSeriesMetricType       `json:"time_series_metric,omitempty"`
	Type                 string                                           `json:"type,omitempty"`
}

DynamicProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L353-L384

func NewDynamicProperty ¶

func NewDynamicProperty() *DynamicProperty

NewDynamicProperty returns a DynamicProperty.

func (*DynamicProperty) DynamicPropertyCaster ¶

func (s *DynamicProperty) DynamicPropertyCaster() *DynamicProperty

func (DynamicProperty) MarshalJSON ¶

func (s DynamicProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*DynamicProperty) PropertyCaster ¶ added in v9.0.1

func (s *DynamicProperty) PropertyCaster() *Property

func (*DynamicProperty) UnmarshalJSON ¶

func (s *DynamicProperty) UnmarshalJSON(data []byte) error

type DynamicPropertyVariant ¶

type DynamicPropertyVariant interface {
	DynamicPropertyCaster() *DynamicProperty
}

type DynamicTemplate ¶

type DynamicTemplate struct {
	AdditionalDynamicTemplateProperty map[string]json.RawMessage `json:"-"`
	Mapping                           Property                   `json:"mapping,omitempty"`
	Match                             []string                   `json:"match,omitempty"`
	MatchMappingType                  []string                   `json:"match_mapping_type,omitempty"`
	MatchPattern                      *matchtype.MatchType       `json:"match_pattern,omitempty"`
	PathMatch                         []string                   `json:"path_match,omitempty"`
	PathUnmatch                       []string                   `json:"path_unmatch,omitempty"`
	Runtime                           *RuntimeField              `json:"runtime,omitempty"`
	Unmatch                           []string                   `json:"unmatch,omitempty"`
	UnmatchMappingType                []string                   `json:"unmatch_mapping_type,omitempty"`
}

DynamicTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/dynamic-template.ts#L23-L43

func NewDynamicTemplate ¶

func NewDynamicTemplate() *DynamicTemplate

NewDynamicTemplate returns a DynamicTemplate.

func (*DynamicTemplate) DynamicTemplateCaster ¶

func (s *DynamicTemplate) DynamicTemplateCaster() *DynamicTemplate

func (DynamicTemplate) MarshalJSON ¶

func (s DynamicTemplate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*DynamicTemplate) UnmarshalJSON ¶

func (s *DynamicTemplate) UnmarshalJSON(data []byte) error

type DynamicTemplateVariant ¶

type DynamicTemplateVariant interface {
	DynamicTemplateCaster() *DynamicTemplate
}

type EdgeNGramTokenFilter ¶

type EdgeNGramTokenFilter struct {
	// MaxGram Maximum character length of a gram. For custom token filters, defaults to
	// `2`. For the built-in edge_ngram filter, defaults to `1`.
	MaxGram *int `json:"max_gram,omitempty"`
	// MinGram Minimum character length of a gram. Defaults to `1`.
	MinGram *int `json:"min_gram,omitempty"`
	// PreserveOriginal Emits original token when set to `true`. Defaults to `false`.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	// Side Indicates whether to truncate tokens from the `front` or `back`. Defaults to
	// `front`.
	Side    *edgengramside.EdgeNGramSide `json:"side,omitempty"`
	Type    string                       `json:"type,omitempty"`
	Version *string                      `json:"version,omitempty"`
}

EdgeNGramTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L97-L107

func NewEdgeNGramTokenFilter ¶

func NewEdgeNGramTokenFilter() *EdgeNGramTokenFilter

NewEdgeNGramTokenFilter returns a EdgeNGramTokenFilter.

func (*EdgeNGramTokenFilter) EdgeNGramTokenFilterCaster ¶

func (s *EdgeNGramTokenFilter) EdgeNGramTokenFilterCaster() *EdgeNGramTokenFilter

func (EdgeNGramTokenFilter) MarshalJSON ¶

func (s EdgeNGramTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*EdgeNGramTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *EdgeNGramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*EdgeNGramTokenFilter) UnmarshalJSON ¶

func (s *EdgeNGramTokenFilter) UnmarshalJSON(data []byte) error

type EdgeNGramTokenFilterVariant ¶

type EdgeNGramTokenFilterVariant interface {
	EdgeNGramTokenFilterCaster() *EdgeNGramTokenFilter
}

type EdgeNGramTokenizer ¶

type EdgeNGramTokenizer struct {
	CustomTokenChars *string               `json:"custom_token_chars,omitempty"`
	MaxGram          *int                  `json:"max_gram,omitempty"`
	MinGram          *int                  `json:"min_gram,omitempty"`
	TokenChars       []tokenchar.TokenChar `json:"token_chars,omitempty"`
	Type             string                `json:"type,omitempty"`
	Version          *string               `json:"version,omitempty"`
}

EdgeNGramTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L48-L58

func NewEdgeNGramTokenizer ¶

func NewEdgeNGramTokenizer() *EdgeNGramTokenizer

NewEdgeNGramTokenizer returns a EdgeNGramTokenizer.

func (*EdgeNGramTokenizer) EdgeNGramTokenizerCaster ¶

func (s *EdgeNGramTokenizer) EdgeNGramTokenizerCaster() *EdgeNGramTokenizer

func (EdgeNGramTokenizer) MarshalJSON ¶

func (s EdgeNGramTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*EdgeNGramTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *EdgeNGramTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*EdgeNGramTokenizer) UnmarshalJSON ¶

func (s *EdgeNGramTokenizer) UnmarshalJSON(data []byte) error

type EdgeNGramTokenizerVariant ¶

type EdgeNGramTokenizerVariant interface {
	EdgeNGramTokenizerCaster() *EdgeNGramTokenizer
}

type ElasticsearchError ¶

type ElasticsearchError struct {
	ErrorCause ErrorCause `json:"error"`
	Status     int        `json:"status"`
}

An ElasticsearchError represent the exception raised by the server and sent as json payloads.

func NewElasticsearchError ¶

func NewElasticsearchError() *ElasticsearchError

NewElasticsearchError returns a ElasticsearchError.

func (ElasticsearchError) As ¶

func (e ElasticsearchError) As(err interface{}) bool

As implements errors.As interface to allow type matching of ElasticsearchError.

func (ElasticsearchError) Error ¶

func (e ElasticsearchError) Error() string

Error implements error string serialization of the ElasticsearchError.

func (ElasticsearchError) Is ¶

func (e ElasticsearchError) Is(err error) bool

Is implements errors.Is interface to allow value comparison within ElasticsearchError. It checks for always present values only: Status & ErrorCause.Type.

func (*ElasticsearchError) UnmarshalJSON ¶ added in v9.0.1

func (e *ElasticsearchError) UnmarshalJSON(data []byte) error

type ElasticsearchServiceSettings ¶

type ElasticsearchServiceSettings struct {
	// AdaptiveAllocations Adaptive allocations configuration details.
	// If `enabled` is true, the number of allocations of the model is set based on
	// the current load the process gets.
	// When the load is high, a new model allocation is automatically created,
	// respecting the value of `max_number_of_allocations` if it's set.
	// When the load is low, a model allocation is automatically removed, respecting
	// the value of `min_number_of_allocations` if it's set.
	// If `enabled` is true, do not set the number of allocations manually.
	AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"`
	// DeploymentId The deployment identifier for a trained model deployment.
	// When `deployment_id` is used the `model_id` is optional.
	DeploymentId *string `json:"deployment_id,omitempty"`
	// ModelId The name of the model to use for the inference task.
	// It can be the ID of a built-in model (for example, `.multilingual-e5-small`
	// for E5) or a text embedding model that was uploaded by using the Eland
	// client.
	ModelId string `json:"model_id"`
	// NumAllocations The total number of allocations that are assigned to the model across machine
	// learning nodes.
	// Increasing this value generally increases the throughput.
	// If adaptive allocations are enabled, do not set this value because it's
	// automatically set.
	NumAllocations *int `json:"num_allocations,omitempty"`
	// NumThreads The number of threads used by each model allocation during inference.
	// This setting generally increases the speed per inference request.
	// The inference process is a compute-bound process; `threads_per_allocations`
	// must not exceed the number of available allocated processors per node.
	// The value must be a power of 2.
	// The maximum value is 32.
	NumThreads int `json:"num_threads"`
}

ElasticsearchServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1215-L1249

func NewElasticsearchServiceSettings ¶

func NewElasticsearchServiceSettings() *ElasticsearchServiceSettings

NewElasticsearchServiceSettings returns a ElasticsearchServiceSettings.

func (*ElasticsearchServiceSettings) ElasticsearchServiceSettingsCaster ¶

func (s *ElasticsearchServiceSettings) ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings

func (*ElasticsearchServiceSettings) UnmarshalJSON ¶

func (s *ElasticsearchServiceSettings) UnmarshalJSON(data []byte) error

type ElasticsearchServiceSettingsVariant ¶

type ElasticsearchServiceSettingsVariant interface {
	ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings
}

type ElasticsearchTaskSettings ¶

type ElasticsearchTaskSettings struct {
	// ReturnDocuments For a `rerank` task, return the document instead of only the index.
	ReturnDocuments *bool `json:"return_documents,omitempty"`
}

ElasticsearchTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1251-L1257

func NewElasticsearchTaskSettings ¶

func NewElasticsearchTaskSettings() *ElasticsearchTaskSettings

NewElasticsearchTaskSettings returns a ElasticsearchTaskSettings.

func (*ElasticsearchTaskSettings) ElasticsearchTaskSettingsCaster ¶

func (s *ElasticsearchTaskSettings) ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings

func (*ElasticsearchTaskSettings) UnmarshalJSON ¶

func (s *ElasticsearchTaskSettings) UnmarshalJSON(data []byte) error

type ElasticsearchTaskSettingsVariant ¶

type ElasticsearchTaskSettingsVariant interface {
	ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings
}

type ElasticsearchVersionInfo ¶

type ElasticsearchVersionInfo struct {
	// BuildDate The Elasticsearch Git commit's date.
	BuildDate DateTime `json:"build_date"`
	// BuildFlavor The build flavor. For example, `default`.
	BuildFlavor string `json:"build_flavor"`
	// BuildHash The Elasticsearch Git commit's SHA hash.
	BuildHash string `json:"build_hash"`
	// BuildSnapshot Indicates whether the Elasticsearch build was a snapshot.
	BuildSnapshot bool `json:"build_snapshot"`
	// BuildType The build type that corresponds to how Elasticsearch was installed.
	// For example, `docker`, `rpm`, or `tar`.
	BuildType string `json:"build_type"`
	// Int The Elasticsearch version number.
	//
	// ::: IMPORTANT: For Serverless deployments, this static value is always
	// `8.11.0` and is used solely for backward compatibility with legacy clients.
	//
	//	Serverless environments are versionless and automatically upgraded, so this
	//
	// value can be safely ignored.
	Int string `json:"number"`
	// LuceneVersion The version number of Elasticsearch's underlying Lucene software.
	LuceneVersion string `json:"lucene_version"`
	// MinimumIndexCompatibilityVersion The minimum index version with which the responding node can read from disk.
	MinimumIndexCompatibilityVersion string `json:"minimum_index_compatibility_version"`
	// MinimumWireCompatibilityVersion The minimum node version with which the responding node can communicate.
	// Also the minimum version from which you can perform a rolling upgrade.
	MinimumWireCompatibilityVersion string `json:"minimum_wire_compatibility_version"`
}

ElasticsearchVersionInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Base.ts#L76-L118

func NewElasticsearchVersionInfo ¶

func NewElasticsearchVersionInfo() *ElasticsearchVersionInfo

NewElasticsearchVersionInfo returns a ElasticsearchVersionInfo.

func (*ElasticsearchVersionInfo) UnmarshalJSON ¶

func (s *ElasticsearchVersionInfo) UnmarshalJSON(data []byte) error

type ElasticsearchVersionMinInfo ¶

type ElasticsearchVersionMinInfo struct {
	BuildFlavor                      string `json:"build_flavor"`
	Int                              string `json:"number"`
	MinimumIndexCompatibilityVersion string `json:"minimum_index_compatibility_version"`
	MinimumWireCompatibilityVersion  string `json:"minimum_wire_compatibility_version"`
}

ElasticsearchVersionMinInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Base.ts#L120-L128

func NewElasticsearchVersionMinInfo ¶

func NewElasticsearchVersionMinInfo() *ElasticsearchVersionMinInfo

NewElasticsearchVersionMinInfo returns a ElasticsearchVersionMinInfo.

func (*ElasticsearchVersionMinInfo) UnmarshalJSON ¶

func (s *ElasticsearchVersionMinInfo) UnmarshalJSON(data []byte) error

type ElisionTokenFilter ¶

type ElisionTokenFilter struct {
	// Articles List of elisions to remove.
	// To be removed, the elision must be at the beginning of a token and be
	// immediately followed by an apostrophe. Both the elision and apostrophe are
	// removed.
	// For custom `elision` filters, either this parameter or `articles_path` must
	// be specified.
	Articles []string `json:"articles,omitempty"`
	// ArticlesCase If `true`, elision matching is case insensitive. If `false`, elision matching
	// is case sensitive. Defaults to `false`.
	ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"`
	// ArticlesPath Path to a file that contains a list of elisions to remove.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each elision in the file must be separated by a line
	// break.
	// To be removed, the elision must be at the beginning of a token and be
	// immediately followed by an apostrophe. Both the elision and apostrophe are
	// removed.
	// For custom `elision` filters, either this parameter or `articles` must be
	// specified.
	ArticlesPath *string `json:"articles_path,omitempty"`
	Type         string  `json:"type,omitempty"`
	Version      *string `json:"version,omitempty"`
}

ElisionTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L245-L258

func NewElisionTokenFilter ¶

func NewElisionTokenFilter() *ElisionTokenFilter

NewElisionTokenFilter returns a ElisionTokenFilter.

func (*ElisionTokenFilter) ElisionTokenFilterCaster ¶

func (s *ElisionTokenFilter) ElisionTokenFilterCaster() *ElisionTokenFilter

func (ElisionTokenFilter) MarshalJSON ¶

func (s ElisionTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ElisionTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ElisionTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ElisionTokenFilter) UnmarshalJSON ¶

func (s *ElisionTokenFilter) UnmarshalJSON(data []byte) error

type ElisionTokenFilterVariant ¶

type ElisionTokenFilterVariant interface {
	ElisionTokenFilterCaster() *ElisionTokenFilter
}

type ElserServiceSettings ¶

type ElserServiceSettings struct {
	// AdaptiveAllocations Adaptive allocations configuration details.
	// If `enabled` is true, the number of allocations of the model is set based on
	// the current load the process gets.
	// When the load is high, a new model allocation is automatically created,
	// respecting the value of `max_number_of_allocations` if it's set.
	// When the load is low, a model allocation is automatically removed, respecting
	// the value of `min_number_of_allocations` if it's set.
	// If `enabled` is true, do not set the number of allocations manually.
	AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"`
	// NumAllocations The total number of allocations this model is assigned across machine
	// learning nodes.
	// Increasing this value generally increases the throughput.
	// If adaptive allocations is enabled, do not set this value because it's
	// automatically set.
	NumAllocations int `json:"num_allocations"`
	// NumThreads The number of threads used by each model allocation during inference.
	// Increasing this value generally increases the speed per inference request.
	// The inference process is a compute-bound process; `threads_per_allocations`
	// must not exceed the number of available allocated processors per node.
	// The value must be a power of 2.
	// The maximum value is 32.
	//
	// > info
	// > If you want to optimize your ELSER endpoint for ingest, set the number of
	// threads to 1. If you want to optimize your ELSER endpoint for search, set the
	// number of threads to greater than 1.
	NumThreads int `json:"num_threads"`
}

ElserServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1269-L1295

func NewElserServiceSettings ¶

func NewElserServiceSettings() *ElserServiceSettings

NewElserServiceSettings returns a ElserServiceSettings.

func (*ElserServiceSettings) ElserServiceSettingsCaster ¶

func (s *ElserServiceSettings) ElserServiceSettingsCaster() *ElserServiceSettings

func (*ElserServiceSettings) UnmarshalJSON ¶

func (s *ElserServiceSettings) UnmarshalJSON(data []byte) error

type ElserServiceSettingsVariant ¶

type ElserServiceSettingsVariant interface {
	ElserServiceSettingsCaster() *ElserServiceSettings
}

type Email ¶

type Email struct {
	Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`
	Bcc         []string                            `json:"bcc,omitempty"`
	Body        *EmailBody                          `json:"body,omitempty"`
	Cc          []string                            `json:"cc,omitempty"`
	From        *string                             `json:"from,omitempty"`
	Id          *string                             `json:"id,omitempty"`
	Priority    *emailpriority.EmailPriority        `json:"priority,omitempty"`
	ReplyTo     []string                            `json:"reply_to,omitempty"`
	SentDate    DateTime                            `json:"sent_date,omitempty"`
	Subject     string                              `json:"subject"`
	To          []string                            `json:"to"`
}

Email type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L238-L250

func NewEmail ¶

func NewEmail() *Email

NewEmail returns a Email.

func (*Email) UnmarshalJSON ¶

func (s *Email) UnmarshalJSON(data []byte) error

type EmailAction ¶

type EmailAction struct {
	Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"`
	Bcc         []string                            `json:"bcc,omitempty"`
	Body        *EmailBody                          `json:"body,omitempty"`
	Cc          []string                            `json:"cc,omitempty"`
	From        *string                             `json:"from,omitempty"`
	Id          *string                             `json:"id,omitempty"`
	Priority    *emailpriority.EmailPriority        `json:"priority,omitempty"`
	ReplyTo     []string                            `json:"reply_to,omitempty"`
	SentDate    DateTime                            `json:"sent_date,omitempty"`
	Subject     string                              `json:"subject"`
	To          []string                            `json:"to"`
}

EmailAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L252-L252

func NewEmailAction ¶

func NewEmailAction() *EmailAction

NewEmailAction returns a EmailAction.

func (*EmailAction) EmailActionCaster ¶

func (s *EmailAction) EmailActionCaster() *EmailAction

func (*EmailAction) UnmarshalJSON ¶

func (s *EmailAction) UnmarshalJSON(data []byte) error

type EmailActionVariant ¶

type EmailActionVariant interface {
	EmailActionCaster() *EmailAction
}

type EmailAttachmentContainer ¶

type EmailAttachmentContainer struct {
	AdditionalEmailAttachmentContainerProperty map[string]json.RawMessage `json:"-"`
	Data                                       *DataEmailAttachment       `json:"data,omitempty"`
	Http                                       *HttpEmailAttachment       `json:"http,omitempty"`
	Reporting                                  *ReportingEmailAttachment  `json:"reporting,omitempty"`
}

EmailAttachmentContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L211-L216

func NewEmailAttachmentContainer ¶

func NewEmailAttachmentContainer() *EmailAttachmentContainer

NewEmailAttachmentContainer returns a EmailAttachmentContainer.

func (*EmailAttachmentContainer) EmailAttachmentContainerCaster ¶

func (s *EmailAttachmentContainer) EmailAttachmentContainerCaster() *EmailAttachmentContainer

func (EmailAttachmentContainer) MarshalJSON ¶

func (s EmailAttachmentContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type EmailAttachmentContainerVariant ¶

type EmailAttachmentContainerVariant interface {
	EmailAttachmentContainerCaster() *EmailAttachmentContainer
}

type EmailBody ¶

type EmailBody struct {
	Html *string `json:"html,omitempty"`
	Text *string `json:"text,omitempty"`
}

EmailBody type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L192-L195

func NewEmailBody ¶

func NewEmailBody() *EmailBody

NewEmailBody returns a EmailBody.

func (*EmailBody) EmailBodyCaster ¶

func (s *EmailBody) EmailBodyCaster() *EmailBody

func (*EmailBody) UnmarshalJSON ¶

func (s *EmailBody) UnmarshalJSON(data []byte) error

type EmailBodyVariant ¶

type EmailBodyVariant interface {
	EmailBodyCaster() *EmailBody
}

type EmailResult ¶

type EmailResult struct {
	Account *string `json:"account,omitempty"`
	Message Email   `json:"message"`
	Reason  *string `json:"reason,omitempty"`
}

EmailResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L205-L209

func NewEmailResult ¶

func NewEmailResult() *EmailResult

NewEmailResult returns a EmailResult.

func (*EmailResult) UnmarshalJSON ¶

func (s *EmailResult) UnmarshalJSON(data []byte) error

type EmptyObject ¶

type EmptyObject struct {
}

EmptyObject type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L157-L158

func NewEmptyObject ¶

func NewEmptyObject() *EmptyObject

NewEmptyObject returns a EmptyObject.

func (*EmptyObject) EmptyObjectCaster ¶

func (s *EmptyObject) EmptyObjectCaster() *EmptyObject

type EmptyObjectVariant ¶

type EmptyObjectVariant interface {
	EmptyObjectCaster() *EmptyObject
}

type EnglishAnalyzer ¶

type EnglishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

EnglishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L152-L157

func NewEnglishAnalyzer ¶

func NewEnglishAnalyzer() *EnglishAnalyzer

NewEnglishAnalyzer returns a EnglishAnalyzer.

func (*EnglishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *EnglishAnalyzer) AnalyzerCaster() *Analyzer

func (*EnglishAnalyzer) EnglishAnalyzerCaster ¶

func (s *EnglishAnalyzer) EnglishAnalyzerCaster() *EnglishAnalyzer

func (EnglishAnalyzer) MarshalJSON ¶

func (s EnglishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*EnglishAnalyzer) UnmarshalJSON ¶

func (s *EnglishAnalyzer) UnmarshalJSON(data []byte) error

type EnglishAnalyzerVariant ¶

type EnglishAnalyzerVariant interface {
	EnglishAnalyzerCaster() *EnglishAnalyzer
}

type EnrichPolicy ¶

type EnrichPolicy struct {
	ElasticsearchVersion *string  `json:"elasticsearch_version,omitempty"`
	EnrichFields         []string `json:"enrich_fields"`
	Indices              []string `json:"indices"`
	MatchField           string   `json:"match_field"`
	Name                 *string  `json:"name,omitempty"`
	Query                *Query   `json:"query,omitempty"`
}

EnrichPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/enrich/_types/Policy.ts#L34-L41

func NewEnrichPolicy ¶

func NewEnrichPolicy() *EnrichPolicy

NewEnrichPolicy returns a EnrichPolicy.

func (*EnrichPolicy) EnrichPolicyCaster ¶

func (s *EnrichPolicy) EnrichPolicyCaster() *EnrichPolicy

func (*EnrichPolicy) UnmarshalJSON ¶

func (s *EnrichPolicy) UnmarshalJSON(data []byte) error

type EnrichPolicyVariant ¶

type EnrichPolicyVariant interface {
	EnrichPolicyCaster() *EnrichPolicy
}

type EnrichProcessor ¶

type EnrichProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field in the input document that matches the policies match_field used to
	// retrieve the enrichment data.
	// Supports template snippets.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// MaxMatches The maximum number of matched documents to include under the configured
	// target field.
	// The `target_field` will be turned into a json array if `max_matches` is
	// higher than 1, otherwise `target_field` will become a json object.
	// In order to avoid documents getting too large, the maximum allowed value is
	// 128.
	MaxMatches *int `json:"max_matches,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Override If processor will update fields with pre-existing non-null-valued field.
	// When set to `false`, such fields will not be touched.
	Override *bool `json:"override,omitempty"`
	// PolicyName The name of the enrich policy to use.
	PolicyName string `json:"policy_name"`
	// ShapeRelation A spatial relation operator used to match the geoshape of incoming documents
	// to documents in the enrich index.
	// This option is only used for `geo_match` enrich policy types.
	ShapeRelation *geoshaperelation.GeoShapeRelation `json:"shape_relation,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Field added to incoming documents to contain enrich data. This field contains
	// both the `match_field` and `enrich_fields` specified in the enrich policy.
	// Supports template snippets.
	TargetField string `json:"target_field"`
}

EnrichProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L848-L887

func NewEnrichProcessor ¶

func NewEnrichProcessor() *EnrichProcessor

NewEnrichProcessor returns a EnrichProcessor.

func (*EnrichProcessor) EnrichProcessorCaster ¶

func (s *EnrichProcessor) EnrichProcessorCaster() *EnrichProcessor

func (*EnrichProcessor) UnmarshalJSON ¶

func (s *EnrichProcessor) UnmarshalJSON(data []byte) error

type EnrichProcessorVariant ¶

type EnrichProcessorVariant interface {
	EnrichProcessorCaster() *EnrichProcessor
}

type Ensemble ¶

type Ensemble struct {
	AggregateOutput      *AggregateOutput `json:"aggregate_output,omitempty"`
	ClassificationLabels []string         `json:"classification_labels,omitempty"`
	FeatureNames         []string         `json:"feature_names,omitempty"`
	TargetType           *string          `json:"target_type,omitempty"`
	TrainedModels        []TrainedModel   `json:"trained_models"`
}

Ensemble type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L93-L99

func NewEnsemble ¶

func NewEnsemble() *Ensemble

NewEnsemble returns a Ensemble.

func (*Ensemble) EnsembleCaster ¶

func (s *Ensemble) EnsembleCaster() *Ensemble

func (*Ensemble) UnmarshalJSON ¶

func (s *Ensemble) UnmarshalJSON(data []byte) error

type EnsembleVariant ¶

type EnsembleVariant interface {
	EnsembleCaster() *Ensemble
}

type EpochTimeUnitMillisVariant ¶

type EpochTimeUnitMillisVariant interface {
	EpochTimeUnitMillisCaster() *EpochTimeUnitMillis
}

type EpochTimeUnitSecondsVariant ¶

type EpochTimeUnitSecondsVariant interface {
	EpochTimeUnitSecondsCaster() *EpochTimeUnitSeconds
}

type Eql ¶

type Eql struct {
	Available bool                  `json:"available"`
	Enabled   bool                  `json:"enabled"`
	Features  EqlFeatures           `json:"features"`
	Queries   map[string]XpackQuery `json:"queries"`
}

Eql type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L361-L364

func NewEql ¶

func NewEql() *Eql

NewEql returns a Eql.

func (*Eql) UnmarshalJSON ¶

func (s *Eql) UnmarshalJSON(data []byte) error

type EqlFeatures ¶

type EqlFeatures struct {
	Event     uint                 `json:"event"`
	Join      uint                 `json:"join"`
	Joins     EqlFeaturesJoin      `json:"joins"`
	Keys      EqlFeaturesKeys      `json:"keys"`
	Pipes     EqlFeaturesPipes     `json:"pipes"`
	Sequence  uint                 `json:"sequence"`
	Sequences EqlFeaturesSequences `json:"sequences"`
}

EqlFeatures type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L96-L104

func NewEqlFeatures ¶

func NewEqlFeatures() *EqlFeatures

NewEqlFeatures returns a EqlFeatures.

type EqlFeaturesJoin ¶

type EqlFeaturesJoin struct {
	JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"`
	JoinQueriesFour       uint `json:"join_queries_four"`
	JoinQueriesThree      uint `json:"join_queries_three"`
	JoinQueriesTwo        uint `json:"join_queries_two"`
	JoinUntil             uint `json:"join_until"`
}

EqlFeaturesJoin type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L106-L112

func NewEqlFeaturesJoin ¶

func NewEqlFeaturesJoin() *EqlFeaturesJoin

NewEqlFeaturesJoin returns a EqlFeaturesJoin.

type EqlFeaturesKeys ¶

type EqlFeaturesKeys struct {
	JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"`
	JoinKeysFour       uint `json:"join_keys_four"`
	JoinKeysOne        uint `json:"join_keys_one"`
	JoinKeysThree      uint `json:"join_keys_three"`
	JoinKeysTwo        uint `json:"join_keys_two"`
}

EqlFeaturesKeys type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L114-L120

func NewEqlFeaturesKeys ¶

func NewEqlFeaturesKeys() *EqlFeaturesKeys

NewEqlFeaturesKeys returns a EqlFeaturesKeys.

type EqlFeaturesPipes ¶

type EqlFeaturesPipes struct {
	PipeHead uint `json:"pipe_head"`
	PipeTail uint `json:"pipe_tail"`
}

EqlFeaturesPipes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L122-L125

func NewEqlFeaturesPipes ¶

func NewEqlFeaturesPipes() *EqlFeaturesPipes

NewEqlFeaturesPipes returns a EqlFeaturesPipes.

type EqlFeaturesSequences ¶

type EqlFeaturesSequences struct {
	SequenceMaxspan           uint `json:"sequence_maxspan"`
	SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"`
	SequenceQueriesFour       uint `json:"sequence_queries_four"`
	SequenceQueriesThree      uint `json:"sequence_queries_three"`
	SequenceQueriesTwo        uint `json:"sequence_queries_two"`
	SequenceUntil             uint `json:"sequence_until"`
}

EqlFeaturesSequences type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L127-L134

func NewEqlFeaturesSequences ¶

func NewEqlFeaturesSequences() *EqlFeaturesSequences

NewEqlFeaturesSequences returns a EqlFeaturesSequences.

type EqlHits ¶

type EqlHits struct {
	// Events Contains events matching the query. Each object represents a matching event.
	Events []HitsEvent `json:"events,omitempty"`
	// Sequences Contains event sequences matching the query. Each object represents a
	// matching sequence. This parameter is only returned for EQL queries containing
	// a sequence.
	Sequences []HitsSequence `json:"sequences,omitempty"`
	// Total Metadata about the number of matching events or sequences.
	Total *TotalHits `json:"total,omitempty"`
}

EqlHits type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/eql/_types/EqlHits.ts#L25-L39

func NewEqlHits ¶

func NewEqlHits() *EqlHits

NewEqlHits returns a EqlHits.

type ErrorCause ¶

type ErrorCause struct {
	CausedBy *ErrorCause                `json:"caused_by,omitempty"`
	Metadata map[string]json.RawMessage `json:"-"`
	// Reason A human-readable explanation of the error, in English.
	Reason    *string      `json:"reason,omitempty"`
	RootCause []ErrorCause `json:"root_cause,omitempty"`
	// StackTrace The server stack trace. Present only if the `error_trace=true` parameter was
	// sent with the request.
	StackTrace *string      `json:"stack_trace,omitempty"`
	Suppressed []ErrorCause `json:"suppressed,omitempty"`
	// Type The type of error
	Type string `json:"type"`
}

ErrorCause type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Errors.ts#L25-L50

func NewErrorCause ¶

func NewErrorCause() *ErrorCause

NewErrorCause returns a ErrorCause.

func (ErrorCause) MarshalJSON ¶

func (s ErrorCause) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ErrorCause) UnmarshalJSON ¶

func (s *ErrorCause) UnmarshalJSON(data []byte) error

type ErrorResponseBase ¶

type ErrorResponseBase struct {
	Error  ErrorCause `json:"error"`
	Status int        `json:"status"`
}

ErrorResponseBase type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Base.ts#L130-L139

func NewErrorResponseBase ¶

func NewErrorResponseBase() *ErrorResponseBase

NewErrorResponseBase returns a ErrorResponseBase.

func (*ErrorResponseBase) UnmarshalJSON ¶

func (s *ErrorResponseBase) UnmarshalJSON(data []byte) error

type EsqlClusterDetails ¶

type EsqlClusterDetails struct {
	Failures []EsqlShardFailure                  `json:"failures,omitempty"`
	Indices  string                              `json:"indices"`
	Shards_  *EsqlShardInfo                      `json:"_shards,omitempty"`
	Status   esqlclusterstatus.EsqlClusterStatus `json:"status"`
	Took     *int64                              `json:"took,omitempty"`
}

EsqlClusterDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/EsqlResult.ts#L75-L81

func NewEsqlClusterDetails ¶

func NewEsqlClusterDetails() *EsqlClusterDetails

NewEsqlClusterDetails returns a EsqlClusterDetails.

func (*EsqlClusterDetails) UnmarshalJSON ¶

func (s *EsqlClusterDetails) UnmarshalJSON(data []byte) error

type EsqlClusterInfo ¶

type EsqlClusterInfo struct {
	Details    map[string]EsqlClusterDetails `json:"details"`
	Failed     int                           `json:"failed"`
	Partial    int                           `json:"partial"`
	Running    int                           `json:"running"`
	Skipped    int                           `json:"skipped"`
	Successful int                           `json:"successful"`
	Total      int                           `json:"total"`
}

EsqlClusterInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/EsqlResult.ts#L65-L73

func NewEsqlClusterInfo ¶

func NewEsqlClusterInfo() *EsqlClusterInfo

NewEsqlClusterInfo returns a EsqlClusterInfo.

func (*EsqlClusterInfo) UnmarshalJSON ¶

func (s *EsqlClusterInfo) UnmarshalJSON(data []byte) error

type EsqlColumnInfo ¶

type EsqlColumnInfo struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

EsqlColumnInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/EsqlResult.ts#L60-L63

func NewEsqlColumnInfo ¶

func NewEsqlColumnInfo() *EsqlColumnInfo

NewEsqlColumnInfo returns a EsqlColumnInfo.

func (*EsqlColumnInfo) UnmarshalJSON ¶

func (s *EsqlColumnInfo) UnmarshalJSON(data []byte) error

type EsqlShardFailure ¶

type EsqlShardFailure struct {
	Index  *string    `json:"index,omitempty"`
	Node   *string    `json:"node,omitempty"`
	Reason ErrorCause `json:"reason"`
	Shard  int        `json:"shard"`
}

EsqlShardFailure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/EsqlResult.ts#L98-L103

func NewEsqlShardFailure ¶

func NewEsqlShardFailure() *EsqlShardFailure

NewEsqlShardFailure returns a EsqlShardFailure.

func (*EsqlShardFailure) UnmarshalJSON ¶

func (s *EsqlShardFailure) UnmarshalJSON(data []byte) error

type EsqlShardInfo ¶

type EsqlShardInfo struct {
	Failed     *int `json:"failed,omitempty"`
	Skipped    *int `json:"skipped,omitempty"`
	Successful *int `json:"successful,omitempty"`
	Total      int  `json:"total"`
}

EsqlShardInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/EsqlResult.ts#L91-L96

func NewEsqlShardInfo ¶

func NewEsqlShardInfo() *EsqlShardInfo

NewEsqlShardInfo returns a EsqlShardInfo.

func (*EsqlShardInfo) UnmarshalJSON ¶

func (s *EsqlShardInfo) UnmarshalJSON(data []byte) error

type EstonianAnalyzer ¶

type EstonianAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

EstonianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L159-L163

func NewEstonianAnalyzer ¶

func NewEstonianAnalyzer() *EstonianAnalyzer

NewEstonianAnalyzer returns a EstonianAnalyzer.

func (*EstonianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *EstonianAnalyzer) AnalyzerCaster() *Analyzer

func (*EstonianAnalyzer) EstonianAnalyzerCaster ¶

func (s *EstonianAnalyzer) EstonianAnalyzerCaster() *EstonianAnalyzer

func (EstonianAnalyzer) MarshalJSON ¶

func (s EstonianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*EstonianAnalyzer) UnmarshalJSON ¶

func (s *EstonianAnalyzer) UnmarshalJSON(data []byte) error

type EstonianAnalyzerVariant ¶

type EstonianAnalyzerVariant interface {
	EstonianAnalyzerCaster() *EstonianAnalyzer
}

type EventDataStream ¶

type EventDataStream struct {
	Name string `json:"name"`
}

EventDataStream type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31

func NewEventDataStream ¶

func NewEventDataStream() *EventDataStream

NewEventDataStream returns a EventDataStream.

func (*EventDataStream) UnmarshalJSON ¶

func (s *EventDataStream) UnmarshalJSON(data []byte) error

type EwmaModelSettings ¶

type EwmaModelSettings struct {
	Alpha *float32 `json:"alpha,omitempty"`
}

EwmaModelSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L293-L295

func NewEwmaModelSettings ¶

func NewEwmaModelSettings() *EwmaModelSettings

NewEwmaModelSettings returns a EwmaModelSettings.

func (*EwmaModelSettings) EwmaModelSettingsCaster ¶

func (s *EwmaModelSettings) EwmaModelSettingsCaster() *EwmaModelSettings

func (*EwmaModelSettings) UnmarshalJSON ¶

func (s *EwmaModelSettings) UnmarshalJSON(data []byte) error

type EwmaModelSettingsVariant ¶

type EwmaModelSettingsVariant interface {
	EwmaModelSettingsCaster() *EwmaModelSettings
}

type EwmaMovingAverageAggregation ¶

type EwmaMovingAverageAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	Minimize  *bool                `json:"minimize,omitempty"`
	Model     string               `json:"model,omitempty"`
	Predict   *int                 `json:"predict,omitempty"`
	Settings  EwmaModelSettings    `json:"settings"`
	Window    *int                 `json:"window,omitempty"`
}

EwmaMovingAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L278-L281

func NewEwmaMovingAverageAggregation ¶

func NewEwmaMovingAverageAggregation() *EwmaMovingAverageAggregation

NewEwmaMovingAverageAggregation returns a EwmaMovingAverageAggregation.

func (*EwmaMovingAverageAggregation) EwmaMovingAverageAggregationCaster ¶

func (s *EwmaMovingAverageAggregation) EwmaMovingAverageAggregationCaster() *EwmaMovingAverageAggregation

func (EwmaMovingAverageAggregation) MarshalJSON ¶

func (s EwmaMovingAverageAggregation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*EwmaMovingAverageAggregation) MovingAverageAggregationCaster ¶ added in v9.0.1

func (s *EwmaMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation

func (*EwmaMovingAverageAggregation) UnmarshalJSON ¶

func (s *EwmaMovingAverageAggregation) UnmarshalJSON(data []byte) error

type EwmaMovingAverageAggregationVariant ¶

type EwmaMovingAverageAggregationVariant interface {
	EwmaMovingAverageAggregationCaster() *EwmaMovingAverageAggregation
}

type ExecuteEnrichPolicyStatus ¶

type ExecuteEnrichPolicyStatus struct {
	Phase enrichpolicyphase.EnrichPolicyPhase `json:"phase"`
	Step  *string                             `json:"step,omitempty"`
}

ExecuteEnrichPolicyStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/enrich/execute_policy/types.ts#L20-L23

func NewExecuteEnrichPolicyStatus ¶

func NewExecuteEnrichPolicyStatus() *ExecuteEnrichPolicyStatus

NewExecuteEnrichPolicyStatus returns a ExecuteEnrichPolicyStatus.

func (*ExecuteEnrichPolicyStatus) UnmarshalJSON ¶

func (s *ExecuteEnrichPolicyStatus) UnmarshalJSON(data []byte) error

type ExecutingPolicy ¶

type ExecutingPolicy struct {
	Name string   `json:"name"`
	Task TaskInfo `json:"task"`
}

ExecutingPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/enrich/stats/types.ts#L25-L28

func NewExecutingPolicy ¶

func NewExecutingPolicy() *ExecutingPolicy

NewExecutingPolicy returns a ExecutingPolicy.

func (*ExecutingPolicy) UnmarshalJSON ¶

func (s *ExecutingPolicy) UnmarshalJSON(data []byte) error

type ExecutionResult ¶

type ExecutionResult struct {
	Actions           []ExecutionResultAction  `json:"actions"`
	Condition         ExecutionResultCondition `json:"condition"`
	ExecutionDuration int64                    `json:"execution_duration"`
	ExecutionTime     DateTime                 `json:"execution_time"`
	Input             ExecutionResultInput     `json:"input"`
}

ExecutionResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Execution.ts#L60-L66

func NewExecutionResult ¶

func NewExecutionResult() *ExecutionResult

NewExecutionResult returns a ExecutionResult.

func (*ExecutionResult) UnmarshalJSON ¶

func (s *ExecutionResult) UnmarshalJSON(data []byte) error

type ExecutionResultAction ¶

type ExecutionResultAction struct {
	Email     *EmailResult                            `json:"email,omitempty"`
	Error     *ErrorCause                             `json:"error,omitempty"`
	Id        string                                  `json:"id"`
	Index     *IndexResult                            `json:"index,omitempty"`
	Logging   *LoggingResult                          `json:"logging,omitempty"`
	Pagerduty *PagerDutyResult                        `json:"pagerduty,omitempty"`
	Reason    *string                                 `json:"reason,omitempty"`
	Slack     *SlackResult                            `json:"slack,omitempty"`
	Status    actionstatusoptions.ActionStatusOptions `json:"status"`
	Type      actiontype.ActionType                   `json:"type"`
	Webhook   *WebhookResult                          `json:"webhook,omitempty"`
}

ExecutionResultAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Execution.ts#L74-L86

func NewExecutionResultAction ¶

func NewExecutionResultAction() *ExecutionResultAction

NewExecutionResultAction returns a ExecutionResultAction.

func (*ExecutionResultAction) UnmarshalJSON ¶

func (s *ExecutionResultAction) UnmarshalJSON(data []byte) error

type ExecutionResultCondition ¶

type ExecutionResultCondition struct {
	Met    bool                                    `json:"met"`
	Status actionstatusoptions.ActionStatusOptions `json:"status"`
	Type   conditiontype.ConditionType             `json:"type"`
}

ExecutionResultCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Execution.ts#L68-L72

func NewExecutionResultCondition ¶

func NewExecutionResultCondition() *ExecutionResultCondition

NewExecutionResultCondition returns a ExecutionResultCondition.

func (*ExecutionResultCondition) UnmarshalJSON ¶

func (s *ExecutionResultCondition) UnmarshalJSON(data []byte) error

type ExecutionResultInput ¶

type ExecutionResultInput struct {
	Payload map[string]json.RawMessage              `json:"payload"`
	Status  actionstatusoptions.ActionStatusOptions `json:"status"`
	Type    inputtype.InputType                     `json:"type"`
}

ExecutionResultInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Execution.ts#L88-L92

func NewExecutionResultInput ¶

func NewExecutionResultInput() *ExecutionResultInput

NewExecutionResultInput returns a ExecutionResultInput.

type ExecutionState ¶

type ExecutionState struct {
	Reason     *string  `json:"reason,omitempty"`
	Successful bool     `json:"successful"`
	Timestamp  DateTime `json:"timestamp"`
}

ExecutionState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L114-L118

func NewExecutionState ¶

func NewExecutionState() *ExecutionState

NewExecutionState returns a ExecutionState.

func (*ExecutionState) ExecutionStateCaster ¶

func (s *ExecutionState) ExecutionStateCaster() *ExecutionState

func (*ExecutionState) UnmarshalJSON ¶

func (s *ExecutionState) UnmarshalJSON(data []byte) error

type ExecutionStateVariant ¶

type ExecutionStateVariant interface {
	ExecutionStateCaster() *ExecutionState
}

type ExecutionThreadPool ¶

type ExecutionThreadPool struct {
	// MaxSize The largest size of the execution thread pool, which indicates the largest
	// number of concurrent running watches.
	MaxSize int64 `json:"max_size"`
	// QueueSize The number of watches that were triggered and are currently queued.
	QueueSize int64 `json:"queue_size"`
}

ExecutionThreadPool type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Execution.ts#L94-L103

func NewExecutionThreadPool ¶

func NewExecutionThreadPool() *ExecutionThreadPool

NewExecutionThreadPool returns a ExecutionThreadPool.

func (*ExecutionThreadPool) UnmarshalJSON ¶

func (s *ExecutionThreadPool) UnmarshalJSON(data []byte) error

type ExistsQuery ¶

type ExistsQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field Name of the field you wish to search.
	Field      string  `json:"field"`
	QueryName_ *string `json:"_name,omitempty"`
}

ExistsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L38-L46

func NewExistsQuery ¶

func NewExistsQuery() *ExistsQuery

NewExistsQuery returns a ExistsQuery.

func (*ExistsQuery) ExistsQueryCaster ¶

func (s *ExistsQuery) ExistsQueryCaster() *ExistsQuery

func (*ExistsQuery) UnmarshalJSON ¶

func (s *ExistsQuery) UnmarshalJSON(data []byte) error

type ExistsQueryVariant ¶

type ExistsQueryVariant interface {
	ExistsQueryCaster() *ExistsQuery
}

type ExpandWildcardsVariant ¶

type ExpandWildcardsVariant interface {
	ExpandWildcardsCaster() *ExpandWildcards
}

type ExplainAnalyzeToken ¶

type ExplainAnalyzeToken struct {
	Bytes               string                     `json:"bytes"`
	EndOffset           int64                      `json:"end_offset"`
	ExplainAnalyzeToken map[string]json.RawMessage `json:"-"`
	Keyword             *bool                      `json:"keyword,omitempty"`
	Position            int64                      `json:"position"`
	PositionLength      int64                      `json:"positionLength"`
	StartOffset         int64                      `json:"start_offset"`
	TermFrequency       int64                      `json:"termFrequency"`
	Token               string                     `json:"token"`
	Type                string                     `json:"type"`
}

ExplainAnalyzeToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L52-L67

func NewExplainAnalyzeToken ¶

func NewExplainAnalyzeToken() *ExplainAnalyzeToken

NewExplainAnalyzeToken returns a ExplainAnalyzeToken.

func (ExplainAnalyzeToken) MarshalJSON ¶

func (s ExplainAnalyzeToken) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ExplainAnalyzeToken) UnmarshalJSON ¶

func (s *ExplainAnalyzeToken) UnmarshalJSON(data []byte) error

type Explanation ¶

type Explanation struct {
	Description string              `json:"description"`
	Details     []ExplanationDetail `json:"details"`
	Value       float32             `json:"value"`
}

Explanation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/explain/types.ts#L22-L26

func NewExplanation ¶

func NewExplanation() *Explanation

NewExplanation returns a Explanation.

func (*Explanation) UnmarshalJSON ¶

func (s *Explanation) UnmarshalJSON(data []byte) error

type ExplanationDetail ¶

type ExplanationDetail struct {
	Description string              `json:"description"`
	Details     []ExplanationDetail `json:"details,omitempty"`
	Value       float32             `json:"value"`
}

ExplanationDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/explain/types.ts#L28-L32

func NewExplanationDetail ¶

func NewExplanationDetail() *ExplanationDetail

NewExplanationDetail returns a ExplanationDetail.

func (*ExplanationDetail) UnmarshalJSON ¶

func (s *ExplanationDetail) UnmarshalJSON(data []byte) error

type ExploreControls ¶

type ExploreControls struct {
	// SampleDiversity To avoid the top-matching documents sample being dominated by a single source
	// of results, it is sometimes necessary to request diversity in the sample.
	// You can do this by selecting a single-value field and setting a maximum
	// number of documents per value for that field.
	SampleDiversity *SampleDiversity `json:"sample_diversity,omitempty"`
	// SampleSize Each hop considers a sample of the best-matching documents on each shard.
	// Using samples improves the speed of execution and keeps exploration focused
	// on meaningfully-connected terms.
	// Very small values (less than 50) might not provide sufficient
	// weight-of-evidence to identify significant connections between terms.
	// Very large sample sizes can dilute the quality of the results and increase
	// execution times.
	SampleSize *int `json:"sample_size,omitempty"`
	// Timeout The length of time in milliseconds after which exploration will be halted and
	// the results gathered so far are returned.
	// This timeout is honored on a best-effort basis.
	// Execution might overrun this timeout if, for example, a long pause is
	// encountered while FieldData is loaded for a field.
	Timeout Duration `json:"timeout,omitempty"`
	// UseSignificance Filters associated terms so only those that are significantly associated with
	// your query are included.
	UseSignificance bool `json:"use_significance"`
}

ExploreControls type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/ExploreControls.ts#L24-L49

func NewExploreControls ¶

func NewExploreControls() *ExploreControls

NewExploreControls returns a ExploreControls.

func (*ExploreControls) ExploreControlsCaster ¶

func (s *ExploreControls) ExploreControlsCaster() *ExploreControls

func (*ExploreControls) UnmarshalJSON ¶

func (s *ExploreControls) UnmarshalJSON(data []byte) error

type ExploreControlsVariant ¶

type ExploreControlsVariant interface {
	ExploreControlsCaster() *ExploreControls
}

type ExponentialAverageCalculationContext ¶

type ExponentialAverageCalculationContext struct {
	IncrementalMetricValueMs     Float64 `json:"incremental_metric_value_ms"`
	LatestTimestamp              *int64  `json:"latest_timestamp,omitempty"`
	PreviousExponentialAverageMs Float64 `json:"previous_exponential_average_ms,omitempty"`
}

ExponentialAverageCalculationContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L204-L208

func NewExponentialAverageCalculationContext ¶

func NewExponentialAverageCalculationContext() *ExponentialAverageCalculationContext

NewExponentialAverageCalculationContext returns a ExponentialAverageCalculationContext.

func (*ExponentialAverageCalculationContext) UnmarshalJSON ¶

func (s *ExponentialAverageCalculationContext) UnmarshalJSON(data []byte) error

type ExtendedBoundsFieldDateMath ¶

type ExtendedBoundsFieldDateMath struct {
	// Max Maximum value for the bound.
	Max FieldDateMath `json:"max,omitempty"`
	// Min Minimum value for the bound.
	Min FieldDateMath `json:"min,omitempty"`
}

ExtendedBoundsFieldDateMath type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L508-L517

func NewExtendedBoundsFieldDateMath ¶

func NewExtendedBoundsFieldDateMath() *ExtendedBoundsFieldDateMath

NewExtendedBoundsFieldDateMath returns a ExtendedBoundsFieldDateMath.

func (*ExtendedBoundsFieldDateMath) ExtendedBoundsFieldDateMathCaster ¶

func (s *ExtendedBoundsFieldDateMath) ExtendedBoundsFieldDateMathCaster() *ExtendedBoundsFieldDateMath

func (*ExtendedBoundsFieldDateMath) UnmarshalJSON ¶

func (s *ExtendedBoundsFieldDateMath) UnmarshalJSON(data []byte) error

type ExtendedBoundsFieldDateMathVariant ¶

type ExtendedBoundsFieldDateMathVariant interface {
	ExtendedBoundsFieldDateMathCaster() *ExtendedBoundsFieldDateMath
}

type ExtendedBoundsdouble ¶

type ExtendedBoundsdouble struct {
	// Max Maximum value for the bound.
	Max *Float64 `json:"max,omitempty"`
	// Min Minimum value for the bound.
	Min *Float64 `json:"min,omitempty"`
}

ExtendedBoundsdouble type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L508-L517

func NewExtendedBoundsdouble ¶

func NewExtendedBoundsdouble() *ExtendedBoundsdouble

NewExtendedBoundsdouble returns a ExtendedBoundsdouble.

func (*ExtendedBoundsdouble) ExtendedBoundsdoubleCaster ¶

func (s *ExtendedBoundsdouble) ExtendedBoundsdoubleCaster() *ExtendedBoundsdouble

func (*ExtendedBoundsdouble) UnmarshalJSON ¶

func (s *ExtendedBoundsdouble) UnmarshalJSON(data []byte) error

type ExtendedBoundsdoubleVariant ¶

type ExtendedBoundsdoubleVariant interface {
	ExtendedBoundsdoubleCaster() *ExtendedBoundsdouble
}

type ExtendedMemoryStats ¶

type ExtendedMemoryStats struct {
	// AdjustedTotalInBytes If the amount of physical memory has been overridden using the
	// `es`.`total_memory_bytes` system property then this reports the overridden
	// value in bytes.
	// Otherwise it reports the same value as `total_in_bytes`.
	AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`
	// FreeInBytes Amount of free physical memory in bytes.
	FreeInBytes *int64 `json:"free_in_bytes,omitempty"`
	// FreePercent Percentage of free memory.
	FreePercent     *int    `json:"free_percent,omitempty"`
	Resident        *string `json:"resident,omitempty"`
	ResidentInBytes *int64  `json:"resident_in_bytes,omitempty"`
	Share           *string `json:"share,omitempty"`
	ShareInBytes    *int64  `json:"share_in_bytes,omitempty"`
	// TotalInBytes Total amount of physical memory in bytes.
	TotalInBytes        *int64  `json:"total_in_bytes,omitempty"`
	TotalVirtual        *string `json:"total_virtual,omitempty"`
	TotalVirtualInBytes *int64  `json:"total_virtual_in_bytes,omitempty"`
	// UsedInBytes Amount of used physical memory in bytes.
	UsedInBytes *int64 `json:"used_in_bytes,omitempty"`
	// UsedPercent Percentage of used memory.
	UsedPercent *int `json:"used_percent,omitempty"`
}

ExtendedMemoryStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L660-L669

func NewExtendedMemoryStats ¶

func NewExtendedMemoryStats() *ExtendedMemoryStats

NewExtendedMemoryStats returns a ExtendedMemoryStats.

func (*ExtendedMemoryStats) UnmarshalJSON ¶

func (s *ExtendedMemoryStats) UnmarshalJSON(data []byte) error

type ExtendedStatsAggregate ¶

type ExtendedStatsAggregate struct {
	Avg                        *Float64                         `json:"avg,omitempty"`
	AvgAsString                *string                          `json:"avg_as_string,omitempty"`
	Count                      int64                            `json:"count"`
	Max                        *Float64                         `json:"max,omitempty"`
	MaxAsString                *string                          `json:"max_as_string,omitempty"`
	Meta                       Metadata                         `json:"meta,omitempty"`
	Min                        *Float64                         `json:"min,omitempty"`
	MinAsString                *string                          `json:"min_as_string,omitempty"`
	StdDeviation               *Float64                         `json:"std_deviation,omitempty"`
	StdDeviationAsString       *string                          `json:"std_deviation_as_string,omitempty"`
	StdDeviationBounds         *StandardDeviationBounds         `json:"std_deviation_bounds,omitempty"`
	StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"`
	StdDeviationPopulation     *Float64                         `json:"std_deviation_population,omitempty"`
	StdDeviationSampling       *Float64                         `json:"std_deviation_sampling,omitempty"`
	Sum                        Float64                          `json:"sum"`
	SumAsString                *string                          `json:"sum_as_string,omitempty"`
	SumOfSquares               *Float64                         `json:"sum_of_squares,omitempty"`
	SumOfSquaresAsString       *string                          `json:"sum_of_squares_as_string,omitempty"`
	Variance                   *Float64                         `json:"variance,omitempty"`
	VarianceAsString           *string                          `json:"variance_as_string,omitempty"`
	VariancePopulation         *Float64                         `json:"variance_population,omitempty"`
	VariancePopulationAsString *string                          `json:"variance_population_as_string,omitempty"`
	VarianceSampling           *Float64                         `json:"variance_sampling,omitempty"`
	VarianceSamplingAsString   *string                          `json:"variance_sampling_as_string,omitempty"`
}

ExtendedStatsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L299-L320

func NewExtendedStatsAggregate ¶

func NewExtendedStatsAggregate() *ExtendedStatsAggregate

NewExtendedStatsAggregate returns a ExtendedStatsAggregate.

func (*ExtendedStatsAggregate) UnmarshalJSON ¶

func (s *ExtendedStatsAggregate) UnmarshalJSON(data []byte) error

type ExtendedStatsAggregation ¶

type ExtendedStatsAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// Sigma The number of standard deviations above/below the mean to display.
	Sigma *Float64 `json:"sigma,omitempty"`
}

ExtendedStatsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L107-L112

func NewExtendedStatsAggregation ¶

func NewExtendedStatsAggregation() *ExtendedStatsAggregation

NewExtendedStatsAggregation returns a ExtendedStatsAggregation.

func (*ExtendedStatsAggregation) ExtendedStatsAggregationCaster ¶

func (s *ExtendedStatsAggregation) ExtendedStatsAggregationCaster() *ExtendedStatsAggregation

func (*ExtendedStatsAggregation) UnmarshalJSON ¶

func (s *ExtendedStatsAggregation) UnmarshalJSON(data []byte) error

type ExtendedStatsAggregationVariant ¶

type ExtendedStatsAggregationVariant interface {
	ExtendedStatsAggregationCaster() *ExtendedStatsAggregation
}

type ExtendedStatsBucketAggregate ¶

type ExtendedStatsBucketAggregate struct {
	Avg                        *Float64                         `json:"avg,omitempty"`
	AvgAsString                *string                          `json:"avg_as_string,omitempty"`
	Count                      int64                            `json:"count"`
	Max                        *Float64                         `json:"max,omitempty"`
	MaxAsString                *string                          `json:"max_as_string,omitempty"`
	Meta                       Metadata                         `json:"meta,omitempty"`
	Min                        *Float64                         `json:"min,omitempty"`
	MinAsString                *string                          `json:"min_as_string,omitempty"`
	StdDeviation               *Float64                         `json:"std_deviation,omitempty"`
	StdDeviationAsString       *string                          `json:"std_deviation_as_string,omitempty"`
	StdDeviationBounds         *StandardDeviationBounds         `json:"std_deviation_bounds,omitempty"`
	StdDeviationBoundsAsString *StandardDeviationBoundsAsString `json:"std_deviation_bounds_as_string,omitempty"`
	StdDeviationPopulation     *Float64                         `json:"std_deviation_population,omitempty"`
	StdDeviationSampling       *Float64                         `json:"std_deviation_sampling,omitempty"`
	Sum                        Float64                          `json:"sum"`
	SumAsString                *string                          `json:"sum_as_string,omitempty"`
	SumOfSquares               *Float64                         `json:"sum_of_squares,omitempty"`
	SumOfSquaresAsString       *string                          `json:"sum_of_squares_as_string,omitempty"`
	Variance                   *Float64                         `json:"variance,omitempty"`
	VarianceAsString           *string                          `json:"variance_as_string,omitempty"`
	VariancePopulation         *Float64                         `json:"variance_population,omitempty"`
	VariancePopulationAsString *string                          `json:"variance_population_as_string,omitempty"`
	VarianceSampling           *Float64                         `json:"variance_sampling,omitempty"`
	VarianceSamplingAsString   *string                          `json:"variance_sampling_as_string,omitempty"`
}

ExtendedStatsBucketAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L322-L323

func NewExtendedStatsBucketAggregate ¶

func NewExtendedStatsBucketAggregate() *ExtendedStatsBucketAggregate

NewExtendedStatsBucketAggregate returns a ExtendedStatsBucketAggregate.

func (*ExtendedStatsBucketAggregate) UnmarshalJSON ¶

func (s *ExtendedStatsBucketAggregate) UnmarshalJSON(data []byte) error

type ExtendedStatsBucketAggregation ¶

type ExtendedStatsBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Sigma The number of standard deviations above/below the mean to display.
	Sigma *Float64 `json:"sigma,omitempty"`
}

ExtendedStatsBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L218-L223

func NewExtendedStatsBucketAggregation ¶

func NewExtendedStatsBucketAggregation() *ExtendedStatsBucketAggregation

NewExtendedStatsBucketAggregation returns a ExtendedStatsBucketAggregation.

func (*ExtendedStatsBucketAggregation) ExtendedStatsBucketAggregationCaster ¶

func (s *ExtendedStatsBucketAggregation) ExtendedStatsBucketAggregationCaster() *ExtendedStatsBucketAggregation

func (*ExtendedStatsBucketAggregation) UnmarshalJSON ¶

func (s *ExtendedStatsBucketAggregation) UnmarshalJSON(data []byte) error

type ExtendedStatsBucketAggregationVariant ¶

type ExtendedStatsBucketAggregationVariant interface {
	ExtendedStatsBucketAggregationCaster() *ExtendedStatsBucketAggregation
}

type FailProcessor ¶

type FailProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// Message The error message thrown by the processor.
	// Supports template snippets.
	Message string `json:"message"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

FailProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L889-L895

func NewFailProcessor ¶

func NewFailProcessor() *FailProcessor

NewFailProcessor returns a FailProcessor.

func (*FailProcessor) FailProcessorCaster ¶

func (s *FailProcessor) FailProcessorCaster() *FailProcessor

func (*FailProcessor) UnmarshalJSON ¶

func (s *FailProcessor) UnmarshalJSON(data []byte) error

type FailProcessorVariant ¶

type FailProcessorVariant interface {
	FailProcessorCaster() *FailProcessor
}

type FailureStore ¶

type FailureStore struct {
	Enabled         bool              `json:"enabled"`
	Indices         []DataStreamIndex `json:"indices"`
	RolloverOnWrite bool              `json:"rollover_on_write"`
}

FailureStore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStream.ts#L48-L52

func NewFailureStore ¶

func NewFailureStore() *FailureStore

NewFailureStore returns a FailureStore.

func (*FailureStore) UnmarshalJSON ¶

func (s *FailureStore) UnmarshalJSON(data []byte) error

type FailureStoreLifecycle ¶ added in v9.1.0

type FailureStoreLifecycle struct {
	// DataRetention If defined, every document added to this data stream will be stored at least
	// for this time frame.
	// Any time after this duration the document could be deleted.
	// When empty, every document in this data stream will be stored indefinitely.
	DataRetention Duration `json:"data_retention,omitempty"`
	// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this
	// data stream. A data stream lifecycle
	// that's disabled (enabled: `false`) will have no effect on the data stream.
	Enabled *bool `json:"enabled,omitempty"`
}

FailureStoreLifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamFailureStore.ts#L56-L72

func NewFailureStoreLifecycle ¶ added in v9.1.0

func NewFailureStoreLifecycle() *FailureStoreLifecycle

NewFailureStoreLifecycle returns a FailureStoreLifecycle.

func (*FailureStoreLifecycle) FailureStoreLifecycleCaster ¶ added in v9.1.0

func (s *FailureStoreLifecycle) FailureStoreLifecycleCaster() *FailureStoreLifecycle

func (*FailureStoreLifecycle) UnmarshalJSON ¶ added in v9.1.0

func (s *FailureStoreLifecycle) UnmarshalJSON(data []byte) error

type FailureStoreLifecycleTemplate ¶ added in v9.1.0

type FailureStoreLifecycleTemplate struct {
	// DataRetention If defined, every document added to this data stream will be stored at least
	// for this time frame.
	// Any time after this duration the document could be deleted.
	// When empty, every document in this data stream will be stored indefinitely.
	DataRetention Duration `json:"data_retention,omitempty"`
	// Enabled If defined, it turns data stream lifecycle on/off (`true`/`false`) for this
	// data stream. A data stream lifecycle
	// that's disabled (enabled: `false`) will have no effect on the data stream.
	Enabled *bool `json:"enabled,omitempty"`
}

FailureStoreLifecycleTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/DataStreamFailureStore.ts#L74-L90

func NewFailureStoreLifecycleTemplate ¶ added in v9.1.0

func NewFailureStoreLifecycleTemplate() *FailureStoreLifecycleTemplate

NewFailureStoreLifecycleTemplate returns a FailureStoreLifecycleTemplate.

func (*FailureStoreLifecycleTemplate) FailureStoreLifecycleTemplateCaster ¶ added in v9.1.0

func (s *FailureStoreLifecycleTemplate) FailureStoreLifecycleTemplateCaster() *FailureStoreLifecycleTemplate

func (*FailureStoreLifecycleTemplate) UnmarshalJSON ¶ added in v9.1.0

func (s *FailureStoreLifecycleTemplate) UnmarshalJSON(data []byte) error

type FailureStoreLifecycleTemplateVariant ¶ added in v9.1.0

type FailureStoreLifecycleTemplateVariant interface {
	FailureStoreLifecycleTemplateCaster() *FailureStoreLifecycleTemplate
}

type FailureStoreLifecycleVariant ¶ added in v9.1.0

type FailureStoreLifecycleVariant interface {
	FailureStoreLifecycleCaster() *FailureStoreLifecycle
}

type Feature ¶

type Feature struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

Feature type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/features/_types/Feature.ts#L20-L23

func NewFeature ¶

func NewFeature() *Feature

NewFeature returns a Feature.

func (*Feature) UnmarshalJSON ¶

func (s *Feature) UnmarshalJSON(data []byte) error

type FeatureEnabled ¶

type FeatureEnabled struct {
	Enabled bool `json:"enabled"`
}

FeatureEnabled type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L215-L217

func NewFeatureEnabled ¶

func NewFeatureEnabled() *FeatureEnabled

NewFeatureEnabled returns a FeatureEnabled.

func (*FeatureEnabled) FeatureEnabledCaster ¶

func (s *FeatureEnabled) FeatureEnabledCaster() *FeatureEnabled

func (*FeatureEnabled) UnmarshalJSON ¶

func (s *FeatureEnabled) UnmarshalJSON(data []byte) error

type FeatureEnabledVariant ¶

type FeatureEnabledVariant interface {
	FeatureEnabledCaster() *FeatureEnabled
}

type FeatureExtractorVariant ¶

type FeatureExtractorVariant interface {
	FeatureExtractorCaster() *FeatureExtractor
}

type FeatureToggle ¶

type FeatureToggle struct {
	Enabled bool `json:"enabled"`
}

FeatureToggle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L37-L39

func NewFeatureToggle ¶

func NewFeatureToggle() *FeatureToggle

NewFeatureToggle returns a FeatureToggle.

func (*FeatureToggle) UnmarshalJSON ¶

func (s *FeatureToggle) UnmarshalJSON(data []byte) error

type FetchProfile ¶

type FetchProfile struct {
	Breakdown   FetchProfileBreakdown `json:"breakdown"`
	Children    []FetchProfile        `json:"children,omitempty"`
	Debug       *FetchProfileDebug    `json:"debug,omitempty"`
	Description string                `json:"description"`
	TimeInNanos int64                 `json:"time_in_nanos"`
	Type        string                `json:"type"`
}

FetchProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L230-L237

func NewFetchProfile ¶

func NewFetchProfile() *FetchProfile

NewFetchProfile returns a FetchProfile.

func (*FetchProfile) UnmarshalJSON ¶

func (s *FetchProfile) UnmarshalJSON(data []byte) error

type FetchProfileBreakdown ¶

type FetchProfileBreakdown struct {
	LoadSource            *int `json:"load_source,omitempty"`
	LoadSourceCount       *int `json:"load_source_count,omitempty"`
	LoadStoredFields      *int `json:"load_stored_fields,omitempty"`
	LoadStoredFieldsCount *int `json:"load_stored_fields_count,omitempty"`
	NextReader            *int `json:"next_reader,omitempty"`
	NextReaderCount       *int `json:"next_reader_count,omitempty"`
	Process               *int `json:"process,omitempty"`
	ProcessCount          *int `json:"process_count,omitempty"`
}

FetchProfileBreakdown type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L239-L248

func NewFetchProfileBreakdown ¶

func NewFetchProfileBreakdown() *FetchProfileBreakdown

NewFetchProfileBreakdown returns a FetchProfileBreakdown.

func (*FetchProfileBreakdown) UnmarshalJSON ¶

func (s *FetchProfileBreakdown) UnmarshalJSON(data []byte) error

type FetchProfileDebug ¶

type FetchProfileDebug struct {
	FastPath     *int     `json:"fast_path,omitempty"`
	StoredFields []string `json:"stored_fields,omitempty"`
}

FetchProfileDebug type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L250-L253

func NewFetchProfileDebug ¶

func NewFetchProfileDebug() *FetchProfileDebug

NewFetchProfileDebug returns a FetchProfileDebug.

func (*FetchProfileDebug) UnmarshalJSON ¶

func (s *FetchProfileDebug) UnmarshalJSON(data []byte) error

type FieldAliasProperty ¶

type FieldAliasProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Path                *string                                          `json:"path,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

FieldAliasProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L64-L67

func NewFieldAliasProperty ¶

func NewFieldAliasProperty() *FieldAliasProperty

NewFieldAliasProperty returns a FieldAliasProperty.

func (*FieldAliasProperty) FieldAliasPropertyCaster ¶

func (s *FieldAliasProperty) FieldAliasPropertyCaster() *FieldAliasProperty

func (FieldAliasProperty) MarshalJSON ¶

func (s FieldAliasProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FieldAliasProperty) PropertyCaster ¶ added in v9.0.1

func (s *FieldAliasProperty) PropertyCaster() *Property

func (*FieldAliasProperty) UnmarshalJSON ¶

func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error

type FieldAliasPropertyVariant ¶

type FieldAliasPropertyVariant interface {
	FieldAliasPropertyCaster() *FieldAliasProperty
}

type FieldAndFormat ¶

type FieldAndFormat struct {
	// Field A wildcard pattern. The request returns values for field names matching this
	// pattern.
	Field string `json:"field"`
	// Format The format in which the values are returned.
	Format          *string `json:"format,omitempty"`
	IncludeUnmapped *bool   `json:"include_unmapped,omitempty"`
}

FieldAndFormat type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/abstractions.ts#L535-L549

func NewFieldAndFormat ¶

func NewFieldAndFormat() *FieldAndFormat

NewFieldAndFormat returns a FieldAndFormat.

func (*FieldAndFormat) FieldAndFormatCaster ¶

func (s *FieldAndFormat) FieldAndFormatCaster() *FieldAndFormat

func (*FieldAndFormat) UnmarshalJSON ¶

func (s *FieldAndFormat) UnmarshalJSON(data []byte) error

type FieldAndFormatVariant ¶

type FieldAndFormatVariant interface {
	FieldAndFormatCaster() *FieldAndFormat
}

type FieldCapability ¶

type FieldCapability struct {
	// Aggregatable Whether this field can be aggregated on all indices.
	Aggregatable bool `json:"aggregatable"`
	// Indices The list of indices where this field has the same type family, or null if all
	// indices have the same type family for the field.
	Indices []string `json:"indices,omitempty"`
	// Meta Merged metadata across all indices as a map of string keys to arrays of
	// values. A value length of 1 indicates that all indices had the same value for
	// this key, while a length of 2 or more indicates that not all indices had the
	// same value for this key.
	Meta Metadata `json:"meta,omitempty"`
	// MetadataField Whether this field is registered as a metadata field.
	MetadataField *bool `json:"metadata_field,omitempty"`
	// MetricConflictsIndices The list of indices where this field is present if these indices
	// don’t have the same `time_series_metric` value for this field.
	MetricConflictsIndices []string `json:"metric_conflicts_indices,omitempty"`
	// NonAggregatableIndices The list of indices where this field is not aggregatable, or null if all
	// indices have the same definition for the field.
	NonAggregatableIndices []string `json:"non_aggregatable_indices,omitempty"`
	// NonDimensionIndices If this list is present in response then some indices have the
	// field marked as a dimension and other indices, the ones in this list, do not.
	NonDimensionIndices []string `json:"non_dimension_indices,omitempty"`
	// NonSearchableIndices The list of indices where this field is not searchable, or null if all
	// indices have the same definition for the field.
	NonSearchableIndices []string `json:"non_searchable_indices,omitempty"`
	// Searchable Whether this field is indexed for search on all indices.
	Searchable bool `json:"searchable"`
	// TimeSeriesDimension Whether this field is used as a time series dimension.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric Contains metric type if this fields is used as a time series
	// metrics, absent if the field is not used as metric.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type"`
}

FieldCapability type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/field_caps/types.ts#L23-L81

func NewFieldCapability ¶

func NewFieldCapability() *FieldCapability

NewFieldCapability returns a FieldCapability.

func (*FieldCapability) UnmarshalJSON ¶

func (s *FieldCapability) UnmarshalJSON(data []byte) error

type FieldCollapse ¶

type FieldCollapse struct {
	Collapse *FieldCollapse `json:"collapse,omitempty"`
	// Field The field to collapse the result set on
	Field string `json:"field"`
	// InnerHits The number of inner hits and their sort order
	InnerHits []InnerHits `json:"inner_hits,omitempty"`
	// MaxConcurrentGroupSearches The number of concurrent requests allowed to retrieve the inner_hits per
	// group
	MaxConcurrentGroupSearches *int `json:"max_concurrent_group_searches,omitempty"`
}

FieldCollapse type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/FieldCollapse.ts#L24-L41

func NewFieldCollapse ¶

func NewFieldCollapse() *FieldCollapse

NewFieldCollapse returns a FieldCollapse.

func (*FieldCollapse) FieldCollapseCaster ¶

func (s *FieldCollapse) FieldCollapseCaster() *FieldCollapse

func (*FieldCollapse) UnmarshalJSON ¶

func (s *FieldCollapse) UnmarshalJSON(data []byte) error

type FieldCollapseVariant ¶

type FieldCollapseVariant interface {
	FieldCollapseCaster() *FieldCollapse
}

type FieldDateMathVariant ¶

type FieldDateMathVariant interface {
	FieldDateMathCaster() *FieldDateMath
}

type FieldLookup ¶

type FieldLookup struct {
	// Id `id` of the document.
	Id string `json:"id"`
	// Index Index from which to retrieve the document.
	Index *string `json:"index,omitempty"`
	// Path Name of the field.
	Path *string `json:"path,omitempty"`
	// Routing Custom routing value.
	Routing *string `json:"routing,omitempty"`
}

FieldLookup type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/abstractions.ts#L436-L453

func NewFieldLookup ¶

func NewFieldLookup() *FieldLookup

NewFieldLookup returns a FieldLookup.

func (*FieldLookup) FieldLookupCaster ¶

func (s *FieldLookup) FieldLookupCaster() *FieldLookup

func (*FieldLookup) UnmarshalJSON ¶

func (s *FieldLookup) UnmarshalJSON(data []byte) error

type FieldLookupVariant ¶

type FieldLookupVariant interface {
	FieldLookupCaster() *FieldLookup
}

type FieldMapping ¶

type FieldMapping struct {
	FullName string              `json:"full_name"`
	Mapping  map[string]Property `json:"mapping"`
}

FieldMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L24-L27

func NewFieldMapping ¶

func NewFieldMapping() *FieldMapping

NewFieldMapping returns a FieldMapping.

func (*FieldMapping) UnmarshalJSON ¶

func (s *FieldMapping) UnmarshalJSON(data []byte) error

type FieldMemoryUsage ¶

type FieldMemoryUsage struct {
	MemorySize        ByteSize `json:"memory_size,omitempty"`
	MemorySizeInBytes int64    `json:"memory_size_in_bytes"`
}

FieldMemoryUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L143-L146

func NewFieldMemoryUsage ¶

func NewFieldMemoryUsage() *FieldMemoryUsage

NewFieldMemoryUsage returns a FieldMemoryUsage.

func (*FieldMemoryUsage) UnmarshalJSON ¶

func (s *FieldMemoryUsage) UnmarshalJSON(data []byte) error

type FieldMetric ¶

type FieldMetric struct {
	// Field The field to collect metrics for. This must be a numeric of some kind.
	Field string `json:"field"`
	// Metrics An array of metrics to collect for the field. At least one metric must be
	// configured.
	Metrics []metric.Metric `json:"metrics"`
}

FieldMetric type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/_types/Metric.ts#L30-L35

func NewFieldMetric ¶

func NewFieldMetric() *FieldMetric

NewFieldMetric returns a FieldMetric.

func (*FieldMetric) FieldMetricCaster ¶

func (s *FieldMetric) FieldMetricCaster() *FieldMetric

func (*FieldMetric) UnmarshalJSON ¶

func (s *FieldMetric) UnmarshalJSON(data []byte) error

type FieldMetricVariant ¶

type FieldMetricVariant interface {
	FieldMetricCaster() *FieldMetric
}

type FieldNamesField ¶

type FieldNamesField struct {
	Enabled bool `json:"enabled"`
}

FieldNamesField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L42-L44

func NewFieldNamesField ¶

func NewFieldNamesField() *FieldNamesField

NewFieldNamesField returns a FieldNamesField.

func (*FieldNamesField) FieldNamesFieldCaster ¶

func (s *FieldNamesField) FieldNamesFieldCaster() *FieldNamesField

func (*FieldNamesField) UnmarshalJSON ¶

func (s *FieldNamesField) UnmarshalJSON(data []byte) error

type FieldNamesFieldVariant ¶

type FieldNamesFieldVariant interface {
	FieldNamesFieldCaster() *FieldNamesField
}

type FieldSecurity ¶

type FieldSecurity struct {
	Except []string `json:"except,omitempty"`
	Grant  []string `json:"grant,omitempty"`
}

FieldSecurity type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/FieldSecurity.ts#L22-L25

func NewFieldSecurity ¶

func NewFieldSecurity() *FieldSecurity

NewFieldSecurity returns a FieldSecurity.

func (*FieldSecurity) FieldSecurityCaster ¶

func (s *FieldSecurity) FieldSecurityCaster() *FieldSecurity

func (*FieldSecurity) UnmarshalJSON ¶

func (s *FieldSecurity) UnmarshalJSON(data []byte) error

type FieldSecurityVariant ¶

type FieldSecurityVariant interface {
	FieldSecurityCaster() *FieldSecurity
}

type FieldSizeUsage ¶

type FieldSizeUsage struct {
	Size        ByteSize `json:"size,omitempty"`
	SizeInBytes int64    `json:"size_in_bytes"`
}

FieldSizeUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L95-L98

func NewFieldSizeUsage ¶

func NewFieldSizeUsage() *FieldSizeUsage

NewFieldSizeUsage returns a FieldSizeUsage.

func (*FieldSizeUsage) UnmarshalJSON ¶

func (s *FieldSizeUsage) UnmarshalJSON(data []byte) error

type FieldSort ¶

type FieldSort struct {
	Format       *string                                    `json:"format,omitempty"`
	Missing      Missing                                    `json:"missing,omitempty"`
	Mode         *sortmode.SortMode                         `json:"mode,omitempty"`
	Nested       *NestedSortValue                           `json:"nested,omitempty"`
	NumericType  *fieldsortnumerictype.FieldSortNumericType `json:"numeric_type,omitempty"`
	Order        *sortorder.SortOrder                       `json:"order,omitempty"`
	UnmappedType *fieldtype.FieldType                       `json:"unmapped_type,omitempty"`
}

FieldSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L43-L52

func NewFieldSort ¶

func NewFieldSort() *FieldSort

NewFieldSort returns a FieldSort.

func (*FieldSort) FieldSortCaster ¶

func (s *FieldSort) FieldSortCaster() *FieldSort

func (*FieldSort) UnmarshalJSON ¶

func (s *FieldSort) UnmarshalJSON(data []byte) error

type FieldSortVariant ¶

type FieldSortVariant interface {
	FieldSortCaster() *FieldSort
}

type FieldStat ¶

type FieldStat struct {
	Cardinality int      `json:"cardinality"`
	Count       int      `json:"count"`
	Earliest    *string  `json:"earliest,omitempty"`
	Latest      *string  `json:"latest,omitempty"`
	MaxValue    *int     `json:"max_value,omitempty"`
	MeanValue   *int     `json:"mean_value,omitempty"`
	MedianValue *int     `json:"median_value,omitempty"`
	MinValue    *int     `json:"min_value,omitempty"`
	TopHits     []TopHit `json:"top_hits"`
}

FieldStat type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/text_structure/_types/Structure.ts#L23-L33

func NewFieldStat ¶

func NewFieldStat() *FieldStat

NewFieldStat returns a FieldStat.

func (*FieldStat) UnmarshalJSON ¶

func (s *FieldStat) UnmarshalJSON(data []byte) error

type FieldStatistics ¶

type FieldStatistics struct {
	DocCount   int   `json:"doc_count"`
	SumDocFreq int64 `json:"sum_doc_freq"`
	SumTtf     int64 `json:"sum_ttf"`
}

FieldStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/termvectors/types.ts#L28-L32

func NewFieldStatistics ¶

func NewFieldStatistics() *FieldStatistics

NewFieldStatistics returns a FieldStatistics.

func (*FieldStatistics) UnmarshalJSON ¶

func (s *FieldStatistics) UnmarshalJSON(data []byte) error

type FieldSuggester ¶

type FieldSuggester struct {
	AdditionalFieldSuggesterProperty map[string]json.RawMessage `json:"-"`
	// Completion Provides auto-complete/search-as-you-type functionality.
	Completion *CompletionSuggester `json:"completion,omitempty"`
	// Phrase Provides access to word alternatives on a per token basis within a certain
	// string distance.
	Phrase *PhraseSuggester `json:"phrase,omitempty"`
	// Prefix Prefix used to search for suggestions.
	Prefix *string `json:"prefix,omitempty"`
	// Regex A prefix expressed as a regular expression.
	Regex *string `json:"regex,omitempty"`
	// Term Suggests terms based on edit distance.
	Term *TermSuggester `json:"term,omitempty"`
	// Text The text to use as input for the suggester.
	// Needs to be set globally or per suggestion.
	Text *string `json:"text,omitempty"`
}

FieldSuggester type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L110-L143

func NewFieldSuggester ¶

func NewFieldSuggester() *FieldSuggester

NewFieldSuggester returns a FieldSuggester.

func (*FieldSuggester) FieldSuggesterCaster ¶

func (s *FieldSuggester) FieldSuggesterCaster() *FieldSuggester

func (FieldSuggester) MarshalJSON ¶

func (s FieldSuggester) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*FieldSuggester) UnmarshalJSON ¶

func (s *FieldSuggester) UnmarshalJSON(data []byte) error

type FieldSuggesterVariant ¶

type FieldSuggesterVariant interface {
	FieldSuggesterCaster() *FieldSuggester
}

type FieldSummary ¶

type FieldSummary struct {
	Any           uint          `json:"any"`
	DocValues     uint          `json:"doc_values"`
	InvertedIndex InvertedIndex `json:"inverted_index"`
	KnnVectors    uint          `json:"knn_vectors"`
	Norms         uint          `json:"norms"`
	Points        uint          `json:"points"`
	StoredFields  uint          `json:"stored_fields"`
	TermVectors   uint          `json:"term_vectors"`
}

FieldSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67

func NewFieldSummary ¶

func NewFieldSummary() *FieldSummary

NewFieldSummary returns a FieldSummary.

type FieldTypes ¶

type FieldTypes struct {
	// Count The number of occurrences of the field type in selected nodes.
	Count int `json:"count"`
	// IndexCount The number of indices containing the field type in selected nodes.
	IndexCount int `json:"index_count"`
	// IndexedVectorCount For dense_vector field types, number of indexed vector types in selected
	// nodes.
	IndexedVectorCount *int `json:"indexed_vector_count,omitempty"`
	// IndexedVectorDimMax For dense_vector field types, the maximum dimension of all indexed vector
	// types in selected nodes.
	IndexedVectorDimMax *int `json:"indexed_vector_dim_max,omitempty"`
	// IndexedVectorDimMin For dense_vector field types, the minimum dimension of all indexed vector
	// types in selected nodes.
	IndexedVectorDimMin *int `json:"indexed_vector_dim_min,omitempty"`
	// Name The name for the field type in selected nodes.
	Name string `json:"name"`
	// ScriptCount The number of fields that declare a script.
	ScriptCount *int `json:"script_count,omitempty"`
	// VectorElementTypeCount For dense_vector field types, count of mappings by element type
	VectorElementTypeCount map[string]int `json:"vector_element_type_count,omitempty"`
	// VectorIndexTypeCount For dense_vector field types, count of mappings by index type
	VectorIndexTypeCount map[string]int `json:"vector_index_type_count,omitempty"`
	// VectorSimilarityTypeCount For dense_vector field types, count of mappings by similarity
	VectorSimilarityTypeCount map[string]int `json:"vector_similarity_type_count,omitempty"`
}

FieldTypes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L211-L254

func NewFieldTypes ¶

func NewFieldTypes() *FieldTypes

NewFieldTypes returns a FieldTypes.

func (*FieldTypes) UnmarshalJSON ¶

func (s *FieldTypes) UnmarshalJSON(data []byte) error

type FieldTypesMappings ¶

type FieldTypesMappings struct {
	// FieldTypes Contains statistics about field data types used in selected nodes.
	FieldTypes []FieldTypes `json:"field_types"`
	// RuntimeFieldTypes Contains statistics about runtime field data types used in selected nodes.
	RuntimeFieldTypes []ClusterRuntimeFieldTypes `json:"runtime_field_types"`
	// SourceModes Source mode usage count.
	SourceModes map[string]int `json:"source_modes"`
	// TotalDeduplicatedFieldCount Total number of fields in all non-system indices, accounting for mapping
	// deduplication.
	TotalDeduplicatedFieldCount *int64 `json:"total_deduplicated_field_count,omitempty"`
	// TotalDeduplicatedMappingSize Total size of all mappings after deduplication and compression.
	TotalDeduplicatedMappingSize ByteSize `json:"total_deduplicated_mapping_size,omitempty"`
	// TotalDeduplicatedMappingSizeInBytes Total size of all mappings, in bytes, after deduplication and compression.
	TotalDeduplicatedMappingSizeInBytes *int64 `json:"total_deduplicated_mapping_size_in_bytes,omitempty"`
	// TotalFieldCount Total number of fields in all non-system indices.
	TotalFieldCount *int64 `json:"total_field_count,omitempty"`
}

FieldTypesMappings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L180-L209

func NewFieldTypesMappings ¶

func NewFieldTypesMappings() *FieldTypesMappings

NewFieldTypesMappings returns a FieldTypesMappings.

func (*FieldTypesMappings) UnmarshalJSON ¶

func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error

type FieldValue ¶

type FieldValue any

FieldValue holds the union for the following types:

int64
Float64
string
bool
nil

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L25-L31

type FieldValueFactorScoreFunction ¶

type FieldValueFactorScoreFunction struct {
	// Factor Optional factor to multiply the field value with.
	Factor *Float64 `json:"factor,omitempty"`
	// Field Field to be extracted from the document.
	Field string `json:"field"`
	// Missing Value used if the document doesn’t have that field.
	// The modifier and factor are still applied to it as though it were read from
	// the document.
	Missing *Float64 `json:"missing,omitempty"`
	// Modifier Modifier to apply to the field value.
	Modifier *fieldvaluefactormodifier.FieldValueFactorModifier `json:"modifier,omitempty"`
}

FieldValueFactorScoreFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L149-L168

func NewFieldValueFactorScoreFunction ¶

func NewFieldValueFactorScoreFunction() *FieldValueFactorScoreFunction

NewFieldValueFactorScoreFunction returns a FieldValueFactorScoreFunction.

func (*FieldValueFactorScoreFunction) FieldValueFactorScoreFunctionCaster ¶

func (s *FieldValueFactorScoreFunction) FieldValueFactorScoreFunctionCaster() *FieldValueFactorScoreFunction

func (*FieldValueFactorScoreFunction) UnmarshalJSON ¶

func (s *FieldValueFactorScoreFunction) UnmarshalJSON(data []byte) error

type FieldValueFactorScoreFunctionVariant ¶

type FieldValueFactorScoreFunctionVariant interface {
	FieldValueFactorScoreFunctionCaster() *FieldValueFactorScoreFunction
}

type FieldValueVariant ¶

type FieldValueVariant interface {
	FieldValueCaster() *FieldValue
}

type FielddataFrequencyFilter ¶

type FielddataFrequencyFilter struct {
	Max            Float64 `json:"max"`
	Min            Float64 `json:"min"`
	MinSegmentSize int     `json:"min_segment_size"`
}

FielddataFrequencyFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26

func NewFielddataFrequencyFilter ¶

func NewFielddataFrequencyFilter() *FielddataFrequencyFilter

NewFielddataFrequencyFilter returns a FielddataFrequencyFilter.

func (*FielddataFrequencyFilter) FielddataFrequencyFilterCaster ¶

func (s *FielddataFrequencyFilter) FielddataFrequencyFilterCaster() *FielddataFrequencyFilter

func (*FielddataFrequencyFilter) UnmarshalJSON ¶

func (s *FielddataFrequencyFilter) UnmarshalJSON(data []byte) error

type FielddataFrequencyFilterVariant ¶

type FielddataFrequencyFilterVariant interface {
	FielddataFrequencyFilterCaster() *FielddataFrequencyFilter
}

type FielddataRecord ¶

type FielddataRecord struct {
	// Field field name
	Field *string `json:"field,omitempty"`
	// Host host name
	Host *string `json:"host,omitempty"`
	// Id node id
	Id *string `json:"id,omitempty"`
	// Ip ip address
	Ip *string `json:"ip,omitempty"`
	// Node node name
	Node *string `json:"node,omitempty"`
	// Size field data usage
	Size *string `json:"size,omitempty"`
}

FielddataRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/fielddata/types.ts#L20-L48

func NewFielddataRecord ¶

func NewFielddataRecord() *FielddataRecord

NewFielddataRecord returns a FielddataRecord.

func (*FielddataRecord) UnmarshalJSON ¶

func (s *FielddataRecord) UnmarshalJSON(data []byte) error

type FielddataStats ¶

type FielddataStats struct {
	Evictions         *int64                      `json:"evictions,omitempty"`
	Fields            map[string]FieldMemoryUsage `json:"fields,omitempty"`
	GlobalOrdinals    GlobalOrdinalsStats         `json:"global_ordinals"`
	MemorySize        ByteSize                    `json:"memory_size,omitempty"`
	MemorySizeInBytes int64                       `json:"memory_size_in_bytes"`
}

FielddataStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L123-L129

func NewFielddataStats ¶

func NewFielddataStats() *FielddataStats

NewFielddataStats returns a FielddataStats.

func (*FielddataStats) UnmarshalJSON ¶

func (s *FielddataStats) UnmarshalJSON(data []byte) error

type FieldsVariant ¶

type FieldsVariant interface {
	FieldsCaster() *Fields
}

type FileCountSnapshotStats ¶

type FileCountSnapshotStats struct {
	FileCount   int   `json:"file_count"`
	SizeInBytes int64 `json:"size_in_bytes"`
}

FileCountSnapshotStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25

func NewFileCountSnapshotStats ¶

func NewFileCountSnapshotStats() *FileCountSnapshotStats

NewFileCountSnapshotStats returns a FileCountSnapshotStats.

func (*FileCountSnapshotStats) UnmarshalJSON ¶

func (s *FileCountSnapshotStats) UnmarshalJSON(data []byte) error

type FileDetails ¶

type FileDetails struct {
	Length    int64  `json:"length"`
	Name      string `json:"name"`
	Recovered int64  `json:"recovered"`
}

FileDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L50-L54

func NewFileDetails ¶

func NewFileDetails() *FileDetails

NewFileDetails returns a FileDetails.

func (*FileDetails) UnmarshalJSON ¶

func (s *FileDetails) UnmarshalJSON(data []byte) error

type FileSettingsIndicator ¶

type FileSettingsIndicator struct {
	Details   *FileSettingsIndicatorDetails               `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

FileSettingsIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L208-L212

func NewFileSettingsIndicator ¶

func NewFileSettingsIndicator() *FileSettingsIndicator

NewFileSettingsIndicator returns a FileSettingsIndicator.

func (*FileSettingsIndicator) UnmarshalJSON ¶

func (s *FileSettingsIndicator) UnmarshalJSON(data []byte) error

type FileSettingsIndicatorDetails ¶

type FileSettingsIndicatorDetails struct {
	FailureStreak     int64  `json:"failure_streak"`
	MostRecentFailure string `json:"most_recent_failure"`
}

FileSettingsIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L214-L217

func NewFileSettingsIndicatorDetails ¶

func NewFileSettingsIndicatorDetails() *FileSettingsIndicatorDetails

NewFileSettingsIndicatorDetails returns a FileSettingsIndicatorDetails.

func (*FileSettingsIndicatorDetails) UnmarshalJSON ¶

func (s *FileSettingsIndicatorDetails) UnmarshalJSON(data []byte) error

type FileSystem ¶

type FileSystem struct {
	// Data List of all file stores.
	Data []DataPathStats `json:"data,omitempty"`
	// IoStats Contains I/O statistics for the node.
	IoStats *IoStats `json:"io_stats,omitempty"`
	// Timestamp Last time the file stores statistics were refreshed.
	// Recorded in milliseconds since the Unix Epoch.
	Timestamp *int64 `json:"timestamp,omitempty"`
	// Total Contains statistics for all file stores of the node.
	Total *FileSystemTotal `json:"total,omitempty"`
}

FileSystem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L771-L789

func NewFileSystem ¶

func NewFileSystem() *FileSystem

NewFileSystem returns a FileSystem.

func (*FileSystem) UnmarshalJSON ¶

func (s *FileSystem) UnmarshalJSON(data []byte) error

type FileSystemTotal ¶

type FileSystemTotal struct {
	// Available Total disk space available to this Java virtual machine on all file stores.
	// Depending on OS or process level restrictions, this might appear less than
	// `free`.
	// This is the actual amount of free disk space the Elasticsearch node can
	// utilise.
	Available *string `json:"available,omitempty"`
	// AvailableInBytes Total number of bytes available to this Java virtual machine on all file
	// stores.
	// Depending on OS or process level restrictions, this might appear less than
	// `free_in_bytes`.
	// This is the actual amount of free disk space the Elasticsearch node can
	// utilise.
	AvailableInBytes *int64 `json:"available_in_bytes,omitempty"`
	// Free Total unallocated disk space in all file stores.
	Free *string `json:"free,omitempty"`
	// FreeInBytes Total number of unallocated bytes in all file stores.
	FreeInBytes *int64 `json:"free_in_bytes,omitempty"`
	// Total Total size of all file stores.
	Total *string `json:"total,omitempty"`
	// TotalInBytes Total size of all file stores in bytes.
	TotalInBytes *int64 `json:"total_in_bytes,omitempty"`
}

FileSystemTotal type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L830-L859

func NewFileSystemTotal ¶

func NewFileSystemTotal() *FileSystemTotal

NewFileSystemTotal returns a FileSystemTotal.

func (*FileSystemTotal) UnmarshalJSON ¶

func (s *FileSystemTotal) UnmarshalJSON(data []byte) error

type FillMaskInferenceOptions ¶

type FillMaskInferenceOptions struct {
	// MaskToken The string/token which will be removed from incoming documents and replaced
	// with the inference prediction(s).
	// In a response, this field contains the mask token for the specified
	// model/tokenizer. Each model and tokenizer
	// has a predefined mask token which cannot be changed. Thus, it is recommended
	// not to set this value in requests.
	// However, if this field is present in a request, its value must match the
	// predefined value for that model/tokenizer,
	// otherwise the request will fail.
	MaskToken *string `json:"mask_token,omitempty"`
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   Vocabulary                   `json:"vocabulary"`
}

FillMaskInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L284-L299

func NewFillMaskInferenceOptions ¶

func NewFillMaskInferenceOptions() *FillMaskInferenceOptions

NewFillMaskInferenceOptions returns a FillMaskInferenceOptions.

func (*FillMaskInferenceOptions) FillMaskInferenceOptionsCaster ¶

func (s *FillMaskInferenceOptions) FillMaskInferenceOptionsCaster() *FillMaskInferenceOptions

func (*FillMaskInferenceOptions) UnmarshalJSON ¶

func (s *FillMaskInferenceOptions) UnmarshalJSON(data []byte) error

type FillMaskInferenceOptionsVariant ¶

type FillMaskInferenceOptionsVariant interface {
	FillMaskInferenceOptionsCaster() *FillMaskInferenceOptions
}

type FillMaskInferenceUpdateOptions ¶

type FillMaskInferenceUpdateOptions struct {
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

FillMaskInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L430-L437

func NewFillMaskInferenceUpdateOptions ¶

func NewFillMaskInferenceUpdateOptions() *FillMaskInferenceUpdateOptions

NewFillMaskInferenceUpdateOptions returns a FillMaskInferenceUpdateOptions.

func (*FillMaskInferenceUpdateOptions) FillMaskInferenceUpdateOptionsCaster ¶

func (s *FillMaskInferenceUpdateOptions) FillMaskInferenceUpdateOptionsCaster() *FillMaskInferenceUpdateOptions

func (*FillMaskInferenceUpdateOptions) UnmarshalJSON ¶

func (s *FillMaskInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type FillMaskInferenceUpdateOptionsVariant ¶

type FillMaskInferenceUpdateOptionsVariant interface {
	FillMaskInferenceUpdateOptionsCaster() *FillMaskInferenceUpdateOptions
}

type FilterAggregate ¶

type FilterAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

FilterAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L552-L556

func NewFilterAggregate ¶

func NewFilterAggregate() *FilterAggregate

NewFilterAggregate returns a FilterAggregate.

func (FilterAggregate) MarshalJSON ¶

func (s FilterAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*FilterAggregate) UnmarshalJSON ¶

func (s *FilterAggregate) UnmarshalJSON(data []byte) error

type FilterRef ¶

type FilterRef struct {
	// FilterId The identifier for the filter.
	FilterId string `json:"filter_id"`
	// FilterType If set to `include`, the rule applies for values in the filter. If set to
	// `exclude`, the rule applies for values not in the filter.
	FilterType *filtertype.FilterType `json:"filter_type,omitempty"`
}

FilterRef type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Filter.ts#L31-L41

func NewFilterRef ¶

func NewFilterRef() *FilterRef

NewFilterRef returns a FilterRef.

func (*FilterRef) FilterRefCaster ¶

func (s *FilterRef) FilterRefCaster() *FilterRef

func (*FilterRef) UnmarshalJSON ¶

func (s *FilterRef) UnmarshalJSON(data []byte) error

type FilterRefVariant ¶

type FilterRefVariant interface {
	FilterRefCaster() *FilterRef
}

type FilteringAdvancedSnippet ¶

type FilteringAdvancedSnippet struct {
	CreatedAt DateTime        `json:"created_at,omitempty"`
	UpdatedAt DateTime        `json:"updated_at,omitempty"`
	Value     json.RawMessage `json:"value,omitempty"`
}

FilteringAdvancedSnippet type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L192-L196

func NewFilteringAdvancedSnippet ¶

func NewFilteringAdvancedSnippet() *FilteringAdvancedSnippet

NewFilteringAdvancedSnippet returns a FilteringAdvancedSnippet.

func (*FilteringAdvancedSnippet) FilteringAdvancedSnippetCaster ¶

func (s *FilteringAdvancedSnippet) FilteringAdvancedSnippetCaster() *FilteringAdvancedSnippet

func (*FilteringAdvancedSnippet) UnmarshalJSON ¶

func (s *FilteringAdvancedSnippet) UnmarshalJSON(data []byte) error

type FilteringAdvancedSnippetVariant ¶

type FilteringAdvancedSnippetVariant interface {
	FilteringAdvancedSnippetCaster() *FilteringAdvancedSnippet
}

type FilteringConfig ¶

type FilteringConfig struct {
	Active FilteringRules `json:"active"`
	Domain *string        `json:"domain,omitempty"`
	Draft  FilteringRules `json:"draft"`
}

FilteringConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L209-L213

func NewFilteringConfig ¶

func NewFilteringConfig() *FilteringConfig

NewFilteringConfig returns a FilteringConfig.

func (*FilteringConfig) FilteringConfigCaster ¶

func (s *FilteringConfig) FilteringConfigCaster() *FilteringConfig

func (*FilteringConfig) UnmarshalJSON ¶

func (s *FilteringConfig) UnmarshalJSON(data []byte) error

type FilteringConfigVariant ¶

type FilteringConfigVariant interface {
	FilteringConfigCaster() *FilteringConfig
}

type FilteringRule ¶

type FilteringRule struct {
	CreatedAt DateTime                            `json:"created_at,omitempty"`
	Field     string                              `json:"field"`
	Id        string                              `json:"id"`
	Order     int                                 `json:"order"`
	Policy    filteringpolicy.FilteringPolicy     `json:"policy"`
	Rule      filteringrulerule.FilteringRuleRule `json:"rule"`
	UpdatedAt DateTime                            `json:"updated_at,omitempty"`
	Value     string                              `json:"value"`
}

FilteringRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L170-L179

func NewFilteringRule ¶

func NewFilteringRule() *FilteringRule

NewFilteringRule returns a FilteringRule.

func (*FilteringRule) FilteringRuleCaster ¶

func (s *FilteringRule) FilteringRuleCaster() *FilteringRule

func (*FilteringRule) UnmarshalJSON ¶

func (s *FilteringRule) UnmarshalJSON(data []byte) error

type FilteringRuleVariant ¶

type FilteringRuleVariant interface {
	FilteringRuleCaster() *FilteringRule
}

type FilteringRules ¶

type FilteringRules struct {
	AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"`
	Rules           []FilteringRule          `json:"rules"`
	Validation      FilteringRulesValidation `json:"validation"`
}

FilteringRules type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L203-L207

func NewFilteringRules ¶

func NewFilteringRules() *FilteringRules

NewFilteringRules returns a FilteringRules.

func (*FilteringRules) FilteringRulesCaster ¶

func (s *FilteringRules) FilteringRulesCaster() *FilteringRules

type FilteringRulesValidation ¶

type FilteringRulesValidation struct {
	Errors []FilteringValidation                             `json:"errors"`
	State  filteringvalidationstate.FilteringValidationState `json:"state"`
}

FilteringRulesValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L198-L201

func NewFilteringRulesValidation ¶

func NewFilteringRulesValidation() *FilteringRulesValidation

NewFilteringRulesValidation returns a FilteringRulesValidation.

func (*FilteringRulesValidation) FilteringRulesValidationCaster ¶

func (s *FilteringRulesValidation) FilteringRulesValidationCaster() *FilteringRulesValidation

type FilteringRulesValidationVariant ¶

type FilteringRulesValidationVariant interface {
	FilteringRulesValidationCaster() *FilteringRulesValidation
}

type FilteringRulesVariant ¶

type FilteringRulesVariant interface {
	FilteringRulesCaster() *FilteringRules
}

type FilteringValidation ¶

type FilteringValidation struct {
	Ids      []string `json:"ids"`
	Messages []string `json:"messages"`
}

FilteringValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L181-L184

func NewFilteringValidation ¶

func NewFilteringValidation() *FilteringValidation

NewFilteringValidation returns a FilteringValidation.

func (*FilteringValidation) FilteringValidationCaster ¶

func (s *FilteringValidation) FilteringValidationCaster() *FilteringValidation

type FilteringValidationVariant ¶

type FilteringValidationVariant interface {
	FilteringValidationCaster() *FilteringValidation
}

type FiltersAggregate ¶

type FiltersAggregate struct {
	Buckets BucketsFiltersBucket `json:"buckets"`
	Meta    Metadata             `json:"meta,omitempty"`
}

FiltersAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L639-L643

func NewFiltersAggregate ¶

func NewFiltersAggregate() *FiltersAggregate

NewFiltersAggregate returns a FiltersAggregate.

func (*FiltersAggregate) UnmarshalJSON ¶

func (s *FiltersAggregate) UnmarshalJSON(data []byte) error

type FiltersAggregation ¶

type FiltersAggregation struct {
	// Filters Collection of queries from which to build buckets.
	Filters BucketsQuery `json:"filters,omitempty"`
	// Keyed By default, the named filters aggregation returns the buckets as an object.
	// Set to `false` to return the buckets as an array of objects.
	Keyed *bool `json:"keyed,omitempty"`
	// OtherBucket Set to `true` to add a bucket to the response which will contain all
	// documents that do not match any of the given filters.
	OtherBucket *bool `json:"other_bucket,omitempty"`
	// OtherBucketKey The key with which the other bucket is returned.
	OtherBucketKey *string `json:"other_bucket_key,omitempty"`
}

FiltersAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L374-L394

func NewFiltersAggregation ¶

func NewFiltersAggregation() *FiltersAggregation

NewFiltersAggregation returns a FiltersAggregation.

func (*FiltersAggregation) FiltersAggregationCaster ¶

func (s *FiltersAggregation) FiltersAggregationCaster() *FiltersAggregation

func (*FiltersAggregation) UnmarshalJSON ¶

func (s *FiltersAggregation) UnmarshalJSON(data []byte) error

type FiltersAggregationVariant ¶

type FiltersAggregationVariant interface {
	FiltersAggregationCaster() *FiltersAggregation
}

type FiltersBucket ¶

type FiltersBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          *string              `json:"key,omitempty"`
}

FiltersBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L645-L647

func NewFiltersBucket ¶

func NewFiltersBucket() *FiltersBucket

NewFiltersBucket returns a FiltersBucket.

func (FiltersBucket) MarshalJSON ¶

func (s FiltersBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*FiltersBucket) UnmarshalJSON ¶

func (s *FiltersBucket) UnmarshalJSON(data []byte) error

type FingerprintAnalyzer ¶

type FingerprintAnalyzer struct {
	// MaxOutputSize The maximum token size to emit. Tokens larger than this size will be
	// discarded.
	// Defaults to `255`
	MaxOutputSize *int `json:"max_output_size,omitempty"`
	// Separator The character to use to concatenate the terms.
	// Defaults to a space.
	Separator *string `json:"separator,omitempty"`
	// Stopwords A pre-defined stop words list like `_english_` or an array containing a list
	// of stop words.
	// Defaults to `_none_`.
	Stopwords StopWords `json:"stopwords,omitempty"`
	// StopwordsPath The path to a file containing stop words.
	StopwordsPath *string `json:"stopwords_path,omitempty"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

FingerprintAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L37-L64

func NewFingerprintAnalyzer ¶

func NewFingerprintAnalyzer() *FingerprintAnalyzer

NewFingerprintAnalyzer returns a FingerprintAnalyzer.

func (*FingerprintAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *FingerprintAnalyzer) AnalyzerCaster() *Analyzer

func (*FingerprintAnalyzer) FingerprintAnalyzerCaster ¶

func (s *FingerprintAnalyzer) FingerprintAnalyzerCaster() *FingerprintAnalyzer

func (FingerprintAnalyzer) MarshalJSON ¶

func (s FingerprintAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FingerprintAnalyzer) UnmarshalJSON ¶

func (s *FingerprintAnalyzer) UnmarshalJSON(data []byte) error

type FingerprintAnalyzerVariant ¶

type FingerprintAnalyzerVariant interface {
	FingerprintAnalyzerCaster() *FingerprintAnalyzer
}

type FingerprintProcessor ¶

type FingerprintProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Fields Array of fields to include in the fingerprint. For objects, the processor
	// hashes both the field key and value. For other fields, the processor hashes
	// only the field value.
	Fields []string `json:"fields"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If true, the processor ignores any missing fields. If all fields are
	// missing, the processor silently exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// Method The hash method used to compute the fingerprint. Must be one of MD5, SHA-1,
	// SHA-256, SHA-512, or MurmurHash3.
	Method *fingerprintdigest.FingerprintDigest `json:"method,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Salt Salt value for the hash function.
	Salt *string `json:"salt,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Output field for the fingerprint.
	TargetField *string `json:"target_field,omitempty"`
}

FingerprintProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L905-L933

func NewFingerprintProcessor ¶

func NewFingerprintProcessor() *FingerprintProcessor

NewFingerprintProcessor returns a FingerprintProcessor.

func (*FingerprintProcessor) FingerprintProcessorCaster ¶

func (s *FingerprintProcessor) FingerprintProcessorCaster() *FingerprintProcessor

func (*FingerprintProcessor) UnmarshalJSON ¶

func (s *FingerprintProcessor) UnmarshalJSON(data []byte) error

type FingerprintProcessorVariant ¶

type FingerprintProcessorVariant interface {
	FingerprintProcessorCaster() *FingerprintProcessor
}

type FingerprintTokenFilter ¶

type FingerprintTokenFilter struct {
	// MaxOutputSize Maximum character length, including whitespace, of the output token. Defaults
	// to `255`. Concatenated tokens longer than this will result in no token
	// output.
	MaxOutputSize *int `json:"max_output_size,omitempty"`
	// Separator Character to use to concatenate the token stream input. Defaults to a space.
	Separator *string `json:"separator,omitempty"`
	Type      string  `json:"type,omitempty"`
	Version   *string `json:"version,omitempty"`
}

FingerprintTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L260-L266

func NewFingerprintTokenFilter ¶

func NewFingerprintTokenFilter() *FingerprintTokenFilter

NewFingerprintTokenFilter returns a FingerprintTokenFilter.

func (*FingerprintTokenFilter) FingerprintTokenFilterCaster ¶

func (s *FingerprintTokenFilter) FingerprintTokenFilterCaster() *FingerprintTokenFilter

func (FingerprintTokenFilter) MarshalJSON ¶

func (s FingerprintTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FingerprintTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *FingerprintTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*FingerprintTokenFilter) UnmarshalJSON ¶

func (s *FingerprintTokenFilter) UnmarshalJSON(data []byte) error

type FingerprintTokenFilterVariant ¶

type FingerprintTokenFilterVariant interface {
	FingerprintTokenFilterCaster() *FingerprintTokenFilter
}

type FinnishAnalyzer ¶

type FinnishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

FinnishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L165-L170

func NewFinnishAnalyzer ¶

func NewFinnishAnalyzer() *FinnishAnalyzer

NewFinnishAnalyzer returns a FinnishAnalyzer.

func (*FinnishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *FinnishAnalyzer) AnalyzerCaster() *Analyzer

func (*FinnishAnalyzer) FinnishAnalyzerCaster ¶

func (s *FinnishAnalyzer) FinnishAnalyzerCaster() *FinnishAnalyzer

func (FinnishAnalyzer) MarshalJSON ¶

func (s FinnishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FinnishAnalyzer) UnmarshalJSON ¶

func (s *FinnishAnalyzer) UnmarshalJSON(data []byte) error

type FinnishAnalyzerVariant ¶

type FinnishAnalyzerVariant interface {
	FinnishAnalyzerCaster() *FinnishAnalyzer
}

type FlattenGraphTokenFilter ¶ added in v9.0.1

type FlattenGraphTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

FlattenGraphTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L486-L488

func NewFlattenGraphTokenFilter ¶ added in v9.0.1

func NewFlattenGraphTokenFilter() *FlattenGraphTokenFilter

NewFlattenGraphTokenFilter returns a FlattenGraphTokenFilter.

func (*FlattenGraphTokenFilter) FlattenGraphTokenFilterCaster ¶ added in v9.0.1

func (s *FlattenGraphTokenFilter) FlattenGraphTokenFilterCaster() *FlattenGraphTokenFilter

func (FlattenGraphTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s FlattenGraphTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FlattenGraphTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *FlattenGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*FlattenGraphTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *FlattenGraphTokenFilter) UnmarshalJSON(data []byte) error

type FlattenGraphTokenFilterVariant ¶ added in v9.0.1

type FlattenGraphTokenFilterVariant interface {
	FlattenGraphTokenFilterCaster() *FlattenGraphTokenFilter
}

type Flattened ¶

type Flattened struct {
	Available  bool `json:"available"`
	Enabled    bool `json:"enabled"`
	FieldCount int  `json:"field_count"`
}

Flattened type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L366-L368

func NewFlattened ¶

func NewFlattened() *Flattened

NewFlattened returns a Flattened.

func (*Flattened) UnmarshalJSON ¶

func (s *Flattened) UnmarshalJSON(data []byte) error

type FlattenedProperty ¶

type FlattenedProperty struct {
	Boost               *Float64                       `json:"boost,omitempty"`
	DepthLimit          *int                           `json:"depth_limit,omitempty"`
	DocValues           *bool                          `json:"doc_values,omitempty"`
	Dynamic             *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EagerGlobalOrdinals *bool                          `json:"eager_global_ordinals,omitempty"`
	Fields              map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove         *int                           `json:"ignore_above,omitempty"`
	Index               *bool                          `json:"index,omitempty"`
	IndexOptions        *indexoptions.IndexOptions     `json:"index_options,omitempty"`
	// Meta Metadata about the field.
	Meta                     map[string]string                                `json:"meta,omitempty"`
	NullValue                *string                                          `json:"null_value,omitempty"`
	Properties               map[string]Property                              `json:"properties,omitempty"`
	Similarity               *string                                          `json:"similarity,omitempty"`
	SplitQueriesOnWhitespace *bool                                            `json:"split_queries_on_whitespace,omitempty"`
	SyntheticSourceKeep      *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TimeSeriesDimensions     []string                                         `json:"time_series_dimensions,omitempty"`
	Type                     string                                           `json:"type,omitempty"`
}

FlattenedProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/complex.ts#L26-L38

func NewFlattenedProperty ¶

func NewFlattenedProperty() *FlattenedProperty

NewFlattenedProperty returns a FlattenedProperty.

func (*FlattenedProperty) FlattenedPropertyCaster ¶

func (s *FlattenedProperty) FlattenedPropertyCaster() *FlattenedProperty

func (FlattenedProperty) MarshalJSON ¶

func (s FlattenedProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FlattenedProperty) PropertyCaster ¶ added in v9.0.1

func (s *FlattenedProperty) PropertyCaster() *Property

func (*FlattenedProperty) UnmarshalJSON ¶

func (s *FlattenedProperty) UnmarshalJSON(data []byte) error

type FlattenedPropertyVariant ¶

type FlattenedPropertyVariant interface {
	FlattenedPropertyCaster() *FlattenedProperty
}

type Float64 ¶

type Float64 float64

Float64 custom type for Inf & NaN handling.

func (Float64) MarshalJSON ¶

func (f Float64) MarshalJSON() ([]byte, error)

MarshalJSON implements Marshaler interface.

func (*Float64) UnmarshalJSON ¶

func (f *Float64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements Unmarshaler interface.

type FloatNumberProperty ¶

type FloatNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *float32                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

FloatNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L157-L160

func NewFloatNumberProperty ¶

func NewFloatNumberProperty() *FloatNumberProperty

NewFloatNumberProperty returns a FloatNumberProperty.

func (*FloatNumberProperty) FloatNumberPropertyCaster ¶

func (s *FloatNumberProperty) FloatNumberPropertyCaster() *FloatNumberProperty

func (FloatNumberProperty) MarshalJSON ¶

func (s FloatNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FloatNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *FloatNumberProperty) PropertyCaster() *Property

func (*FloatNumberProperty) UnmarshalJSON ¶

func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error

type FloatNumberPropertyVariant ¶

type FloatNumberPropertyVariant interface {
	FloatNumberPropertyCaster() *FloatNumberProperty
}

type FloatRangeProperty ¶

type FloatRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

FloatRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L38-L40

func NewFloatRangeProperty ¶

func NewFloatRangeProperty() *FloatRangeProperty

NewFloatRangeProperty returns a FloatRangeProperty.

func (*FloatRangeProperty) FloatRangePropertyCaster ¶

func (s *FloatRangeProperty) FloatRangePropertyCaster() *FloatRangeProperty

func (FloatRangeProperty) MarshalJSON ¶

func (s FloatRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FloatRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *FloatRangeProperty) PropertyCaster() *Property

func (*FloatRangeProperty) UnmarshalJSON ¶

func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error

type FloatRangePropertyVariant ¶

type FloatRangePropertyVariant interface {
	FloatRangePropertyCaster() *FloatRangeProperty
}

type FlushStats ¶

type FlushStats struct {
	Periodic          int64    `json:"periodic"`
	Total             int64    `json:"total"`
	TotalTime         Duration `json:"total_time,omitempty"`
	TotalTimeInMillis int64    `json:"total_time_in_millis"`
}

FlushStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L148-L153

func NewFlushStats ¶

func NewFlushStats() *FlushStats

NewFlushStats returns a FlushStats.

func (*FlushStats) UnmarshalJSON ¶

func (s *FlushStats) UnmarshalJSON(data []byte) error

type FollowIndexStats ¶

type FollowIndexStats struct {
	// Index The name of the follower index.
	Index string `json:"index"`
	// Shards An array of shard-level following task statistics.
	Shards []CcrShardStats `json:"shards"`
}

FollowIndexStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/_types/FollowIndexStats.ts#L30-L35

func NewFollowIndexStats ¶

func NewFollowIndexStats() *FollowIndexStats

NewFollowIndexStats returns a FollowIndexStats.

func (*FollowIndexStats) UnmarshalJSON ¶

func (s *FollowIndexStats) UnmarshalJSON(data []byte) error

type FollowStats ¶

type FollowStats struct {
	Indices []FollowIndexStats `json:"indices"`
}

FollowStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/stats/types.ts.ts#L49-L51

func NewFollowStats ¶

func NewFollowStats() *FollowStats

NewFollowStats returns a FollowStats.

type FollowerIndex ¶

type FollowerIndex struct {
	// FollowerIndex The name of the follower index.
	FollowerIndex string `json:"follower_index"`
	// LeaderIndex The name of the index in the leader cluster that is followed.
	LeaderIndex string `json:"leader_index"`
	// Parameters An object that encapsulates cross-cluster replication parameters. If the
	// follower index's status is paused, this object is omitted.
	Parameters *FollowerIndexParameters `json:"parameters,omitempty"`
	// RemoteCluster The remote cluster that contains the leader index.
	RemoteCluster string `json:"remote_cluster"`
	// Status The status of the index following: `active` or `paused`.
	Status followerindexstatus.FollowerIndexStatus `json:"status"`
}

FollowerIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/follow_info/types.ts#L24-L35

func NewFollowerIndex ¶

func NewFollowerIndex() *FollowerIndex

NewFollowerIndex returns a FollowerIndex.

func (*FollowerIndex) UnmarshalJSON ¶

func (s *FollowerIndex) UnmarshalJSON(data []byte) error

type FollowerIndexParameters ¶

type FollowerIndexParameters struct {
	// MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster.
	MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"`
	// MaxOutstandingWriteRequests The maximum number of outstanding write requests on the follower.
	MaxOutstandingWriteRequests *int `json:"max_outstanding_write_requests,omitempty"`
	// MaxReadRequestOperationCount The maximum number of operations to pull per read from the remote cluster.
	MaxReadRequestOperationCount *int `json:"max_read_request_operation_count,omitempty"`
	// MaxReadRequestSize The maximum size in bytes of per read of a batch of operations pulled from
	// the remote cluster.
	MaxReadRequestSize ByteSize `json:"max_read_request_size,omitempty"`
	// MaxRetryDelay The maximum time to wait before retrying an operation that failed
	// exceptionally. An exponential backoff strategy is employed when
	// retrying.
	MaxRetryDelay Duration `json:"max_retry_delay,omitempty"`
	// MaxWriteBufferCount The maximum number of operations that can be queued for writing. When this
	// limit is reached, reads from the remote cluster will be
	// deferred until the number of queued operations goes below the limit.
	MaxWriteBufferCount *int `json:"max_write_buffer_count,omitempty"`
	// MaxWriteBufferSize The maximum total bytes of operations that can be queued for writing. When
	// this limit is reached, reads from the remote cluster will
	// be deferred until the total bytes of queued operations goes below the limit.
	MaxWriteBufferSize ByteSize `json:"max_write_buffer_size,omitempty"`
	// MaxWriteRequestOperationCount The maximum number of operations per bulk write request executed on the
	// follower.
	MaxWriteRequestOperationCount *int `json:"max_write_request_operation_count,omitempty"`
	// MaxWriteRequestSize The maximum total bytes of operations per bulk write request executed on the
	// follower.
	MaxWriteRequestSize ByteSize `json:"max_write_request_size,omitempty"`
	// ReadPollTimeout The maximum time to wait for new operations on the remote cluster when the
	// follower index is synchronized with the leader index.
	// When the timeout has elapsed, the poll for operations will return to the
	// follower so that it can update some statistics.
	// Then the follower will immediately attempt to read from the leader again.
	ReadPollTimeout Duration `json:"read_poll_timeout,omitempty"`
}

FollowerIndexParameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/follow_info/types.ts#L42-L88

func NewFollowerIndexParameters ¶

func NewFollowerIndexParameters() *FollowerIndexParameters

NewFollowerIndexParameters returns a FollowerIndexParameters.

func (*FollowerIndexParameters) UnmarshalJSON ¶

func (s *FollowerIndexParameters) UnmarshalJSON(data []byte) error

type ForceMergeAction ¶

type ForceMergeAction struct {
	IndexCodec     *string `json:"index_codec,omitempty"`
	MaxNumSegments int     `json:"max_num_segments"`
}

ForceMergeAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L123-L126

func NewForceMergeAction ¶

func NewForceMergeAction() *ForceMergeAction

NewForceMergeAction returns a ForceMergeAction.

func (*ForceMergeAction) ForceMergeActionCaster ¶

func (s *ForceMergeAction) ForceMergeActionCaster() *ForceMergeAction

func (*ForceMergeAction) UnmarshalJSON ¶

func (s *ForceMergeAction) UnmarshalJSON(data []byte) error

type ForceMergeActionVariant ¶

type ForceMergeActionVariant interface {
	ForceMergeActionCaster() *ForceMergeAction
}

type ForeachProcessor ¶

type ForeachProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field Field containing array or object values.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true`, the processor silently exits without changing the document if the
	// `field` is `null` or missing.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Processor Ingest processor to run on each element.
	Processor ProcessorContainer `json:"processor"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

ForeachProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L935-L949

func NewForeachProcessor ¶

func NewForeachProcessor() *ForeachProcessor

NewForeachProcessor returns a ForeachProcessor.

func (*ForeachProcessor) ForeachProcessorCaster ¶

func (s *ForeachProcessor) ForeachProcessorCaster() *ForeachProcessor

func (*ForeachProcessor) UnmarshalJSON ¶

func (s *ForeachProcessor) UnmarshalJSON(data []byte) error

type ForeachProcessorVariant ¶

type ForeachProcessorVariant interface {
	ForeachProcessorCaster() *ForeachProcessor
}

type FoundStatus ¶

type FoundStatus struct {
	Found bool `json:"found"`
}

FoundStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/delete_privileges/types.ts#L20-L22

func NewFoundStatus ¶

func NewFoundStatus() *FoundStatus

NewFoundStatus returns a FoundStatus.

func (*FoundStatus) UnmarshalJSON ¶

func (s *FoundStatus) UnmarshalJSON(data []byte) error

type FrenchAnalyzer ¶

type FrenchAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

FrenchAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L172-L177

func NewFrenchAnalyzer ¶

func NewFrenchAnalyzer() *FrenchAnalyzer

NewFrenchAnalyzer returns a FrenchAnalyzer.

func (*FrenchAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *FrenchAnalyzer) AnalyzerCaster() *Analyzer

func (*FrenchAnalyzer) FrenchAnalyzerCaster ¶

func (s *FrenchAnalyzer) FrenchAnalyzerCaster() *FrenchAnalyzer

func (FrenchAnalyzer) MarshalJSON ¶

func (s FrenchAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FrenchAnalyzer) UnmarshalJSON ¶

func (s *FrenchAnalyzer) UnmarshalJSON(data []byte) error

type FrenchAnalyzerVariant ¶

type FrenchAnalyzerVariant interface {
	FrenchAnalyzerCaster() *FrenchAnalyzer
}

type FrenchStemTokenFilter ¶ added in v9.0.1

type FrenchStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

FrenchStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L555-L557

func NewFrenchStemTokenFilter ¶ added in v9.0.1

func NewFrenchStemTokenFilter() *FrenchStemTokenFilter

NewFrenchStemTokenFilter returns a FrenchStemTokenFilter.

func (*FrenchStemTokenFilter) FrenchStemTokenFilterCaster ¶ added in v9.0.1

func (s *FrenchStemTokenFilter) FrenchStemTokenFilterCaster() *FrenchStemTokenFilter

func (FrenchStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s FrenchStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*FrenchStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *FrenchStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*FrenchStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *FrenchStemTokenFilter) UnmarshalJSON(data []byte) error

type FrenchStemTokenFilterVariant ¶ added in v9.0.1

type FrenchStemTokenFilterVariant interface {
	FrenchStemTokenFilterCaster() *FrenchStemTokenFilter
}

type FrequencyEncodingPreprocessor ¶

type FrequencyEncodingPreprocessor struct {
	FeatureName  string             `json:"feature_name"`
	Field        string             `json:"field"`
	FrequencyMap map[string]Float64 `json:"frequency_map"`
}

FrequencyEncodingPreprocessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L38-L42

func NewFrequencyEncodingPreprocessor ¶

func NewFrequencyEncodingPreprocessor() *FrequencyEncodingPreprocessor

NewFrequencyEncodingPreprocessor returns a FrequencyEncodingPreprocessor.

func (*FrequencyEncodingPreprocessor) FrequencyEncodingPreprocessorCaster ¶

func (s *FrequencyEncodingPreprocessor) FrequencyEncodingPreprocessorCaster() *FrequencyEncodingPreprocessor

func (*FrequencyEncodingPreprocessor) UnmarshalJSON ¶

func (s *FrequencyEncodingPreprocessor) UnmarshalJSON(data []byte) error

type FrequencyEncodingPreprocessorVariant ¶

type FrequencyEncodingPreprocessorVariant interface {
	FrequencyEncodingPreprocessorCaster() *FrequencyEncodingPreprocessor
}

type FrequentItemSetsAggregate ¶

type FrequentItemSetsAggregate struct {
	Buckets BucketsFrequentItemSetsBucket `json:"buckets"`
	Meta    Metadata                      `json:"meta,omitempty"`
}

FrequentItemSetsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L724-L725

func NewFrequentItemSetsAggregate ¶

func NewFrequentItemSetsAggregate() *FrequentItemSetsAggregate

NewFrequentItemSetsAggregate returns a FrequentItemSetsAggregate.

func (*FrequentItemSetsAggregate) UnmarshalJSON ¶

func (s *FrequentItemSetsAggregate) UnmarshalJSON(data []byte) error

type FrequentItemSetsAggregation ¶

type FrequentItemSetsAggregation struct {
	// Fields Fields to analyze.
	Fields []FrequentItemSetsField `json:"fields"`
	// Filter Query that filters documents from analysis.
	Filter *Query `json:"filter,omitempty"`
	// MinimumSetSize The minimum size of one item set.
	MinimumSetSize *int `json:"minimum_set_size,omitempty"`
	// MinimumSupport The minimum support of one item set.
	MinimumSupport *Float64 `json:"minimum_support,omitempty"`
	// Size The number of top item sets to return.
	Size *int `json:"size,omitempty"`
}

FrequentItemSetsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1241-L1268

func NewFrequentItemSetsAggregation ¶

func NewFrequentItemSetsAggregation() *FrequentItemSetsAggregation

NewFrequentItemSetsAggregation returns a FrequentItemSetsAggregation.

func (*FrequentItemSetsAggregation) FrequentItemSetsAggregationCaster ¶

func (s *FrequentItemSetsAggregation) FrequentItemSetsAggregationCaster() *FrequentItemSetsAggregation

func (*FrequentItemSetsAggregation) UnmarshalJSON ¶

func (s *FrequentItemSetsAggregation) UnmarshalJSON(data []byte) error

type FrequentItemSetsAggregationVariant ¶

type FrequentItemSetsAggregationVariant interface {
	FrequentItemSetsAggregationCaster() *FrequentItemSetsAggregation
}

type FrequentItemSetsBucket ¶

type FrequentItemSetsBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          map[string][]string  `json:"key"`
	Support      Float64              `json:"support"`
}

FrequentItemSetsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L727-L730

func NewFrequentItemSetsBucket ¶

func NewFrequentItemSetsBucket() *FrequentItemSetsBucket

NewFrequentItemSetsBucket returns a FrequentItemSetsBucket.

func (FrequentItemSetsBucket) MarshalJSON ¶

func (s FrequentItemSetsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*FrequentItemSetsBucket) UnmarshalJSON ¶

func (s *FrequentItemSetsBucket) UnmarshalJSON(data []byte) error

type FrequentItemSetsField ¶

type FrequentItemSetsField struct {
	// Exclude Values to exclude.
	// Can be regular expression strings or arrays of strings of exact terms.
	Exclude []string `json:"exclude,omitempty"`
	Field   string   `json:"field"`
	// Include Values to include.
	// Can be regular expression strings or arrays of strings of exact terms.
	Include TermsInclude `json:"include,omitempty"`
}

FrequentItemSetsField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1227-L1239

func NewFrequentItemSetsField ¶

func NewFrequentItemSetsField() *FrequentItemSetsField

NewFrequentItemSetsField returns a FrequentItemSetsField.

func (*FrequentItemSetsField) FrequentItemSetsFieldCaster ¶

func (s *FrequentItemSetsField) FrequentItemSetsFieldCaster() *FrequentItemSetsField

func (*FrequentItemSetsField) UnmarshalJSON ¶

func (s *FrequentItemSetsField) UnmarshalJSON(data []byte) error

type FrequentItemSetsFieldVariant ¶

type FrequentItemSetsFieldVariant interface {
	FrequentItemSetsFieldCaster() *FrequentItemSetsField
}

type FunctionScore ¶

type FunctionScore struct {
	AdditionalFunctionScoreProperty map[string]json.RawMessage `json:"-"`
	// Exp Function that scores a document with a exponential decay, depending on the
	// distance of a numeric field value of the document from an origin.
	Exp DecayFunction `json:"exp,omitempty"`
	// FieldValueFactor Function allows you to use a field from a document to influence the score.
	// It’s similar to using the script_score function, however, it avoids the
	// overhead of scripting.
	FieldValueFactor *FieldValueFactorScoreFunction `json:"field_value_factor,omitempty"`
	Filter           *Query                         `json:"filter,omitempty"`
	// Gauss Function that scores a document with a normal decay, depending on the
	// distance of a numeric field value of the document from an origin.
	Gauss DecayFunction `json:"gauss,omitempty"`
	// Linear Function that scores a document with a linear decay, depending on the
	// distance of a numeric field value of the document from an origin.
	Linear DecayFunction `json:"linear,omitempty"`
	// RandomScore Generates scores that are uniformly distributed from 0 up to but not
	// including 1.
	// In case you want scores to be reproducible, it is possible to provide a
	// `seed` and `field`.
	RandomScore *RandomScoreFunction `json:"random_score,omitempty"`
	// ScriptScore Enables you to wrap another query and customize the scoring of it optionally
	// with a computation derived from other numeric field values in the doc using a
	// script expression.
	ScriptScore *ScriptScoreFunction `json:"script_score,omitempty"`
	Weight      *Float64             `json:"weight,omitempty"`
}

FunctionScore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L226-L266

func NewFunctionScore ¶

func NewFunctionScore() *FunctionScore

NewFunctionScore returns a FunctionScore.

func (*FunctionScore) FunctionScoreCaster ¶

func (s *FunctionScore) FunctionScoreCaster() *FunctionScore

func (FunctionScore) MarshalJSON ¶

func (s FunctionScore) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*FunctionScore) UnmarshalJSON ¶

func (s *FunctionScore) UnmarshalJSON(data []byte) error

type FunctionScoreQuery ¶

type FunctionScoreQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// BoostMode Defines how he newly computed score is combined with the score of the query
	BoostMode *functionboostmode.FunctionBoostMode `json:"boost_mode,omitempty"`
	// Functions One or more functions that compute a new score for each document returned by
	// the query.
	Functions []FunctionScore `json:"functions,omitempty"`
	// MaxBoost Restricts the new score to not exceed the provided limit.
	MaxBoost *Float64 `json:"max_boost,omitempty"`
	// MinScore Excludes documents that do not meet the provided score threshold.
	MinScore *Float64 `json:"min_score,omitempty"`
	// Query A query that determines the documents for which a new score is computed.
	Query      *Query  `json:"query,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// ScoreMode Specifies how the computed scores are combined
	ScoreMode *functionscoremode.FunctionScoreMode `json:"score_mode,omitempty"`
}

FunctionScoreQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L105-L135

func NewFunctionScoreQuery ¶

func NewFunctionScoreQuery() *FunctionScoreQuery

NewFunctionScoreQuery returns a FunctionScoreQuery.

func (*FunctionScoreQuery) FunctionScoreQueryCaster ¶

func (s *FunctionScoreQuery) FunctionScoreQueryCaster() *FunctionScoreQuery

func (*FunctionScoreQuery) UnmarshalJSON ¶

func (s *FunctionScoreQuery) UnmarshalJSON(data []byte) error

type FunctionScoreQueryVariant ¶

type FunctionScoreQueryVariant interface {
	FunctionScoreQueryCaster() *FunctionScoreQuery
}

type FunctionScoreVariant ¶

type FunctionScoreVariant interface {
	FunctionScoreCaster() *FunctionScore
}

type FuzzinessVariant ¶

type FuzzinessVariant interface {
	FuzzinessCaster() *Fuzziness
}

type FuzzyQuery ¶

type FuzzyQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Fuzziness Maximum edit distance allowed for matching.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// MaxExpansions Maximum number of variations created.
	MaxExpansions *int `json:"max_expansions,omitempty"`
	// PrefixLength Number of beginning characters left unchanged when creating expansions.
	PrefixLength *int    `json:"prefix_length,omitempty"`
	QueryName_   *string `json:"_name,omitempty"`
	// Rewrite Number of beginning characters left unchanged when creating expansions.
	Rewrite *string `json:"rewrite,omitempty"`
	// Transpositions Indicates whether edits include transpositions of two adjacent characters
	// (for example `ab` to `ba`).
	Transpositions *bool `json:"transpositions,omitempty"`
	// Value Term you wish to find in the provided field.
	Value string `json:"value"`
}

FuzzyQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L48-L86

func NewFuzzyQuery ¶

func NewFuzzyQuery() *FuzzyQuery

NewFuzzyQuery returns a FuzzyQuery.

func (*FuzzyQuery) FuzzyQueryCaster ¶

func (s *FuzzyQuery) FuzzyQueryCaster() *FuzzyQuery

func (*FuzzyQuery) UnmarshalJSON ¶

func (s *FuzzyQuery) UnmarshalJSON(data []byte) error

type FuzzyQueryVariant ¶

type FuzzyQueryVariant interface {
	FuzzyQueryCaster() *FuzzyQuery
}

type GalicianAnalyzer ¶

type GalicianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

GalicianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L179-L184

func NewGalicianAnalyzer ¶

func NewGalicianAnalyzer() *GalicianAnalyzer

NewGalicianAnalyzer returns a GalicianAnalyzer.

func (*GalicianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *GalicianAnalyzer) AnalyzerCaster() *Analyzer

func (*GalicianAnalyzer) GalicianAnalyzerCaster ¶

func (s *GalicianAnalyzer) GalicianAnalyzerCaster() *GalicianAnalyzer

func (GalicianAnalyzer) MarshalJSON ¶

func (s GalicianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GalicianAnalyzer) UnmarshalJSON ¶

func (s *GalicianAnalyzer) UnmarshalJSON(data []byte) error

type GalicianAnalyzerVariant ¶

type GalicianAnalyzerVariant interface {
	GalicianAnalyzerCaster() *GalicianAnalyzer
}

type GarbageCollector ¶

type GarbageCollector struct {
	// Collectors Contains statistics about JVM garbage collectors for the node.
	Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"`
}

GarbageCollector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1001-L1006

func NewGarbageCollector ¶

func NewGarbageCollector() *GarbageCollector

NewGarbageCollector returns a GarbageCollector.

type GarbageCollectorTotal ¶

type GarbageCollectorTotal struct {
	// CollectionCount Total number of JVM garbage collectors that collect objects.
	CollectionCount *int64 `json:"collection_count,omitempty"`
	// CollectionTime Total time spent by JVM collecting objects.
	CollectionTime *string `json:"collection_time,omitempty"`
	// CollectionTimeInMillis Total time, in milliseconds, spent by JVM collecting objects.
	CollectionTimeInMillis *int64 `json:"collection_time_in_millis,omitempty"`
}

GarbageCollectorTotal type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1008-L1021

func NewGarbageCollectorTotal ¶

func NewGarbageCollectorTotal() *GarbageCollectorTotal

NewGarbageCollectorTotal returns a GarbageCollectorTotal.

func (*GarbageCollectorTotal) UnmarshalJSON ¶

func (s *GarbageCollectorTotal) UnmarshalJSON(data []byte) error

type GcsRepository ¶

type GcsRepository struct {
	// Settings The repository settings.
	Settings GcsRepositorySettings `json:"settings"`
	// Type The Google Cloud Storage repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

GcsRepository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L52-L62

func NewGcsRepository ¶

func NewGcsRepository() *GcsRepository

NewGcsRepository returns a GcsRepository.

func (*GcsRepository) GcsRepositoryCaster ¶

func (s *GcsRepository) GcsRepositoryCaster() *GcsRepository

func (GcsRepository) MarshalJSON ¶

func (s GcsRepository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GcsRepository) RepositoryCaster ¶ added in v9.0.1

func (s *GcsRepository) RepositoryCaster() *Repository

func (*GcsRepository) UnmarshalJSON ¶

func (s *GcsRepository) UnmarshalJSON(data []byte) error

type GcsRepositorySettings ¶

type GcsRepositorySettings struct {
	// ApplicationName The name used by the client when it uses the Google Cloud Storage service.
	ApplicationName *string `json:"application_name,omitempty"`
	// BasePath The path to the repository data within the bucket.
	// It defaults to the root of the bucket.
	//
	// NOTE: Don't set `base_path` when configuring a snapshot repository for
	// Elastic Cloud Enterprise.
	// Elastic Cloud Enterprise automatically generates the `base_path` for each
	// deployment so that multiple deployments can share the same bucket.
	BasePath *string `json:"base_path,omitempty"`
	// Bucket The name of the bucket to be used for snapshots.
	Bucket string `json:"bucket"`
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Client The name of the client to use to connect to Google Cloud Storage.
	Client *string `json:"client,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// Readonly If `true`, the repository is read-only.
	// The cluster can retrieve and restore snapshots from the repository but not
	// write to the repository or create snapshots in it.
	//
	// Only a cluster with write access can create snapshots in the repository.
	// All other clusters connected to the repository should have the `readonly`
	// parameter set to `true`.
	//
	// If `false`, the cluster can write to the repository and create snapshots in
	// it.
	//
	// IMPORTANT: If you register the same snapshot repository with multiple
	// clusters, only one cluster should have write access to the repository.
	// Having multiple clusters write to the repository at the same time risks
	// corrupting the contents of the repository.
	Readonly *bool `json:"readonly,omitempty"`
}

GcsRepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L198-L235

func NewGcsRepositorySettings ¶

func NewGcsRepositorySettings() *GcsRepositorySettings

NewGcsRepositorySettings returns a GcsRepositorySettings.

func (*GcsRepositorySettings) GcsRepositorySettingsCaster ¶

func (s *GcsRepositorySettings) GcsRepositorySettingsCaster() *GcsRepositorySettings

func (*GcsRepositorySettings) UnmarshalJSON ¶

func (s *GcsRepositorySettings) UnmarshalJSON(data []byte) error

type GcsRepositorySettingsVariant ¶

type GcsRepositorySettingsVariant interface {
	GcsRepositorySettingsCaster() *GcsRepositorySettings
}

type GcsRepositoryVariant ¶

type GcsRepositoryVariant interface {
	GcsRepositoryCaster() *GcsRepository
}

type GeoBoundingBoxQuery ¶

type GeoBoundingBoxQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost               *float32             `json:"boost,omitempty"`
	GeoBoundingBoxQuery map[string]GeoBounds `json:"-"`
	// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for
	// this query.
	// Set to `false` to throw an exception if the field is not mapped.
	IgnoreUnmapped *bool                      `json:"ignore_unmapped,omitempty"`
	QueryName_     *string                    `json:"_name,omitempty"`
	Type           *geoexecution.GeoExecution `json:"type,omitempty"`
	// ValidationMethod Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or
	// longitude.
	// Set to `COERCE` to also try to infer correct latitude or longitude.
	ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`
}

GeoBoundingBoxQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L35-L57

func NewGeoBoundingBoxQuery ¶

func NewGeoBoundingBoxQuery() *GeoBoundingBoxQuery

NewGeoBoundingBoxQuery returns a GeoBoundingBoxQuery.

func (*GeoBoundingBoxQuery) GeoBoundingBoxQueryCaster ¶

func (s *GeoBoundingBoxQuery) GeoBoundingBoxQueryCaster() *GeoBoundingBoxQuery

func (GeoBoundingBoxQuery) MarshalJSON ¶

func (s GeoBoundingBoxQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoBoundingBoxQuery) UnmarshalJSON ¶

func (s *GeoBoundingBoxQuery) UnmarshalJSON(data []byte) error

type GeoBoundingBoxQueryVariant ¶

type GeoBoundingBoxQueryVariant interface {
	GeoBoundingBoxQueryCaster() *GeoBoundingBoxQuery
}

type GeoBounds ¶

type GeoBounds any

GeoBounds holds the union for the following types:

CoordsGeoBounds
TopLeftBottomRightGeoBounds
TopRightBottomLeftGeoBounds
WktGeoBounds

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L135-L148

type GeoBoundsAggregate ¶

type GeoBoundsAggregate struct {
	Bounds GeoBounds `json:"bounds,omitempty"`
	Meta   Metadata  `json:"meta,omitempty"`
}

GeoBoundsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L327-L333

func NewGeoBoundsAggregate ¶

func NewGeoBoundsAggregate() *GeoBoundsAggregate

NewGeoBoundsAggregate returns a GeoBoundsAggregate.

func (*GeoBoundsAggregate) UnmarshalJSON ¶

func (s *GeoBoundsAggregate) UnmarshalJSON(data []byte) error

type GeoBoundsAggregation ¶

type GeoBoundsAggregation struct {
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// WrapLongitude Specifies whether the bounding box should be allowed to overlap the
	// international date line.
	WrapLongitude *bool `json:"wrap_longitude,omitempty"`
}

GeoBoundsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L114-L123

func NewGeoBoundsAggregation ¶

func NewGeoBoundsAggregation() *GeoBoundsAggregation

NewGeoBoundsAggregation returns a GeoBoundsAggregation.

func (*GeoBoundsAggregation) GeoBoundsAggregationCaster ¶

func (s *GeoBoundsAggregation) GeoBoundsAggregationCaster() *GeoBoundsAggregation

func (*GeoBoundsAggregation) UnmarshalJSON ¶

func (s *GeoBoundsAggregation) UnmarshalJSON(data []byte) error

type GeoBoundsAggregationVariant ¶

type GeoBoundsAggregationVariant interface {
	GeoBoundsAggregationCaster() *GeoBoundsAggregation
}

type GeoBoundsVariant ¶

type GeoBoundsVariant interface {
	GeoBoundsCaster() *GeoBounds
}

type GeoCentroidAggregate ¶

type GeoCentroidAggregate struct {
	Count    int64       `json:"count"`
	Location GeoLocation `json:"location,omitempty"`
	Meta     Metadata    `json:"meta,omitempty"`
}

GeoCentroidAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L335-L342

func NewGeoCentroidAggregate ¶

func NewGeoCentroidAggregate() *GeoCentroidAggregate

NewGeoCentroidAggregate returns a GeoCentroidAggregate.

func (*GeoCentroidAggregate) UnmarshalJSON ¶

func (s *GeoCentroidAggregate) UnmarshalJSON(data []byte) error

type GeoCentroidAggregation ¶

type GeoCentroidAggregation struct {
	Count *int64 `json:"count,omitempty"`
	// Field The field on which to run the aggregation.
	Field    *string     `json:"field,omitempty"`
	Location GeoLocation `json:"location,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

GeoCentroidAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L125-L128

func NewGeoCentroidAggregation ¶

func NewGeoCentroidAggregation() *GeoCentroidAggregation

NewGeoCentroidAggregation returns a GeoCentroidAggregation.

func (*GeoCentroidAggregation) GeoCentroidAggregationCaster ¶

func (s *GeoCentroidAggregation) GeoCentroidAggregationCaster() *GeoCentroidAggregation

func (*GeoCentroidAggregation) UnmarshalJSON ¶

func (s *GeoCentroidAggregation) UnmarshalJSON(data []byte) error

type GeoCentroidAggregationVariant ¶

type GeoCentroidAggregationVariant interface {
	GeoCentroidAggregationCaster() *GeoCentroidAggregation
}

type GeoDecayFunction ¶

type GeoDecayFunction struct {
	DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"`
	// MultiValueMode Determines how the distance is calculated when a field used for computing the
	// decay contains multiple values.
	MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`
}

GeoDecayFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L210-L213

func NewGeoDecayFunction ¶

func NewGeoDecayFunction() *GeoDecayFunction

NewGeoDecayFunction returns a GeoDecayFunction.

func (*GeoDecayFunction) DecayFunctionCaster ¶ added in v9.0.1

func (s *GeoDecayFunction) DecayFunctionCaster() *DecayFunction

func (*GeoDecayFunction) GeoDecayFunctionCaster ¶

func (s *GeoDecayFunction) GeoDecayFunctionCaster() *GeoDecayFunction

func (GeoDecayFunction) MarshalJSON ¶

func (s GeoDecayFunction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type GeoDecayFunctionVariant ¶

type GeoDecayFunctionVariant interface {
	GeoDecayFunctionCaster() *GeoDecayFunction
}

type GeoDistanceAggregate ¶

type GeoDistanceAggregate struct {
	Buckets BucketsRangeBucket `json:"buckets"`
	Meta    Metadata           `json:"meta,omitempty"`
}

GeoDistanceAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L617-L622

func NewGeoDistanceAggregate ¶

func NewGeoDistanceAggregate() *GeoDistanceAggregate

NewGeoDistanceAggregate returns a GeoDistanceAggregate.

func (*GeoDistanceAggregate) UnmarshalJSON ¶

func (s *GeoDistanceAggregate) UnmarshalJSON(data []byte) error

type GeoDistanceAggregation ¶

type GeoDistanceAggregation struct {
	// DistanceType The distance calculation type.
	DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`
	// Field A field of type `geo_point` used to evaluate the distance.
	Field *string `json:"field,omitempty"`
	// Origin The origin  used to evaluate the distance.
	Origin GeoLocation `json:"origin,omitempty"`
	// Ranges An array of ranges used to bucket documents.
	Ranges []AggregationRange `json:"ranges,omitempty"`
	// Unit The distance unit.
	Unit *distanceunit.DistanceUnit `json:"unit,omitempty"`
}

GeoDistanceAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L396-L419

func NewGeoDistanceAggregation ¶

func NewGeoDistanceAggregation() *GeoDistanceAggregation

NewGeoDistanceAggregation returns a GeoDistanceAggregation.

func (*GeoDistanceAggregation) GeoDistanceAggregationCaster ¶

func (s *GeoDistanceAggregation) GeoDistanceAggregationCaster() *GeoDistanceAggregation

func (*GeoDistanceAggregation) UnmarshalJSON ¶

func (s *GeoDistanceAggregation) UnmarshalJSON(data []byte) error

type GeoDistanceAggregationVariant ¶

type GeoDistanceAggregationVariant interface {
	GeoDistanceAggregationCaster() *GeoDistanceAggregation
}

type GeoDistanceFeatureQuery ¶

type GeoDistanceFeatureQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field Name of the field used to calculate distances. This field must meet the
	// following criteria:
	// be a `date`, `date_nanos` or `geo_point` field;
	// have an `index` mapping parameter value of `true`, which is the default;
	// have an `doc_values` mapping parameter value of `true`, which is the default.
	Field string `json:"field"`
	// Origin Date or point of origin used to calculate distances.
	// If the `field` value is a `date` or `date_nanos` field, the `origin` value
	// must be a date.
	// Date Math, such as `now-1h`, is supported.
	// If the field value is a `geo_point` field, the `origin` value must be a
	// geopoint.
	Origin GeoLocation `json:"origin"`
	// Pivot Distance from the `origin` at which relevance scores receive half of the
	// `boost` value.
	// If the `field` value is a `date` or `date_nanos` field, the `pivot` value
	// must be a time unit, such as `1h` or `10d`. If the `field` value is a
	// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`
	// or `12m`.
	Pivot      string  `json:"pivot"`
	QueryName_ *string `json:"_name,omitempty"`
}

GeoDistanceFeatureQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L66-L69

func NewGeoDistanceFeatureQuery ¶

func NewGeoDistanceFeatureQuery() *GeoDistanceFeatureQuery

NewGeoDistanceFeatureQuery returns a GeoDistanceFeatureQuery.

func (*GeoDistanceFeatureQuery) DistanceFeatureQueryCaster ¶ added in v9.0.1

func (s *GeoDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery

func (*GeoDistanceFeatureQuery) GeoDistanceFeatureQueryCaster ¶

func (s *GeoDistanceFeatureQuery) GeoDistanceFeatureQueryCaster() *GeoDistanceFeatureQuery

func (*GeoDistanceFeatureQuery) UnmarshalJSON ¶

func (s *GeoDistanceFeatureQuery) UnmarshalJSON(data []byte) error

type GeoDistanceFeatureQueryVariant ¶

type GeoDistanceFeatureQueryVariant interface {
	GeoDistanceFeatureQueryCaster() *GeoDistanceFeatureQuery
}

type GeoDistanceQuery ¶

type GeoDistanceQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Distance The radius of the circle centred on the specified location.
	// Points which fall into this circle are considered to be matches.
	Distance string `json:"distance"`
	// DistanceType How to compute the distance.
	// Set to `plane` for a faster calculation that's inaccurate on long distances
	// and close to the poles.
	DistanceType     *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`
	GeoDistanceQuery map[string]GeoLocation           `json:"-"`
	// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for
	// this query.
	// Set to `false` to throw an exception if the field is not mapped.
	IgnoreUnmapped *bool   `json:"ignore_unmapped,omitempty"`
	QueryName_     *string `json:"_name,omitempty"`
	// ValidationMethod Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or
	// longitude.
	// Set to `COERCE` to also try to infer correct latitude or longitude.
	ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`
}

GeoDistanceQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L64-L96

func NewGeoDistanceQuery ¶

func NewGeoDistanceQuery() *GeoDistanceQuery

NewGeoDistanceQuery returns a GeoDistanceQuery.

func (*GeoDistanceQuery) GeoDistanceQueryCaster ¶

func (s *GeoDistanceQuery) GeoDistanceQueryCaster() *GeoDistanceQuery

func (GeoDistanceQuery) MarshalJSON ¶

func (s GeoDistanceQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoDistanceQuery) UnmarshalJSON ¶

func (s *GeoDistanceQuery) UnmarshalJSON(data []byte) error

type GeoDistanceQueryVariant ¶

type GeoDistanceQueryVariant interface {
	GeoDistanceQueryCaster() *GeoDistanceQuery
}

type GeoDistanceSort ¶

type GeoDistanceSort struct {
	DistanceType    *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"`
	GeoDistanceSort map[string][]GeoLocation         `json:"-"`
	IgnoreUnmapped  *bool                            `json:"ignore_unmapped,omitempty"`
	Mode            *sortmode.SortMode               `json:"mode,omitempty"`
	Nested          *NestedSortValue                 `json:"nested,omitempty"`
	Order           *sortorder.SortOrder             `json:"order,omitempty"`
	Unit            *distanceunit.DistanceUnit       `json:"unit,omitempty"`
}

GeoDistanceSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L58-L70

func NewGeoDistanceSort ¶

func NewGeoDistanceSort() *GeoDistanceSort

NewGeoDistanceSort returns a GeoDistanceSort.

func (*GeoDistanceSort) GeoDistanceSortCaster ¶

func (s *GeoDistanceSort) GeoDistanceSortCaster() *GeoDistanceSort

func (GeoDistanceSort) MarshalJSON ¶

func (s GeoDistanceSort) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoDistanceSort) UnmarshalJSON ¶

func (s *GeoDistanceSort) UnmarshalJSON(data []byte) error

type GeoDistanceSortVariant ¶

type GeoDistanceSortVariant interface {
	GeoDistanceSortCaster() *GeoDistanceSort
}

type GeoGridProcessor ¶

type GeoGridProcessor struct {
	// ChildrenField If specified and children tiles exist, save those tile addresses to this
	// field as an array of strings.
	ChildrenField *string `json:"children_field,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to interpret as a geo-tile.=
	// The field format is determined by the `tile_type`.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// NonChildrenField If specified and intersecting non-child tiles exist, save their addresses to
	// this field as an array of strings.
	NonChildrenField *string `json:"non_children_field,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// ParentField If specified and a parent tile exists, save that tile address to this field.
	ParentField *string `json:"parent_field,omitempty"`
	// PrecisionField If specified, save the tile precision (zoom) as an integer to this field.
	PrecisionField *string `json:"precision_field,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the polygon shape to, by default, the `field` is updated
	// in-place.
	TargetField *string `json:"target_field,omitempty"`
	// TargetFormat Which format to save the generated polygon in.
	TargetFormat *geogridtargetformat.GeoGridTargetFormat `json:"target_format,omitempty"`
	// TileType Three tile formats are understood: geohash, geotile and geohex.
	TileType geogridtiletype.GeoGridTileType `json:"tile_type"`
}

GeoGridProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L389-L430

func NewGeoGridProcessor ¶

func NewGeoGridProcessor() *GeoGridProcessor

NewGeoGridProcessor returns a GeoGridProcessor.

func (*GeoGridProcessor) GeoGridProcessorCaster ¶

func (s *GeoGridProcessor) GeoGridProcessorCaster() *GeoGridProcessor

func (*GeoGridProcessor) UnmarshalJSON ¶

func (s *GeoGridProcessor) UnmarshalJSON(data []byte) error

type GeoGridProcessorVariant ¶

type GeoGridProcessorVariant interface {
	GeoGridProcessorCaster() *GeoGridProcessor
}

type GeoGridQuery ¶

type GeoGridQuery struct {
	AdditionalGeoGridQueryProperty map[string]json.RawMessage `json:"-"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	Geohash    *string  `json:"geohash,omitempty"`
	Geohex     *string  `json:"geohex,omitempty"`
	Geotile    *string  `json:"geotile,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
}

GeoGridQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L98-L103

func NewGeoGridQuery ¶

func NewGeoGridQuery() *GeoGridQuery

NewGeoGridQuery returns a GeoGridQuery.

func (*GeoGridQuery) GeoGridQueryCaster ¶

func (s *GeoGridQuery) GeoGridQueryCaster() *GeoGridQuery

func (GeoGridQuery) MarshalJSON ¶

func (s GeoGridQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoGridQuery) UnmarshalJSON ¶

func (s *GeoGridQuery) UnmarshalJSON(data []byte) error

type GeoGridQueryVariant ¶

type GeoGridQueryVariant interface {
	GeoGridQueryCaster() *GeoGridQuery
}

type GeoHashGridAggregate ¶

type GeoHashGridAggregate struct {
	Buckets BucketsGeoHashGridBucket `json:"buckets"`
	Meta    Metadata                 `json:"meta,omitempty"`
}

GeoHashGridAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L566-L568

func NewGeoHashGridAggregate ¶

func NewGeoHashGridAggregate() *GeoHashGridAggregate

NewGeoHashGridAggregate returns a GeoHashGridAggregate.

func (*GeoHashGridAggregate) UnmarshalJSON ¶

func (s *GeoHashGridAggregate) UnmarshalJSON(data []byte) error

type GeoHashGridAggregation ¶

type GeoHashGridAggregation struct {
	// Bounds The bounding box to filter the points in each bucket.
	Bounds GeoBounds `json:"bounds,omitempty"`
	// Field Field containing indexed `geo_point` or `geo_shape` values.
	// If the field contains an array, `geohash_grid` aggregates all array values.
	Field *string `json:"field,omitempty"`
	// Precision The string length of the geohashes used to define cells/buckets in the
	// results.
	Precision GeoHashPrecision `json:"precision,omitempty"`
	// ShardSize Allows for more accurate counting of the top cells returned in the final
	// result the aggregation.
	// Defaults to returning `max(10,(size x number-of-shards))` buckets from each
	// shard.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The maximum number of geohash buckets to return.
	Size *int `json:"size,omitempty"`
}

GeoHashGridAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L421-L449

func NewGeoHashGridAggregation ¶

func NewGeoHashGridAggregation() *GeoHashGridAggregation

NewGeoHashGridAggregation returns a GeoHashGridAggregation.

func (*GeoHashGridAggregation) GeoHashGridAggregationCaster ¶

func (s *GeoHashGridAggregation) GeoHashGridAggregationCaster() *GeoHashGridAggregation

func (*GeoHashGridAggregation) UnmarshalJSON ¶

func (s *GeoHashGridAggregation) UnmarshalJSON(data []byte) error

type GeoHashGridAggregationVariant ¶

type GeoHashGridAggregationVariant interface {
	GeoHashGridAggregationCaster() *GeoHashGridAggregation
}

type GeoHashGridBucket ¶

type GeoHashGridBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
}

GeoHashGridBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L570-L572

func NewGeoHashGridBucket ¶

func NewGeoHashGridBucket() *GeoHashGridBucket

NewGeoHashGridBucket returns a GeoHashGridBucket.

func (GeoHashGridBucket) MarshalJSON ¶

func (s GeoHashGridBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoHashGridBucket) UnmarshalJSON ¶

func (s *GeoHashGridBucket) UnmarshalJSON(data []byte) error

type GeoHashLocation ¶

type GeoHashLocation struct {
	Geohash string `json:"geohash"`
}

GeoHashLocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L131-L133

func NewGeoHashLocation ¶

func NewGeoHashLocation() *GeoHashLocation

NewGeoHashLocation returns a GeoHashLocation.

func (*GeoHashLocation) GeoHashLocationCaster ¶

func (s *GeoHashLocation) GeoHashLocationCaster() *GeoHashLocation

func (*GeoHashLocation) GeoLocationCaster ¶ added in v9.0.1

func (s *GeoHashLocation) GeoLocationCaster() *GeoLocation

func (*GeoHashLocation) UnmarshalJSON ¶

func (s *GeoHashLocation) UnmarshalJSON(data []byte) error

type GeoHashLocationVariant ¶

type GeoHashLocationVariant interface {
	GeoHashLocationCaster() *GeoHashLocation
}

type GeoHashPrecisionVariant ¶

type GeoHashPrecisionVariant interface {
	GeoHashPrecisionCaster() *GeoHashPrecision
}

type GeoHexGridAggregate ¶

type GeoHexGridAggregate struct {
	Buckets BucketsGeoHexGridBucket `json:"buckets"`
	Meta    Metadata                `json:"meta,omitempty"`
}

GeoHexGridAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L585-L586

func NewGeoHexGridAggregate ¶

func NewGeoHexGridAggregate() *GeoHexGridAggregate

NewGeoHexGridAggregate returns a GeoHexGridAggregate.

func (*GeoHexGridAggregate) UnmarshalJSON ¶

func (s *GeoHexGridAggregate) UnmarshalJSON(data []byte) error

type GeoHexGridBucket ¶

type GeoHexGridBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
}

GeoHexGridBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L588-L590

func NewGeoHexGridBucket ¶

func NewGeoHexGridBucket() *GeoHexGridBucket

NewGeoHexGridBucket returns a GeoHexGridBucket.

func (GeoHexGridBucket) MarshalJSON ¶

func (s GeoHexGridBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoHexGridBucket) UnmarshalJSON ¶

func (s *GeoHexGridBucket) UnmarshalJSON(data []byte) error

type GeoIpDownloadStatistics ¶

type GeoIpDownloadStatistics struct {
	// DatabasesCount Current number of databases available for use.
	DatabasesCount int `json:"databases_count"`
	// ExpiredDatabases Total number of databases not updated after 30 days
	ExpiredDatabases int `json:"expired_databases"`
	// FailedDownloads Total number of failed database downloads.
	FailedDownloads int `json:"failed_downloads"`
	// SkippedUpdates Total number of database updates skipped.
	SkippedUpdates int `json:"skipped_updates"`
	// SuccessfulDownloads Total number of successful database downloads.
	SuccessfulDownloads int `json:"successful_downloads"`
	// TotalDownloadTime Total milliseconds spent downloading databases.
	TotalDownloadTime int64 `json:"total_download_time"`
}

GeoIpDownloadStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/geo_ip_stats/types.ts#L24-L37

func NewGeoIpDownloadStatistics ¶

func NewGeoIpDownloadStatistics() *GeoIpDownloadStatistics

NewGeoIpDownloadStatistics returns a GeoIpDownloadStatistics.

func (*GeoIpDownloadStatistics) UnmarshalJSON ¶

func (s *GeoIpDownloadStatistics) UnmarshalJSON(data []byte) error

type GeoIpNodeDatabaseName ¶

type GeoIpNodeDatabaseName struct {
	// Name Name of the database.
	Name string `json:"name"`
}

GeoIpNodeDatabaseName type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/geo_ip_stats/types.ts#L47-L50

func NewGeoIpNodeDatabaseName ¶

func NewGeoIpNodeDatabaseName() *GeoIpNodeDatabaseName

NewGeoIpNodeDatabaseName returns a GeoIpNodeDatabaseName.

func (*GeoIpNodeDatabaseName) UnmarshalJSON ¶

func (s *GeoIpNodeDatabaseName) UnmarshalJSON(data []byte) error

type GeoIpNodeDatabases ¶

type GeoIpNodeDatabases struct {
	// Databases Downloaded databases for the node.
	Databases []GeoIpNodeDatabaseName `json:"databases"`
	// FilesInTemp Downloaded database files, including related license files. Elasticsearch
	// stores these files in the node’s temporary directory:
	// $ES_TMPDIR/geoip-databases/<node_id>.
	FilesInTemp []string `json:"files_in_temp"`
}

GeoIpNodeDatabases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/geo_ip_stats/types.ts#L39-L45

func NewGeoIpNodeDatabases ¶

func NewGeoIpNodeDatabases() *GeoIpNodeDatabases

NewGeoIpNodeDatabases returns a GeoIpNodeDatabases.

type GeoIpProcessor ¶

type GeoIpProcessor struct {
	// DatabaseFile The database filename referring to a database the module ships with
	// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom
	// database in the ingest-geoip config directory.
	DatabaseFile *string `json:"database_file,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// DownloadDatabaseOnPipelineCreation If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the
	// missing database is downloaded when the pipeline is created.
	// Else, the download is triggered by when the pipeline is used as the
	// `default_pipeline` or `final_pipeline` in an index.
	DownloadDatabaseOnPipelineCreation *bool `json:"download_database_on_pipeline_creation,omitempty"`
	// Field The field to get the ip address from for the geographical lookup.
	Field string `json:"field"`
	// FirstOnly If `true`, only the first found geoip data will be returned, even if the
	// field contains an array.
	FirstOnly *bool `json:"first_only,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Properties Controls what properties are added to the `target_field` based on the geoip
	// lookup.
	Properties []string `json:"properties,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that will hold the geographical information looked up from the
	// MaxMind database.
	TargetField *string `json:"target_field,omitempty"`
}

GeoIpProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L443-L477

func NewGeoIpProcessor ¶

func NewGeoIpProcessor() *GeoIpProcessor

NewGeoIpProcessor returns a GeoIpProcessor.

func (*GeoIpProcessor) GeoIpProcessorCaster ¶

func (s *GeoIpProcessor) GeoIpProcessorCaster() *GeoIpProcessor

func (*GeoIpProcessor) UnmarshalJSON ¶

func (s *GeoIpProcessor) UnmarshalJSON(data []byte) error

type GeoIpProcessorVariant ¶

type GeoIpProcessorVariant interface {
	GeoIpProcessorCaster() *GeoIpProcessor
}

type GeoLine ¶

type GeoLine struct {
	// Coordinates Array of `[lon, lat]` coordinates
	Coordinates [][]Float64 `json:"coordinates"`
	// Type Always `"LineString"`
	Type string `json:"type"`
}

GeoLine type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L56-L62

func NewGeoLine ¶

func NewGeoLine() *GeoLine

NewGeoLine returns a GeoLine.

func (*GeoLine) UnmarshalJSON ¶

func (s *GeoLine) UnmarshalJSON(data []byte) error

type GeoLineAggregate ¶

type GeoLineAggregate struct {
	Geometry   GeoLine         `json:"geometry"`
	Meta       Metadata        `json:"meta,omitempty"`
	Properties json.RawMessage `json:"properties,omitempty"`
	Type       string          `json:"type"`
}

GeoLineAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L904-L914

func NewGeoLineAggregate ¶

func NewGeoLineAggregate() *GeoLineAggregate

NewGeoLineAggregate returns a GeoLineAggregate.

func (*GeoLineAggregate) UnmarshalJSON ¶

func (s *GeoLineAggregate) UnmarshalJSON(data []byte) error

type GeoLineAggregation ¶

type GeoLineAggregation struct {
	// IncludeSort When `true`, returns an additional array of the sort values in the feature
	// properties.
	IncludeSort *bool `json:"include_sort,omitempty"`
	// Point The name of the geo_point field.
	Point GeoLinePoint `json:"point"`
	// Size The maximum length of the line represented in the aggregation.
	// Valid sizes are between 1 and 10000.
	Size *int `json:"size,omitempty"`
	// Sort The name of the numeric field to use as the sort key for ordering the points.
	// When the `geo_line` aggregation is nested inside a `time_series` aggregation,
	// this field defaults to `@timestamp`, and any other value will result in
	// error.
	Sort GeoLineSort `json:"sort"`
	// SortOrder The order in which the line is sorted (ascending or descending).
	SortOrder *sortorder.SortOrder `json:"sort_order,omitempty"`
}

GeoLineAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L130-L155

func NewGeoLineAggregation ¶

func NewGeoLineAggregation() *GeoLineAggregation

NewGeoLineAggregation returns a GeoLineAggregation.

func (*GeoLineAggregation) GeoLineAggregationCaster ¶

func (s *GeoLineAggregation) GeoLineAggregationCaster() *GeoLineAggregation

func (*GeoLineAggregation) UnmarshalJSON ¶

func (s *GeoLineAggregation) UnmarshalJSON(data []byte) error

type GeoLineAggregationVariant ¶

type GeoLineAggregationVariant interface {
	GeoLineAggregationCaster() *GeoLineAggregation
}

type GeoLinePoint ¶

type GeoLinePoint struct {
	// Field The name of the geo_point field.
	Field string `json:"field"`
}

GeoLinePoint type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L164-L169

func NewGeoLinePoint ¶

func NewGeoLinePoint() *GeoLinePoint

NewGeoLinePoint returns a GeoLinePoint.

func (*GeoLinePoint) GeoLinePointCaster ¶

func (s *GeoLinePoint) GeoLinePointCaster() *GeoLinePoint

func (*GeoLinePoint) UnmarshalJSON ¶

func (s *GeoLinePoint) UnmarshalJSON(data []byte) error

type GeoLinePointVariant ¶

type GeoLinePointVariant interface {
	GeoLinePointCaster() *GeoLinePoint
}

type GeoLineSort ¶

type GeoLineSort struct {
	// Field The name of the numeric field to use as the sort key for ordering the points.
	Field string `json:"field"`
}

GeoLineSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L157-L162

func NewGeoLineSort ¶

func NewGeoLineSort() *GeoLineSort

NewGeoLineSort returns a GeoLineSort.

func (*GeoLineSort) GeoLineSortCaster ¶

func (s *GeoLineSort) GeoLineSortCaster() *GeoLineSort

func (*GeoLineSort) UnmarshalJSON ¶

func (s *GeoLineSort) UnmarshalJSON(data []byte) error

type GeoLineSortVariant ¶

type GeoLineSortVariant interface {
	GeoLineSortCaster() *GeoLineSort
}

type GeoLocation ¶

type GeoLocation any

GeoLocation holds the union for the following types:

LatLonGeoLocation
GeoHashLocation
[]Float64
string

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L104-L118

type GeoLocationVariant ¶

type GeoLocationVariant interface {
	GeoLocationCaster() *GeoLocation
}

type GeoPointProperty ¶

type GeoPointProperty struct {
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	IgnoreZValue    *bool                          `json:"ignore_z_value,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           GeoLocation                                      `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TimeSeriesMetric    *geopointmetrictype.GeoPointMetricType           `json:"time_series_metric,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

GeoPointProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/geo.ts#L24-L33

func NewGeoPointProperty ¶

func NewGeoPointProperty() *GeoPointProperty

NewGeoPointProperty returns a GeoPointProperty.

func (*GeoPointProperty) GeoPointPropertyCaster ¶

func (s *GeoPointProperty) GeoPointPropertyCaster() *GeoPointProperty

func (GeoPointProperty) MarshalJSON ¶

func (s GeoPointProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GeoPointProperty) PropertyCaster ¶ added in v9.0.1

func (s *GeoPointProperty) PropertyCaster() *Property

func (*GeoPointProperty) UnmarshalJSON ¶

func (s *GeoPointProperty) UnmarshalJSON(data []byte) error

type GeoPointPropertyVariant ¶

type GeoPointPropertyVariant interface {
	GeoPointPropertyCaster() *GeoPointProperty
}

type GeoPolygonPoints ¶

type GeoPolygonPoints struct {
	Points []GeoLocation `json:"points"`
}

GeoPolygonPoints type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L105-L107

func NewGeoPolygonPoints ¶

func NewGeoPolygonPoints() *GeoPolygonPoints

NewGeoPolygonPoints returns a GeoPolygonPoints.

func (*GeoPolygonPoints) GeoPolygonPointsCaster ¶

func (s *GeoPolygonPoints) GeoPolygonPointsCaster() *GeoPolygonPoints

type GeoPolygonPointsVariant ¶

type GeoPolygonPointsVariant interface {
	GeoPolygonPointsCaster() *GeoPolygonPoints
}

type GeoPolygonQuery ¶

type GeoPolygonQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost            *float32                                 `json:"boost,omitempty"`
	GeoPolygonQuery  map[string]GeoPolygonPoints              `json:"-"`
	IgnoreUnmapped   *bool                                    `json:"ignore_unmapped,omitempty"`
	QueryName_       *string                                  `json:"_name,omitempty"`
	ValidationMethod *geovalidationmethod.GeoValidationMethod `json:"validation_method,omitempty"`
}

GeoPolygonQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L109-L121

func NewGeoPolygonQuery ¶

func NewGeoPolygonQuery() *GeoPolygonQuery

NewGeoPolygonQuery returns a GeoPolygonQuery.

func (*GeoPolygonQuery) GeoPolygonQueryCaster ¶

func (s *GeoPolygonQuery) GeoPolygonQueryCaster() *GeoPolygonQuery

func (GeoPolygonQuery) MarshalJSON ¶

func (s GeoPolygonQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoPolygonQuery) UnmarshalJSON ¶

func (s *GeoPolygonQuery) UnmarshalJSON(data []byte) error

type GeoPolygonQueryVariant ¶

type GeoPolygonQueryVariant interface {
	GeoPolygonQueryCaster() *GeoPolygonQuery
}

type GeoResults ¶

type GeoResults struct {
	// ActualPoint The actual value for the bucket formatted as a `geo_point`.
	ActualPoint *string `json:"actual_point,omitempty"`
	// TypicalPoint The typical value for the bucket formatted as a `geo_point`.
	TypicalPoint *string `json:"typical_point,omitempty"`
}

GeoResults type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Anomaly.ts#L146-L155

func NewGeoResults ¶

func NewGeoResults() *GeoResults

NewGeoResults returns a GeoResults.

func (*GeoResults) UnmarshalJSON ¶

func (s *GeoResults) UnmarshalJSON(data []byte) error

type GeoShapeFieldQuery ¶

type GeoShapeFieldQuery struct {
	// IndexedShape Query using an indexed shape retrieved from the the specified document and
	// path.
	IndexedShape *FieldLookup `json:"indexed_shape,omitempty"`
	// Relation Spatial relation operator used to search a geo field.
	Relation *geoshaperelation.GeoShapeRelation `json:"relation,omitempty"`
	Shape    json.RawMessage                    `json:"shape,omitempty"`
}

GeoShapeFieldQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L128-L139

func NewGeoShapeFieldQuery ¶

func NewGeoShapeFieldQuery() *GeoShapeFieldQuery

NewGeoShapeFieldQuery returns a GeoShapeFieldQuery.

func (*GeoShapeFieldQuery) GeoShapeFieldQueryCaster ¶

func (s *GeoShapeFieldQuery) GeoShapeFieldQueryCaster() *GeoShapeFieldQuery

func (*GeoShapeFieldQuery) UnmarshalJSON ¶

func (s *GeoShapeFieldQuery) UnmarshalJSON(data []byte) error

type GeoShapeFieldQueryVariant ¶

type GeoShapeFieldQueryVariant interface {
	GeoShapeFieldQueryCaster() *GeoShapeFieldQuery
}

type GeoShapeProperty ¶

type GeoShapeProperty struct {
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	IgnoreZValue    *bool                          `json:"ignore_z_value,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Orientation         *geoorientation.GeoOrientation                   `json:"orientation,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	Strategy            *geostrategy.GeoStrategy                         `json:"strategy,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

GeoShapeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/geo.ts#L48-L62

func NewGeoShapeProperty ¶

func NewGeoShapeProperty() *GeoShapeProperty

NewGeoShapeProperty returns a GeoShapeProperty.

func (*GeoShapeProperty) GeoShapePropertyCaster ¶

func (s *GeoShapeProperty) GeoShapePropertyCaster() *GeoShapeProperty

func (GeoShapeProperty) MarshalJSON ¶

func (s GeoShapeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GeoShapeProperty) PropertyCaster ¶ added in v9.0.1

func (s *GeoShapeProperty) PropertyCaster() *Property

func (*GeoShapeProperty) UnmarshalJSON ¶

func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error

type GeoShapePropertyVariant ¶

type GeoShapePropertyVariant interface {
	GeoShapePropertyCaster() *GeoShapeProperty
}

type GeoShapeQuery ¶

type GeoShapeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost         *float32                      `json:"boost,omitempty"`
	GeoShapeQuery map[string]GeoShapeFieldQuery `json:"-"`
	// IgnoreUnmapped Set to `true` to ignore an unmapped field and not match any documents for
	// this query.
	// Set to `false` to throw an exception if the field is not mapped.
	IgnoreUnmapped *bool   `json:"ignore_unmapped,omitempty"`
	QueryName_     *string `json:"_name,omitempty"`
}

GeoShapeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/geo.ts#L141-L157

func NewGeoShapeQuery ¶

func NewGeoShapeQuery() *GeoShapeQuery

NewGeoShapeQuery returns a GeoShapeQuery.

func (*GeoShapeQuery) GeoShapeQueryCaster ¶

func (s *GeoShapeQuery) GeoShapeQueryCaster() *GeoShapeQuery

func (GeoShapeQuery) MarshalJSON ¶

func (s GeoShapeQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoShapeQuery) UnmarshalJSON ¶

func (s *GeoShapeQuery) UnmarshalJSON(data []byte) error

type GeoShapeQueryVariant ¶

type GeoShapeQueryVariant interface {
	GeoShapeQueryCaster() *GeoShapeQuery
}

type GeoTileGridAggregate ¶

type GeoTileGridAggregate struct {
	Buckets BucketsGeoTileGridBucket `json:"buckets"`
	Meta    Metadata                 `json:"meta,omitempty"`
}

GeoTileGridAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L574-L579

func NewGeoTileGridAggregate ¶

func NewGeoTileGridAggregate() *GeoTileGridAggregate

NewGeoTileGridAggregate returns a GeoTileGridAggregate.

func (*GeoTileGridAggregate) UnmarshalJSON ¶

func (s *GeoTileGridAggregate) UnmarshalJSON(data []byte) error

type GeoTileGridAggregation ¶

type GeoTileGridAggregation struct {
	// Bounds A bounding box to filter the geo-points or geo-shapes in each bucket.
	Bounds GeoBounds `json:"bounds,omitempty"`
	// Field Field containing indexed `geo_point` or `geo_shape` values.
	// If the field contains an array, `geotile_grid` aggregates all array values.
	Field *string `json:"field,omitempty"`
	// Precision Integer zoom of the key used to define cells/buckets in the results.
	// Values outside of the range [0,29] will be rejected.
	Precision *int `json:"precision,omitempty"`
	// ShardSize Allows for more accurate counting of the top cells returned in the final
	// result the aggregation.
	// Defaults to returning `max(10,(size x number-of-shards))` buckets from each
	// shard.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The maximum number of buckets to return.
	Size *int `json:"size,omitempty"`
}

GeoTileGridAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L451-L477

func NewGeoTileGridAggregation ¶

func NewGeoTileGridAggregation() *GeoTileGridAggregation

NewGeoTileGridAggregation returns a GeoTileGridAggregation.

func (*GeoTileGridAggregation) GeoTileGridAggregationCaster ¶

func (s *GeoTileGridAggregation) GeoTileGridAggregationCaster() *GeoTileGridAggregation

func (*GeoTileGridAggregation) UnmarshalJSON ¶

func (s *GeoTileGridAggregation) UnmarshalJSON(data []byte) error

type GeoTileGridAggregationVariant ¶

type GeoTileGridAggregationVariant interface {
	GeoTileGridAggregationCaster() *GeoTileGridAggregation
}

type GeoTileGridBucket ¶

type GeoTileGridBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
}

GeoTileGridBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L581-L583

func NewGeoTileGridBucket ¶

func NewGeoTileGridBucket() *GeoTileGridBucket

NewGeoTileGridBucket returns a GeoTileGridBucket.

func (GeoTileGridBucket) MarshalJSON ¶

func (s GeoTileGridBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GeoTileGridBucket) UnmarshalJSON ¶

func (s *GeoTileGridBucket) UnmarshalJSON(data []byte) error

type GeohexGridAggregation ¶

type GeohexGridAggregation struct {
	// Bounds Bounding box used to filter the geo-points in each bucket.
	Bounds GeoBounds `json:"bounds,omitempty"`
	// Field Field containing indexed `geo_point` or `geo_shape` values.
	// If the field contains an array, `geohex_grid` aggregates all array values.
	Field string `json:"field"`
	// Precision Integer zoom of the key used to defined cells or buckets
	// in the results. Value should be between 0-15.
	Precision *int `json:"precision,omitempty"`
	// ShardSize Number of buckets returned from each shard.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size Maximum number of buckets to return.
	Size *int `json:"size,omitempty"`
}

GeohexGridAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L479-L504

func NewGeohexGridAggregation ¶

func NewGeohexGridAggregation() *GeohexGridAggregation

NewGeohexGridAggregation returns a GeohexGridAggregation.

func (*GeohexGridAggregation) GeohexGridAggregationCaster ¶

func (s *GeohexGridAggregation) GeohexGridAggregationCaster() *GeohexGridAggregation

func (*GeohexGridAggregation) UnmarshalJSON ¶

func (s *GeohexGridAggregation) UnmarshalJSON(data []byte) error

type GeohexGridAggregationVariant ¶

type GeohexGridAggregationVariant interface {
	GeohexGridAggregationCaster() *GeohexGridAggregation
}

type GeoipDatabaseConfigurationMetadata ¶

type GeoipDatabaseConfigurationMetadata struct {
	Database           DatabaseConfiguration `json:"database"`
	Id                 string                `json:"id"`
	ModifiedDateMillis int64                 `json:"modified_date_millis"`
	Version            int64                 `json:"version"`
}

GeoipDatabaseConfigurationMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34

func NewGeoipDatabaseConfigurationMetadata ¶

func NewGeoipDatabaseConfigurationMetadata() *GeoipDatabaseConfigurationMetadata

NewGeoipDatabaseConfigurationMetadata returns a GeoipDatabaseConfigurationMetadata.

func (*GeoipDatabaseConfigurationMetadata) UnmarshalJSON ¶

func (s *GeoipDatabaseConfigurationMetadata) UnmarshalJSON(data []byte) error

type GermanAnalyzer ¶

type GermanAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

GermanAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L186-L191

func NewGermanAnalyzer ¶

func NewGermanAnalyzer() *GermanAnalyzer

NewGermanAnalyzer returns a GermanAnalyzer.

func (*GermanAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *GermanAnalyzer) AnalyzerCaster() *Analyzer

func (*GermanAnalyzer) GermanAnalyzerCaster ¶

func (s *GermanAnalyzer) GermanAnalyzerCaster() *GermanAnalyzer

func (GermanAnalyzer) MarshalJSON ¶

func (s GermanAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GermanAnalyzer) UnmarshalJSON ¶

func (s *GermanAnalyzer) UnmarshalJSON(data []byte) error

type GermanAnalyzerVariant ¶

type GermanAnalyzerVariant interface {
	GermanAnalyzerCaster() *GermanAnalyzer
}

type GermanNormalizationTokenFilter ¶ added in v9.0.1

type GermanNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

GermanNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L498-L500

func NewGermanNormalizationTokenFilter ¶ added in v9.0.1

func NewGermanNormalizationTokenFilter() *GermanNormalizationTokenFilter

NewGermanNormalizationTokenFilter returns a GermanNormalizationTokenFilter.

func (*GermanNormalizationTokenFilter) GermanNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *GermanNormalizationTokenFilter) GermanNormalizationTokenFilterCaster() *GermanNormalizationTokenFilter

func (GermanNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s GermanNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GermanNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *GermanNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*GermanNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *GermanNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type GermanNormalizationTokenFilterVariant ¶ added in v9.0.1

type GermanNormalizationTokenFilterVariant interface {
	GermanNormalizationTokenFilterCaster() *GermanNormalizationTokenFilter
}

type GermanStemTokenFilter ¶ added in v9.0.1

type GermanStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

GermanStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L563-L565

func NewGermanStemTokenFilter ¶ added in v9.0.1

func NewGermanStemTokenFilter() *GermanStemTokenFilter

NewGermanStemTokenFilter returns a GermanStemTokenFilter.

func (*GermanStemTokenFilter) GermanStemTokenFilterCaster ¶ added in v9.0.1

func (s *GermanStemTokenFilter) GermanStemTokenFilterCaster() *GermanStemTokenFilter

func (GermanStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s GermanStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GermanStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *GermanStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*GermanStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *GermanStemTokenFilter) UnmarshalJSON(data []byte) error

type GermanStemTokenFilterVariant ¶ added in v9.0.1

type GermanStemTokenFilterVariant interface {
	GermanStemTokenFilterCaster() *GermanStemTokenFilter
}

type GetMigrationFeature ¶

type GetMigrationFeature struct {
	FeatureName         string                          `json:"feature_name"`
	Indices             []MigrationFeatureIndexInfo     `json:"indices"`
	MigrationStatus     migrationstatus.MigrationStatus `json:"migration_status"`
	MinimumIndexVersion string                          `json:"minimum_index_version"`
}

GetMigrationFeature type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42

func NewGetMigrationFeature ¶

func NewGetMigrationFeature() *GetMigrationFeature

NewGetMigrationFeature returns a GetMigrationFeature.

func (*GetMigrationFeature) UnmarshalJSON ¶

func (s *GetMigrationFeature) UnmarshalJSON(data []byte) error

type GetResult ¶

type GetResult struct {
	// Fields If the `stored_fields` parameter is set to `true` and `found` is `true`, it
	// contains the document fields stored in the index.
	Fields map[string]json.RawMessage `json:"fields,omitempty"`
	// Found Indicates whether the document exists.
	Found bool `json:"found"`
	// Id_ The unique identifier for the document.
	Id_      string   `json:"_id"`
	Ignored_ []string `json:"_ignored,omitempty"`
	// Index_ The name of the index the document belongs to.
	Index_ string `json:"_index"`
	// PrimaryTerm_ The primary term assigned to the document for the indexing operation.
	PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
	// Routing_ The explicit routing, if set.
	Routing_ *string `json:"_routing,omitempty"`
	// SeqNo_ The sequence number assigned to the document for the indexing operation.
	// Sequence numbers are used to ensure an older version of a document doesn't
	// overwrite a newer version.
	SeqNo_ *int64 `json:"_seq_no,omitempty"`
	// Source_ If `found` is `true`, it contains the document data formatted in JSON.
	// If the `_source` parameter is set to `false` or the `stored_fields` parameter
	// is set to `true`, it is excluded.
	Source_ json.RawMessage `json:"_source,omitempty"`
	// Version_ The document version, which is ncremented each time the document is updated.
	Version_ *int64 `json:"_version,omitempty"`
}

GetResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/get/types.ts#L25-L67

func NewGetResult ¶

func NewGetResult() *GetResult

NewGetResult returns a GetResult.

func (*GetResult) UnmarshalJSON ¶

func (s *GetResult) UnmarshalJSON(data []byte) error

type GetScriptContext ¶

type GetScriptContext struct {
	Methods []ContextMethod `json:"methods"`
	Name    string          `json:"name"`
}

GetScriptContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/get_script_context/types.ts#L22-L25

func NewGetScriptContext ¶

func NewGetScriptContext() *GetScriptContext

NewGetScriptContext returns a GetScriptContext.

func (*GetScriptContext) UnmarshalJSON ¶

func (s *GetScriptContext) UnmarshalJSON(data []byte) error

type GetStats ¶

type GetStats struct {
	Current             int64    `json:"current"`
	ExistsTime          Duration `json:"exists_time,omitempty"`
	ExistsTimeInMillis  int64    `json:"exists_time_in_millis"`
	ExistsTotal         int64    `json:"exists_total"`
	MissingTime         Duration `json:"missing_time,omitempty"`
	MissingTimeInMillis int64    `json:"missing_time_in_millis"`
	MissingTotal        int64    `json:"missing_total"`
	Time                Duration `json:"time,omitempty"`
	TimeInMillis        int64    `json:"time_in_millis"`
	Total               int64    `json:"total"`
}

GetStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L155-L166

func NewGetStats ¶

func NewGetStats() *GetStats

NewGetStats returns a GetStats.

func (*GetStats) UnmarshalJSON ¶

func (s *GetStats) UnmarshalJSON(data []byte) error

type GetUserProfileErrors ¶

type GetUserProfileErrors struct {
	Count   int64                 `json:"count"`
	Details map[string]ErrorCause `json:"details"`
}

GetUserProfileErrors type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_user_profile/types.ts#L25-L28

func NewGetUserProfileErrors ¶

func NewGetUserProfileErrors() *GetUserProfileErrors

NewGetUserProfileErrors returns a GetUserProfileErrors.

func (*GetUserProfileErrors) UnmarshalJSON ¶

func (s *GetUserProfileErrors) UnmarshalJSON(data []byte) error

type GlobalAggregate ¶

type GlobalAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

GlobalAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L546-L550

func NewGlobalAggregate ¶

func NewGlobalAggregate() *GlobalAggregate

NewGlobalAggregate returns a GlobalAggregate.

func (GlobalAggregate) MarshalJSON ¶

func (s GlobalAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*GlobalAggregate) UnmarshalJSON ¶

func (s *GlobalAggregate) UnmarshalJSON(data []byte) error

type GlobalAggregation ¶

type GlobalAggregation struct {
}

GlobalAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L506-L506

func NewGlobalAggregation ¶

func NewGlobalAggregation() *GlobalAggregation

NewGlobalAggregation returns a GlobalAggregation.

func (*GlobalAggregation) GlobalAggregationCaster ¶

func (s *GlobalAggregation) GlobalAggregationCaster() *GlobalAggregation

type GlobalAggregationVariant ¶

type GlobalAggregationVariant interface {
	GlobalAggregationCaster() *GlobalAggregation
}

type GlobalOrdinalFieldStats ¶ added in v9.0.1

type GlobalOrdinalFieldStats struct {
	BuildTime          *string `json:"build_time,omitempty"`
	BuildTimeInMillis  int64   `json:"build_time_in_millis"`
	ShardMaxValueCount int64   `json:"shard_max_value_count"`
}

GlobalOrdinalFieldStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L137-L141

func NewGlobalOrdinalFieldStats ¶ added in v9.0.1

func NewGlobalOrdinalFieldStats() *GlobalOrdinalFieldStats

NewGlobalOrdinalFieldStats returns a GlobalOrdinalFieldStats.

func (*GlobalOrdinalFieldStats) UnmarshalJSON ¶ added in v9.0.1

func (s *GlobalOrdinalFieldStats) UnmarshalJSON(data []byte) error

type GlobalOrdinalsStats ¶ added in v9.0.1

type GlobalOrdinalsStats struct {
	BuildTime         *string                            `json:"build_time,omitempty"`
	BuildTimeInMillis int64                              `json:"build_time_in_millis"`
	Fields            map[string]GlobalOrdinalFieldStats `json:"fields,omitempty"`
}

GlobalOrdinalsStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L131-L135

func NewGlobalOrdinalsStats ¶ added in v9.0.1

func NewGlobalOrdinalsStats() *GlobalOrdinalsStats

NewGlobalOrdinalsStats returns a GlobalOrdinalsStats.

func (*GlobalOrdinalsStats) UnmarshalJSON ¶ added in v9.0.1

func (s *GlobalOrdinalsStats) UnmarshalJSON(data []byte) error

type GlobalPrivilege ¶

type GlobalPrivilege struct {
	Application ApplicationGlobalUserPrivileges `json:"application"`
}

GlobalPrivilege type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L432-L434

func NewGlobalPrivilege ¶

func NewGlobalPrivilege() *GlobalPrivilege

NewGlobalPrivilege returns a GlobalPrivilege.

func (*GlobalPrivilege) GlobalPrivilegeCaster ¶

func (s *GlobalPrivilege) GlobalPrivilegeCaster() *GlobalPrivilege

type GlobalPrivilegeVariant ¶

type GlobalPrivilegeVariant interface {
	GlobalPrivilegeCaster() *GlobalPrivilege
}

type GoogleAiStudioServiceSettings ¶

type GoogleAiStudioServiceSettings struct {
	// ApiKey A valid API key of your Google Gemini account.
	ApiKey string `json:"api_key"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the Google documentation for the list of supported models.
	ModelId string `json:"model_id"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Google AI Studio.
	// By default, the `googleaistudio` service sets the number of requests allowed
	// per minute to 360.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
}

GoogleAiStudioServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1305-L1321

func NewGoogleAiStudioServiceSettings ¶

func NewGoogleAiStudioServiceSettings() *GoogleAiStudioServiceSettings

NewGoogleAiStudioServiceSettings returns a GoogleAiStudioServiceSettings.

func (*GoogleAiStudioServiceSettings) GoogleAiStudioServiceSettingsCaster ¶

func (s *GoogleAiStudioServiceSettings) GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings

func (*GoogleAiStudioServiceSettings) UnmarshalJSON ¶

func (s *GoogleAiStudioServiceSettings) UnmarshalJSON(data []byte) error

type GoogleAiStudioServiceSettingsVariant ¶

type GoogleAiStudioServiceSettingsVariant interface {
	GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings
}

type GoogleNormalizedDistanceHeuristic ¶

type GoogleNormalizedDistanceHeuristic struct {
	// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
	// different set of documents that you want to compare to.
	BackgroundIsSuperset *bool `json:"background_is_superset,omitempty"`
}

GoogleNormalizedDistanceHeuristic type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L793-L798

func NewGoogleNormalizedDistanceHeuristic ¶

func NewGoogleNormalizedDistanceHeuristic() *GoogleNormalizedDistanceHeuristic

NewGoogleNormalizedDistanceHeuristic returns a GoogleNormalizedDistanceHeuristic.

func (*GoogleNormalizedDistanceHeuristic) GoogleNormalizedDistanceHeuristicCaster ¶

func (s *GoogleNormalizedDistanceHeuristic) GoogleNormalizedDistanceHeuristicCaster() *GoogleNormalizedDistanceHeuristic

func (*GoogleNormalizedDistanceHeuristic) UnmarshalJSON ¶

func (s *GoogleNormalizedDistanceHeuristic) UnmarshalJSON(data []byte) error

type GoogleNormalizedDistanceHeuristicVariant ¶

type GoogleNormalizedDistanceHeuristicVariant interface {
	GoogleNormalizedDistanceHeuristicCaster() *GoogleNormalizedDistanceHeuristic
}

type GoogleVertexAIServiceSettings ¶

type GoogleVertexAIServiceSettings struct {
	// Location The name of the location to use for the inference task.
	// Refer to the Google documentation for the list of supported locations.
	Location string `json:"location"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the Google documentation for the list of supported models.
	ModelId string `json:"model_id"`
	// ProjectId The name of the project to use for the inference task.
	ProjectId string `json:"project_id"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Google Vertex AI.
	// By default, the `googlevertexai` service sets the number of requests allowed
	// per minute to 30.000.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// ServiceAccountJson A valid service account in JSON format for the Google Vertex AI API.
	ServiceAccountJson string `json:"service_account_json"`
}

GoogleVertexAIServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1332-L1358

func NewGoogleVertexAIServiceSettings ¶

func NewGoogleVertexAIServiceSettings() *GoogleVertexAIServiceSettings

NewGoogleVertexAIServiceSettings returns a GoogleVertexAIServiceSettings.

func (*GoogleVertexAIServiceSettings) GoogleVertexAIServiceSettingsCaster ¶

func (s *GoogleVertexAIServiceSettings) GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings

func (*GoogleVertexAIServiceSettings) UnmarshalJSON ¶

func (s *GoogleVertexAIServiceSettings) UnmarshalJSON(data []byte) error

type GoogleVertexAIServiceSettingsVariant ¶

type GoogleVertexAIServiceSettingsVariant interface {
	GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings
}

type GoogleVertexAITaskSettings ¶

type GoogleVertexAITaskSettings struct {
	// AutoTruncate For a `text_embedding` task, truncate inputs longer than the maximum token
	// length automatically.
	AutoTruncate *bool `json:"auto_truncate,omitempty"`
	// TopN For a `rerank` task, the number of the top N documents that should be
	// returned.
	TopN *int `json:"top_n,omitempty"`
}

GoogleVertexAITaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1360-L1369

func NewGoogleVertexAITaskSettings ¶

func NewGoogleVertexAITaskSettings() *GoogleVertexAITaskSettings

NewGoogleVertexAITaskSettings returns a GoogleVertexAITaskSettings.

func (*GoogleVertexAITaskSettings) GoogleVertexAITaskSettingsCaster ¶

func (s *GoogleVertexAITaskSettings) GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings

func (*GoogleVertexAITaskSettings) UnmarshalJSON ¶

func (s *GoogleVertexAITaskSettings) UnmarshalJSON(data []byte) error

type GoogleVertexAITaskSettingsVariant ¶

type GoogleVertexAITaskSettingsVariant interface {
	GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings
}

type GrantApiKey ¶

type GrantApiKey struct {
	// Expiration Expiration time for the API key. By default, API keys never expire.
	Expiration *string `json:"expiration,omitempty"`
	// Metadata Arbitrary metadata that you want to associate with the API key.
	// It supports nested data structure.
	// Within the `metadata` object, keys beginning with `_` are reserved for system
	// usage.
	Metadata Metadata `json:"metadata,omitempty"`
	Name     string   `json:"name"`
	// RoleDescriptors The role descriptors for this API key.
	// When it is not specified or is an empty array, the API key has a point in
	// time snapshot of permissions of the specified user or access token.
	// If you supply role descriptors, the resultant permissions are an intersection
	// of API keys permissions and the permissions of the user or access token.
	RoleDescriptors []map[string]RoleDescriptor `json:"role_descriptors,omitempty"`
}

GrantApiKey type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/grant_api_key/types.ts#L25-L45

func NewGrantApiKey ¶

func NewGrantApiKey() *GrantApiKey

NewGrantApiKey returns a GrantApiKey.

func (*GrantApiKey) GrantApiKeyCaster ¶

func (s *GrantApiKey) GrantApiKeyCaster() *GrantApiKey

func (*GrantApiKey) UnmarshalJSON ¶

func (s *GrantApiKey) UnmarshalJSON(data []byte) error

type GrantApiKeyVariant ¶

type GrantApiKeyVariant interface {
	GrantApiKeyCaster() *GrantApiKey
}

type GreaterThanValidation ¶

type GreaterThanValidation struct {
	Constraint Float64 `json:"constraint"`
	Type       string  `json:"type,omitempty"`
}

GreaterThanValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L63-L66

func NewGreaterThanValidation ¶

func NewGreaterThanValidation() *GreaterThanValidation

NewGreaterThanValidation returns a GreaterThanValidation.

func (*GreaterThanValidation) GreaterThanValidationCaster ¶

func (s *GreaterThanValidation) GreaterThanValidationCaster() *GreaterThanValidation

func (GreaterThanValidation) MarshalJSON ¶

func (s GreaterThanValidation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GreaterThanValidation) UnmarshalJSON ¶

func (s *GreaterThanValidation) UnmarshalJSON(data []byte) error

func (*GreaterThanValidation) ValidationCaster ¶ added in v9.0.1

func (s *GreaterThanValidation) ValidationCaster() *Validation

type GreaterThanValidationVariant ¶

type GreaterThanValidationVariant interface {
	GreaterThanValidationCaster() *GreaterThanValidation
}

type GreekAnalyzer ¶

type GreekAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

GreekAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L193-L197

func NewGreekAnalyzer ¶

func NewGreekAnalyzer() *GreekAnalyzer

NewGreekAnalyzer returns a GreekAnalyzer.

func (*GreekAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *GreekAnalyzer) AnalyzerCaster() *Analyzer

func (*GreekAnalyzer) GreekAnalyzerCaster ¶

func (s *GreekAnalyzer) GreekAnalyzerCaster() *GreekAnalyzer

func (GreekAnalyzer) MarshalJSON ¶

func (s GreekAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*GreekAnalyzer) UnmarshalJSON ¶

func (s *GreekAnalyzer) UnmarshalJSON(data []byte) error

type GreekAnalyzerVariant ¶

type GreekAnalyzerVariant interface {
	GreekAnalyzerCaster() *GreekAnalyzer
}

type GrokProcessor ¶

type GrokProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// EcsCompatibility Must be disabled or v1. If v1, the processor uses patterns with Elastic
	// Common Schema (ECS) field names.
	EcsCompatibility *string `json:"ecs_compatibility,omitempty"`
	// Field The field to use for grok expression parsing.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// PatternDefinitions A map of pattern-name and pattern tuples defining custom patterns to be used
	// by the current processor.
	// Patterns matching existing names will override the pre-existing definition.
	PatternDefinitions map[string]string `json:"pattern_definitions,omitempty"`
	// Patterns An ordered list of grok expression to match and extract named captures with.
	// Returns on the first expression in the list that matches.
	Patterns []string `json:"patterns"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TraceMatch When `true`, `_ingest._grok_match_index` will be inserted into your matched
	// document’s metadata with the index into the pattern found in `patterns` that
	// matched.
	TraceMatch *bool `json:"trace_match,omitempty"`
}

GrokProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L951-L982

func NewGrokProcessor ¶

func NewGrokProcessor() *GrokProcessor

NewGrokProcessor returns a GrokProcessor.

func (*GrokProcessor) GrokProcessorCaster ¶

func (s *GrokProcessor) GrokProcessorCaster() *GrokProcessor

func (*GrokProcessor) UnmarshalJSON ¶

func (s *GrokProcessor) UnmarshalJSON(data []byte) error

type GrokProcessorVariant ¶

type GrokProcessorVariant interface {
	GrokProcessorCaster() *GrokProcessor
}

type Groupings ¶

type Groupings struct {
	// DateHistogram A date histogram group aggregates a date field into time-based buckets.
	// This group is mandatory; you currently cannot roll up documents without a
	// timestamp and a `date_histogram` group.
	DateHistogram *DateHistogramGrouping `json:"date_histogram,omitempty"`
	// Histogram The histogram group aggregates one or more numeric fields into numeric
	// histogram intervals.
	Histogram *HistogramGrouping `json:"histogram,omitempty"`
	// Terms The terms group can be used on keyword or numeric fields to allow bucketing
	// via the terms aggregation at a later point.
	// The indexer enumerates and stores all values of a field for each time-period.
	// This can be potentially costly for high-cardinality groups such as IP
	// addresses, especially if the time-bucket is particularly sparse.
	Terms *TermsGrouping `json:"terms,omitempty"`
}

Groupings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/_types/Groupings.ts#L24-L40

func NewGroupings ¶

func NewGroupings() *Groupings

NewGroupings returns a Groupings.

func (*Groupings) GroupingsCaster ¶

func (s *Groupings) GroupingsCaster() *Groupings

type GroupingsVariant ¶

type GroupingsVariant interface {
	GroupingsCaster() *Groupings
}

type GsubProcessor ¶

type GsubProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to apply the replacement to.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Pattern The pattern to be replaced.
	Pattern string `json:"pattern"`
	// Replacement The string to replace the matching patterns with.
	Replacement string `json:"replacement"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to
	// By default, the `field` is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

GsubProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L984-L1008

func NewGsubProcessor ¶

func NewGsubProcessor() *GsubProcessor

NewGsubProcessor returns a GsubProcessor.

func (*GsubProcessor) GsubProcessorCaster ¶

func (s *GsubProcessor) GsubProcessorCaster() *GsubProcessor

func (*GsubProcessor) UnmarshalJSON ¶

func (s *GsubProcessor) UnmarshalJSON(data []byte) error

type GsubProcessorVariant ¶

type GsubProcessorVariant interface {
	GsubProcessorCaster() *GsubProcessor
}

type HalfFloatNumberProperty ¶

type HalfFloatNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *float32                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

HalfFloatNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L162-L165

func NewHalfFloatNumberProperty ¶

func NewHalfFloatNumberProperty() *HalfFloatNumberProperty

NewHalfFloatNumberProperty returns a HalfFloatNumberProperty.

func (*HalfFloatNumberProperty) HalfFloatNumberPropertyCaster ¶

func (s *HalfFloatNumberProperty) HalfFloatNumberPropertyCaster() *HalfFloatNumberProperty

func (HalfFloatNumberProperty) MarshalJSON ¶

func (s HalfFloatNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HalfFloatNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *HalfFloatNumberProperty) PropertyCaster() *Property

func (*HalfFloatNumberProperty) UnmarshalJSON ¶

func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error

type HalfFloatNumberPropertyVariant ¶

type HalfFloatNumberPropertyVariant interface {
	HalfFloatNumberPropertyCaster() *HalfFloatNumberProperty
}

type HasChildQuery ¶

type HasChildQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// IgnoreUnmapped Indicates whether to ignore an unmapped `type` and not return any documents
	// instead of an error.
	IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`
	// InnerHits If defined, each search hit will contain inner hits.
	InnerHits *InnerHits `json:"inner_hits,omitempty"`
	// MaxChildren Maximum number of child documents that match the query allowed for a returned
	// parent document.
	// If the parent document exceeds this limit, it is excluded from the search
	// results.
	MaxChildren *int `json:"max_children,omitempty"`
	// MinChildren Minimum number of child documents that match the query required to match the
	// query for a returned parent document.
	// If the parent document does not meet this limit, it is excluded from the
	// search results.
	MinChildren *int `json:"min_children,omitempty"`
	// Query Query you wish to run on child documents of the `type` field.
	// If a child document matches the search, the query returns the parent
	// document.
	Query      Query   `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// ScoreMode Indicates how scores for matching child documents affect the root parent
	// document’s relevance score.
	ScoreMode *childscoremode.ChildScoreMode `json:"score_mode,omitempty"`
	// Type Name of the child relationship mapped for the `join` field.
	Type string `json:"type"`
}

HasChildQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/joining.ts#L41-L79

func NewHasChildQuery ¶

func NewHasChildQuery() *HasChildQuery

NewHasChildQuery returns a HasChildQuery.

func (*HasChildQuery) HasChildQueryCaster ¶

func (s *HasChildQuery) HasChildQueryCaster() *HasChildQuery

func (*HasChildQuery) UnmarshalJSON ¶

func (s *HasChildQuery) UnmarshalJSON(data []byte) error

type HasChildQueryVariant ¶

type HasChildQueryVariant interface {
	HasChildQueryCaster() *HasChildQuery
}

type HasParentQuery ¶

type HasParentQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// IgnoreUnmapped Indicates whether to ignore an unmapped `parent_type` and not return any
	// documents instead of an error.
	// You can use this parameter to query multiple indices that may not contain the
	// `parent_type`.
	IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`
	// InnerHits If defined, each search hit will contain inner hits.
	InnerHits *InnerHits `json:"inner_hits,omitempty"`
	// ParentType Name of the parent relationship mapped for the `join` field.
	ParentType string `json:"parent_type"`
	// Query Query you wish to run on parent documents of the `parent_type` field.
	// If a parent document matches the search, the query returns its child
	// documents.
	Query      Query   `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// Score Indicates whether the relevance score of a matching parent document is
	// aggregated into its child documents.
	Score *bool `json:"score,omitempty"`
}

HasParentQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/joining.ts#L81-L110

func NewHasParentQuery ¶

func NewHasParentQuery() *HasParentQuery

NewHasParentQuery returns a HasParentQuery.

func (*HasParentQuery) HasParentQueryCaster ¶

func (s *HasParentQuery) HasParentQueryCaster() *HasParentQuery

func (*HasParentQuery) UnmarshalJSON ¶

func (s *HasParentQuery) UnmarshalJSON(data []byte) error

type HasParentQueryVariant ¶

type HasParentQueryVariant interface {
	HasParentQueryCaster() *HasParentQuery
}

type HasPrivilegesUserProfileErrors ¶

type HasPrivilegesUserProfileErrors struct {
	Count   int64                 `json:"count"`
	Details map[string]ErrorCause `json:"details"`
}

HasPrivilegesUserProfileErrors type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/has_privileges_user_profile/types.ts#L39-L42

func NewHasPrivilegesUserProfileErrors ¶

func NewHasPrivilegesUserProfileErrors() *HasPrivilegesUserProfileErrors

NewHasPrivilegesUserProfileErrors returns a HasPrivilegesUserProfileErrors.

func (*HasPrivilegesUserProfileErrors) UnmarshalJSON ¶

func (s *HasPrivilegesUserProfileErrors) UnmarshalJSON(data []byte) error

type HdrMethod ¶

type HdrMethod struct {
	// NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant
	// digits.
	NumberOfSignificantValueDigits *int `json:"number_of_significant_value_digits,omitempty"`
}

HdrMethod type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L237-L242

func NewHdrMethod ¶

func NewHdrMethod() *HdrMethod

NewHdrMethod returns a HdrMethod.

func (*HdrMethod) HdrMethodCaster ¶

func (s *HdrMethod) HdrMethodCaster() *HdrMethod

func (*HdrMethod) UnmarshalJSON ¶

func (s *HdrMethod) UnmarshalJSON(data []byte) error

type HdrMethodVariant ¶

type HdrMethodVariant interface {
	HdrMethodCaster() *HdrMethod
}

type HdrPercentileRanksAggregate ¶

type HdrPercentileRanksAggregate struct {
	Meta   Metadata    `json:"meta,omitempty"`
	Values Percentiles `json:"values"`
}

HdrPercentileRanksAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L171-L172

func NewHdrPercentileRanksAggregate ¶

func NewHdrPercentileRanksAggregate() *HdrPercentileRanksAggregate

NewHdrPercentileRanksAggregate returns a HdrPercentileRanksAggregate.

func (*HdrPercentileRanksAggregate) UnmarshalJSON ¶

func (s *HdrPercentileRanksAggregate) UnmarshalJSON(data []byte) error

type HdrPercentilesAggregate ¶

type HdrPercentilesAggregate struct {
	Meta   Metadata    `json:"meta,omitempty"`
	Values Percentiles `json:"values"`
}

HdrPercentilesAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L168-L169

func NewHdrPercentilesAggregate ¶

func NewHdrPercentilesAggregate() *HdrPercentilesAggregate

NewHdrPercentilesAggregate returns a HdrPercentilesAggregate.

func (*HdrPercentilesAggregate) UnmarshalJSON ¶

func (s *HdrPercentilesAggregate) UnmarshalJSON(data []byte) error

type HealthRecord ¶

type HealthRecord struct {
	// ActiveShardsPercent active number of shards in percent
	ActiveShardsPercent *string `json:"active_shards_percent,omitempty"`
	// Cluster cluster name
	Cluster *string `json:"cluster,omitempty"`
	// Epoch seconds since 1970-01-01 00:00:00
	Epoch StringifiedEpochTimeUnitSeconds `json:"epoch,omitempty"`
	// Init number of initializing nodes
	Init *string `json:"init,omitempty"`
	// MaxTaskWaitTime wait time of longest task pending
	MaxTaskWaitTime *string `json:"max_task_wait_time,omitempty"`
	// NodeData number of nodes that can store data
	NodeData *string `json:"node.data,omitempty"`
	// NodeTotal total number of nodes
	NodeTotal *string `json:"node.total,omitempty"`
	// PendingTasks number of pending tasks
	PendingTasks *string `json:"pending_tasks,omitempty"`
	// Pri number of primary shards
	Pri *string `json:"pri,omitempty"`
	// Relo number of relocating nodes
	Relo *string `json:"relo,omitempty"`
	// Shards total number of shards
	Shards *string `json:"shards,omitempty"`
	// Status health status
	Status *string `json:"status,omitempty"`
	// Timestamp time in HH:MM:SS
	Timestamp *string `json:"timestamp,omitempty"`
	// Unassign number of unassigned shards
	Unassign *string `json:"unassign,omitempty"`
	// UnassignPri number of unassigned primary shards
	UnassignPri *string `json:"unassign.pri,omitempty"`
}

HealthRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/health/types.ts#L23-L99

func NewHealthRecord ¶

func NewHealthRecord() *HealthRecord

NewHealthRecord returns a HealthRecord.

func (*HealthRecord) UnmarshalJSON ¶

func (s *HealthRecord) UnmarshalJSON(data []byte) error

type HealthStatistics ¶

type HealthStatistics struct {
	Available   bool        `json:"available"`
	Enabled     bool        `json:"enabled"`
	Invocations Invocations `json:"invocations"`
}

HealthStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L150-L152

func NewHealthStatistics ¶

func NewHealthStatistics() *HealthStatistics

NewHealthStatistics returns a HealthStatistics.

func (*HealthStatistics) UnmarshalJSON ¶

func (s *HealthStatistics) UnmarshalJSON(data []byte) error

type Highlight ¶

type Highlight struct {
	// BoundaryChars A string that contains each boundary character.
	BoundaryChars *string `json:"boundary_chars,omitempty"`
	// BoundaryMaxScan How far to scan for boundary characters.
	BoundaryMaxScan *int `json:"boundary_max_scan,omitempty"`
	// BoundaryScanner Specifies how to break the highlighted fragments: chars, sentence, or word.
	// Only valid for the unified and fvh highlighters.
	// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for
	// the `fvh` highlighter.
	BoundaryScanner *boundaryscanner.BoundaryScanner `json:"boundary_scanner,omitempty"`
	// BoundaryScannerLocale Controls which locale is used to search for sentence and word boundaries.
	// This parameter takes a form of a language tag, for example: `"en-US"`,
	// `"fr-FR"`, `"ja-JP"`.
	BoundaryScannerLocale *string                                `json:"boundary_scanner_locale,omitempty"`
	Encoder               *highlighterencoder.HighlighterEncoder `json:"encoder,omitempty"`
	Fields                []map[string]HighlightField            `json:"fields"`
	ForceSource           *bool                                  `json:"force_source,omitempty"`
	// FragmentSize The size of the highlighted fragment in characters.
	FragmentSize *int `json:"fragment_size,omitempty"`
	// Fragmenter Specifies how text should be broken up in highlight snippets: `simple` or
	// `span`.
	// Only valid for the `plain` highlighter.
	Fragmenter      *highlighterfragmenter.HighlighterFragmenter `json:"fragmenter,omitempty"`
	HighlightFilter *bool                                        `json:"highlight_filter,omitempty"`
	// HighlightQuery Highlight matches for a query other than the search query.
	// This is especially useful if you use a rescore query because those are not
	// taken into account by highlighting by default.
	HighlightQuery *Query `json:"highlight_query,omitempty"`
	// MaxAnalyzedOffset If set to a non-negative value, highlighting stops at this defined maximum
	// limit.
	// The rest of the text is not processed, thus not highlighted and no error is
	// returned
	// The `max_analyzed_offset` query setting does not override the
	// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set
	// to lower value than the query setting.
	MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`
	MaxFragmentLength *int `json:"max_fragment_length,omitempty"`
	// NoMatchSize The amount of text you want to return from the beginning of the field if
	// there are no matching fragments to highlight.
	NoMatchSize *int `json:"no_match_size,omitempty"`
	// NumberOfFragments The maximum number of fragments to return.
	// If the number of fragments is set to `0`, no fragments are returned.
	// Instead, the entire field contents are highlighted and returned.
	// This can be handy when you need to highlight short texts such as a title or
	// address, but fragmentation is not required.
	// If `number_of_fragments` is `0`, `fragment_size` is ignored.
	NumberOfFragments *int                       `json:"number_of_fragments,omitempty"`
	Options           map[string]json.RawMessage `json:"options,omitempty"`
	// Order Sorts highlighted fragments by score when set to `score`.
	// By default, fragments will be output in the order they appear in the field
	// (order: `none`).
	// Setting this option to `score` will output the most relevant fragments first.
	// Each highlighter applies its own logic to compute relevancy scores.
	Order *highlighterorder.HighlighterOrder `json:"order,omitempty"`
	// PhraseLimit Controls the number of matching phrases in a document that are considered.
	// Prevents the `fvh` highlighter from analyzing too many phrases and consuming
	// too much memory.
	// When using `matched_fields`, `phrase_limit` phrases per matched field are
	// considered. Raising the limit increases query time and consumes more memory.
	// Only supported by the `fvh` highlighter.
	PhraseLimit *int `json:"phrase_limit,omitempty"`
	// PostTags Use in conjunction with `pre_tags` to define the HTML tags to use for the
	// highlighted text.
	// By default, highlighted text is wrapped in `<em>` and `</em>` tags.
	PostTags []string `json:"post_tags,omitempty"`
	// PreTags Use in conjunction with `post_tags` to define the HTML tags to use for the
	// highlighted text.
	// By default, highlighted text is wrapped in `<em>` and `</em>` tags.
	PreTags []string `json:"pre_tags,omitempty"`
	// RequireFieldMatch By default, only fields that contains a query match are highlighted.
	// Set to `false` to highlight all fields.
	RequireFieldMatch *bool `json:"require_field_match,omitempty"`
	// TagsSchema Set to `styled` to use the built-in tag schema.
	TagsSchema *highlightertagsschema.HighlighterTagsSchema `json:"tags_schema,omitempty"`
	Type       *highlightertype.HighlighterType             `json:"type,omitempty"`
}

Highlight type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/highlighting.ts#L152-L157

func NewHighlight ¶

func NewHighlight() *Highlight

NewHighlight returns a Highlight.

func (*Highlight) HighlightCaster ¶

func (s *Highlight) HighlightCaster() *Highlight

func (*Highlight) UnmarshalJSON ¶

func (s *Highlight) UnmarshalJSON(data []byte) error

type HighlightField ¶

type HighlightField struct {
	// BoundaryChars A string that contains each boundary character.
	BoundaryChars *string `json:"boundary_chars,omitempty"`
	// BoundaryMaxScan How far to scan for boundary characters.
	BoundaryMaxScan *int `json:"boundary_max_scan,omitempty"`
	// BoundaryScanner Specifies how to break the highlighted fragments: chars, sentence, or word.
	// Only valid for the unified and fvh highlighters.
	// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for
	// the `fvh` highlighter.
	BoundaryScanner *boundaryscanner.BoundaryScanner `json:"boundary_scanner,omitempty"`
	// BoundaryScannerLocale Controls which locale is used to search for sentence and word boundaries.
	// This parameter takes a form of a language tag, for example: `"en-US"`,
	// `"fr-FR"`, `"ja-JP"`.
	BoundaryScannerLocale *string `json:"boundary_scanner_locale,omitempty"`
	ForceSource           *bool   `json:"force_source,omitempty"`
	FragmentOffset        *int    `json:"fragment_offset,omitempty"`
	// FragmentSize The size of the highlighted fragment in characters.
	FragmentSize *int `json:"fragment_size,omitempty"`
	// Fragmenter Specifies how text should be broken up in highlight snippets: `simple` or
	// `span`.
	// Only valid for the `plain` highlighter.
	Fragmenter      *highlighterfragmenter.HighlighterFragmenter `json:"fragmenter,omitempty"`
	HighlightFilter *bool                                        `json:"highlight_filter,omitempty"`
	// HighlightQuery Highlight matches for a query other than the search query.
	// This is especially useful if you use a rescore query because those are not
	// taken into account by highlighting by default.
	HighlightQuery *Query   `json:"highlight_query,omitempty"`
	MatchedFields  []string `json:"matched_fields,omitempty"`
	// MaxAnalyzedOffset If set to a non-negative value, highlighting stops at this defined maximum
	// limit.
	// The rest of the text is not processed, thus not highlighted and no error is
	// returned
	// The `max_analyzed_offset` query setting does not override the
	// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set
	// to lower value than the query setting.
	MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`
	MaxFragmentLength *int `json:"max_fragment_length,omitempty"`
	// NoMatchSize The amount of text you want to return from the beginning of the field if
	// there are no matching fragments to highlight.
	NoMatchSize *int `json:"no_match_size,omitempty"`
	// NumberOfFragments The maximum number of fragments to return.
	// If the number of fragments is set to `0`, no fragments are returned.
	// Instead, the entire field contents are highlighted and returned.
	// This can be handy when you need to highlight short texts such as a title or
	// address, but fragmentation is not required.
	// If `number_of_fragments` is `0`, `fragment_size` is ignored.
	NumberOfFragments *int                       `json:"number_of_fragments,omitempty"`
	Options           map[string]json.RawMessage `json:"options,omitempty"`
	// Order Sorts highlighted fragments by score when set to `score`.
	// By default, fragments will be output in the order they appear in the field
	// (order: `none`).
	// Setting this option to `score` will output the most relevant fragments first.
	// Each highlighter applies its own logic to compute relevancy scores.
	Order *highlighterorder.HighlighterOrder `json:"order,omitempty"`
	// PhraseLimit Controls the number of matching phrases in a document that are considered.
	// Prevents the `fvh` highlighter from analyzing too many phrases and consuming
	// too much memory.
	// When using `matched_fields`, `phrase_limit` phrases per matched field are
	// considered. Raising the limit increases query time and consumes more memory.
	// Only supported by the `fvh` highlighter.
	PhraseLimit *int `json:"phrase_limit,omitempty"`
	// PostTags Use in conjunction with `pre_tags` to define the HTML tags to use for the
	// highlighted text.
	// By default, highlighted text is wrapped in `<em>` and `</em>` tags.
	PostTags []string `json:"post_tags,omitempty"`
	// PreTags Use in conjunction with `post_tags` to define the HTML tags to use for the
	// highlighted text.
	// By default, highlighted text is wrapped in `<em>` and `</em>` tags.
	PreTags []string `json:"pre_tags,omitempty"`
	// RequireFieldMatch By default, only fields that contains a query match are highlighted.
	// Set to `false` to highlight all fields.
	RequireFieldMatch *bool `json:"require_field_match,omitempty"`
	// TagsSchema Set to `styled` to use the built-in tag schema.
	TagsSchema *highlightertagsschema.HighlighterTagsSchema `json:"tags_schema,omitempty"`
	Type       *highlightertype.HighlighterType             `json:"type,omitempty"`
}

HighlightField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/highlighting.ts#L194-L197

func NewHighlightField ¶

func NewHighlightField() *HighlightField

NewHighlightField returns a HighlightField.

func (*HighlightField) HighlightFieldCaster ¶

func (s *HighlightField) HighlightFieldCaster() *HighlightField

func (*HighlightField) UnmarshalJSON ¶

func (s *HighlightField) UnmarshalJSON(data []byte) error

type HighlightFieldVariant ¶

type HighlightFieldVariant interface {
	HighlightFieldCaster() *HighlightField
}

type HighlightVariant ¶

type HighlightVariant interface {
	HighlightCaster() *Highlight
}

type HindiAnalyzer ¶

type HindiAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

HindiAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L199-L204

func NewHindiAnalyzer ¶

func NewHindiAnalyzer() *HindiAnalyzer

NewHindiAnalyzer returns a HindiAnalyzer.

func (*HindiAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *HindiAnalyzer) AnalyzerCaster() *Analyzer

func (*HindiAnalyzer) HindiAnalyzerCaster ¶

func (s *HindiAnalyzer) HindiAnalyzerCaster() *HindiAnalyzer

func (HindiAnalyzer) MarshalJSON ¶

func (s HindiAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HindiAnalyzer) UnmarshalJSON ¶

func (s *HindiAnalyzer) UnmarshalJSON(data []byte) error

type HindiAnalyzerVariant ¶

type HindiAnalyzerVariant interface {
	HindiAnalyzerCaster() *HindiAnalyzer
}

type HindiNormalizationTokenFilter ¶ added in v9.0.1

type HindiNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

HindiNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L502-L504

func NewHindiNormalizationTokenFilter ¶ added in v9.0.1

func NewHindiNormalizationTokenFilter() *HindiNormalizationTokenFilter

NewHindiNormalizationTokenFilter returns a HindiNormalizationTokenFilter.

func (*HindiNormalizationTokenFilter) HindiNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *HindiNormalizationTokenFilter) HindiNormalizationTokenFilterCaster() *HindiNormalizationTokenFilter

func (HindiNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s HindiNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HindiNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *HindiNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*HindiNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *HindiNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type HindiNormalizationTokenFilterVariant ¶ added in v9.0.1

type HindiNormalizationTokenFilterVariant interface {
	HindiNormalizationTokenFilterCaster() *HindiNormalizationTokenFilter
}

type Hint ¶

type Hint struct {
	// Labels A single key-value pair to match against the labels section
	// of a profile. A profile is considered matching if it matches
	// at least one of the strings.
	Labels map[string][]string `json:"labels,omitempty"`
	// Uids A list of profile UIDs to match against.
	Uids []string `json:"uids,omitempty"`
}

Hint type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/suggest_user_profiles/types.ts#L23-L34

func NewHint ¶

func NewHint() *Hint

NewHint returns a Hint.

func (*Hint) HintCaster ¶

func (s *Hint) HintCaster() *Hint

type HintVariant ¶

type HintVariant interface {
	HintCaster() *Hint
}

type HistogramAggregate ¶

type HistogramAggregate struct {
	Buckets BucketsHistogramBucket `json:"buckets"`
	Meta    Metadata               `json:"meta,omitempty"`
}

HistogramAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L372-L376

func NewHistogramAggregate ¶

func NewHistogramAggregate() *HistogramAggregate

NewHistogramAggregate returns a HistogramAggregate.

func (*HistogramAggregate) UnmarshalJSON ¶

func (s *HistogramAggregate) UnmarshalJSON(data []byte) error

type HistogramAggregation ¶

type HistogramAggregation struct {
	// ExtendedBounds Enables extending the bounds of the histogram beyond the data itself.
	ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"`
	// Field The name of the field to aggregate on.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// HardBounds Limits the range of buckets in the histogram.
	// It is particularly useful in the case of open data ranges that can result in
	// a very large number of buckets.
	HardBounds *ExtendedBoundsdouble `json:"hard_bounds,omitempty"`
	// Interval The interval for the buckets.
	// Must be a positive decimal.
	Interval *Float64 `json:"interval,omitempty"`
	// Keyed If `true`, returns buckets as a hash instead of an array, keyed by the bucket
	// keys.
	Keyed *bool `json:"keyed,omitempty"`
	// MinDocCount Only returns buckets that have `min_doc_count` number of documents.
	// By default, the response will fill gaps in the histogram with empty buckets.
	MinDocCount *int `json:"min_doc_count,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing *Float64 `json:"missing,omitempty"`
	// Offset By default, the bucket keys start with 0 and then continue in even spaced
	// steps of `interval`.
	// The bucket boundaries can be shifted by using the `offset` option.
	Offset *Float64 `json:"offset,omitempty"`
	// Order The sort order of the returned buckets.
	// By default, the returned buckets are sorted by their key ascending.
	Order  AggregateOrder `json:"order,omitempty"`
	Script *Script        `json:"script,omitempty"`
}

HistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L519-L565

func NewHistogramAggregation ¶

func NewHistogramAggregation() *HistogramAggregation

NewHistogramAggregation returns a HistogramAggregation.

func (*HistogramAggregation) HistogramAggregationCaster ¶

func (s *HistogramAggregation) HistogramAggregationCaster() *HistogramAggregation

func (*HistogramAggregation) UnmarshalJSON ¶

func (s *HistogramAggregation) UnmarshalJSON(data []byte) error

type HistogramAggregationVariant ¶

type HistogramAggregationVariant interface {
	HistogramAggregationCaster() *HistogramAggregation
}

type HistogramBucket ¶

type HistogramBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          Float64              `json:"key"`
	KeyAsString  *string              `json:"key_as_string,omitempty"`
}

HistogramBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L378-L381

func NewHistogramBucket ¶

func NewHistogramBucket() *HistogramBucket

NewHistogramBucket returns a HistogramBucket.

func (HistogramBucket) MarshalJSON ¶

func (s HistogramBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*HistogramBucket) UnmarshalJSON ¶

func (s *HistogramBucket) UnmarshalJSON(data []byte) error

type HistogramGrouping ¶

type HistogramGrouping struct {
	// Fields The set of fields that you wish to build histograms for.
	// All fields specified must be some kind of numeric.
	// Order does not matter.
	Fields []string `json:"fields"`
	// Interval The interval of histogram buckets to be generated when rolling up.
	// For example, a value of `5` creates buckets that are five units wide (`0-5`,
	// `5-10`, etc).
	// Note that only one interval can be specified in the histogram group, meaning
	// that all fields being grouped via the histogram must share the same interval.
	Interval int64 `json:"interval"`
}

HistogramGrouping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/_types/Groupings.ts#L84-L97

func NewHistogramGrouping ¶

func NewHistogramGrouping() *HistogramGrouping

NewHistogramGrouping returns a HistogramGrouping.

func (*HistogramGrouping) HistogramGroupingCaster ¶

func (s *HistogramGrouping) HistogramGroupingCaster() *HistogramGrouping

func (*HistogramGrouping) UnmarshalJSON ¶

func (s *HistogramGrouping) UnmarshalJSON(data []byte) error

type HistogramGroupingVariant ¶

type HistogramGroupingVariant interface {
	HistogramGroupingCaster() *HistogramGrouping
}

type HistogramProperty ¶

type HistogramProperty struct {
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

HistogramProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L69-L72

func NewHistogramProperty ¶

func NewHistogramProperty() *HistogramProperty

NewHistogramProperty returns a HistogramProperty.

func (*HistogramProperty) HistogramPropertyCaster ¶

func (s *HistogramProperty) HistogramPropertyCaster() *HistogramProperty

func (HistogramProperty) MarshalJSON ¶

func (s HistogramProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HistogramProperty) PropertyCaster ¶ added in v9.0.1

func (s *HistogramProperty) PropertyCaster() *Property

func (*HistogramProperty) UnmarshalJSON ¶

func (s *HistogramProperty) UnmarshalJSON(data []byte) error

type HistogramPropertyVariant ¶

type HistogramPropertyVariant interface {
	HistogramPropertyCaster() *HistogramProperty
}

type Hit ¶

type Hit struct {
	Explanation_       *Explanation                 `json:"_explanation,omitempty"`
	Fields             map[string]json.RawMessage   `json:"fields,omitempty"`
	Highlight          map[string][]string          `json:"highlight,omitempty"`
	Id_                *string                      `json:"_id,omitempty"`
	IgnoredFieldValues map[string][]json.RawMessage `json:"ignored_field_values,omitempty"`
	Ignored_           []string                     `json:"_ignored,omitempty"`
	Index_             string                       `json:"_index"`
	InnerHits          map[string]InnerHitsResult   `json:"inner_hits,omitempty"`
	MatchedQueries     any                          `json:"matched_queries,omitempty"`
	Nested_            *NestedIdentity              `json:"_nested,omitempty"`
	Node_              *string                      `json:"_node,omitempty"`
	PrimaryTerm_       *int64                       `json:"_primary_term,omitempty"`
	Rank_              *int                         `json:"_rank,omitempty"`
	Routing_           *string                      `json:"_routing,omitempty"`
	Score_             *Float64                     `json:"_score,omitempty"`
	SeqNo_             *int64                       `json:"_seq_no,omitempty"`
	Shard_             *string                      `json:"_shard,omitempty"`
	Sort               []FieldValue                 `json:"sort,omitempty"`
	Source_            json.RawMessage              `json:"_source,omitempty"`
	Version_           *int64                       `json:"_version,omitempty"`
}

Hit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/hits.ts#L40-L65

func NewHit ¶

func NewHit() *Hit

NewHit returns a Hit.

func (*Hit) UnmarshalJSON ¶

func (s *Hit) UnmarshalJSON(data []byte) error

type HitsEvent ¶

type HitsEvent struct {
	Fields map[string][]json.RawMessage `json:"fields,omitempty"`
	// Id_ Unique identifier for the event. This ID is only unique within the index.
	Id_ string `json:"_id"`
	// Index_ Name of the index containing the event.
	Index_ string `json:"_index"`
	// Missing Set to `true` for events in a timespan-constrained sequence that do not meet
	// a given condition.
	Missing *bool `json:"missing,omitempty"`
	// Source_ Original JSON body passed for the event at index time.
	Source_ json.RawMessage `json:"_source,omitempty"`
}

HitsEvent type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/eql/_types/EqlHits.ts#L41-L54

func NewHitsEvent ¶

func NewHitsEvent() *HitsEvent

NewHitsEvent returns a HitsEvent.

func (*HitsEvent) UnmarshalJSON ¶

func (s *HitsEvent) UnmarshalJSON(data []byte) error

type HitsMetadata ¶

type HitsMetadata struct {
	Hits     []Hit    `json:"hits"`
	MaxScore *Float64 `json:"max_score,omitempty"`
	// Total Total hit count information, present only if `track_total_hits` wasn't
	// `false` in the search request.
	Total *TotalHits `json:"total,omitempty"`
}

HitsMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/hits.ts#L67-L73

func NewHitsMetadata ¶

func NewHitsMetadata() *HitsMetadata

NewHitsMetadata returns a HitsMetadata.

func (*HitsMetadata) UnmarshalJSON ¶

func (s *HitsMetadata) UnmarshalJSON(data []byte) error

type HitsSequence ¶

type HitsSequence struct {
	// Events Contains events matching the query. Each object represents a matching event.
	Events []HitsEvent `json:"events"`
	// JoinKeys Shared field values used to constrain matches in the sequence. These are
	// defined using the by keyword in the EQL query syntax.
	JoinKeys []json.RawMessage `json:"join_keys,omitempty"`
}

HitsSequence type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/eql/_types/EqlHits.ts#L56-L64

func NewHitsSequence ¶

func NewHitsSequence() *HitsSequence

NewHitsSequence returns a HitsSequence.

type HoltLinearModelSettings ¶

type HoltLinearModelSettings struct {
	Alpha *float32 `json:"alpha,omitempty"`
	Beta  *float32 `json:"beta,omitempty"`
}

HoltLinearModelSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L297-L300

func NewHoltLinearModelSettings ¶

func NewHoltLinearModelSettings() *HoltLinearModelSettings

NewHoltLinearModelSettings returns a HoltLinearModelSettings.

func (*HoltLinearModelSettings) HoltLinearModelSettingsCaster ¶

func (s *HoltLinearModelSettings) HoltLinearModelSettingsCaster() *HoltLinearModelSettings

func (*HoltLinearModelSettings) UnmarshalJSON ¶

func (s *HoltLinearModelSettings) UnmarshalJSON(data []byte) error

type HoltLinearModelSettingsVariant ¶

type HoltLinearModelSettingsVariant interface {
	HoltLinearModelSettingsCaster() *HoltLinearModelSettings
}

type HoltMovingAverageAggregation ¶

type HoltMovingAverageAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy    `json:"gap_policy,omitempty"`
	Minimize  *bool                   `json:"minimize,omitempty"`
	Model     string                  `json:"model,omitempty"`
	Predict   *int                    `json:"predict,omitempty"`
	Settings  HoltLinearModelSettings `json:"settings"`
	Window    *int                    `json:"window,omitempty"`
}

HoltMovingAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L283-L286

func NewHoltMovingAverageAggregation ¶

func NewHoltMovingAverageAggregation() *HoltMovingAverageAggregation

NewHoltMovingAverageAggregation returns a HoltMovingAverageAggregation.

func (*HoltMovingAverageAggregation) HoltMovingAverageAggregationCaster ¶

func (s *HoltMovingAverageAggregation) HoltMovingAverageAggregationCaster() *HoltMovingAverageAggregation

func (HoltMovingAverageAggregation) MarshalJSON ¶

func (s HoltMovingAverageAggregation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HoltMovingAverageAggregation) MovingAverageAggregationCaster ¶ added in v9.0.1

func (s *HoltMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation

func (*HoltMovingAverageAggregation) UnmarshalJSON ¶

func (s *HoltMovingAverageAggregation) UnmarshalJSON(data []byte) error

type HoltMovingAverageAggregationVariant ¶

type HoltMovingAverageAggregationVariant interface {
	HoltMovingAverageAggregationCaster() *HoltMovingAverageAggregation
}

type HoltWintersModelSettings ¶

type HoltWintersModelSettings struct {
	Alpha  *float32                         `json:"alpha,omitempty"`
	Beta   *float32                         `json:"beta,omitempty"`
	Gamma  *float32                         `json:"gamma,omitempty"`
	Pad    *bool                            `json:"pad,omitempty"`
	Period *int                             `json:"period,omitempty"`
	Type   *holtwinterstype.HoltWintersType `json:"type,omitempty"`
}

HoltWintersModelSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L301-L308

func NewHoltWintersModelSettings ¶

func NewHoltWintersModelSettings() *HoltWintersModelSettings

NewHoltWintersModelSettings returns a HoltWintersModelSettings.

func (*HoltWintersModelSettings) HoltWintersModelSettingsCaster ¶

func (s *HoltWintersModelSettings) HoltWintersModelSettingsCaster() *HoltWintersModelSettings

func (*HoltWintersModelSettings) UnmarshalJSON ¶

func (s *HoltWintersModelSettings) UnmarshalJSON(data []byte) error

type HoltWintersModelSettingsVariant ¶

type HoltWintersModelSettingsVariant interface {
	HoltWintersModelSettingsCaster() *HoltWintersModelSettings
}

type HoltWintersMovingAverageAggregation ¶

type HoltWintersMovingAverageAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy     `json:"gap_policy,omitempty"`
	Minimize  *bool                    `json:"minimize,omitempty"`
	Model     string                   `json:"model,omitempty"`
	Predict   *int                     `json:"predict,omitempty"`
	Settings  HoltWintersModelSettings `json:"settings"`
	Window    *int                     `json:"window,omitempty"`
}

HoltWintersMovingAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L288-L291

func NewHoltWintersMovingAverageAggregation ¶

func NewHoltWintersMovingAverageAggregation() *HoltWintersMovingAverageAggregation

NewHoltWintersMovingAverageAggregation returns a HoltWintersMovingAverageAggregation.

func (*HoltWintersMovingAverageAggregation) HoltWintersMovingAverageAggregationCaster ¶

func (s *HoltWintersMovingAverageAggregation) HoltWintersMovingAverageAggregationCaster() *HoltWintersMovingAverageAggregation

func (HoltWintersMovingAverageAggregation) MarshalJSON ¶

func (s HoltWintersMovingAverageAggregation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HoltWintersMovingAverageAggregation) MovingAverageAggregationCaster ¶ added in v9.0.1

func (s *HoltWintersMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation

func (*HoltWintersMovingAverageAggregation) UnmarshalJSON ¶

func (s *HoltWintersMovingAverageAggregation) UnmarshalJSON(data []byte) error

type HoltWintersMovingAverageAggregationVariant ¶

type HoltWintersMovingAverageAggregationVariant interface {
	HoltWintersMovingAverageAggregationCaster() *HoltWintersMovingAverageAggregation
}

type Hop ¶

type Hop struct {
	// Connections Specifies one or more fields from which you want to extract terms that are
	// associated with the specified vertices.
	Connections *Hop `json:"connections,omitempty"`
	// Query An optional guiding query that constrains the Graph API as it explores
	// connected terms.
	Query *Query `json:"query,omitempty"`
	// Vertices Contains the fields you are interested in.
	Vertices []VertexDefinition `json:"vertices"`
}

Hop type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/Hop.ts#L23-L36

func NewHop ¶

func NewHop() *Hop

NewHop returns a Hop.

func (*Hop) HopCaster ¶

func (s *Hop) HopCaster() *Hop

type HopVariant ¶

type HopVariant interface {
	HopCaster() *Hop
}

type HourAndMinute ¶

type HourAndMinute struct {
	Hour   []int `json:"hour"`
	Minute []int `json:"minute"`
}

HourAndMinute type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L106-L109

func NewHourAndMinute ¶

func NewHourAndMinute() *HourAndMinute

NewHourAndMinute returns a HourAndMinute.

func (*HourAndMinute) HourAndMinuteCaster ¶

func (s *HourAndMinute) HourAndMinuteCaster() *HourAndMinute

func (*HourAndMinute) ScheduleTimeOfDayCaster ¶ added in v9.0.1

func (s *HourAndMinute) ScheduleTimeOfDayCaster() *ScheduleTimeOfDay

type HourAndMinuteVariant ¶

type HourAndMinuteVariant interface {
	HourAndMinuteCaster() *HourAndMinute
}

type HourlySchedule ¶

type HourlySchedule struct {
	Minute []int `json:"minute"`
}

HourlySchedule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L47-L49

func NewHourlySchedule ¶

func NewHourlySchedule() *HourlySchedule

NewHourlySchedule returns a HourlySchedule.

func (*HourlySchedule) HourlyScheduleCaster ¶

func (s *HourlySchedule) HourlyScheduleCaster() *HourlySchedule

type HourlyScheduleVariant ¶

type HourlyScheduleVariant interface {
	HourlyScheduleCaster() *HourlySchedule
}

type HtmlStripCharFilter ¶

type HtmlStripCharFilter struct {
	EscapedTags []string `json:"escaped_tags,omitempty"`
	Type        string   `json:"type,omitempty"`
	Version     *string  `json:"version,omitempty"`
}

HtmlStripCharFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/char_filters.ts#L46-L49

func NewHtmlStripCharFilter ¶

func NewHtmlStripCharFilter() *HtmlStripCharFilter

NewHtmlStripCharFilter returns a HtmlStripCharFilter.

func (*HtmlStripCharFilter) CharFilterDefinitionCaster ¶ added in v9.0.1

func (s *HtmlStripCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition

func (*HtmlStripCharFilter) HtmlStripCharFilterCaster ¶

func (s *HtmlStripCharFilter) HtmlStripCharFilterCaster() *HtmlStripCharFilter

func (HtmlStripCharFilter) MarshalJSON ¶

func (s HtmlStripCharFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HtmlStripCharFilter) UnmarshalJSON ¶

func (s *HtmlStripCharFilter) UnmarshalJSON(data []byte) error

type HtmlStripCharFilterVariant ¶

type HtmlStripCharFilterVariant interface {
	HtmlStripCharFilterCaster() *HtmlStripCharFilter
}

type HtmlStripProcessor ¶

type HtmlStripProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The string-valued field to remove HTML tags from.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document,
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to
	// By default, the `field` is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

HtmlStripProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1010-L1026

func NewHtmlStripProcessor ¶

func NewHtmlStripProcessor() *HtmlStripProcessor

NewHtmlStripProcessor returns a HtmlStripProcessor.

func (*HtmlStripProcessor) HtmlStripProcessorCaster ¶

func (s *HtmlStripProcessor) HtmlStripProcessorCaster() *HtmlStripProcessor

func (*HtmlStripProcessor) UnmarshalJSON ¶

func (s *HtmlStripProcessor) UnmarshalJSON(data []byte) error

type HtmlStripProcessorVariant ¶

type HtmlStripProcessorVariant interface {
	HtmlStripProcessorCaster() *HtmlStripProcessor
}

type Http ¶

type Http struct {
	// Clients Information on current and recently-closed HTTP client connections.
	// Clients that have been closed longer than the
	// `http.client_stats.closed_channels.max_age` setting will not be represented
	// here.
	Clients []Client `json:"clients,omitempty"`
	// CurrentOpen Current number of open HTTP connections for the node.
	CurrentOpen *int `json:"current_open,omitempty"`
	// Routes Detailed HTTP stats broken down by route
	Routes map[string]HttpRoute `json:"routes"`
	// TotalOpened Total number of HTTP connections opened for the node.
	TotalOpened *int64 `json:"total_opened,omitempty"`
}

Http type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L671-L690

func NewHttp ¶

func NewHttp() *Http

NewHttp returns a Http.

func (*Http) UnmarshalJSON ¶

func (s *Http) UnmarshalJSON(data []byte) error

type HttpEmailAttachment ¶

type HttpEmailAttachment struct {
	ContentType *string                     `json:"content_type,omitempty"`
	Inline      *bool                       `json:"inline,omitempty"`
	Request     *HttpInputRequestDefinition `json:"request,omitempty"`
}

HttpEmailAttachment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L218-L222

func NewHttpEmailAttachment ¶

func NewHttpEmailAttachment() *HttpEmailAttachment

NewHttpEmailAttachment returns a HttpEmailAttachment.

func (*HttpEmailAttachment) HttpEmailAttachmentCaster ¶

func (s *HttpEmailAttachment) HttpEmailAttachmentCaster() *HttpEmailAttachment

func (*HttpEmailAttachment) UnmarshalJSON ¶

func (s *HttpEmailAttachment) UnmarshalJSON(data []byte) error

type HttpEmailAttachmentVariant ¶

type HttpEmailAttachmentVariant interface {
	HttpEmailAttachmentCaster() *HttpEmailAttachment
}

type HttpHeadersVariant ¶

type HttpHeadersVariant interface {
	HttpHeadersCaster() *HttpHeaders
}

type HttpInput ¶

type HttpInput struct {
	Extract             []string                                 `json:"extract,omitempty"`
	Request             *HttpInputRequestDefinition              `json:"request,omitempty"`
	ResponseContentType *responsecontenttype.ResponseContentType `json:"response_content_type,omitempty"`
}

HttpInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L44-L48

func NewHttpInput ¶

func NewHttpInput() *HttpInput

NewHttpInput returns a HttpInput.

func (*HttpInput) HttpInputCaster ¶

func (s *HttpInput) HttpInputCaster() *HttpInput

type HttpInputAuthentication ¶

type HttpInputAuthentication struct {
	Basic HttpInputBasicAuthentication `json:"basic"`
}

HttpInputAuthentication type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L50-L52

func NewHttpInputAuthentication ¶

func NewHttpInputAuthentication() *HttpInputAuthentication

NewHttpInputAuthentication returns a HttpInputAuthentication.

func (*HttpInputAuthentication) HttpInputAuthenticationCaster ¶

func (s *HttpInputAuthentication) HttpInputAuthenticationCaster() *HttpInputAuthentication

type HttpInputAuthenticationVariant ¶

type HttpInputAuthenticationVariant interface {
	HttpInputAuthenticationCaster() *HttpInputAuthentication
}

type HttpInputBasicAuthentication ¶

type HttpInputBasicAuthentication struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

HttpInputBasicAuthentication type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L54-L57

func NewHttpInputBasicAuthentication ¶

func NewHttpInputBasicAuthentication() *HttpInputBasicAuthentication

NewHttpInputBasicAuthentication returns a HttpInputBasicAuthentication.

func (*HttpInputBasicAuthentication) HttpInputBasicAuthenticationCaster ¶

func (s *HttpInputBasicAuthentication) HttpInputBasicAuthenticationCaster() *HttpInputBasicAuthentication

func (*HttpInputBasicAuthentication) UnmarshalJSON ¶

func (s *HttpInputBasicAuthentication) UnmarshalJSON(data []byte) error

type HttpInputBasicAuthenticationVariant ¶

type HttpInputBasicAuthenticationVariant interface {
	HttpInputBasicAuthenticationCaster() *HttpInputBasicAuthentication
}

type HttpInputProxy ¶

type HttpInputProxy struct {
	Host string `json:"host"`
	Port uint   `json:"port"`
}

HttpInputProxy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L67-L70

func NewHttpInputProxy ¶

func NewHttpInputProxy() *HttpInputProxy

NewHttpInputProxy returns a HttpInputProxy.

func (*HttpInputProxy) HttpInputProxyCaster ¶

func (s *HttpInputProxy) HttpInputProxyCaster() *HttpInputProxy

func (*HttpInputProxy) UnmarshalJSON ¶

func (s *HttpInputProxy) UnmarshalJSON(data []byte) error

type HttpInputProxyVariant ¶

type HttpInputProxyVariant interface {
	HttpInputProxyCaster() *HttpInputProxy
}

type HttpInputRequestDefinition ¶

type HttpInputRequestDefinition struct {
	Auth              *HttpInputAuthentication           `json:"auth,omitempty"`
	Body              *string                            `json:"body,omitempty"`
	ConnectionTimeout Duration                           `json:"connection_timeout,omitempty"`
	Headers           map[string]string                  `json:"headers,omitempty"`
	Host              *string                            `json:"host,omitempty"`
	Method            *httpinputmethod.HttpInputMethod   `json:"method,omitempty"`
	Params            map[string]string                  `json:"params,omitempty"`
	Path              *string                            `json:"path,omitempty"`
	Port              *uint                              `json:"port,omitempty"`
	Proxy             *HttpInputProxy                    `json:"proxy,omitempty"`
	ReadTimeout       Duration                           `json:"read_timeout,omitempty"`
	Scheme            *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`
	Url               *string                            `json:"url,omitempty"`
}

HttpInputRequestDefinition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L72-L86

func NewHttpInputRequestDefinition ¶

func NewHttpInputRequestDefinition() *HttpInputRequestDefinition

NewHttpInputRequestDefinition returns a HttpInputRequestDefinition.

func (*HttpInputRequestDefinition) HttpInputRequestDefinitionCaster ¶

func (s *HttpInputRequestDefinition) HttpInputRequestDefinitionCaster() *HttpInputRequestDefinition

func (*HttpInputRequestDefinition) UnmarshalJSON ¶

func (s *HttpInputRequestDefinition) UnmarshalJSON(data []byte) error

type HttpInputRequestDefinitionVariant ¶

type HttpInputRequestDefinitionVariant interface {
	HttpInputRequestDefinitionCaster() *HttpInputRequestDefinition
}

type HttpInputRequestResult ¶

type HttpInputRequestResult struct {
	Auth              *HttpInputAuthentication           `json:"auth,omitempty"`
	Body              *string                            `json:"body,omitempty"`
	ConnectionTimeout Duration                           `json:"connection_timeout,omitempty"`
	Headers           map[string]string                  `json:"headers,omitempty"`
	Host              *string                            `json:"host,omitempty"`
	Method            *httpinputmethod.HttpInputMethod   `json:"method,omitempty"`
	Params            map[string]string                  `json:"params,omitempty"`
	Path              *string                            `json:"path,omitempty"`
	Port              *uint                              `json:"port,omitempty"`
	Proxy             *HttpInputProxy                    `json:"proxy,omitempty"`
	ReadTimeout       Duration                           `json:"read_timeout,omitempty"`
	Scheme            *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`
	Url               *string                            `json:"url,omitempty"`
}

HttpInputRequestResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L300-L300

func NewHttpInputRequestResult ¶

func NewHttpInputRequestResult() *HttpInputRequestResult

NewHttpInputRequestResult returns a HttpInputRequestResult.

func (*HttpInputRequestResult) UnmarshalJSON ¶

func (s *HttpInputRequestResult) UnmarshalJSON(data []byte) error

type HttpInputResponseResult ¶

type HttpInputResponseResult struct {
	Body    string      `json:"body"`
	Headers HttpHeaders `json:"headers"`
	Status  int         `json:"status"`
}

HttpInputResponseResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L302-L306

func NewHttpInputResponseResult ¶

func NewHttpInputResponseResult() *HttpInputResponseResult

NewHttpInputResponseResult returns a HttpInputResponseResult.

func (*HttpInputResponseResult) UnmarshalJSON ¶

func (s *HttpInputResponseResult) UnmarshalJSON(data []byte) error

type HttpInputVariant ¶

type HttpInputVariant interface {
	HttpInputCaster() *HttpInput
}

type HttpRoute ¶

type HttpRoute struct {
	Requests  HttpRouteRequests  `json:"requests"`
	Responses HttpRouteResponses `json:"responses"`
}

HttpRoute type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L692-L695

func NewHttpRoute ¶

func NewHttpRoute() *HttpRoute

NewHttpRoute returns a HttpRoute.

type HttpRouteRequests ¶

type HttpRouteRequests struct {
	Count            int64               `json:"count"`
	SizeHistogram    []SizeHttpHistogram `json:"size_histogram"`
	TotalSizeInBytes int64               `json:"total_size_in_bytes"`
}

HttpRouteRequests type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L697-L701

func NewHttpRouteRequests ¶

func NewHttpRouteRequests() *HttpRouteRequests

NewHttpRouteRequests returns a HttpRouteRequests.

func (*HttpRouteRequests) UnmarshalJSON ¶

func (s *HttpRouteRequests) UnmarshalJSON(data []byte) error

type HttpRouteResponses ¶

type HttpRouteResponses struct {
	Count                 int64               `json:"count"`
	HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"`
	SizeHistogram         []SizeHttpHistogram `json:"size_histogram"`
	TotalSizeInBytes      int64               `json:"total_size_in_bytes"`
}

HttpRouteResponses type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L703-L708

func NewHttpRouteResponses ¶

func NewHttpRouteResponses() *HttpRouteResponses

NewHttpRouteResponses returns a HttpRouteResponses.

func (*HttpRouteResponses) UnmarshalJSON ¶

func (s *HttpRouteResponses) UnmarshalJSON(data []byte) error

type HuggingFaceServiceSettings ¶

type HuggingFaceServiceSettings struct {
	// ApiKey A valid access token for your HuggingFace account.
	// You can create or find your access tokens on the HuggingFace settings page.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// ModelId The name of the HuggingFace model to use for the inference task.
	// For `completion` and `chat_completion` tasks, this field is optional but may
	// be required for certain models — particularly when using serverless inference
	// endpoints.
	// For the `text_embedding` task, this field should not be included. Otherwise,
	// the request will fail.
	ModelId *string `json:"model_id,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Hugging Face.
	// By default, the `hugging_face` service sets the number of requests allowed
	// per minute to 3000 for all supported tasks.
	// Hugging Face does not publish a universal rate limit — actual limits may
	// vary.
	// It is recommended to adjust this value based on the capacity and limits of
	// your specific deployment environment.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Url The URL endpoint to use for the requests.
	// For `completion` and `chat_completion` tasks, the deployed model must be
	// compatible with the Hugging Face Chat Completion interface (see the linked
	// external documentation for details). The endpoint URL for the request must
	// include `/v1/chat/completions`.
	// If the model supports the OpenAI Chat Completion schema, a toggle should
	// appear in the interface. Enabling this toggle doesn't change any model
	// behavior, it reveals the full endpoint URL needed (which should include
	// `/v1/chat/completions`) when configuring the inference endpoint in
	// Elasticsearch. If the model doesn't support this schema, the toggle may not
	// be shown.
	Url string `json:"url"`
}

HuggingFaceServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1382-L1414

func NewHuggingFaceServiceSettings ¶

func NewHuggingFaceServiceSettings() *HuggingFaceServiceSettings

NewHuggingFaceServiceSettings returns a HuggingFaceServiceSettings.

func (*HuggingFaceServiceSettings) HuggingFaceServiceSettingsCaster ¶

func (s *HuggingFaceServiceSettings) HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings

func (*HuggingFaceServiceSettings) UnmarshalJSON ¶

func (s *HuggingFaceServiceSettings) UnmarshalJSON(data []byte) error

type HuggingFaceServiceSettingsVariant ¶

type HuggingFaceServiceSettingsVariant interface {
	HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings
}

type HuggingFaceTaskSettings ¶ added in v9.1.0

type HuggingFaceTaskSettings struct {
	// ReturnDocuments For a `rerank` task, return doc text within the results.
	ReturnDocuments *bool `json:"return_documents,omitempty"`
	// TopN For a `rerank` task, the number of most relevant documents to return.
	// It defaults to the number of the documents.
	TopN *int `json:"top_n,omitempty"`
}

HuggingFaceTaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1416-L1426

func NewHuggingFaceTaskSettings ¶ added in v9.1.0

func NewHuggingFaceTaskSettings() *HuggingFaceTaskSettings

NewHuggingFaceTaskSettings returns a HuggingFaceTaskSettings.

func (*HuggingFaceTaskSettings) HuggingFaceTaskSettingsCaster ¶ added in v9.1.0

func (s *HuggingFaceTaskSettings) HuggingFaceTaskSettingsCaster() *HuggingFaceTaskSettings

func (*HuggingFaceTaskSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *HuggingFaceTaskSettings) UnmarshalJSON(data []byte) error

type HuggingFaceTaskSettingsVariant ¶ added in v9.1.0

type HuggingFaceTaskSettingsVariant interface {
	HuggingFaceTaskSettingsCaster() *HuggingFaceTaskSettings
}

type HungarianAnalyzer ¶

type HungarianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

HungarianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L206-L211

func NewHungarianAnalyzer ¶

func NewHungarianAnalyzer() *HungarianAnalyzer

NewHungarianAnalyzer returns a HungarianAnalyzer.

func (*HungarianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *HungarianAnalyzer) AnalyzerCaster() *Analyzer

func (*HungarianAnalyzer) HungarianAnalyzerCaster ¶

func (s *HungarianAnalyzer) HungarianAnalyzerCaster() *HungarianAnalyzer

func (HungarianAnalyzer) MarshalJSON ¶

func (s HungarianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HungarianAnalyzer) UnmarshalJSON ¶

func (s *HungarianAnalyzer) UnmarshalJSON(data []byte) error

type HungarianAnalyzerVariant ¶

type HungarianAnalyzerVariant interface {
	HungarianAnalyzerCaster() *HungarianAnalyzer
}

type HunspellTokenFilter ¶

type HunspellTokenFilter struct {
	// Dedup If `true`, duplicate tokens are removed from the filter’s output. Defaults to
	// `true`.
	Dedup *bool `json:"dedup,omitempty"`
	// Dictionary One or more `.dic` files (e.g, `en_US.dic`, my_custom.dic) to use for the
	// Hunspell dictionary.
	// By default, the `hunspell` filter uses all `.dic` files in the
	// `<$ES_PATH_CONF>/hunspell/<locale>` directory specified using the `lang`,
	// `language`, or `locale` parameter.
	Dictionary *string `json:"dictionary,omitempty"`
	// Locale Locale directory used to specify the `.aff` and `.dic` files for a Hunspell
	// dictionary.
	Locale string `json:"locale"`
	// LongestOnly If `true`, only the longest stemmed version of each token is included in the
	// output. If `false`, all stemmed versions of the token are included. Defaults
	// to `false`.
	LongestOnly *bool   `json:"longest_only,omitempty"`
	Type        string  `json:"type,omitempty"`
	Version     *string `json:"version,omitempty"`
}

HunspellTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L268-L280

func NewHunspellTokenFilter ¶

func NewHunspellTokenFilter() *HunspellTokenFilter

NewHunspellTokenFilter returns a HunspellTokenFilter.

func (*HunspellTokenFilter) HunspellTokenFilterCaster ¶

func (s *HunspellTokenFilter) HunspellTokenFilterCaster() *HunspellTokenFilter

func (HunspellTokenFilter) MarshalJSON ¶

func (s HunspellTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HunspellTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *HunspellTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*HunspellTokenFilter) UnmarshalJSON ¶

func (s *HunspellTokenFilter) UnmarshalJSON(data []byte) error

type HunspellTokenFilterVariant ¶

type HunspellTokenFilterVariant interface {
	HunspellTokenFilterCaster() *HunspellTokenFilter
}

type Hyperparameter ¶

type Hyperparameter struct {
	// AbsoluteImportance A positive number showing how much the parameter influences the variation of
	// the loss function. For hyperparameters with values that are not specified by
	// the user but tuned during hyperparameter optimization.
	AbsoluteImportance *Float64 `json:"absolute_importance,omitempty"`
	// Name Name of the hyperparameter.
	Name string `json:"name"`
	// RelativeImportance A number between 0 and 1 showing the proportion of influence on the variation
	// of the loss function among all tuned hyperparameters. For hyperparameters
	// with values that are not specified by the user but tuned during
	// hyperparameter optimization.
	RelativeImportance *Float64 `json:"relative_importance,omitempty"`
	// Supplied Indicates if the hyperparameter is specified by the user (true) or optimized
	// (false).
	Supplied bool `json:"supplied"`
	// Value The value of the hyperparameter, either optimized or specified by the user.
	Value Float64 `json:"value"`
}

Hyperparameter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L274-L288

func NewHyperparameter ¶

func NewHyperparameter() *Hyperparameter

NewHyperparameter returns a Hyperparameter.

func (*Hyperparameter) UnmarshalJSON ¶

func (s *Hyperparameter) UnmarshalJSON(data []byte) error

type Hyperparameters ¶

type Hyperparameters struct {
	// Alpha Advanced configuration option.
	// Machine learning uses loss guided tree growing, which means that the decision
	// trees grow where the regularized loss decreases most quickly.
	// This parameter affects loss calculations by acting as a multiplier of the
	// tree depth.
	// Higher alpha values result in shallower trees and faster training times.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be greater than or equal to zero.
	Alpha *Float64 `json:"alpha,omitempty"`
	// DownsampleFactor Advanced configuration option.
	// Controls the fraction of data that is used to compute the derivatives of the
	// loss function for tree training.
	// A small value results in the use of a small fraction of the data.
	// If this value is set to be less than 1, accuracy typically improves.
	// However, too small a value may result in poor convergence for the ensemble
	// and so require more trees.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be greater than zero and less than or equal to 1.
	DownsampleFactor *Float64 `json:"downsample_factor,omitempty"`
	// Eta Advanced configuration option.
	// The shrinkage applied to the weights.
	// Smaller values result in larger forests which have a better generalization
	// error.
	// However, larger forests cause slower training.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be a value between `0.001` and `1`.
	Eta *Float64 `json:"eta,omitempty"`
	// EtaGrowthRatePerTree Advanced configuration option.
	// Specifies the rate at which `eta` increases for each new tree that is added
	// to the forest.
	// For example, a rate of 1.05 increases `eta` by 5% for each extra tree.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be between `0.5` and `2`.
	EtaGrowthRatePerTree *Float64 `json:"eta_growth_rate_per_tree,omitempty"`
	// FeatureBagFraction Advanced configuration option.
	// Defines the fraction of features that will be used when selecting a random
	// bag for each candidate split.
	// By default, this value is calculated during hyperparameter optimization.
	FeatureBagFraction *Float64 `json:"feature_bag_fraction,omitempty"`
	// Gamma Advanced configuration option.
	// Regularization parameter to prevent overfitting on the training data set.
	// Multiplies a linear penalty associated with the size of individual trees in
	// the forest.
	// A high gamma value causes training to prefer small trees.
	// A small gamma value results in larger individual trees and slower training.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be a nonnegative value.
	Gamma *Float64 `json:"gamma,omitempty"`
	// Lambda Advanced configuration option.
	// Regularization parameter to prevent overfitting on the training data set.
	// Multiplies an L2 regularization term which applies to leaf weights of the
	// individual trees in the forest.
	// A high lambda value causes training to favor small leaf weights.
	// This behavior makes the prediction function smoother at the expense of
	// potentially not being able to capture relevant relationships between the
	// features and the dependent variable.
	// A small lambda value results in large individual trees and slower training.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be a nonnegative value.
	Lambda *Float64 `json:"lambda,omitempty"`
	// MaxAttemptsToAddTree If the algorithm fails to determine a non-trivial tree (more than a single
	// leaf), this parameter determines how many of such consecutive failures are
	// tolerated.
	// Once the number of attempts exceeds the threshold, the forest training stops.
	MaxAttemptsToAddTree *int `json:"max_attempts_to_add_tree,omitempty"`
	// MaxOptimizationRoundsPerHyperparameter Advanced configuration option.
	// A multiplier responsible for determining the maximum number of hyperparameter
	// optimization steps in the Bayesian optimization procedure.
	// The maximum number of steps is determined based on the number of undefined
	// hyperparameters times the maximum optimization rounds per hyperparameter.
	// By default, this value is calculated during hyperparameter optimization.
	MaxOptimizationRoundsPerHyperparameter *int `json:"max_optimization_rounds_per_hyperparameter,omitempty"`
	// MaxTrees Advanced configuration option.
	// Defines the maximum number of decision trees in the forest.
	// The maximum value is 2000.
	// By default, this value is calculated during hyperparameter optimization.
	MaxTrees *int `json:"max_trees,omitempty"`
	// NumFolds The maximum number of folds for the cross-validation procedure.
	NumFolds *int `json:"num_folds,omitempty"`
	// NumSplitsPerFeature Determines the maximum number of splits for every feature that can occur in a
	// decision tree when the tree is trained.
	NumSplitsPerFeature *int `json:"num_splits_per_feature,omitempty"`
	// SoftTreeDepthLimit Advanced configuration option.
	// Machine learning uses loss guided tree growing, which means that the decision
	// trees grow where the regularized loss decreases most quickly.
	// This soft limit combines with the `soft_tree_depth_tolerance` to penalize
	// trees that exceed the specified depth; the regularized loss increases quickly
	// beyond this depth.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be greater than or equal to 0.
	SoftTreeDepthLimit *int `json:"soft_tree_depth_limit,omitempty"`
	// SoftTreeDepthTolerance Advanced configuration option.
	// This option controls how quickly the regularized loss increases when the tree
	// depth exceeds `soft_tree_depth_limit`.
	// By default, this value is calculated during hyperparameter optimization.
	// It must be greater than or equal to 0.01.
	SoftTreeDepthTolerance *Float64 `json:"soft_tree_depth_tolerance,omitempty"`
}

Hyperparameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L420-L526

func NewHyperparameters ¶

func NewHyperparameters() *Hyperparameters

NewHyperparameters returns a Hyperparameters.

func (*Hyperparameters) UnmarshalJSON ¶

func (s *Hyperparameters) UnmarshalJSON(data []byte) error

type HyphenationDecompounderTokenFilter ¶

type HyphenationDecompounderTokenFilter struct {
	// HyphenationPatternsPath Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern
	// file.
	// This path must be absolute or relative to the `config` location. Only FOP
	// v1.2 compatible files are supported.
	HyphenationPatternsPath string `json:"hyphenation_patterns_path"`
	// MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the
	// output. Defaults to `15`.
	MaxSubwordSize *int `json:"max_subword_size,omitempty"`
	// MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from
	// the output. Defaults to `2`.
	MinSubwordSize *int `json:"min_subword_size,omitempty"`
	// MinWordSize Minimum word character length. Shorter word tokens are excluded from the
	// output. Defaults to `5`.
	MinWordSize *int `json:"min_word_size,omitempty"`
	// NoOverlappingMatches If `true`, do not allow overlapping tokens. Defaults to `false`.
	NoOverlappingMatches *bool `json:"no_overlapping_matches,omitempty"`
	// NoSubMatches If `true`, do not match sub tokens in tokens that are in the word list.
	// Defaults to `false`.
	NoSubMatches *bool `json:"no_sub_matches,omitempty"`
	// OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`.
	OnlyLongestMatch *bool   `json:"only_longest_match,omitempty"`
	Type             string  `json:"type,omitempty"`
	Version          *string `json:"version,omitempty"`
	// WordList A list of subwords to look for in the token stream. If found, the subword is
	// included in the token output.
	// Either this parameter or `word_list_path` must be specified.
	WordList []string `json:"word_list,omitempty"`
	// WordListPath Path to a file that contains a list of subwords to find in the token stream.
	// If found, the subword is included in the token output.
	// This path must be absolute or relative to the config location, and the file
	// must be UTF-8 encoded. Each token in the file must be separated by a line
	// break.
	// Either this parameter or `word_list` must be specified.
	WordListPath *string `json:"word_list_path,omitempty"`
}

HyphenationDecompounderTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L67-L76

func NewHyphenationDecompounderTokenFilter ¶

func NewHyphenationDecompounderTokenFilter() *HyphenationDecompounderTokenFilter

NewHyphenationDecompounderTokenFilter returns a HyphenationDecompounderTokenFilter.

func (*HyphenationDecompounderTokenFilter) HyphenationDecompounderTokenFilterCaster ¶

func (s *HyphenationDecompounderTokenFilter) HyphenationDecompounderTokenFilterCaster() *HyphenationDecompounderTokenFilter

func (HyphenationDecompounderTokenFilter) MarshalJSON ¶

func (s HyphenationDecompounderTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*HyphenationDecompounderTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *HyphenationDecompounderTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*HyphenationDecompounderTokenFilter) UnmarshalJSON ¶

func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error

type HyphenationDecompounderTokenFilterVariant ¶

type HyphenationDecompounderTokenFilterVariant interface {
	HyphenationDecompounderTokenFilterCaster() *HyphenationDecompounderTokenFilter
}

type IcuAnalyzer ¶

type IcuAnalyzer struct {
	Method icunormalizationtype.IcuNormalizationType `json:"method"`
	Mode   icunormalizationmode.IcuNormalizationMode `json:"mode"`
	Type   string                                    `json:"type,omitempty"`
}

IcuAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L68-L72

func NewIcuAnalyzer ¶

func NewIcuAnalyzer() *IcuAnalyzer

NewIcuAnalyzer returns a IcuAnalyzer.

func (*IcuAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *IcuAnalyzer) AnalyzerCaster() *Analyzer

func (*IcuAnalyzer) IcuAnalyzerCaster ¶

func (s *IcuAnalyzer) IcuAnalyzerCaster() *IcuAnalyzer

func (IcuAnalyzer) MarshalJSON ¶

func (s IcuAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

type IcuAnalyzerVariant ¶

type IcuAnalyzerVariant interface {
	IcuAnalyzerCaster() *IcuAnalyzer
}

type IcuCollationProperty ¶

type IcuCollationProperty struct {
	Alternate              *icucollationalternate.IcuCollationAlternate         `json:"alternate,omitempty"`
	CaseFirst              *icucollationcasefirst.IcuCollationCaseFirst         `json:"case_first,omitempty"`
	CaseLevel              *bool                                                `json:"case_level,omitempty"`
	CopyTo                 []string                                             `json:"copy_to,omitempty"`
	Country                *string                                              `json:"country,omitempty"`
	Decomposition          *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`
	DocValues              *bool                                                `json:"doc_values,omitempty"`
	Dynamic                *dynamicmapping.DynamicMapping                       `json:"dynamic,omitempty"`
	Fields                 map[string]Property                                  `json:"fields,omitempty"`
	HiraganaQuaternaryMode *bool                                                `json:"hiragana_quaternary_mode,omitempty"`
	IgnoreAbove            *int                                                 `json:"ignore_above,omitempty"`
	// Index Should the field be searchable?
	Index        *bool                      `json:"index,omitempty"`
	IndexOptions *indexoptions.IndexOptions `json:"index_options,omitempty"`
	Language     *string                    `json:"language,omitempty"`
	// Meta Metadata about the field.
	Meta  map[string]string `json:"meta,omitempty"`
	Norms *bool             `json:"norms,omitempty"`
	// NullValue Accepts a string value which is substituted for any explicit null values.
	// Defaults to null, which means the field is treated as missing.
	NullValue           *string                                          `json:"null_value,omitempty"`
	Numeric             *bool                                            `json:"numeric,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Rules               *string                                          `json:"rules,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	Strength            *icucollationstrength.IcuCollationStrength       `json:"strength,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
	VariableTop         *string                                          `json:"variable_top,omitempty"`
	Variant             *string                                          `json:"variant,omitempty"`
}

IcuCollationProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L103-L127

func NewIcuCollationProperty ¶

func NewIcuCollationProperty() *IcuCollationProperty

NewIcuCollationProperty returns a IcuCollationProperty.

func (*IcuCollationProperty) IcuCollationPropertyCaster ¶

func (s *IcuCollationProperty) IcuCollationPropertyCaster() *IcuCollationProperty

func (IcuCollationProperty) MarshalJSON ¶

func (s IcuCollationProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuCollationProperty) PropertyCaster ¶ added in v9.0.1

func (s *IcuCollationProperty) PropertyCaster() *Property

func (*IcuCollationProperty) UnmarshalJSON ¶

func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error

type IcuCollationPropertyVariant ¶

type IcuCollationPropertyVariant interface {
	IcuCollationPropertyCaster() *IcuCollationProperty
}

type IcuCollationTokenFilter ¶

type IcuCollationTokenFilter struct {
	Alternate              *icucollationalternate.IcuCollationAlternate         `json:"alternate,omitempty"`
	CaseFirst              *icucollationcasefirst.IcuCollationCaseFirst         `json:"caseFirst,omitempty"`
	CaseLevel              *bool                                                `json:"caseLevel,omitempty"`
	Country                *string                                              `json:"country,omitempty"`
	Decomposition          *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"`
	HiraganaQuaternaryMode *bool                                                `json:"hiraganaQuaternaryMode,omitempty"`
	Language               *string                                              `json:"language,omitempty"`
	Numeric                *bool                                                `json:"numeric,omitempty"`
	Rules                  *string                                              `json:"rules,omitempty"`
	Strength               *icucollationstrength.IcuCollationStrength           `json:"strength,omitempty"`
	Type                   string                                               `json:"type,omitempty"`
	VariableTop            *string                                              `json:"variableTop,omitempty"`
	Variant                *string                                              `json:"variant,omitempty"`
	Version                *string                                              `json:"version,omitempty"`
}

IcuCollationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L52-L66

func NewIcuCollationTokenFilter ¶

func NewIcuCollationTokenFilter() *IcuCollationTokenFilter

NewIcuCollationTokenFilter returns a IcuCollationTokenFilter.

func (*IcuCollationTokenFilter) IcuCollationTokenFilterCaster ¶

func (s *IcuCollationTokenFilter) IcuCollationTokenFilterCaster() *IcuCollationTokenFilter

func (IcuCollationTokenFilter) MarshalJSON ¶

func (s IcuCollationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuCollationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *IcuCollationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*IcuCollationTokenFilter) UnmarshalJSON ¶

func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error

type IcuCollationTokenFilterVariant ¶

type IcuCollationTokenFilterVariant interface {
	IcuCollationTokenFilterCaster() *IcuCollationTokenFilter
}

type IcuFoldingTokenFilter ¶

type IcuFoldingTokenFilter struct {
	Type             string  `json:"type,omitempty"`
	UnicodeSetFilter string  `json:"unicode_set_filter"`
	Version          *string `json:"version,omitempty"`
}

IcuFoldingTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L47-L50

func NewIcuFoldingTokenFilter ¶

func NewIcuFoldingTokenFilter() *IcuFoldingTokenFilter

NewIcuFoldingTokenFilter returns a IcuFoldingTokenFilter.

func (*IcuFoldingTokenFilter) IcuFoldingTokenFilterCaster ¶

func (s *IcuFoldingTokenFilter) IcuFoldingTokenFilterCaster() *IcuFoldingTokenFilter

func (IcuFoldingTokenFilter) MarshalJSON ¶

func (s IcuFoldingTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuFoldingTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *IcuFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*IcuFoldingTokenFilter) UnmarshalJSON ¶

func (s *IcuFoldingTokenFilter) UnmarshalJSON(data []byte) error

type IcuFoldingTokenFilterVariant ¶

type IcuFoldingTokenFilterVariant interface {
	IcuFoldingTokenFilterCaster() *IcuFoldingTokenFilter
}

type IcuNormalizationCharFilter ¶

type IcuNormalizationCharFilter struct {
	Mode             *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"`
	Name             *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"`
	Type             string                                     `json:"type,omitempty"`
	UnicodeSetFilter *string                                    `json:"unicode_set_filter,omitempty"`
	Version          *string                                    `json:"version,omitempty"`
}

IcuNormalizationCharFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L40-L45

func NewIcuNormalizationCharFilter ¶

func NewIcuNormalizationCharFilter() *IcuNormalizationCharFilter

NewIcuNormalizationCharFilter returns a IcuNormalizationCharFilter.

func (*IcuNormalizationCharFilter) CharFilterDefinitionCaster ¶ added in v9.0.1

func (s *IcuNormalizationCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition

func (*IcuNormalizationCharFilter) IcuNormalizationCharFilterCaster ¶

func (s *IcuNormalizationCharFilter) IcuNormalizationCharFilterCaster() *IcuNormalizationCharFilter

func (IcuNormalizationCharFilter) MarshalJSON ¶

func (s IcuNormalizationCharFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuNormalizationCharFilter) UnmarshalJSON ¶

func (s *IcuNormalizationCharFilter) UnmarshalJSON(data []byte) error

type IcuNormalizationCharFilterVariant ¶

type IcuNormalizationCharFilterVariant interface {
	IcuNormalizationCharFilterCaster() *IcuNormalizationCharFilter
}

type IcuNormalizationTokenFilter ¶

type IcuNormalizationTokenFilter struct {
	Name    icunormalizationtype.IcuNormalizationType `json:"name"`
	Type    string                                    `json:"type,omitempty"`
	Version *string                                   `json:"version,omitempty"`
}

IcuNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L35-L38

func NewIcuNormalizationTokenFilter ¶

func NewIcuNormalizationTokenFilter() *IcuNormalizationTokenFilter

NewIcuNormalizationTokenFilter returns a IcuNormalizationTokenFilter.

func (*IcuNormalizationTokenFilter) IcuNormalizationTokenFilterCaster ¶

func (s *IcuNormalizationTokenFilter) IcuNormalizationTokenFilterCaster() *IcuNormalizationTokenFilter

func (IcuNormalizationTokenFilter) MarshalJSON ¶

func (s IcuNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *IcuNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*IcuNormalizationTokenFilter) UnmarshalJSON ¶

func (s *IcuNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type IcuNormalizationTokenFilterVariant ¶

type IcuNormalizationTokenFilterVariant interface {
	IcuNormalizationTokenFilterCaster() *IcuNormalizationTokenFilter
}

type IcuTokenizer ¶

type IcuTokenizer struct {
	RuleFiles string  `json:"rule_files"`
	Type      string  `json:"type,omitempty"`
	Version   *string `json:"version,omitempty"`
}

IcuTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L30-L33

func NewIcuTokenizer ¶

func NewIcuTokenizer() *IcuTokenizer

NewIcuTokenizer returns a IcuTokenizer.

func (*IcuTokenizer) IcuTokenizerCaster ¶

func (s *IcuTokenizer) IcuTokenizerCaster() *IcuTokenizer

func (IcuTokenizer) MarshalJSON ¶

func (s IcuTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *IcuTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*IcuTokenizer) UnmarshalJSON ¶

func (s *IcuTokenizer) UnmarshalJSON(data []byte) error

type IcuTokenizerVariant ¶

type IcuTokenizerVariant interface {
	IcuTokenizerCaster() *IcuTokenizer
}

type IcuTransformTokenFilter ¶

type IcuTransformTokenFilter struct {
	Dir     *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"`
	Id      string                                       `json:"id"`
	Type    string                                       `json:"type,omitempty"`
	Version *string                                      `json:"version,omitempty"`
}

IcuTransformTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/icu-plugin.ts#L24-L28

func NewIcuTransformTokenFilter ¶

func NewIcuTransformTokenFilter() *IcuTransformTokenFilter

NewIcuTransformTokenFilter returns a IcuTransformTokenFilter.

func (*IcuTransformTokenFilter) IcuTransformTokenFilterCaster ¶

func (s *IcuTransformTokenFilter) IcuTransformTokenFilterCaster() *IcuTransformTokenFilter

func (IcuTransformTokenFilter) MarshalJSON ¶

func (s IcuTransformTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IcuTransformTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *IcuTransformTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*IcuTransformTokenFilter) UnmarshalJSON ¶

func (s *IcuTransformTokenFilter) UnmarshalJSON(data []byte) error

type IcuTransformTokenFilterVariant ¶

type IcuTransformTokenFilterVariant interface {
	IcuTransformTokenFilterCaster() *IcuTransformTokenFilter
}

type IdsQuery ¶

type IdsQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
	// Values An array of document IDs.
	Values []string `json:"values,omitempty"`
}

IdsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L88-L96

func NewIdsQuery ¶

func NewIdsQuery() *IdsQuery

NewIdsQuery returns a IdsQuery.

func (*IdsQuery) IdsQueryCaster ¶

func (s *IdsQuery) IdsQueryCaster() *IdsQuery

func (*IdsQuery) UnmarshalJSON ¶

func (s *IdsQuery) UnmarshalJSON(data []byte) error

type IdsQueryVariant ¶

type IdsQueryVariant interface {
	IdsQueryCaster() *IdsQuery
}

type IdsVariant ¶

type IdsVariant interface {
	IdsCaster() *Ids
}

type Ilm ¶

type Ilm struct {
	PolicyCount int                   `json:"policy_count"`
	PolicyStats []IlmPolicyStatistics `json:"policy_stats"`
}

Ilm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L172-L175

func NewIlm ¶

func NewIlm() *Ilm

NewIlm returns a Ilm.

func (*Ilm) UnmarshalJSON ¶

func (s *Ilm) UnmarshalJSON(data []byte) error

type IlmActions ¶

type IlmActions struct {
	// Allocate Phases allowed: warm, cold.
	Allocate *AllocateAction `json:"allocate,omitempty"`
	// Delete Phases allowed: delete.
	Delete *DeleteAction `json:"delete,omitempty"`
	// Downsample Phases allowed: hot, warm, cold.
	Downsample *DownsampleAction `json:"downsample,omitempty"`
	// Forcemerge Phases allowed: hot, warm.
	Forcemerge *ForceMergeAction `json:"forcemerge,omitempty"`
	// Freeze The freeze action is a noop in 8.x
	Freeze *EmptyObject `json:"freeze,omitempty"`
	// Migrate Phases allowed: warm, cold.
	Migrate *MigrateAction `json:"migrate,omitempty"`
	// Readonly Phases allowed: hot, warm, cold.
	Readonly *EmptyObject `json:"readonly,omitempty"`
	// Rollover Phases allowed: hot.
	Rollover *RolloverAction `json:"rollover,omitempty"`
	// SearchableSnapshot Phases allowed: hot, cold, frozen.
	SearchableSnapshot *SearchableSnapshotAction `json:"searchable_snapshot,omitempty"`
	// SetPriority Phases allowed: hot, warm, cold.
	SetPriority *SetPriorityAction `json:"set_priority,omitempty"`
	// Shrink Phases allowed: hot, warm.
	Shrink *ShrinkAction `json:"shrink,omitempty"`
	// Unfollow Phases allowed: hot, warm, cold, frozen.
	Unfollow *EmptyObject `json:"unfollow,omitempty"`
	// WaitForSnapshot Phases allowed: delete.
	WaitForSnapshot *WaitForSnapshotAction `json:"wait_for_snapshot,omitempty"`
}

IlmActions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L39-L93

func NewIlmActions ¶

func NewIlmActions() *IlmActions

NewIlmActions returns a IlmActions.

func (*IlmActions) IlmActionsCaster ¶

func (s *IlmActions) IlmActionsCaster() *IlmActions

type IlmActionsVariant ¶

type IlmActionsVariant interface {
	IlmActionsCaster() *IlmActions
}

type IlmIndicator ¶

type IlmIndicator struct {
	Details   *IlmIndicatorDetails                        `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

IlmIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L165-L169

func NewIlmIndicator ¶

func NewIlmIndicator() *IlmIndicator

NewIlmIndicator returns a IlmIndicator.

func (*IlmIndicator) UnmarshalJSON ¶

func (s *IlmIndicator) UnmarshalJSON(data []byte) error

type IlmIndicatorDetails ¶

type IlmIndicatorDetails struct {
	IlmStatus         lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"`
	Policies          int64                                         `json:"policies"`
	StagnatingIndices int                                           `json:"stagnating_indices"`
}

IlmIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L170-L174

func NewIlmIndicatorDetails ¶

func NewIlmIndicatorDetails() *IlmIndicatorDetails

NewIlmIndicatorDetails returns a IlmIndicatorDetails.

func (*IlmIndicatorDetails) UnmarshalJSON ¶

func (s *IlmIndicatorDetails) UnmarshalJSON(data []byte) error

type IlmPolicy ¶

type IlmPolicy struct {
	// Meta_ Arbitrary metadata that is not automatically generated or used by
	// Elasticsearch.
	Meta_  Metadata `json:"_meta,omitempty"`
	Phases Phases   `json:"phases"`
}

IlmPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Policy.ts#L23-L29

func NewIlmPolicy ¶

func NewIlmPolicy() *IlmPolicy

NewIlmPolicy returns a IlmPolicy.

func (*IlmPolicy) IlmPolicyCaster ¶

func (s *IlmPolicy) IlmPolicyCaster() *IlmPolicy

func (*IlmPolicy) UnmarshalJSON ¶

func (s *IlmPolicy) UnmarshalJSON(data []byte) error

type IlmPolicyStatistics ¶

type IlmPolicyStatistics struct {
	IndicesManaged int         `json:"indices_managed"`
	Phases         UsagePhases `json:"phases"`
}

IlmPolicyStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L167-L170

func NewIlmPolicyStatistics ¶

func NewIlmPolicyStatistics() *IlmPolicyStatistics

NewIlmPolicyStatistics returns a IlmPolicyStatistics.

func (*IlmPolicyStatistics) UnmarshalJSON ¶

func (s *IlmPolicyStatistics) UnmarshalJSON(data []byte) error

type IlmPolicyVariant ¶

type IlmPolicyVariant interface {
	IlmPolicyCaster() *IlmPolicy
}

type Impact ¶

type Impact struct {
	Description string                  `json:"description"`
	Id          string                  `json:"id"`
	ImpactAreas []impactarea.ImpactArea `json:"impact_areas"`
	Severity    int                     `json:"severity"`
}

Impact type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L68-L73

func NewImpact ¶

func NewImpact() *Impact

NewImpact returns a Impact.

func (*Impact) UnmarshalJSON ¶

func (s *Impact) UnmarshalJSON(data []byte) error

type InProgress ¶

type InProgress struct {
	Name            string `json:"name"`
	StartTimeMillis int64  `json:"start_time_millis"`
	State           string `json:"state"`
	Uuid            string `json:"uuid"`
}

InProgress type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L141-L146

func NewInProgress ¶

func NewInProgress() *InProgress

NewInProgress returns a InProgress.

func (*InProgress) UnmarshalJSON ¶

func (s *InProgress) UnmarshalJSON(data []byte) error

type IncludedInValidation ¶

type IncludedInValidation struct {
	Constraint []ScalarValue `json:"constraint"`
	Type       string        `json:"type,omitempty"`
}

IncludedInValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L73-L76

func NewIncludedInValidation ¶

func NewIncludedInValidation() *IncludedInValidation

NewIncludedInValidation returns a IncludedInValidation.

func (*IncludedInValidation) IncludedInValidationCaster ¶

func (s *IncludedInValidation) IncludedInValidationCaster() *IncludedInValidation

func (IncludedInValidation) MarshalJSON ¶

func (s IncludedInValidation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IncludedInValidation) ValidationCaster ¶ added in v9.0.1

func (s *IncludedInValidation) ValidationCaster() *Validation

type IncludedInValidationVariant ¶

type IncludedInValidationVariant interface {
	IncludedInValidationCaster() *IncludedInValidation
}

type IndexAction ¶

type IndexAction struct {
	DocId              *string          `json:"doc_id,omitempty"`
	ExecutionTimeField *string          `json:"execution_time_field,omitempty"`
	Index              string           `json:"index"`
	OpType             *optype.OpType   `json:"op_type,omitempty"`
	Refresh            *refresh.Refresh `json:"refresh,omitempty"`
	Timeout            Duration         `json:"timeout,omitempty"`
}

IndexAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L256-L265

func NewIndexAction ¶

func NewIndexAction() *IndexAction

NewIndexAction returns a IndexAction.

func (*IndexAction) IndexActionCaster ¶

func (s *IndexAction) IndexActionCaster() *IndexAction

func (*IndexAction) UnmarshalJSON ¶

func (s *IndexAction) UnmarshalJSON(data []byte) error

type IndexActionVariant ¶

type IndexActionVariant interface {
	IndexActionCaster() *IndexAction
}

type IndexAliases ¶

type IndexAliases struct {
	Aliases map[string]AliasDefinition `json:"aliases"`
}

IndexAliases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_alias/_types/response.ts#L24-L26

func NewIndexAliases ¶

func NewIndexAliases() *IndexAliases

NewIndexAliases returns a IndexAliases.

type IndexAndDataStreamAction ¶

type IndexAndDataStreamAction struct {
	// DataStream Data stream targeted by the action.
	DataStream string `json:"data_stream"`
	// Index Index for the action.
	Index string `json:"index"`
}

IndexAndDataStreamAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/modify_data_stream/types.ts#L39-L44

func NewIndexAndDataStreamAction ¶

func NewIndexAndDataStreamAction() *IndexAndDataStreamAction

NewIndexAndDataStreamAction returns a IndexAndDataStreamAction.

func (*IndexAndDataStreamAction) IndexAndDataStreamActionCaster ¶

func (s *IndexAndDataStreamAction) IndexAndDataStreamActionCaster() *IndexAndDataStreamAction

func (*IndexAndDataStreamAction) UnmarshalJSON ¶

func (s *IndexAndDataStreamAction) UnmarshalJSON(data []byte) error

type IndexAndDataStreamActionVariant ¶

type IndexAndDataStreamActionVariant interface {
	IndexAndDataStreamActionCaster() *IndexAndDataStreamAction
}

type IndexCapabilities ¶

type IndexCapabilities struct {
	RollupJobs []RollupJobSummary `json:"rollup_jobs"`
}

IndexCapabilities type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_index_caps/types.ts#L24-L26

func NewIndexCapabilities ¶

func NewIndexCapabilities() *IndexCapabilities

NewIndexCapabilities returns a IndexCapabilities.

type IndexDetails ¶

type IndexDetails struct {
	MaxSegmentsPerShard int64    `json:"max_segments_per_shard"`
	ShardCount          int      `json:"shard_count"`
	Size                ByteSize `json:"size,omitempty"`
	SizeInBytes         int64    `json:"size_in_bytes"`
}

IndexDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28

func NewIndexDetails ¶

func NewIndexDetails() *IndexDetails

NewIndexDetails returns a IndexDetails.

func (*IndexDetails) UnmarshalJSON ¶

func (s *IndexDetails) UnmarshalJSON(data []byte) error

type IndexField ¶

type IndexField struct {
	Enabled bool `json:"enabled"`
}

IndexField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L46-L48

func NewIndexField ¶

func NewIndexField() *IndexField

NewIndexField returns a IndexField.

func (*IndexField) IndexFieldCaster ¶

func (s *IndexField) IndexFieldCaster() *IndexField

func (*IndexField) UnmarshalJSON ¶

func (s *IndexField) UnmarshalJSON(data []byte) error

type IndexFieldVariant ¶

type IndexFieldVariant interface {
	IndexFieldCaster() *IndexField
}

type IndexHealthStats ¶

type IndexHealthStats struct {
	ActivePrimaryShards     int                         `json:"active_primary_shards"`
	ActiveShards            int                         `json:"active_shards"`
	InitializingShards      int                         `json:"initializing_shards"`
	NumberOfReplicas        int                         `json:"number_of_replicas"`
	NumberOfShards          int                         `json:"number_of_shards"`
	RelocatingShards        int                         `json:"relocating_shards"`
	Shards                  map[string]ShardHealthStats `json:"shards,omitempty"`
	Status                  healthstatus.HealthStatus   `json:"status"`
	UnassignedPrimaryShards int                         `json:"unassigned_primary_shards"`
	UnassignedShards        int                         `json:"unassigned_shards"`
}

IndexHealthStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/health/types.ts#L24-L35

func NewIndexHealthStats ¶

func NewIndexHealthStats() *IndexHealthStats

NewIndexHealthStats returns a IndexHealthStats.

func (*IndexHealthStats) UnmarshalJSON ¶

func (s *IndexHealthStats) UnmarshalJSON(data []byte) error

type IndexMappingRecord ¶

type IndexMappingRecord struct {
	Item     *TypeMapping `json:"item,omitempty"`
	Mappings TypeMapping  `json:"mappings"`
}

IndexMappingRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32

func NewIndexMappingRecord ¶

func NewIndexMappingRecord() *IndexMappingRecord

NewIndexMappingRecord returns a IndexMappingRecord.

type IndexOperation ¶

type IndexOperation struct {
	// DynamicTemplates A map from the full name of fields to the name of dynamic templates.
	// It defaults to an empty map.
	// If a name matches a dynamic template, that template will be applied
	// regardless of other match predicates defined in the template.
	// If a field is already defined in the mapping, then this parameter won't be
	// used.
	DynamicTemplates map[string]string `json:"dynamic_templates,omitempty"`
	// Id_ The document ID.
	Id_           *string `json:"_id,omitempty"`
	IfPrimaryTerm *int64  `json:"if_primary_term,omitempty"`
	IfSeqNo       *int64  `json:"if_seq_no,omitempty"`
	// Index_ The name of the index or index alias to perform the action on.
	Index_ *string `json:"_index,omitempty"`
	// Pipeline The ID of the pipeline to use to preprocess incoming documents.
	// If the index has a default ingest pipeline specified, setting the value to
	// `_none` turns off the default ingest pipeline for this request.
	// If a final pipeline is configured, it will always run regardless of the value
	// of this parameter.
	Pipeline *string `json:"pipeline,omitempty"`
	// RequireAlias If `true`, the request's actions must target an index alias.
	RequireAlias *bool `json:"require_alias,omitempty"`
	// Routing A custom value used to route operations to a specific shard.
	Routing     *string                  `json:"routing,omitempty"`
	Version     *int64                   `json:"version,omitempty"`
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

IndexOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L142-L142

func NewIndexOperation ¶

func NewIndexOperation() *IndexOperation

NewIndexOperation returns a IndexOperation.

func (*IndexOperation) IndexOperationCaster ¶

func (s *IndexOperation) IndexOperationCaster() *IndexOperation

func (*IndexOperation) UnmarshalJSON ¶

func (s *IndexOperation) UnmarshalJSON(data []byte) error

type IndexOperationVariant ¶

type IndexOperationVariant interface {
	IndexOperationCaster() *IndexOperation
}

type IndexPrivilegesCheck ¶

type IndexPrivilegesCheck struct {
	// AllowRestrictedIndices This needs to be set to `true` (default is `false`) if using wildcards or
	// regexps for patterns that cover restricted indices.
	// Implicitly, restricted indices do not match index patterns because restricted
	// indices usually have limited privileges and including them in pattern tests
	// would render most such tests false.
	// If restricted indices are explicitly included in the names list, privileges
	// will be checked against them regardless of the value of
	// `allow_restricted_indices`.
	AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`
	// Names A list of indices.
	Names []string `json:"names"`
	// Privileges A list of the privileges that you want to check for the specified indices.
	Privileges []indexprivilege.IndexPrivilege `json:"privileges"`
}

IndexPrivilegesCheck type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/has_privileges/types.ts#L34-L45

func NewIndexPrivilegesCheck ¶

func NewIndexPrivilegesCheck() *IndexPrivilegesCheck

NewIndexPrivilegesCheck returns a IndexPrivilegesCheck.

func (*IndexPrivilegesCheck) IndexPrivilegesCheckCaster ¶

func (s *IndexPrivilegesCheck) IndexPrivilegesCheckCaster() *IndexPrivilegesCheck

func (*IndexPrivilegesCheck) UnmarshalJSON ¶

func (s *IndexPrivilegesCheck) UnmarshalJSON(data []byte) error

type IndexPrivilegesCheckVariant ¶

type IndexPrivilegesCheckVariant interface {
	IndexPrivilegesCheckCaster() *IndexPrivilegesCheck
}

type IndexResult ¶

type IndexResult struct {
	Response IndexResultSummary `json:"response"`
}

IndexResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L267-L269

func NewIndexResult ¶

func NewIndexResult() *IndexResult

NewIndexResult returns a IndexResult.

type IndexResultSummary ¶

type IndexResultSummary struct {
	Created bool          `json:"created"`
	Id      string        `json:"id"`
	Index   string        `json:"index"`
	Result  result.Result `json:"result"`
	Version int64         `json:"version"`
}

IndexResultSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L271-L277

func NewIndexResultSummary ¶

func NewIndexResultSummary() *IndexResultSummary

NewIndexResultSummary returns a IndexResultSummary.

func (*IndexResultSummary) UnmarshalJSON ¶

func (s *IndexResultSummary) UnmarshalJSON(data []byte) error

type IndexRouting ¶

type IndexRouting struct {
	Allocation *IndexRoutingAllocation `json:"allocation,omitempty"`
	Rebalance  *IndexRoutingRebalance  `json:"rebalance,omitempty"`
}

IndexRouting type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L22-L25

func NewIndexRouting ¶

func NewIndexRouting() *IndexRouting

NewIndexRouting returns a IndexRouting.

func (*IndexRouting) IndexRoutingCaster ¶

func (s *IndexRouting) IndexRoutingCaster() *IndexRouting

type IndexRoutingAllocation ¶

type IndexRoutingAllocation struct {
	Disk            *IndexRoutingAllocationDisk                                  `json:"disk,omitempty"`
	Enable          *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"`
	Include         *IndexRoutingAllocationInclude                               `json:"include,omitempty"`
	InitialRecovery *IndexRoutingAllocationInitialRecovery                       `json:"initial_recovery,omitempty"`
}

IndexRoutingAllocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L27-L32

func NewIndexRoutingAllocation ¶

func NewIndexRoutingAllocation() *IndexRoutingAllocation

NewIndexRoutingAllocation returns a IndexRoutingAllocation.

func (*IndexRoutingAllocation) IndexRoutingAllocationCaster ¶

func (s *IndexRoutingAllocation) IndexRoutingAllocationCaster() *IndexRoutingAllocation

type IndexRoutingAllocationDisk ¶

type IndexRoutingAllocationDisk struct {
	ThresholdEnabled *string `json:"threshold_enabled,omitempty"`
}

IndexRoutingAllocationDisk type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L62-L64

func NewIndexRoutingAllocationDisk ¶

func NewIndexRoutingAllocationDisk() *IndexRoutingAllocationDisk

NewIndexRoutingAllocationDisk returns a IndexRoutingAllocationDisk.

func (*IndexRoutingAllocationDisk) IndexRoutingAllocationDiskCaster ¶

func (s *IndexRoutingAllocationDisk) IndexRoutingAllocationDiskCaster() *IndexRoutingAllocationDisk

func (*IndexRoutingAllocationDisk) UnmarshalJSON ¶

func (s *IndexRoutingAllocationDisk) UnmarshalJSON(data []byte) error

type IndexRoutingAllocationDiskVariant ¶

type IndexRoutingAllocationDiskVariant interface {
	IndexRoutingAllocationDiskCaster() *IndexRoutingAllocationDisk
}

type IndexRoutingAllocationInclude ¶

type IndexRoutingAllocationInclude struct {
	Id_             *string `json:"_id,omitempty"`
	TierPreference_ *string `json:"_tier_preference,omitempty"`
}

IndexRoutingAllocationInclude type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L52-L55

func NewIndexRoutingAllocationInclude ¶

func NewIndexRoutingAllocationInclude() *IndexRoutingAllocationInclude

NewIndexRoutingAllocationInclude returns a IndexRoutingAllocationInclude.

func (*IndexRoutingAllocationInclude) IndexRoutingAllocationIncludeCaster ¶

func (s *IndexRoutingAllocationInclude) IndexRoutingAllocationIncludeCaster() *IndexRoutingAllocationInclude

func (*IndexRoutingAllocationInclude) UnmarshalJSON ¶

func (s *IndexRoutingAllocationInclude) UnmarshalJSON(data []byte) error

type IndexRoutingAllocationIncludeVariant ¶

type IndexRoutingAllocationIncludeVariant interface {
	IndexRoutingAllocationIncludeCaster() *IndexRoutingAllocationInclude
}

type IndexRoutingAllocationInitialRecovery ¶

type IndexRoutingAllocationInitialRecovery struct {
	Id_ *string `json:"_id,omitempty"`
}

IndexRoutingAllocationInitialRecovery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L57-L59

func NewIndexRoutingAllocationInitialRecovery ¶

func NewIndexRoutingAllocationInitialRecovery() *IndexRoutingAllocationInitialRecovery

NewIndexRoutingAllocationInitialRecovery returns a IndexRoutingAllocationInitialRecovery.

func (*IndexRoutingAllocationInitialRecovery) IndexRoutingAllocationInitialRecoveryCaster ¶

func (s *IndexRoutingAllocationInitialRecovery) IndexRoutingAllocationInitialRecoveryCaster() *IndexRoutingAllocationInitialRecovery

func (*IndexRoutingAllocationInitialRecovery) UnmarshalJSON ¶

func (s *IndexRoutingAllocationInitialRecovery) UnmarshalJSON(data []byte) error

type IndexRoutingAllocationInitialRecoveryVariant ¶

type IndexRoutingAllocationInitialRecoveryVariant interface {
	IndexRoutingAllocationInitialRecoveryCaster() *IndexRoutingAllocationInitialRecovery
}

type IndexRoutingAllocationVariant ¶

type IndexRoutingAllocationVariant interface {
	IndexRoutingAllocationCaster() *IndexRoutingAllocation
}

type IndexRoutingRebalance ¶

type IndexRoutingRebalance struct {
	Enable indexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"`
}

IndexRoutingRebalance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexRouting.ts#L34-L36

func NewIndexRoutingRebalance ¶

func NewIndexRoutingRebalance() *IndexRoutingRebalance

NewIndexRoutingRebalance returns a IndexRoutingRebalance.

func (*IndexRoutingRebalance) IndexRoutingRebalanceCaster ¶

func (s *IndexRoutingRebalance) IndexRoutingRebalanceCaster() *IndexRoutingRebalance

type IndexRoutingRebalanceVariant ¶

type IndexRoutingRebalanceVariant interface {
	IndexRoutingRebalanceCaster() *IndexRoutingRebalance
}

type IndexRoutingVariant ¶

type IndexRoutingVariant interface {
	IndexRoutingCaster() *IndexRouting
}

type IndexSegment ¶

type IndexSegment struct {
	Shards map[string][]ShardsSegment `json:"shards"`
}

IndexSegment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/segments/types.ts#L24-L26

func NewIndexSegment ¶

func NewIndexSegment() *IndexSegment

NewIndexSegment returns a IndexSegment.

type IndexSegmentSort ¶

type IndexSegmentSort struct {
	Field   []string                                `json:"field,omitempty"`
	Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"`
	Mode    []segmentsortmode.SegmentSortMode       `json:"mode,omitempty"`
	Order   []segmentsortorder.SegmentSortOrder     `json:"order,omitempty"`
}

IndexSegmentSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSegmentSort.ts#L22-L27

func NewIndexSegmentSort ¶

func NewIndexSegmentSort() *IndexSegmentSort

NewIndexSegmentSort returns a IndexSegmentSort.

func (*IndexSegmentSort) IndexSegmentSortCaster ¶

func (s *IndexSegmentSort) IndexSegmentSortCaster() *IndexSegmentSort

func (*IndexSegmentSort) UnmarshalJSON ¶

func (s *IndexSegmentSort) UnmarshalJSON(data []byte) error

type IndexSegmentSortVariant ¶

type IndexSegmentSortVariant interface {
	IndexSegmentSortCaster() *IndexSegmentSort
}

type IndexSettingBlocks ¶

type IndexSettingBlocks struct {
	Metadata            Stringifiedboolean `json:"metadata,omitempty"`
	Read                Stringifiedboolean `json:"read,omitempty"`
	ReadOnly            Stringifiedboolean `json:"read_only,omitempty"`
	ReadOnlyAllowDelete Stringifiedboolean `json:"read_only_allow_delete,omitempty"`
	Write               Stringifiedboolean `json:"write,omitempty"`
}

IndexSettingBlocks type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L264-L270

func NewIndexSettingBlocks ¶

func NewIndexSettingBlocks() *IndexSettingBlocks

NewIndexSettingBlocks returns a IndexSettingBlocks.

func (*IndexSettingBlocks) IndexSettingBlocksCaster ¶

func (s *IndexSettingBlocks) IndexSettingBlocksCaster() *IndexSettingBlocks

func (*IndexSettingBlocks) UnmarshalJSON ¶

func (s *IndexSettingBlocks) UnmarshalJSON(data []byte) error

type IndexSettingBlocksVariant ¶

type IndexSettingBlocksVariant interface {
	IndexSettingBlocksCaster() *IndexSettingBlocks
}

type IndexSettingResults ¶ added in v9.1.0

type IndexSettingResults struct {
	// AppliedToDataStreamAndBackingIndices The list of settings that were applied to the data stream and to all of its
	// backing indices. These settings will
	// also be applied to the write index the next time the data stream is rolled
	// over.
	AppliedToDataStreamAndBackingIndices []string `json:"applied_to_data_stream_and_backing_indices"`
	// AppliedToDataStreamOnly The list of settings that were applied to the data stream but not to backing
	// indices. These will be applied to
	// the write index the next time the data stream is rolled over.
	AppliedToDataStreamOnly []string                  `json:"applied_to_data_stream_only"`
	Errors                  []DataStreamSettingsError `json:"errors,omitempty"`
}

IndexSettingResults type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L57-L69

func NewIndexSettingResults ¶ added in v9.1.0

func NewIndexSettingResults() *IndexSettingResults

NewIndexSettingResults returns a IndexSettingResults.

type IndexSettings ¶

type IndexSettings struct {
	Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"`
	// Analyze Settings to define analyzers, tokenizers, token filters and character
	// filters.
	// Refer to the linked documentation for step-by-step examples of updating
	// analyzers on existing indices.
	Analyze            *SettingsAnalyze                         `json:"analyze,omitempty"`
	AutoExpandReplicas any                                      `json:"auto_expand_replicas,omitempty"`
	Blocks             *IndexSettingBlocks                      `json:"blocks,omitempty"`
	CheckOnStartup     *indexcheckonstartup.IndexCheckOnStartup `json:"check_on_startup,omitempty"`
	Codec              *string                                  `json:"codec,omitempty"`
	CreationDate       StringifiedEpochTimeUnitMillis           `json:"creation_date,omitempty"`
	CreationDateString DateTime                                 `json:"creation_date_string,omitempty"`
	DefaultPipeline    *string                                  `json:"default_pipeline,omitempty"`
	FinalPipeline      *string                                  `json:"final_pipeline,omitempty"`
	Format             *string                                  `json:"format,omitempty"`
	GcDeletes          Duration                                 `json:"gc_deletes,omitempty"`
	Hidden             *string                                  `json:"hidden,omitempty"`
	Highlight          *SettingsHighlight                       `json:"highlight,omitempty"`
	Index              *IndexSettings                           `json:"index,omitempty"`
	IndexSettings      map[string]json.RawMessage               `json:"-"`
	// IndexingPressure Configure indexing back pressure limits.
	IndexingPressure              *IndicesIndexingPressure `json:"indexing_pressure,omitempty"`
	IndexingSlowlog               *IndexingSlowlogSettings `json:"indexing.slowlog,omitempty"`
	Lifecycle                     *IndexSettingsLifecycle  `json:"lifecycle,omitempty"`
	LoadFixedBitsetFiltersEagerly *bool                    `json:"load_fixed_bitset_filters_eagerly,omitempty"`
	// Mapping Enable or disable dynamic mapping for an index.
	Mapping                 *MappingLimitSettings `json:"mapping,omitempty"`
	MaxDocvalueFieldsSearch *int                  `json:"max_docvalue_fields_search,omitempty"`
	MaxInnerResultWindow    *int                  `json:"max_inner_result_window,omitempty"`
	MaxNgramDiff            *int                  `json:"max_ngram_diff,omitempty"`
	MaxRefreshListeners     *int                  `json:"max_refresh_listeners,omitempty"`
	MaxRegexLength          *int                  `json:"max_regex_length,omitempty"`
	MaxRescoreWindow        *int                  `json:"max_rescore_window,omitempty"`
	MaxResultWindow         *int                  `json:"max_result_window,omitempty"`
	MaxScriptFields         *int                  `json:"max_script_fields,omitempty"`
	MaxShingleDiff          *int                  `json:"max_shingle_diff,omitempty"`
	MaxSlicesPerScroll      *int                  `json:"max_slices_per_scroll,omitempty"`
	MaxTermsCount           *int                  `json:"max_terms_count,omitempty"`
	Merge                   *Merge                `json:"merge,omitempty"`
	Mode                    *string               `json:"mode,omitempty"`
	NumberOfReplicas        *string               `json:"number_of_replicas,omitempty"`
	NumberOfRoutingShards   *int                  `json:"number_of_routing_shards,omitempty"`
	NumberOfShards          *string               `json:"number_of_shards,omitempty"`
	Priority                *string               `json:"priority,omitempty"`
	ProvidedName            *string               `json:"provided_name,omitempty"`
	Queries                 *Queries              `json:"queries,omitempty"`
	QueryString             *SettingsQueryString  `json:"query_string,omitempty"`
	RefreshInterval         Duration              `json:"refresh_interval,omitempty"`
	Routing                 *IndexRouting         `json:"routing,omitempty"`
	RoutingPartitionSize    Stringifiedinteger    `json:"routing_partition_size,omitempty"`
	RoutingPath             []string              `json:"routing_path,omitempty"`
	Search                  *SettingsSearch       `json:"search,omitempty"`
	Settings                *IndexSettings        `json:"settings,omitempty"`
	// Similarity Configure custom similarity settings to customize how search results are
	// scored.
	Similarity  map[string]SettingsSimilarity `json:"similarity,omitempty"`
	SoftDeletes *SoftDeletes                  `json:"soft_deletes,omitempty"`
	Sort        *IndexSegmentSort             `json:"sort,omitempty"`
	// Store The store module allows you to control how index data is stored and accessed
	// on disk.
	Store               *Storage                 `json:"store,omitempty"`
	TimeSeries          *IndexSettingsTimeSeries `json:"time_series,omitempty"`
	TopMetricsMaxSize   *int                     `json:"top_metrics_max_size,omitempty"`
	Translog            *Translog                `json:"translog,omitempty"`
	Uuid                *string                  `json:"uuid,omitempty"`
	VerifiedBeforeClose *string                  `json:"verified_before_close,omitempty"`
	Version             *IndexVersioning         `json:"version,omitempty"`
}

IndexSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L70-L178

func NewIndexSettings ¶

func NewIndexSettings() *IndexSettings

NewIndexSettings returns a IndexSettings.

func (*IndexSettings) IndexSettingsCaster ¶

func (s *IndexSettings) IndexSettingsCaster() *IndexSettings

func (IndexSettings) MarshalJSON ¶

func (s IndexSettings) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*IndexSettings) UnmarshalJSON ¶

func (s *IndexSettings) UnmarshalJSON(data []byte) error

type IndexSettingsAnalysis ¶

type IndexSettingsAnalysis struct {
	Analyzer   map[string]Analyzer    `json:"analyzer,omitempty"`
	CharFilter map[string]CharFilter  `json:"char_filter,omitempty"`
	Filter     map[string]TokenFilter `json:"filter,omitempty"`
	Normalizer map[string]Normalizer  `json:"normalizer,omitempty"`
	Tokenizer  map[string]Tokenizer   `json:"tokenizer,omitempty"`
}

IndexSettingsAnalysis type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L346-L352

func NewIndexSettingsAnalysis ¶

func NewIndexSettingsAnalysis() *IndexSettingsAnalysis

NewIndexSettingsAnalysis returns a IndexSettingsAnalysis.

func (*IndexSettingsAnalysis) IndexSettingsAnalysisCaster ¶

func (s *IndexSettingsAnalysis) IndexSettingsAnalysisCaster() *IndexSettingsAnalysis

func (*IndexSettingsAnalysis) UnmarshalJSON ¶

func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error

type IndexSettingsAnalysisVariant ¶

type IndexSettingsAnalysisVariant interface {
	IndexSettingsAnalysisCaster() *IndexSettingsAnalysis
}

type IndexSettingsLifecycle ¶

type IndexSettingsLifecycle struct {
	// IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to
	// true when ILM completes the rollover action.
	// You can explicitly set it to skip rollover.
	IndexingComplete Stringifiedboolean `json:"indexing_complete,omitempty"`
	// Name The name of the policy to use to manage the index. For information about how
	// Elasticsearch applies policy changes, see Policy updates.
	Name *string `json:"name,omitempty"`
	// OriginationDate If specified, this is the timestamp used to calculate the index age for its
	// phase transitions. Use this setting
	// if you create a new index that contains old data and want to use the original
	// creation date to calculate the index
	// age. Specified as a Unix epoch value in milliseconds.
	OriginationDate *int64 `json:"origination_date,omitempty"`
	// ParseOriginationDate Set to true to parse the origination date from the index name. This
	// origination date is used to calculate the index age
	// for its phase transitions. The index name must match the pattern
	// ^.*-{date_format}-\\d+, where the date_format is
	// yyyy.MM.dd and the trailing digits are optional. An index that was rolled
	// over would normally match the full format,
	// for example logs-2016.10.31-000002). If the index name doesn’t match the
	// pattern, index creation fails.
	ParseOriginationDate *bool `json:"parse_origination_date,omitempty"`
	// PreferIlm Preference for the system that manages a data stream backing index
	// (preferring ILM when both ILM and DLM are
	// applicable for an index).
	PreferIlm *string `json:"prefer_ilm,omitempty"`
	// RolloverAlias The index alias to update when the index rolls over. Specify when using a
	// policy that contains a rollover action.
	// When the index rolls over, the alias is updated to reflect that the index is
	// no longer the write index. For more
	// information about rolling indices, see Rollover.
	RolloverAlias *string                     `json:"rollover_alias,omitempty"`
	Step          *IndexSettingsLifecycleStep `json:"step,omitempty"`
}

IndexSettingsLifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L297-L336

func NewIndexSettingsLifecycle ¶

func NewIndexSettingsLifecycle() *IndexSettingsLifecycle

NewIndexSettingsLifecycle returns a IndexSettingsLifecycle.

func (*IndexSettingsLifecycle) IndexSettingsLifecycleCaster ¶

func (s *IndexSettingsLifecycle) IndexSettingsLifecycleCaster() *IndexSettingsLifecycle

func (*IndexSettingsLifecycle) UnmarshalJSON ¶

func (s *IndexSettingsLifecycle) UnmarshalJSON(data []byte) error

type IndexSettingsLifecycleStep ¶

type IndexSettingsLifecycleStep struct {
	// WaitTimeThreshold Time to wait for the cluster to resolve allocation issues during an ILM
	// shrink action. Must be greater than 1h (1 hour).
	// See Shard allocation for shrink.
	WaitTimeThreshold Duration `json:"wait_time_threshold,omitempty"`
}

IndexSettingsLifecycleStep type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L338-L344

func NewIndexSettingsLifecycleStep ¶

func NewIndexSettingsLifecycleStep() *IndexSettingsLifecycleStep

NewIndexSettingsLifecycleStep returns a IndexSettingsLifecycleStep.

func (*IndexSettingsLifecycleStep) IndexSettingsLifecycleStepCaster ¶

func (s *IndexSettingsLifecycleStep) IndexSettingsLifecycleStepCaster() *IndexSettingsLifecycleStep

func (*IndexSettingsLifecycleStep) UnmarshalJSON ¶

func (s *IndexSettingsLifecycleStep) UnmarshalJSON(data []byte) error

type IndexSettingsLifecycleStepVariant ¶

type IndexSettingsLifecycleStepVariant interface {
	IndexSettingsLifecycleStepCaster() *IndexSettingsLifecycleStep
}

type IndexSettingsLifecycleVariant ¶

type IndexSettingsLifecycleVariant interface {
	IndexSettingsLifecycleCaster() *IndexSettingsLifecycle
}

type IndexSettingsTimeSeries ¶

type IndexSettingsTimeSeries struct {
	EndTime   DateTime `json:"end_time,omitempty"`
	StartTime DateTime `json:"start_time,omitempty"`
}

IndexSettingsTimeSeries type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L354-L357

func NewIndexSettingsTimeSeries ¶

func NewIndexSettingsTimeSeries() *IndexSettingsTimeSeries

NewIndexSettingsTimeSeries returns a IndexSettingsTimeSeries.

func (*IndexSettingsTimeSeries) IndexSettingsTimeSeriesCaster ¶

func (s *IndexSettingsTimeSeries) IndexSettingsTimeSeriesCaster() *IndexSettingsTimeSeries

func (*IndexSettingsTimeSeries) UnmarshalJSON ¶

func (s *IndexSettingsTimeSeries) UnmarshalJSON(data []byte) error

type IndexSettingsTimeSeriesVariant ¶

type IndexSettingsTimeSeriesVariant interface {
	IndexSettingsTimeSeriesCaster() *IndexSettingsTimeSeries
}

type IndexSettingsVariant ¶

type IndexSettingsVariant interface {
	IndexSettingsCaster() *IndexSettings
}

type IndexState ¶

type IndexState struct {
	Aliases    map[string]Alias `json:"aliases,omitempty"`
	DataStream *string          `json:"data_stream,omitempty"`
	// Defaults Default settings, included when the request's `include_default` is `true`.
	Defaults *IndexSettings `json:"defaults,omitempty"`
	// Lifecycle Data stream lifecycle applicable if this is a data stream.
	Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"`
	Mappings  *TypeMapping         `json:"mappings,omitempty"`
	Settings  *IndexSettings       `json:"settings,omitempty"`
}

IndexState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexState.ts#L27-L40

func NewIndexState ¶

func NewIndexState() *IndexState

NewIndexState returns a IndexState.

func (*IndexState) IndexStateCaster ¶

func (s *IndexState) IndexStateCaster() *IndexState

func (*IndexState) UnmarshalJSON ¶

func (s *IndexState) UnmarshalJSON(data []byte) error

type IndexStateVariant ¶

type IndexStateVariant interface {
	IndexStateCaster() *IndexState
}

type IndexStats ¶

type IndexStats struct {
	Bulk *BulkStats `json:"bulk,omitempty"`
	// Completion Contains statistics about completions across all shards assigned to the node.
	Completion *CompletionStats `json:"completion,omitempty"`
	// Docs Contains statistics about documents across all primary shards assigned to the
	// node.
	Docs *DocStats `json:"docs,omitempty"`
	// Fielddata Contains statistics about the field data cache across all shards assigned to
	// the node.
	Fielddata *FielddataStats `json:"fielddata,omitempty"`
	// Flush Contains statistics about flush operations for the node.
	Flush *FlushStats `json:"flush,omitempty"`
	// Get Contains statistics about get operations for the node.
	Get *GetStats `json:"get,omitempty"`
	// Indexing Contains statistics about indexing operations for the node.
	Indexing *IndexingStats `json:"indexing,omitempty"`
	// Indices Contains statistics about indices operations for the node.
	Indices *IndicesStats `json:"indices,omitempty"`
	// Merges Contains statistics about merge operations for the node.
	Merges *MergesStats `json:"merges,omitempty"`
	// QueryCache Contains statistics about the query cache across all shards assigned to the
	// node.
	QueryCache *QueryCacheStats `json:"query_cache,omitempty"`
	// Recovery Contains statistics about recovery operations for the node.
	Recovery *RecoveryStats `json:"recovery,omitempty"`
	// Refresh Contains statistics about refresh operations for the node.
	Refresh *RefreshStats `json:"refresh,omitempty"`
	// RequestCache Contains statistics about the request cache across all shards assigned to the
	// node.
	RequestCache *RequestCacheStats `json:"request_cache,omitempty"`
	// Search Contains statistics about search operations for the node.
	Search *SearchStats `json:"search,omitempty"`
	// Segments Contains statistics about segments across all shards assigned to the node.
	Segments   *SegmentsStats    `json:"segments,omitempty"`
	ShardStats *ShardsTotalStats `json:"shard_stats,omitempty"`
	// Store Contains statistics about the size of shards assigned to the node.
	Store *StoreStats `json:"store,omitempty"`
	// Translog Contains statistics about transaction log operations for the node.
	Translog *TranslogStats `json:"translog,omitempty"`
	// Warmer Contains statistics about index warming operations for the node.
	Warmer *WarmerStats `json:"warmer,omitempty"`
}

IndexStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L52-L93

func NewIndexStats ¶

func NewIndexStats() *IndexStats

NewIndexStats returns a IndexStats.

type IndexTemplate ¶

type IndexTemplate struct {
	AllowAutoCreate *bool `json:"allow_auto_create,omitempty"`
	// ComposedOf An ordered list of component template names.
	// Component templates are merged in the order specified, meaning that the last
	// component template specified has the highest precedence.
	ComposedOf []string `json:"composed_of"`
	// DataStream If this object is included, the template is used to create data streams and
	// their backing indices.
	// Supports an empty object.
	// Data streams require a matching index template with a `data_stream` object.
	DataStream *IndexTemplateDataStreamConfiguration `json:"data_stream,omitempty"`
	// Deprecated Marks this index template as deprecated.
	// When creating or updating a non-deprecated index template that uses
	// deprecated components,
	// Elasticsearch will emit a deprecation warning.
	Deprecated *bool `json:"deprecated,omitempty"`
	// IgnoreMissingComponentTemplates A list of component template names that are allowed to be absent.
	IgnoreMissingComponentTemplates []string `json:"ignore_missing_component_templates,omitempty"`
	// IndexPatterns Name of the index template.
	IndexPatterns []string `json:"index_patterns"`
	// Meta_ Optional user metadata about the index template. May have any contents.
	// This map is not automatically generated by Elasticsearch.
	Meta_ Metadata `json:"_meta,omitempty"`
	// Priority Priority to determine index template precedence when a new data stream or
	// index is created.
	// The index template with the highest priority is chosen.
	// If no priority is specified the template is treated as though it is of
	// priority 0 (lowest priority).
	// This number is not automatically generated by Elasticsearch.
	Priority *int64 `json:"priority,omitempty"`
	// Template Template to be applied.
	// It may optionally include an `aliases`, `mappings`, or `settings`
	// configuration.
	Template *IndexTemplateSummary `json:"template,omitempty"`
	// Version Version number used to manage index templates externally.
	// This number is not automatically generated by Elasticsearch.
	Version *int64 `json:"version,omitempty"`
}

IndexTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexTemplate.ts#L29-L82

func NewIndexTemplate ¶

func NewIndexTemplate() *IndexTemplate

NewIndexTemplate returns a IndexTemplate.

func (*IndexTemplate) IndexTemplateCaster ¶

func (s *IndexTemplate) IndexTemplateCaster() *IndexTemplate

func (*IndexTemplate) UnmarshalJSON ¶

func (s *IndexTemplate) UnmarshalJSON(data []byte) error

type IndexTemplateDataStreamConfiguration ¶

type IndexTemplateDataStreamConfiguration struct {
	// AllowCustomRouting If true, the data stream supports custom routing.
	AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"`
	// Hidden If true, the data stream is hidden.
	Hidden *bool `json:"hidden,omitempty"`
}

IndexTemplateDataStreamConfiguration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexTemplate.ts#L84-L95

func NewIndexTemplateDataStreamConfiguration ¶

func NewIndexTemplateDataStreamConfiguration() *IndexTemplateDataStreamConfiguration

NewIndexTemplateDataStreamConfiguration returns a IndexTemplateDataStreamConfiguration.

func (*IndexTemplateDataStreamConfiguration) IndexTemplateDataStreamConfigurationCaster ¶

func (s *IndexTemplateDataStreamConfiguration) IndexTemplateDataStreamConfigurationCaster() *IndexTemplateDataStreamConfiguration

func (*IndexTemplateDataStreamConfiguration) UnmarshalJSON ¶

func (s *IndexTemplateDataStreamConfiguration) UnmarshalJSON(data []byte) error

type IndexTemplateDataStreamConfigurationVariant ¶

type IndexTemplateDataStreamConfigurationVariant interface {
	IndexTemplateDataStreamConfigurationCaster() *IndexTemplateDataStreamConfiguration
}

type IndexTemplateItem ¶

type IndexTemplateItem struct {
	IndexTemplate IndexTemplate `json:"index_template"`
	Name          string        `json:"name"`
}

IndexTemplateItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32

func NewIndexTemplateItem ¶

func NewIndexTemplateItem() *IndexTemplateItem

NewIndexTemplateItem returns a IndexTemplateItem.

func (*IndexTemplateItem) UnmarshalJSON ¶

func (s *IndexTemplateItem) UnmarshalJSON(data []byte) error

type IndexTemplateMapping ¶

type IndexTemplateMapping struct {
	// Aliases Aliases to add.
	// If the index template includes a `data_stream` object, these are data stream
	// aliases.
	// Otherwise, these are index aliases.
	// Data stream aliases ignore the `index_routing`, `routing`, and
	// `search_routing` options.
	Aliases   map[string]Alias     `json:"aliases,omitempty"`
	Lifecycle *DataStreamLifecycle `json:"lifecycle,omitempty"`
	// Mappings Mapping for fields in the index.
	// If specified, this mapping can include field names, field data types, and
	// mapping parameters.
	Mappings *TypeMapping `json:"mappings,omitempty"`
	// Settings Configuration options for the index.
	Settings *IndexSettings `json:"settings,omitempty"`
}

IndexTemplateMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181

func NewIndexTemplateMapping ¶

func NewIndexTemplateMapping() *IndexTemplateMapping

NewIndexTemplateMapping returns a IndexTemplateMapping.

func (*IndexTemplateMapping) IndexTemplateMappingCaster ¶

func (s *IndexTemplateMapping) IndexTemplateMappingCaster() *IndexTemplateMapping

type IndexTemplateMappingVariant ¶

type IndexTemplateMappingVariant interface {
	IndexTemplateMappingCaster() *IndexTemplateMapping
}

type IndexTemplateSummary ¶

type IndexTemplateSummary struct {
	// Aliases Aliases to add.
	// If the index template includes a `data_stream` object, these are data stream
	// aliases.
	// Otherwise, these are index aliases.
	// Data stream aliases ignore the `index_routing`, `routing`, and
	// `search_routing` options.
	Aliases           map[string]Alias                 `json:"aliases,omitempty"`
	DataStreamOptions *DataStreamOptionsTemplate       `json:"data_stream_options,omitempty"`
	Lifecycle         *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"`
	// Mappings Mapping for fields in the index.
	// If specified, this mapping can include field names, field data types, and
	// mapping parameters.
	Mappings *TypeMapping `json:"mappings,omitempty"`
	// Settings Configuration options for the index.
	Settings *IndexSettings `json:"settings,omitempty"`
}

IndexTemplateSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexTemplate.ts#L97-L124

func NewIndexTemplateSummary ¶

func NewIndexTemplateSummary() *IndexTemplateSummary

NewIndexTemplateSummary returns a IndexTemplateSummary.

func (*IndexTemplateSummary) IndexTemplateSummaryCaster ¶

func (s *IndexTemplateSummary) IndexTemplateSummaryCaster() *IndexTemplateSummary

func (*IndexTemplateSummary) UnmarshalJSON ¶ added in v9.1.0

func (s *IndexTemplateSummary) UnmarshalJSON(data []byte) error

type IndexTemplateSummaryVariant ¶

type IndexTemplateSummaryVariant interface {
	IndexTemplateSummaryCaster() *IndexTemplateSummary
}

type IndexTemplateVariant ¶

type IndexTemplateVariant interface {
	IndexTemplateCaster() *IndexTemplate
}

type IndexVersioning ¶

type IndexVersioning struct {
	Created       *string `json:"created,omitempty"`
	CreatedString *string `json:"created_string,omitempty"`
}

IndexVersioning type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L292-L295

func NewIndexVersioning ¶

func NewIndexVersioning() *IndexVersioning

NewIndexVersioning returns a IndexVersioning.

func (*IndexVersioning) IndexVersioningCaster ¶

func (s *IndexVersioning) IndexVersioningCaster() *IndexVersioning

func (*IndexVersioning) UnmarshalJSON ¶

func (s *IndexVersioning) UnmarshalJSON(data []byte) error

type IndexVersioningVariant ¶

type IndexVersioningVariant interface {
	IndexVersioningCaster() *IndexVersioning
}

type IndexingSlowlogSettings ¶

type IndexingSlowlogSettings struct {
	Level     *string                   `json:"level,omitempty"`
	Reformat  *bool                     `json:"reformat,omitempty"`
	Source    *int                      `json:"source,omitempty"`
	Threshold *IndexingSlowlogTresholds `json:"threshold,omitempty"`
}

IndexingSlowlogSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L603-L608

func NewIndexingSlowlogSettings ¶

func NewIndexingSlowlogSettings() *IndexingSlowlogSettings

NewIndexingSlowlogSettings returns a IndexingSlowlogSettings.

func (*IndexingSlowlogSettings) IndexingSlowlogSettingsCaster ¶

func (s *IndexingSlowlogSettings) IndexingSlowlogSettingsCaster() *IndexingSlowlogSettings

func (*IndexingSlowlogSettings) UnmarshalJSON ¶

func (s *IndexingSlowlogSettings) UnmarshalJSON(data []byte) error

type IndexingSlowlogSettingsVariant ¶

type IndexingSlowlogSettingsVariant interface {
	IndexingSlowlogSettingsCaster() *IndexingSlowlogSettings
}

type IndexingSlowlogTresholds ¶

type IndexingSlowlogTresholds struct {
	// Index The indexing slow log, similar in functionality to the search slow log. The
	// log file name ends with `_index_indexing_slowlog.json`.
	// Log and the thresholds are configured in the same way as the search slowlog.
	Index *SlowlogTresholdLevels `json:"index,omitempty"`
}

IndexingSlowlogTresholds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L610-L617

func NewIndexingSlowlogTresholds ¶

func NewIndexingSlowlogTresholds() *IndexingSlowlogTresholds

NewIndexingSlowlogTresholds returns a IndexingSlowlogTresholds.

func (*IndexingSlowlogTresholds) IndexingSlowlogTresholdsCaster ¶

func (s *IndexingSlowlogTresholds) IndexingSlowlogTresholdsCaster() *IndexingSlowlogTresholds

type IndexingSlowlogTresholdsVariant ¶

type IndexingSlowlogTresholdsVariant interface {
	IndexingSlowlogTresholdsCaster() *IndexingSlowlogTresholds
}

type IndexingStats ¶

type IndexingStats struct {
	DeleteCurrent        int64                    `json:"delete_current"`
	DeleteTime           Duration                 `json:"delete_time,omitempty"`
	DeleteTimeInMillis   int64                    `json:"delete_time_in_millis"`
	DeleteTotal          int64                    `json:"delete_total"`
	IndexCurrent         int64                    `json:"index_current"`
	IndexFailed          int64                    `json:"index_failed"`
	IndexTime            Duration                 `json:"index_time,omitempty"`
	IndexTimeInMillis    int64                    `json:"index_time_in_millis"`
	IndexTotal           int64                    `json:"index_total"`
	IsThrottled          bool                     `json:"is_throttled"`
	NoopUpdateTotal      int64                    `json:"noop_update_total"`
	PeakWriteLoad        *Float64                 `json:"peak_write_load,omitempty"`
	RecentWriteLoad      *Float64                 `json:"recent_write_load,omitempty"`
	ThrottleTime         Duration                 `json:"throttle_time,omitempty"`
	ThrottleTimeInMillis int64                    `json:"throttle_time_in_millis"`
	Types                map[string]IndexingStats `json:"types,omitempty"`
	WriteLoad            *Float64                 `json:"write_load,omitempty"`
}

IndexingStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L168-L186

func NewIndexingStats ¶

func NewIndexingStats() *IndexingStats

NewIndexingStats returns a IndexingStats.

func (*IndexingStats) UnmarshalJSON ¶

func (s *IndexingStats) UnmarshalJSON(data []byte) error

type IndicNormalizationTokenFilter ¶ added in v9.0.1

type IndicNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

IndicNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L506-L508

func NewIndicNormalizationTokenFilter ¶ added in v9.0.1

func NewIndicNormalizationTokenFilter() *IndicNormalizationTokenFilter

NewIndicNormalizationTokenFilter returns a IndicNormalizationTokenFilter.

func (*IndicNormalizationTokenFilter) IndicNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *IndicNormalizationTokenFilter) IndicNormalizationTokenFilterCaster() *IndicNormalizationTokenFilter

func (IndicNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s IndicNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IndicNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *IndicNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*IndicNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *IndicNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type IndicNormalizationTokenFilterVariant ¶ added in v9.0.1

type IndicNormalizationTokenFilterVariant interface {
	IndicNormalizationTokenFilterCaster() *IndicNormalizationTokenFilter
}

type IndicatorNode ¶

type IndicatorNode struct {
	Name   *string `json:"name,omitempty"`
	NodeId *string `json:"node_id,omitempty"`
}

IndicatorNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L93-L96

func NewIndicatorNode ¶

func NewIndicatorNode() *IndicatorNode

NewIndicatorNode returns a IndicatorNode.

func (*IndicatorNode) UnmarshalJSON ¶

func (s *IndicatorNode) UnmarshalJSON(data []byte) error

type Indicators ¶

type Indicators struct {
	DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"`
	Disk                *DiskIndicator                `json:"disk,omitempty"`
	FileSettings        *FileSettingsIndicator        `json:"file_settings,omitempty"`
	Ilm                 *IlmIndicator                 `json:"ilm,omitempty"`
	MasterIsStable      *MasterIsStableIndicator      `json:"master_is_stable,omitempty"`
	RepositoryIntegrity *RepositoryIntegrityIndicator `json:"repository_integrity,omitempty"`
	ShardsAvailability  *ShardsAvailabilityIndicator  `json:"shards_availability,omitempty"`
	ShardsCapacity      *ShardsCapacityIndicator      `json:"shards_capacity,omitempty"`
	Slm                 *SlmIndicator                 `json:"slm,omitempty"`
}

Indicators type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L33-L43

func NewIndicators ¶

func NewIndicators() *Indicators

NewIndicators returns a Indicators.

type IndicesAction ¶

type IndicesAction struct {
	// Add Adds a data stream or index to an alias.
	// If the alias doesn’t exist, the `add` action creates it.
	Add                             *AddAction                 `json:"add,omitempty"`
	AdditionalIndicesActionProperty map[string]json.RawMessage `json:"-"`
	// Remove Removes a data stream or index from an alias.
	Remove *RemoveAction `json:"remove,omitempty"`
	// RemoveIndex Deletes an index.
	// You cannot use this action on aliases or data streams.
	RemoveIndex *RemoveIndexAction `json:"remove_index,omitempty"`
}

IndicesAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/update_aliases/types.ts#L23-L39

func NewIndicesAction ¶

func NewIndicesAction() *IndicesAction

NewIndicesAction returns a IndicesAction.

func (*IndicesAction) IndicesActionCaster ¶

func (s *IndicesAction) IndicesActionCaster() *IndicesAction

func (IndicesAction) MarshalJSON ¶

func (s IndicesAction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type IndicesActionVariant ¶

type IndicesActionVariant interface {
	IndicesActionCaster() *IndicesAction
}

type IndicesIndexingPressure ¶

type IndicesIndexingPressure struct {
	Memory IndicesIndexingPressureMemory `json:"memory"`
}

IndicesIndexingPressure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L590-L592

func NewIndicesIndexingPressure ¶

func NewIndicesIndexingPressure() *IndicesIndexingPressure

NewIndicesIndexingPressure returns a IndicesIndexingPressure.

func (*IndicesIndexingPressure) IndicesIndexingPressureCaster ¶

func (s *IndicesIndexingPressure) IndicesIndexingPressureCaster() *IndicesIndexingPressure

type IndicesIndexingPressureMemory ¶

type IndicesIndexingPressureMemory struct {
	// Limit Number of outstanding bytes that may be consumed by indexing requests. When
	// this limit is reached or exceeded,
	// the node will reject new coordinating and primary operations. When replica
	// operations consume 1.5x this limit,
	// the node will reject new replica operations. Defaults to 10% of the heap.
	Limit *int `json:"limit,omitempty"`
}

IndicesIndexingPressureMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L594-L601

func NewIndicesIndexingPressureMemory ¶

func NewIndicesIndexingPressureMemory() *IndicesIndexingPressureMemory

NewIndicesIndexingPressureMemory returns a IndicesIndexingPressureMemory.

func (*IndicesIndexingPressureMemory) IndicesIndexingPressureMemoryCaster ¶

func (s *IndicesIndexingPressureMemory) IndicesIndexingPressureMemoryCaster() *IndicesIndexingPressureMemory

func (*IndicesIndexingPressureMemory) UnmarshalJSON ¶

func (s *IndicesIndexingPressureMemory) UnmarshalJSON(data []byte) error

type IndicesIndexingPressureMemoryVariant ¶

type IndicesIndexingPressureMemoryVariant interface {
	IndicesIndexingPressureMemoryCaster() *IndicesIndexingPressureMemory
}

type IndicesIndexingPressureVariant ¶

type IndicesIndexingPressureVariant interface {
	IndicesIndexingPressureCaster() *IndicesIndexingPressure
}

type IndicesModifyAction ¶

type IndicesModifyAction struct {
	// AddBackingIndex Adds an existing index as a backing index for a data stream.
	// The index is hidden as part of this operation.
	// WARNING: Adding indices with the `add_backing_index` action can potentially
	// result in improper data stream behavior.
	// This should be considered an expert level API.
	AddBackingIndex                       *IndexAndDataStreamAction  `json:"add_backing_index,omitempty"`
	AdditionalIndicesModifyActionProperty map[string]json.RawMessage `json:"-"`
	// RemoveBackingIndex Removes a backing index from a data stream.
	// The index is unhidden as part of this operation.
	// A data stream’s write index cannot be removed.
	RemoveBackingIndex *IndexAndDataStreamAction `json:"remove_backing_index,omitempty"`
}

IndicesModifyAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/modify_data_stream/types.ts#L22-L37

func NewIndicesModifyAction ¶

func NewIndicesModifyAction() *IndicesModifyAction

NewIndicesModifyAction returns a IndicesModifyAction.

func (*IndicesModifyAction) IndicesModifyActionCaster ¶

func (s *IndicesModifyAction) IndicesModifyActionCaster() *IndicesModifyAction

func (IndicesModifyAction) MarshalJSON ¶

func (s IndicesModifyAction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type IndicesModifyActionVariant ¶

type IndicesModifyActionVariant interface {
	IndicesModifyActionCaster() *IndicesModifyAction
}

type IndicesOptions ¶

type IndicesOptions struct {
	// 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`.
	AllowNoIndices *bool `json:"allow_no_indices,omitempty"`
	// 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`.
	ExpandWildcards []expandwildcard.ExpandWildcard `json:"expand_wildcards,omitempty"`
	// IgnoreThrottled If true, concrete, expanded or aliased indices are ignored when frozen.
	IgnoreThrottled *bool `json:"ignore_throttled,omitempty"`
	// IgnoreUnavailable If true, missing or closed indices are not included in the response.
	IgnoreUnavailable *bool `json:"ignore_unavailable,omitempty"`
}

IndicesOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L334-L361

func NewIndicesOptions ¶

func NewIndicesOptions() *IndicesOptions

NewIndicesOptions returns a IndicesOptions.

func (*IndicesOptions) IndicesOptionsCaster ¶

func (s *IndicesOptions) IndicesOptionsCaster() *IndicesOptions

func (*IndicesOptions) UnmarshalJSON ¶

func (s *IndicesOptions) UnmarshalJSON(data []byte) error

type IndicesOptionsVariant ¶

type IndicesOptionsVariant interface {
	IndicesOptionsCaster() *IndicesOptions
}

type IndicesPrivileges ¶

type IndicesPrivileges struct {
	// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
	// cover restricted indices. Implicitly, restricted indices have limited
	// privileges that can cause pattern tests to fail. If restricted indices are
	// explicitly included in the `names` list, Elasticsearch checks privileges
	// against these indices regardless of the value set for
	// `allow_restricted_indices`.
	AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`
	// FieldSecurity The document fields that the owners of the role have read access to.
	FieldSecurity *FieldSecurity `json:"field_security,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
	// Privileges The index level privileges that owners of the role have on the specified
	// indices.
	Privileges []indexprivilege.IndexPrivilege `json:"privileges"`
	// Query A search query that defines the documents the owners of the role have access
	// to. A document within the specified indices must match this query for it to
	// be accessible by the owners of the role.
	Query IndicesPrivilegesQuery `json:"query,omitempty"`
}

IndicesPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L218-L244

func NewIndicesPrivileges ¶

func NewIndicesPrivileges() *IndicesPrivileges

NewIndicesPrivileges returns a IndicesPrivileges.

func (*IndicesPrivileges) IndicesPrivilegesCaster ¶

func (s *IndicesPrivileges) IndicesPrivilegesCaster() *IndicesPrivileges

func (*IndicesPrivileges) UnmarshalJSON ¶

func (s *IndicesPrivileges) UnmarshalJSON(data []byte) error

type IndicesPrivilegesQuery ¶

type IndicesPrivilegesQuery any

IndicesPrivilegesQuery holds the union for the following types:

string
Query
RoleTemplateQuery

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L343-L351

type IndicesPrivilegesQueryVariant ¶

type IndicesPrivilegesQueryVariant interface {
	IndicesPrivilegesQueryCaster() *IndicesPrivilegesQuery
}

type IndicesPrivilegesVariant ¶

type IndicesPrivilegesVariant interface {
	IndicesPrivilegesCaster() *IndicesPrivileges
}

type IndicesRecord ¶

type IndicesRecord struct {
	// BulkAvgSizeInBytes average size in bytes of shard bulk
	BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`
	// BulkAvgTime average time spend in shard bulk
	BulkAvgTime *string `json:"bulk.avg_time,omitempty"`
	// BulkTotalOperations number of bulk shard ops
	BulkTotalOperations *string `json:"bulk.total_operations,omitempty"`
	// BulkTotalSizeInBytes total size in bytes of shard bulk
	BulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`
	// BulkTotalTime time spend in shard bulk
	BulkTotalTime *string `json:"bulk.total_time,omitempty"`
	// CompletionSize size of completion
	CompletionSize *string `json:"completion.size,omitempty"`
	// CreationDate index creation date (millisecond value)
	CreationDate *string `json:"creation.date,omitempty"`
	// CreationDateString index creation date (as string)
	CreationDateString *string `json:"creation.date.string,omitempty"`
	// DatasetSize total size of dataset (including the cache for partially mounted indices)
	DatasetSize *string `json:"dataset.size,omitempty"`
	// DocsCount available docs
	DocsCount *string `json:"docs.count,omitempty"`
	// DocsDeleted deleted docs
	DocsDeleted *string `json:"docs.deleted,omitempty"`
	// FielddataEvictions fielddata evictions
	FielddataEvictions *string `json:"fielddata.evictions,omitempty"`
	// FielddataMemorySize used fielddata cache
	FielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`
	// FlushTotal number of flushes
	FlushTotal *string `json:"flush.total,omitempty"`
	// FlushTotalTime time spent in flush
	FlushTotalTime *string `json:"flush.total_time,omitempty"`
	// GetCurrent number of current get ops
	GetCurrent *string `json:"get.current,omitempty"`
	// GetExistsTime time spent in successful gets
	GetExistsTime *string `json:"get.exists_time,omitempty"`
	// GetExistsTotal number of successful gets
	GetExistsTotal *string `json:"get.exists_total,omitempty"`
	// GetMissingTime time spent in failed gets
	GetMissingTime *string `json:"get.missing_time,omitempty"`
	// GetMissingTotal number of failed gets
	GetMissingTotal *string `json:"get.missing_total,omitempty"`
	// GetTime time spent in get
	GetTime *string `json:"get.time,omitempty"`
	// GetTotal number of get ops
	GetTotal *string `json:"get.total,omitempty"`
	// Health current health status
	Health *string `json:"health,omitempty"`
	// Index index name
	Index *string `json:"index,omitempty"`
	// IndexingDeleteCurrent number of current deletions
	IndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`
	// IndexingDeleteTime time spent in deletions
	IndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`
	// IndexingDeleteTotal number of delete ops
	IndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`
	// IndexingIndexCurrent number of current indexing ops
	IndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`
	// IndexingIndexFailed number of failed indexing ops
	IndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`
	// IndexingIndexTime time spent in indexing
	IndexingIndexTime *string `json:"indexing.index_time,omitempty"`
	// IndexingIndexTotal number of indexing ops
	IndexingIndexTotal *string `json:"indexing.index_total,omitempty"`
	// MemoryTotal total used memory
	MemoryTotal *string `json:"memory.total,omitempty"`
	// MergesCurrent number of current merges
	MergesCurrent *string `json:"merges.current,omitempty"`
	// MergesCurrentDocs number of current merging docs
	MergesCurrentDocs *string `json:"merges.current_docs,omitempty"`
	// MergesCurrentSize size of current merges
	MergesCurrentSize *string `json:"merges.current_size,omitempty"`
	// MergesTotal number of completed merge ops
	MergesTotal *string `json:"merges.total,omitempty"`
	// MergesTotalDocs docs merged
	MergesTotalDocs *string `json:"merges.total_docs,omitempty"`
	// MergesTotalSize size merged
	MergesTotalSize *string `json:"merges.total_size,omitempty"`
	// MergesTotalTime time spent in merges
	MergesTotalTime *string `json:"merges.total_time,omitempty"`
	// Pri number of primary shards
	Pri *string `json:"pri,omitempty"`
	// PriBulkAvgSizeInBytes average size in bytes of shard bulk
	PriBulkAvgSizeInBytes *string `json:"pri.bulk.avg_size_in_bytes,omitempty"`
	// PriBulkAvgTime average time spend in shard bulk
	PriBulkAvgTime *string `json:"pri.bulk.avg_time,omitempty"`
	// PriBulkTotalOperations number of bulk shard ops
	PriBulkTotalOperations *string `json:"pri.bulk.total_operations,omitempty"`
	// PriBulkTotalSizeInBytes total size in bytes of shard bulk
	PriBulkTotalSizeInBytes *string `json:"pri.bulk.total_size_in_bytes,omitempty"`
	// PriBulkTotalTime time spend in shard bulk
	PriBulkTotalTime *string `json:"pri.bulk.total_time,omitempty"`
	// PriCompletionSize size of completion
	PriCompletionSize *string `json:"pri.completion.size,omitempty"`
	// PriFielddataEvictions fielddata evictions
	PriFielddataEvictions *string `json:"pri.fielddata.evictions,omitempty"`
	// PriFielddataMemorySize used fielddata cache
	PriFielddataMemorySize *string `json:"pri.fielddata.memory_size,omitempty"`
	// PriFlushTotal number of flushes
	PriFlushTotal *string `json:"pri.flush.total,omitempty"`
	// PriFlushTotalTime time spent in flush
	PriFlushTotalTime *string `json:"pri.flush.total_time,omitempty"`
	// PriGetCurrent number of current get ops
	PriGetCurrent *string `json:"pri.get.current,omitempty"`
	// PriGetExistsTime time spent in successful gets
	PriGetExistsTime *string `json:"pri.get.exists_time,omitempty"`
	// PriGetExistsTotal number of successful gets
	PriGetExistsTotal *string `json:"pri.get.exists_total,omitempty"`
	// PriGetMissingTime time spent in failed gets
	PriGetMissingTime *string `json:"pri.get.missing_time,omitempty"`
	// PriGetMissingTotal number of failed gets
	PriGetMissingTotal *string `json:"pri.get.missing_total,omitempty"`
	// PriGetTime time spent in get
	PriGetTime *string `json:"pri.get.time,omitempty"`
	// PriGetTotal number of get ops
	PriGetTotal *string `json:"pri.get.total,omitempty"`
	// PriIndexingDeleteCurrent number of current deletions
	PriIndexingDeleteCurrent *string `json:"pri.indexing.delete_current,omitempty"`
	// PriIndexingDeleteTime time spent in deletions
	PriIndexingDeleteTime *string `json:"pri.indexing.delete_time,omitempty"`
	// PriIndexingDeleteTotal number of delete ops
	PriIndexingDeleteTotal *string `json:"pri.indexing.delete_total,omitempty"`
	// PriIndexingIndexCurrent number of current indexing ops
	PriIndexingIndexCurrent *string `json:"pri.indexing.index_current,omitempty"`
	// PriIndexingIndexFailed number of failed indexing ops
	PriIndexingIndexFailed *string `json:"pri.indexing.index_failed,omitempty"`
	// PriIndexingIndexTime time spent in indexing
	PriIndexingIndexTime *string `json:"pri.indexing.index_time,omitempty"`
	// PriIndexingIndexTotal number of indexing ops
	PriIndexingIndexTotal *string `json:"pri.indexing.index_total,omitempty"`
	// PriMemoryTotal total user memory
	PriMemoryTotal *string `json:"pri.memory.total,omitempty"`
	// PriMergesCurrent number of current merges
	PriMergesCurrent *string `json:"pri.merges.current,omitempty"`
	// PriMergesCurrentDocs number of current merging docs
	PriMergesCurrentDocs *string `json:"pri.merges.current_docs,omitempty"`
	// PriMergesCurrentSize size of current merges
	PriMergesCurrentSize *string `json:"pri.merges.current_size,omitempty"`
	// PriMergesTotal number of completed merge ops
	PriMergesTotal *string `json:"pri.merges.total,omitempty"`
	// PriMergesTotalDocs docs merged
	PriMergesTotalDocs *string `json:"pri.merges.total_docs,omitempty"`
	// PriMergesTotalSize size merged
	PriMergesTotalSize *string `json:"pri.merges.total_size,omitempty"`
	// PriMergesTotalTime time spent in merges
	PriMergesTotalTime *string `json:"pri.merges.total_time,omitempty"`
	// PriQueryCacheEvictions query cache evictions
	PriQueryCacheEvictions *string `json:"pri.query_cache.evictions,omitempty"`
	// PriQueryCacheMemorySize used query cache
	PriQueryCacheMemorySize *string `json:"pri.query_cache.memory_size,omitempty"`
	// PriRefreshExternalTime time spent in external refreshes
	PriRefreshExternalTime *string `json:"pri.refresh.external_time,omitempty"`
	// PriRefreshExternalTotal total external refreshes
	PriRefreshExternalTotal *string `json:"pri.refresh.external_total,omitempty"`
	// PriRefreshListeners number of pending refresh listeners
	PriRefreshListeners *string `json:"pri.refresh.listeners,omitempty"`
	// PriRefreshTime time spent in refreshes
	PriRefreshTime *string `json:"pri.refresh.time,omitempty"`
	// PriRefreshTotal total refreshes
	PriRefreshTotal *string `json:"pri.refresh.total,omitempty"`
	// PriRequestCacheEvictions request cache evictions
	PriRequestCacheEvictions *string `json:"pri.request_cache.evictions,omitempty"`
	// PriRequestCacheHitCount request cache hit count
	PriRequestCacheHitCount *string `json:"pri.request_cache.hit_count,omitempty"`
	// PriRequestCacheMemorySize used request cache
	PriRequestCacheMemorySize *string `json:"pri.request_cache.memory_size,omitempty"`
	// PriRequestCacheMissCount request cache miss count
	PriRequestCacheMissCount *string `json:"pri.request_cache.miss_count,omitempty"`
	// PriSearchFetchCurrent current fetch phase ops
	PriSearchFetchCurrent *string `json:"pri.search.fetch_current,omitempty"`
	// PriSearchFetchTime time spent in fetch phase
	PriSearchFetchTime *string `json:"pri.search.fetch_time,omitempty"`
	// PriSearchFetchTotal total fetch ops
	PriSearchFetchTotal *string `json:"pri.search.fetch_total,omitempty"`
	// PriSearchOpenContexts open search contexts
	PriSearchOpenContexts *string `json:"pri.search.open_contexts,omitempty"`
	// PriSearchQueryCurrent current query phase ops
	PriSearchQueryCurrent *string `json:"pri.search.query_current,omitempty"`
	// PriSearchQueryTime time spent in query phase
	PriSearchQueryTime *string `json:"pri.search.query_time,omitempty"`
	// PriSearchQueryTotal total query phase ops
	PriSearchQueryTotal *string `json:"pri.search.query_total,omitempty"`
	// PriSearchScrollCurrent open scroll contexts
	PriSearchScrollCurrent *string `json:"pri.search.scroll_current,omitempty"`
	// PriSearchScrollTime time scroll contexts held open
	PriSearchScrollTime *string `json:"pri.search.scroll_time,omitempty"`
	// PriSearchScrollTotal completed scroll contexts
	PriSearchScrollTotal *string `json:"pri.search.scroll_total,omitempty"`
	// PriSegmentsCount number of segments
	PriSegmentsCount *string `json:"pri.segments.count,omitempty"`
	// PriSegmentsFixedBitsetMemory memory used by fixed bit sets for nested object field types and export type
	// filters for types referred in _parent fields
	PriSegmentsFixedBitsetMemory *string `json:"pri.segments.fixed_bitset_memory,omitempty"`
	// PriSegmentsIndexWriterMemory memory used by index writer
	PriSegmentsIndexWriterMemory *string `json:"pri.segments.index_writer_memory,omitempty"`
	// PriSegmentsMemory memory used by segments
	PriSegmentsMemory *string `json:"pri.segments.memory,omitempty"`
	// PriSegmentsVersionMapMemory memory used by version map
	PriSegmentsVersionMapMemory *string `json:"pri.segments.version_map_memory,omitempty"`
	// PriStoreSize store size of primaries
	PriStoreSize *string `json:"pri.store.size,omitempty"`
	// PriSuggestCurrent number of current suggest ops
	PriSuggestCurrent *string `json:"pri.suggest.current,omitempty"`
	// PriSuggestTime time spend in suggest
	PriSuggestTime *string `json:"pri.suggest.time,omitempty"`
	// PriSuggestTotal number of suggest ops
	PriSuggestTotal *string `json:"pri.suggest.total,omitempty"`
	// PriWarmerCurrent current warmer ops
	PriWarmerCurrent *string `json:"pri.warmer.current,omitempty"`
	// PriWarmerTotal total warmer ops
	PriWarmerTotal *string `json:"pri.warmer.total,omitempty"`
	// PriWarmerTotalTime time spent in warmers
	PriWarmerTotalTime *string `json:"pri.warmer.total_time,omitempty"`
	// QueryCacheEvictions query cache evictions
	QueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`
	// QueryCacheMemorySize used query cache
	QueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`
	// RefreshExternalTime time spent in external refreshes
	RefreshExternalTime *string `json:"refresh.external_time,omitempty"`
	// RefreshExternalTotal total external refreshes
	RefreshExternalTotal *string `json:"refresh.external_total,omitempty"`
	// RefreshListeners number of pending refresh listeners
	RefreshListeners *string `json:"refresh.listeners,omitempty"`
	// RefreshTime time spent in refreshes
	RefreshTime *string `json:"refresh.time,omitempty"`
	// RefreshTotal total refreshes
	RefreshTotal *string `json:"refresh.total,omitempty"`
	// Rep number of replica shards
	Rep *string `json:"rep,omitempty"`
	// RequestCacheEvictions request cache evictions
	RequestCacheEvictions *string `json:"request_cache.evictions,omitempty"`
	// RequestCacheHitCount request cache hit count
	RequestCacheHitCount *string `json:"request_cache.hit_count,omitempty"`
	// RequestCacheMemorySize used request cache
	RequestCacheMemorySize *string `json:"request_cache.memory_size,omitempty"`
	// RequestCacheMissCount request cache miss count
	RequestCacheMissCount *string `json:"request_cache.miss_count,omitempty"`
	// SearchFetchCurrent current fetch phase ops
	SearchFetchCurrent *string `json:"search.fetch_current,omitempty"`
	// SearchFetchTime time spent in fetch phase
	SearchFetchTime *string `json:"search.fetch_time,omitempty"`
	// SearchFetchTotal total fetch ops
	SearchFetchTotal *string `json:"search.fetch_total,omitempty"`
	// SearchOpenContexts open search contexts
	SearchOpenContexts *string `json:"search.open_contexts,omitempty"`
	// SearchQueryCurrent current query phase ops
	SearchQueryCurrent *string `json:"search.query_current,omitempty"`
	// SearchQueryTime time spent in query phase
	SearchQueryTime *string `json:"search.query_time,omitempty"`
	// SearchQueryTotal total query phase ops
	SearchQueryTotal *string `json:"search.query_total,omitempty"`
	// SearchScrollCurrent open scroll contexts
	SearchScrollCurrent *string `json:"search.scroll_current,omitempty"`
	// SearchScrollTime time scroll contexts held open
	SearchScrollTime *string `json:"search.scroll_time,omitempty"`
	// SearchScrollTotal completed scroll contexts
	SearchScrollTotal *string `json:"search.scroll_total,omitempty"`
	// SearchThrottled indicates if the index is search throttled
	SearchThrottled *string `json:"search.throttled,omitempty"`
	// SegmentsCount number of segments
	SegmentsCount *string `json:"segments.count,omitempty"`
	// SegmentsFixedBitsetMemory memory used by fixed bit sets for nested object field types and export type
	// filters for types referred in _parent fields
	SegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`
	// SegmentsIndexWriterMemory memory used by index writer
	SegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`
	// SegmentsMemory memory used by segments
	SegmentsMemory *string `json:"segments.memory,omitempty"`
	// SegmentsVersionMapMemory memory used by version map
	SegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`
	// Status open/close status
	Status *string `json:"status,omitempty"`
	// StoreSize store size of primaries & replicas
	StoreSize *string `json:"store.size,omitempty"`
	// SuggestCurrent number of current suggest ops
	SuggestCurrent *string `json:"suggest.current,omitempty"`
	// SuggestTime time spend in suggest
	SuggestTime *string `json:"suggest.time,omitempty"`
	// SuggestTotal number of suggest ops
	SuggestTotal *string `json:"suggest.total,omitempty"`
	// Uuid index uuid
	Uuid *string `json:"uuid,omitempty"`
	// WarmerCurrent current warmer ops
	WarmerCurrent *string `json:"warmer.current,omitempty"`
	// WarmerTotal total warmer ops
	WarmerTotal *string `json:"warmer.total,omitempty"`
	// WarmerTotalTime time spent in warmers
	WarmerTotalTime *string `json:"warmer.total_time,omitempty"`
}

IndicesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/indices/types.ts#L20-L808

func NewIndicesRecord ¶

func NewIndicesRecord() *IndicesRecord

NewIndicesRecord returns a IndicesRecord.

func (*IndicesRecord) UnmarshalJSON ¶

func (s *IndicesRecord) UnmarshalJSON(data []byte) error

type IndicesShardStats ¶

type IndicesShardStats struct {
	Bulk            *BulkStats                 `json:"bulk,omitempty"`
	Commit          *ShardCommit               `json:"commit,omitempty"`
	Completion      *CompletionStats           `json:"completion,omitempty"`
	Docs            *DocStats                  `json:"docs,omitempty"`
	Fielddata       *FielddataStats            `json:"fielddata,omitempty"`
	Flush           *FlushStats                `json:"flush,omitempty"`
	Get             *GetStats                  `json:"get,omitempty"`
	Indexing        *IndexingStats             `json:"indexing,omitempty"`
	Indices         *IndicesStats              `json:"indices,omitempty"`
	Mappings        *MappingStats              `json:"mappings,omitempty"`
	Merges          *MergesStats               `json:"merges,omitempty"`
	QueryCache      *ShardQueryCache           `json:"query_cache,omitempty"`
	Recovery        *RecoveryStats             `json:"recovery,omitempty"`
	Refresh         *RefreshStats              `json:"refresh,omitempty"`
	RequestCache    *RequestCacheStats         `json:"request_cache,omitempty"`
	RetentionLeases *ShardRetentionLeases      `json:"retention_leases,omitempty"`
	Routing         *ShardRouting              `json:"routing,omitempty"`
	Search          *SearchStats               `json:"search,omitempty"`
	Segments        *SegmentsStats             `json:"segments,omitempty"`
	SeqNo           *ShardSequenceNumber       `json:"seq_no,omitempty"`
	ShardPath       *ShardPath                 `json:"shard_path,omitempty"`
	ShardStats      *ShardsTotalStats          `json:"shard_stats,omitempty"`
	Shards          map[string]json.RawMessage `json:"shards,omitempty"`
	Store           *StoreStats                `json:"store,omitempty"`
	Translog        *TranslogStats             `json:"translog,omitempty"`
	Warmer          *WarmerStats               `json:"warmer,omitempty"`
}

IndicesShardStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L192-L223

func NewIndicesShardStats ¶

func NewIndicesShardStats() *IndicesShardStats

NewIndicesShardStats returns a IndicesShardStats.

type IndicesShardStores ¶

type IndicesShardStores struct {
	Shards map[string]ShardStoreWrapper `json:"shards"`
}

IndicesShardStores type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/shard_stores/types.ts#L25-L27

func NewIndicesShardStores ¶

func NewIndicesShardStores() *IndicesShardStores

NewIndicesShardStores returns a IndicesShardStores.

type IndicesShardsStats ¶

type IndicesShardsStats struct {
	AllFields FieldSummary            `json:"all_fields"`
	Fields    map[string]FieldSummary `json:"fields"`
}

IndicesShardsStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56

func NewIndicesShardsStats ¶

func NewIndicesShardsStats() *IndicesShardsStats

NewIndicesShardsStats returns a IndicesShardsStats.

type IndicesStats ¶

type IndicesStats struct {
	Health    *healthstatus.HealthStatus             `json:"health,omitempty"`
	Primaries *IndexStats                            `json:"primaries,omitempty"`
	Shards    map[string][]IndicesShardStats         `json:"shards,omitempty"`
	Status    *indexmetadatastate.IndexMetadataState `json:"status,omitempty"`
	Total     *IndexStats                            `json:"total,omitempty"`
	Uuid      *string                                `json:"uuid,omitempty"`
}

IndicesStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L95-L110

func NewIndicesStats ¶

func NewIndicesStats() *IndicesStats

NewIndicesStats returns a IndicesStats.

func (*IndicesStats) UnmarshalJSON ¶

func (s *IndicesStats) UnmarshalJSON(data []byte) error

type IndicesValidationExplanation ¶

type IndicesValidationExplanation struct {
	Error       *string `json:"error,omitempty"`
	Explanation *string `json:"explanation,omitempty"`
	Index       string  `json:"index"`
	Valid       bool    `json:"valid"`
}

IndicesValidationExplanation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37

func NewIndicesValidationExplanation ¶

func NewIndicesValidationExplanation() *IndicesValidationExplanation

NewIndicesValidationExplanation returns a IndicesValidationExplanation.

func (*IndicesValidationExplanation) UnmarshalJSON ¶

func (s *IndicesValidationExplanation) UnmarshalJSON(data []byte) error

type IndicesVariant ¶

type IndicesVariant interface {
	IndicesCaster() *Indices
}

type IndicesVersions ¶

type IndicesVersions struct {
	IndexCount        int      `json:"index_count"`
	PrimaryShardCount int      `json:"primary_shard_count"`
	TotalPrimaryBytes int64    `json:"total_primary_bytes"`
	TotalPrimarySize  ByteSize `json:"total_primary_size,omitempty"`
	Version           string   `json:"version"`
}

IndicesVersions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L359-L365

func NewIndicesVersions ¶

func NewIndicesVersions() *IndicesVersions

NewIndicesVersions returns a IndicesVersions.

func (*IndicesVersions) UnmarshalJSON ¶

func (s *IndicesVersions) UnmarshalJSON(data []byte) error

type IndonesianAnalyzer ¶

type IndonesianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

IndonesianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L213-L218

func NewIndonesianAnalyzer ¶

func NewIndonesianAnalyzer() *IndonesianAnalyzer

NewIndonesianAnalyzer returns a IndonesianAnalyzer.

func (*IndonesianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *IndonesianAnalyzer) AnalyzerCaster() *Analyzer

func (*IndonesianAnalyzer) IndonesianAnalyzerCaster ¶

func (s *IndonesianAnalyzer) IndonesianAnalyzerCaster() *IndonesianAnalyzer

func (IndonesianAnalyzer) MarshalJSON ¶

func (s IndonesianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IndonesianAnalyzer) UnmarshalJSON ¶

func (s *IndonesianAnalyzer) UnmarshalJSON(data []byte) error

type IndonesianAnalyzerVariant ¶

type IndonesianAnalyzerVariant interface {
	IndonesianAnalyzerCaster() *IndonesianAnalyzer
}

type InferenceAggregate ¶

type InferenceAggregate struct {
	Data              map[string]json.RawMessage   `json:"-"`
	FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"`
	Meta              Metadata                     `json:"meta,omitempty"`
	TopClasses        []InferenceTopClassEntry     `json:"top_classes,omitempty"`
	Value             FieldValue                   `json:"value,omitempty"`
	Warning           *string                      `json:"warning,omitempty"`
}

InferenceAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L757-L772

func NewInferenceAggregate ¶

func NewInferenceAggregate() *InferenceAggregate

NewInferenceAggregate returns a InferenceAggregate.

func (InferenceAggregate) MarshalJSON ¶

func (s InferenceAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*InferenceAggregate) UnmarshalJSON ¶

func (s *InferenceAggregate) UnmarshalJSON(data []byte) error

type InferenceAggregation ¶

type InferenceAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// InferenceConfig Contains the inference type and its options.
	InferenceConfig *InferenceConfigContainer `json:"inference_config,omitempty"`
	// ModelId The ID or alias for the trained model.
	ModelId string `json:"model_id"`
}

InferenceAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L225-L234

func NewInferenceAggregation ¶

func NewInferenceAggregation() *InferenceAggregation

NewInferenceAggregation returns a InferenceAggregation.

func (*InferenceAggregation) InferenceAggregationCaster ¶

func (s *InferenceAggregation) InferenceAggregationCaster() *InferenceAggregation

func (*InferenceAggregation) UnmarshalJSON ¶

func (s *InferenceAggregation) UnmarshalJSON(data []byte) error

type InferenceAggregationVariant ¶

type InferenceAggregationVariant interface {
	InferenceAggregationCaster() *InferenceAggregation
}

type InferenceChunkingSettings ¶

type InferenceChunkingSettings struct {
	// MaxChunkSize The maximum size of a chunk in words.
	// This value cannot be higher than `300` or lower than `20` (for `sentence`
	// strategy) or `10` (for `word` strategy).
	MaxChunkSize *int `json:"max_chunk_size,omitempty"`
	// Overlap The number of overlapping words for chunks.
	// It is applicable only to a `word` chunking strategy.
	// This value cannot be higher than half the `max_chunk_size` value.
	Overlap *int `json:"overlap,omitempty"`
	// SentenceOverlap The number of overlapping sentences for chunks.
	// It is applicable only for a `sentence` chunking strategy.
	// It can be either `1` or `0`.
	SentenceOverlap *int `json:"sentence_overlap,omitempty"`
	// Strategy The chunking strategy: `sentence` or `word`.
	Strategy *string `json:"strategy,omitempty"`
}

InferenceChunkingSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Services.ts#L288-L317

func NewInferenceChunkingSettings ¶

func NewInferenceChunkingSettings() *InferenceChunkingSettings

NewInferenceChunkingSettings returns a InferenceChunkingSettings.

func (*InferenceChunkingSettings) InferenceChunkingSettingsCaster ¶

func (s *InferenceChunkingSettings) InferenceChunkingSettingsCaster() *InferenceChunkingSettings

func (*InferenceChunkingSettings) UnmarshalJSON ¶

func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error

type InferenceChunkingSettingsVariant ¶

type InferenceChunkingSettingsVariant interface {
	InferenceChunkingSettingsCaster() *InferenceChunkingSettings
}

type InferenceClassImportance ¶

type InferenceClassImportance struct {
	ClassName  string  `json:"class_name"`
	Importance Float64 `json:"importance"`
}

InferenceClassImportance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L786-L789

func NewInferenceClassImportance ¶

func NewInferenceClassImportance() *InferenceClassImportance

NewInferenceClassImportance returns a InferenceClassImportance.

func (*InferenceClassImportance) UnmarshalJSON ¶

func (s *InferenceClassImportance) UnmarshalJSON(data []byte) error

type InferenceConfig ¶

type InferenceConfig struct {
	AdditionalInferenceConfigProperty map[string]json.RawMessage `json:"-"`
	// Classification Classification configuration for inference.
	Classification *InferenceConfigClassification `json:"classification,omitempty"`
	// Regression Regression configuration for inference.
	Regression *InferenceConfigRegression `json:"regression,omitempty"`
}

InferenceConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1067-L1079

func NewInferenceConfig ¶

func NewInferenceConfig() *InferenceConfig

NewInferenceConfig returns a InferenceConfig.

func (*InferenceConfig) InferenceConfigCaster ¶

func (s *InferenceConfig) InferenceConfigCaster() *InferenceConfig

func (InferenceConfig) MarshalJSON ¶

func (s InferenceConfig) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type InferenceConfigClassification ¶

type InferenceConfigClassification struct {
	// NumTopClasses Specifies the number of top class predictions to return.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// PredictionFieldType Specifies the type of the predicted field to write.
	// Valid values are: `string`, `number`, `boolean`.
	PredictionFieldType *string `json:"prediction_field_type,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction.
	ResultsField *string `json:"results_field,omitempty"`
	// TopClassesResultsField Specifies the field to which the top classes are written.
	TopClassesResultsField *string `json:"top_classes_results_field,omitempty"`
}

InferenceConfigClassification type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1094-L1120

func NewInferenceConfigClassification ¶

func NewInferenceConfigClassification() *InferenceConfigClassification

NewInferenceConfigClassification returns a InferenceConfigClassification.

func (*InferenceConfigClassification) InferenceConfigClassificationCaster ¶

func (s *InferenceConfigClassification) InferenceConfigClassificationCaster() *InferenceConfigClassification

func (*InferenceConfigClassification) UnmarshalJSON ¶

func (s *InferenceConfigClassification) UnmarshalJSON(data []byte) error

type InferenceConfigClassificationVariant ¶

type InferenceConfigClassificationVariant interface {
	InferenceConfigClassificationCaster() *InferenceConfigClassification
}

type InferenceConfigContainer ¶

type InferenceConfigContainer struct {
	AdditionalInferenceConfigContainerProperty map[string]json.RawMessage `json:"-"`
	// Classification Classification configuration for inference.
	Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
	// Regression Regression configuration for inference.
	Regression *RegressionInferenceOptions `json:"regression,omitempty"`
}

InferenceConfigContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L236-L242

func NewInferenceConfigContainer ¶

func NewInferenceConfigContainer() *InferenceConfigContainer

NewInferenceConfigContainer returns a InferenceConfigContainer.

func (*InferenceConfigContainer) InferenceConfigContainerCaster ¶

func (s *InferenceConfigContainer) InferenceConfigContainerCaster() *InferenceConfigContainer

func (InferenceConfigContainer) MarshalJSON ¶

func (s InferenceConfigContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type InferenceConfigContainerVariant ¶

type InferenceConfigContainerVariant interface {
	InferenceConfigContainerCaster() *InferenceConfigContainer
}

type InferenceConfigCreateContainer ¶

type InferenceConfigCreateContainer struct {
	AdditionalInferenceConfigCreateContainerProperty map[string]json.RawMessage `json:"-"`
	// Classification Classification configuration for inference.
	Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
	// FillMask Fill mask configuration for inference.
	FillMask       *FillMaskInferenceOptions `json:"fill_mask,omitempty"`
	LearningToRank *LearningToRankConfig     `json:"learning_to_rank,omitempty"`
	// Ner Named entity recognition configuration for inference.
	Ner *NerInferenceOptions `json:"ner,omitempty"`
	// PassThrough Pass through configuration for inference.
	PassThrough *PassThroughInferenceOptions `json:"pass_through,omitempty"`
	// QuestionAnswering Question answering configuration for inference.
	QuestionAnswering *QuestionAnsweringInferenceOptions `json:"question_answering,omitempty"`
	// Regression Regression configuration for inference.
	Regression *RegressionInferenceOptions `json:"regression,omitempty"`
	// TextClassification Text classification configuration for inference.
	TextClassification *TextClassificationInferenceOptions `json:"text_classification,omitempty"`
	// TextEmbedding Text embedding configuration for inference.
	TextEmbedding *TextEmbeddingInferenceOptions `json:"text_embedding,omitempty"`
	// TextExpansion Text expansion configuration for inference.
	TextExpansion *TextExpansionInferenceOptions `json:"text_expansion,omitempty"`
	// ZeroShotClassification Zeroshot classification configuration for inference.
	ZeroShotClassification *ZeroShotClassificationInferenceOptions `json:"zero_shot_classification,omitempty"`
}

InferenceConfigCreateContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L26-L85

func NewInferenceConfigCreateContainer ¶

func NewInferenceConfigCreateContainer() *InferenceConfigCreateContainer

NewInferenceConfigCreateContainer returns a InferenceConfigCreateContainer.

func (*InferenceConfigCreateContainer) InferenceConfigCreateContainerCaster ¶

func (s *InferenceConfigCreateContainer) InferenceConfigCreateContainerCaster() *InferenceConfigCreateContainer

func (InferenceConfigCreateContainer) MarshalJSON ¶

func (s InferenceConfigCreateContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type InferenceConfigCreateContainerVariant ¶

type InferenceConfigCreateContainerVariant interface {
	InferenceConfigCreateContainerCaster() *InferenceConfigCreateContainer
}

type InferenceConfigRegression ¶

type InferenceConfigRegression struct {
	// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction.
	ResultsField *string `json:"results_field,omitempty"`
}

InferenceConfigRegression type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1081-L1092

func NewInferenceConfigRegression ¶

func NewInferenceConfigRegression() *InferenceConfigRegression

NewInferenceConfigRegression returns a InferenceConfigRegression.

func (*InferenceConfigRegression) InferenceConfigRegressionCaster ¶

func (s *InferenceConfigRegression) InferenceConfigRegressionCaster() *InferenceConfigRegression

func (*InferenceConfigRegression) UnmarshalJSON ¶

func (s *InferenceConfigRegression) UnmarshalJSON(data []byte) error

type InferenceConfigRegressionVariant ¶

type InferenceConfigRegressionVariant interface {
	InferenceConfigRegressionCaster() *InferenceConfigRegression
}

type InferenceConfigUpdateContainer ¶

type InferenceConfigUpdateContainer struct {
	AdditionalInferenceConfigUpdateContainerProperty map[string]json.RawMessage `json:"-"`
	// Classification Classification configuration for inference.
	Classification *ClassificationInferenceOptions `json:"classification,omitempty"`
	// FillMask Fill mask configuration for inference.
	FillMask *FillMaskInferenceUpdateOptions `json:"fill_mask,omitempty"`
	// Ner Named entity recognition configuration for inference.
	Ner *NerInferenceUpdateOptions `json:"ner,omitempty"`
	// PassThrough Pass through configuration for inference.
	PassThrough *PassThroughInferenceUpdateOptions `json:"pass_through,omitempty"`
	// QuestionAnswering Question answering configuration for inference
	QuestionAnswering *QuestionAnsweringInferenceUpdateOptions `json:"question_answering,omitempty"`
	// Regression Regression configuration for inference.
	Regression *RegressionInferenceOptions `json:"regression,omitempty"`
	// TextClassification Text classification configuration for inference.
	TextClassification *TextClassificationInferenceUpdateOptions `json:"text_classification,omitempty"`
	// TextEmbedding Text embedding configuration for inference.
	TextEmbedding *TextEmbeddingInferenceUpdateOptions `json:"text_embedding,omitempty"`
	// TextExpansion Text expansion configuration for inference.
	TextExpansion *TextExpansionInferenceUpdateOptions `json:"text_expansion,omitempty"`
	// ZeroShotClassification Zeroshot classification configuration for inference.
	ZeroShotClassification *ZeroShotClassificationInferenceUpdateOptions `json:"zero_shot_classification,omitempty"`
}

InferenceConfigUpdateContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L315-L337

func NewInferenceConfigUpdateContainer ¶

func NewInferenceConfigUpdateContainer() *InferenceConfigUpdateContainer

NewInferenceConfigUpdateContainer returns a InferenceConfigUpdateContainer.

func (*InferenceConfigUpdateContainer) InferenceConfigUpdateContainerCaster ¶

func (s *InferenceConfigUpdateContainer) InferenceConfigUpdateContainerCaster() *InferenceConfigUpdateContainer

func (InferenceConfigUpdateContainer) MarshalJSON ¶

func (s InferenceConfigUpdateContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type InferenceConfigUpdateContainerVariant ¶

type InferenceConfigUpdateContainerVariant interface {
	InferenceConfigUpdateContainerCaster() *InferenceConfigUpdateContainer
}

type InferenceConfigVariant ¶

type InferenceConfigVariant interface {
	InferenceConfigCaster() *InferenceConfig
}

type InferenceEndpoint ¶

type InferenceEndpoint struct {
	// ChunkingSettings Chunking configuration object
	ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"`
	// Service The service type
	Service string `json:"service"`
	// ServiceSettings Settings specific to the service
	ServiceSettings json.RawMessage `json:"service_settings"`
	// TaskSettings Task settings specific to the service and task type
	TaskSettings json.RawMessage `json:"task_settings,omitempty"`
}

InferenceEndpoint type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Services.ts#L45-L65

func NewInferenceEndpoint ¶

func NewInferenceEndpoint() *InferenceEndpoint

NewInferenceEndpoint returns a InferenceEndpoint.

func (*InferenceEndpoint) InferenceEndpointCaster ¶

func (s *InferenceEndpoint) InferenceEndpointCaster() *InferenceEndpoint

func (*InferenceEndpoint) UnmarshalJSON ¶

func (s *InferenceEndpoint) UnmarshalJSON(data []byte) error

type InferenceEndpointInfo ¶

type InferenceEndpointInfo struct {
	// ChunkingSettings Chunking configuration object
	ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"`
	// InferenceId The inference Id
	InferenceId string `json:"inference_id"`
	// Service The service type
	Service string `json:"service"`
	// ServiceSettings Settings specific to the service
	ServiceSettings json.RawMessage `json:"service_settings"`
	// TaskSettings Task settings specific to the service and task type
	TaskSettings json.RawMessage `json:"task_settings,omitempty"`
	// TaskType The task type
	TaskType tasktype.TaskType `json:"task_type"`
}

InferenceEndpointInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Services.ts#L67-L79

func NewInferenceEndpointInfo ¶

func NewInferenceEndpointInfo() *InferenceEndpointInfo

NewInferenceEndpointInfo returns a InferenceEndpointInfo.

func (*InferenceEndpointInfo) UnmarshalJSON ¶

func (s *InferenceEndpointInfo) UnmarshalJSON(data []byte) error

type InferenceEndpointVariant ¶

type InferenceEndpointVariant interface {
	InferenceEndpointCaster() *InferenceEndpoint
}

type InferenceFeatureImportance ¶

type InferenceFeatureImportance struct {
	Classes     []InferenceClassImportance `json:"classes,omitempty"`
	FeatureName string                     `json:"feature_name"`
	Importance  *Float64                   `json:"importance,omitempty"`
}

InferenceFeatureImportance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L780-L784

func NewInferenceFeatureImportance ¶

func NewInferenceFeatureImportance() *InferenceFeatureImportance

NewInferenceFeatureImportance returns a InferenceFeatureImportance.

func (*InferenceFeatureImportance) UnmarshalJSON ¶

func (s *InferenceFeatureImportance) UnmarshalJSON(data []byte) error

type InferenceProcessor ¶

type InferenceProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// FieldMap Maps the document field names to the known field names of the model.
	// This mapping takes precedence over any default mappings provided in the model
	// configuration.
	FieldMap map[string]json.RawMessage `json:"field_map,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If true and any of the input fields defined in input_ouput are missing
	// then those missing fields are quietly ignored, otherwise a missing field
	// causes a failure.
	// Only applies when using input_output configurations to explicitly list the
	// input fields.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// InferenceConfig Contains the inference type and its options.
	InferenceConfig *InferenceConfig `json:"inference_config,omitempty"`
	// InputOutput Input fields for inference and output (destination) fields for the inference
	// results.
	// This option is incompatible with the target_field and field_map options.
	InputOutput []InputConfig `json:"input_output,omitempty"`
	// ModelId The ID or alias for the trained model, or the ID of the deployment.
	ModelId string `json:"model_id"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Field added to incoming documents to contain results objects.
	TargetField *string `json:"target_field,omitempty"`
}

InferenceProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1028-L1060

func NewInferenceProcessor ¶

func NewInferenceProcessor() *InferenceProcessor

NewInferenceProcessor returns a InferenceProcessor.

func (*InferenceProcessor) InferenceProcessorCaster ¶

func (s *InferenceProcessor) InferenceProcessorCaster() *InferenceProcessor

func (*InferenceProcessor) UnmarshalJSON ¶

func (s *InferenceProcessor) UnmarshalJSON(data []byte) error

type InferenceProcessorVariant ¶

type InferenceProcessorVariant interface {
	InferenceProcessorCaster() *InferenceProcessor
}

type InferenceResponseResult ¶

type InferenceResponseResult struct {
	// Entities If the model is trained for named entity recognition (NER) tasks, the
	// response contains the recognized entities.
	Entities []TrainedModelEntities `json:"entities,omitempty"`
	// FeatureImportance The feature importance for the inference results. Relevant only for
	// classification or regression models
	FeatureImportance []TrainedModelInferenceFeatureImportance `json:"feature_importance,omitempty"`
	// IsTruncated Indicates whether the input text was truncated to meet the model's maximum
	// sequence length limit. This property
	// is present only when it is true.
	IsTruncated *bool `json:"is_truncated,omitempty"`
	// PredictedValue If the model is trained for a text classification or zero shot classification
	// task, the response is the
	// predicted class.
	// For named entity recognition (NER) tasks, it contains the annotated text
	// output.
	// For fill mask tasks, it contains the top prediction for replacing the mask
	// token.
	// For text embedding tasks, it contains the raw numerical text embedding
	// values.
	// For regression models, its a numerical value
	// For classification models, it may be an integer, double, boolean or string
	// depending on prediction type
	PredictedValue [][]ScalarValue `json:"predicted_value,omitempty"`
	// PredictedValueSequence For fill mask tasks, the response contains the input text sequence with the
	// mask token replaced by the predicted
	// value.
	// Additionally
	PredictedValueSequence *string `json:"predicted_value_sequence,omitempty"`
	// PredictionProbability Specifies a probability for the predicted value.
	PredictionProbability *Float64 `json:"prediction_probability,omitempty"`
	// PredictionScore Specifies a confidence score for the predicted value.
	PredictionScore *Float64 `json:"prediction_score,omitempty"`
	// TopClasses For fill mask, text classification, and zero shot classification tasks, the
	// response contains a list of top
	// class entries.
	TopClasses []TopClassEntry `json:"top_classes,omitempty"`
	// Warning If the request failed, the response contains the reason for the failure.
	Warning *string `json:"warning,omitempty"`
}

InferenceResponseResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L478-L526

func NewInferenceResponseResult ¶

func NewInferenceResponseResult() *InferenceResponseResult

NewInferenceResponseResult returns a InferenceResponseResult.

func (*InferenceResponseResult) UnmarshalJSON ¶

func (s *InferenceResponseResult) UnmarshalJSON(data []byte) error

type InferenceTopClassEntry ¶

type InferenceTopClassEntry struct {
	ClassName        FieldValue `json:"class_name"`
	ClassProbability Float64    `json:"class_probability"`
	ClassScore       Float64    `json:"class_score"`
}

InferenceTopClassEntry type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L774-L778

func NewInferenceTopClassEntry ¶

func NewInferenceTopClassEntry() *InferenceTopClassEntry

NewInferenceTopClassEntry returns a InferenceTopClassEntry.

func (*InferenceTopClassEntry) UnmarshalJSON ¶

func (s *InferenceTopClassEntry) UnmarshalJSON(data []byte) error

type Influence ¶

type Influence struct {
	InfluencerFieldName   string   `json:"influencer_field_name"`
	InfluencerFieldValues []string `json:"influencer_field_values"`
}

Influence type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Anomaly.ts#L141-L144

func NewInfluence ¶

func NewInfluence() *Influence

NewInfluence returns a Influence.

func (*Influence) UnmarshalJSON ¶

func (s *Influence) UnmarshalJSON(data []byte) error

type Influencer ¶

type Influencer struct {
	// BucketSpan The length of the bucket in seconds. This value matches the bucket span that
	// is specified in the job.
	BucketSpan int64 `json:"bucket_span"`
	// Foo Additional influencer properties are added, depending on the fields being
	// analyzed. For example, if it’s
	// analyzing `user_name` as an influencer, a field `user_name` is added to the
	// result document. This
	// information enables you to filter the anomaly results more easily.
	Foo *string `json:"foo,omitempty"`
	// InfluencerFieldName The field name of the influencer.
	InfluencerFieldName string `json:"influencer_field_name"`
	// InfluencerFieldValue The entity that influenced, contributed to, or was to blame for the anomaly.
	InfluencerFieldValue string `json:"influencer_field_value"`
	// InfluencerScore A normalized score between 0-100, which is based on the probability of the
	// influencer in this bucket aggregated
	// across detectors. Unlike `initial_influencer_score`, this value is updated by
	// a re-normalization process as new
	// data is analyzed.
	InfluencerScore Float64 `json:"influencer_score"`
	// InitialInfluencerScore A normalized score between 0-100, which is based on the probability of the
	// influencer aggregated across detectors.
	// This is the initial value that was calculated at the time the bucket was
	// processed.
	InitialInfluencerScore Float64 `json:"initial_influencer_score"`
	// IsInterim If true, this is an interim result. In other words, the results are
	// calculated based on partial input data.
	IsInterim bool `json:"is_interim"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// Probability The probability that the influencer has this behavior, in the range 0 to 1.
	// This value can be held to a high
	// precision of over 300 decimal places, so the `influencer_score` is provided
	// as a human-readable and friendly
	// interpretation of this value.
	Probability Float64 `json:"probability"`
	// ResultType Internal. This value is always set to `influencer`.
	ResultType string `json:"result_type"`
	// Timestamp The start time of the bucket for which these results were calculated.
	Timestamp int64 `json:"timestamp"`
}

Influencer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Influencer.ts#L24-L76

func NewInfluencer ¶

func NewInfluencer() *Influencer

NewInfluencer returns a Influencer.

func (*Influencer) UnmarshalJSON ¶

func (s *Influencer) UnmarshalJSON(data []byte) error

type InfoFeatureState ¶

type InfoFeatureState struct {
	FeatureName string   `json:"feature_name"`
	Indices     []string `json:"indices"`
}

InfoFeatureState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25

func NewInfoFeatureState ¶

func NewInfoFeatureState() *InfoFeatureState

NewInfoFeatureState returns a InfoFeatureState.

func (*InfoFeatureState) UnmarshalJSON ¶

func (s *InfoFeatureState) UnmarshalJSON(data []byte) error

type Ingest ¶

type Ingest struct {
	Pipeline  *string  `json:"pipeline,omitempty"`
	Redact_   *Redact  `json:"_redact,omitempty"`
	Timestamp DateTime `json:"timestamp"`
}

Ingest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L28-L36

func NewIngest ¶

func NewIngest() *Ingest

NewIngest returns a Ingest.

func (*Ingest) UnmarshalJSON ¶

func (s *Ingest) UnmarshalJSON(data []byte) error

type IngestDocumentSimulation ¶

type IngestDocumentSimulation struct {
	// Error Any error resulting from simulatng ingest on this doc. This can be an error
	// generated by
	// executing a processor, or a mapping validation error when simulating indexing
	// the resulting
	// doc.
	Error *ErrorCause `json:"error,omitempty"`
	// ExecutedPipelines A list of the names of the pipelines executed on this document.
	ExecutedPipelines []string `json:"executed_pipelines"`
	// Id_ Identifier for the document.
	Id_ string `json:"_id"`
	// IgnoredFields A list of the fields that would be ignored at the indexing step. For example,
	// a field whose
	// value is larger than the allowed limit would make it through all of the
	// pipelines, but
	// would not be indexed into Elasticsearch.
	IgnoredFields []map[string]string `json:"ignored_fields,omitempty"`
	// Index_ Name of the index that the document would be indexed into if this were not a
	// simulation.
	Index_                   string            `json:"_index"`
	IngestDocumentSimulation map[string]string `json:"-"`
	// Source_ JSON body for the document.
	Source_  map[string]json.RawMessage `json:"_source"`
	Version_ StringifiedVersionNumber   `json:"_version"`
}

IngestDocumentSimulation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78

func NewIngestDocumentSimulation ¶

func NewIngestDocumentSimulation() *IngestDocumentSimulation

NewIngestDocumentSimulation returns a IngestDocumentSimulation.

func (IngestDocumentSimulation) MarshalJSON ¶

func (s IngestDocumentSimulation) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*IngestDocumentSimulation) UnmarshalJSON ¶

func (s *IngestDocumentSimulation) UnmarshalJSON(data []byte) error

type IngestPipeline ¶

type IngestPipeline struct {
	// Deprecated Marks this ingest pipeline as deprecated.
	// When a deprecated ingest pipeline is referenced as the default or final
	// pipeline when creating or updating a non-deprecated index template,
	// Elasticsearch will emit a deprecation warning.
	Deprecated *bool `json:"deprecated,omitempty"`
	// Description Description of the ingest pipeline.
	Description *string `json:"description,omitempty"`
	// Meta_ Arbitrary metadata about the ingest pipeline. This map is not automatically
	// generated by Elasticsearch.
	Meta_ Metadata `json:"_meta,omitempty"`
	// OnFailure Processors to run immediately after a processor failure.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Processors Processors used to perform transformations on documents before indexing.
	// Processors run sequentially in the order specified.
	Processors []ProcessorContainer `json:"processors,omitempty"`
	// Version Version number used by external systems to track ingest pipelines.
	Version *int64 `json:"version,omitempty"`
}

IngestPipeline type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Pipeline.ts#L23-L51

func NewIngestPipeline ¶

func NewIngestPipeline() *IngestPipeline

NewIngestPipeline returns a IngestPipeline.

func (*IngestPipeline) IngestPipelineCaster ¶

func (s *IngestPipeline) IngestPipelineCaster() *IngestPipeline

func (*IngestPipeline) UnmarshalJSON ¶

func (s *IngestPipeline) UnmarshalJSON(data []byte) error

type IngestPipelineParams ¶

type IngestPipelineParams struct {
	ExtractBinaryContent bool   `json:"extract_binary_content"`
	Name                 string `json:"name"`
	ReduceWhitespace     bool   `json:"reduce_whitespace"`
	RunMlInference       bool   `json:"run_ml_inference"`
}

IngestPipelineParams type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L148-L153

func NewIngestPipelineParams ¶

func NewIngestPipelineParams() *IngestPipelineParams

NewIngestPipelineParams returns a IngestPipelineParams.

func (*IngestPipelineParams) IngestPipelineParamsCaster ¶

func (s *IngestPipelineParams) IngestPipelineParamsCaster() *IngestPipelineParams

func (*IngestPipelineParams) UnmarshalJSON ¶

func (s *IngestPipelineParams) UnmarshalJSON(data []byte) error

type IngestPipelineParamsVariant ¶

type IngestPipelineParamsVariant interface {
	IngestPipelineParamsCaster() *IngestPipelineParams
}

type IngestPipelineVariant ¶

type IngestPipelineVariant interface {
	IngestPipelineCaster() *IngestPipeline
}

type IngestStats ¶

type IngestStats struct {
	// Count Total number of documents ingested during the lifetime of this node.
	Count int64 `json:"count"`
	// Current Total number of documents currently being ingested.
	Current int64 `json:"current"`
	// Failed Total number of failed ingest operations during the lifetime of this node.
	Failed int64 `json:"failed"`
	// IngestedAsFirstPipelineInBytes Total number of bytes of all documents ingested by the pipeline.
	// This field is only present on pipelines which are the first to process a
	// document.
	// Thus, it is not present on pipelines which only serve as a final pipeline
	// after a default pipeline, a pipeline run after a reroute processor, or
	// pipelines in pipeline processors.
	IngestedAsFirstPipelineInBytes int64 `json:"ingested_as_first_pipeline_in_bytes"`
	// Processors Total number of ingest processors.
	Processors []map[string]KeyedProcessor `json:"processors"`
	// ProducedAsFirstPipelineInBytes Total number of bytes of all documents produced by the pipeline.
	// This field is only present on pipelines which are the first to process a
	// document.
	// Thus, it is not present on pipelines which only serve as a final pipeline
	// after a default pipeline, a pipeline run after a reroute processor, or
	// pipelines in pipeline processors.
	// In situations where there are subsequent pipelines, the value represents the
	// size of the document after all pipelines have run.
	ProducedAsFirstPipelineInBytes int64 `json:"produced_as_first_pipeline_in_bytes"`
	// TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the
	// lifetime of this node.
	TimeInMillis int64 `json:"time_in_millis"`
}

IngestStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L358-L396

func NewIngestStats ¶

func NewIngestStats() *IngestStats

NewIngestStats returns a IngestStats.

func (*IngestStats) UnmarshalJSON ¶

func (s *IngestStats) UnmarshalJSON(data []byte) error

type IngestTotal ¶

type IngestTotal struct {
	// Count Total number of documents ingested during the lifetime of this node.
	Count int64 `json:"count"`
	// Current Total number of documents currently being ingested.
	Current int64 `json:"current"`
	// Failed Total number of failed ingest operations during the lifetime of this node.
	Failed int64 `json:"failed"`
	// TimeInMillis Total time, in milliseconds, spent preprocessing ingest documents during the
	// lifetime of this node.
	TimeInMillis int64 `json:"time_in_millis"`
}

IngestTotal type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L398-L415

func NewIngestTotal ¶

func NewIngestTotal() *IngestTotal

NewIngestTotal returns a IngestTotal.

func (*IngestTotal) UnmarshalJSON ¶

func (s *IngestTotal) UnmarshalJSON(data []byte) error

type InlineGet ¶

type InlineGet struct {
	Fields       map[string]json.RawMessage `json:"fields,omitempty"`
	Found        bool                       `json:"found"`
	Metadata     map[string]json.RawMessage `json:"-"`
	PrimaryTerm_ *int64                     `json:"_primary_term,omitempty"`
	Routing_     *string                    `json:"_routing,omitempty"`
	SeqNo_       *int64                     `json:"_seq_no,omitempty"`
	Source_      json.RawMessage            `json:"_source,omitempty"`
}

InlineGet type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L319-L332

func NewInlineGet ¶

func NewInlineGet() *InlineGet

NewInlineGet returns a InlineGet.

func (InlineGet) MarshalJSON ¶

func (s InlineGet) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*InlineGet) UnmarshalJSON ¶

func (s *InlineGet) UnmarshalJSON(data []byte) error

type InlineGetDictUserDefined ¶

type InlineGetDictUserDefined struct {
	Fields                   map[string]json.RawMessage `json:"fields,omitempty"`
	Found                    bool                       `json:"found"`
	InlineGetDictUserDefined map[string]json.RawMessage `json:"-"`
	PrimaryTerm_             *int64                     `json:"_primary_term,omitempty"`
	Routing_                 *string                    `json:"_routing,omitempty"`
	SeqNo_                   *int64                     `json:"_seq_no,omitempty"`
	Source_                  map[string]json.RawMessage `json:"_source,omitempty"`
}

InlineGetDictUserDefined type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L319-L332

func NewInlineGetDictUserDefined ¶

func NewInlineGetDictUserDefined() *InlineGetDictUserDefined

NewInlineGetDictUserDefined returns a InlineGetDictUserDefined.

func (InlineGetDictUserDefined) MarshalJSON ¶

func (s InlineGetDictUserDefined) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*InlineGetDictUserDefined) UnmarshalJSON ¶

func (s *InlineGetDictUserDefined) UnmarshalJSON(data []byte) error

type InnerHits ¶

type InnerHits struct {
	Collapse       *FieldCollapse   `json:"collapse,omitempty"`
	DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`
	Explain        *bool            `json:"explain,omitempty"`
	Fields         []string         `json:"fields,omitempty"`
	// From Inner hit starting document offset.
	From           *int       `json:"from,omitempty"`
	Highlight      *Highlight `json:"highlight,omitempty"`
	IgnoreUnmapped *bool      `json:"ignore_unmapped,omitempty"`
	// Name The name for the particular inner hit definition in the response.
	// Useful when a search request contains multiple inner hits.
	Name             *string                `json:"name,omitempty"`
	ScriptFields     map[string]ScriptField `json:"script_fields,omitempty"`
	SeqNoPrimaryTerm *bool                  `json:"seq_no_primary_term,omitempty"`
	// Size The maximum number of hits to return per `inner_hits`.
	Size *int `json:"size,omitempty"`
	// Sort How the inner hits should be sorted per `inner_hits`.
	// By default, inner hits are sorted by score.
	Sort         []SortCombinations `json:"sort,omitempty"`
	Source_      SourceConfig       `json:"_source,omitempty"`
	StoredFields []string           `json:"stored_fields,omitempty"`
	TrackScores  *bool              `json:"track_scores,omitempty"`
	Version      *bool              `json:"version,omitempty"`
}

InnerHits type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/hits.ts#L107-L141

func NewInnerHits ¶

func NewInnerHits() *InnerHits

NewInnerHits returns a InnerHits.

func (*InnerHits) InnerHitsCaster ¶

func (s *InnerHits) InnerHitsCaster() *InnerHits

func (*InnerHits) UnmarshalJSON ¶

func (s *InnerHits) UnmarshalJSON(data []byte) error

type InnerHitsResult ¶

type InnerHitsResult struct {
	Hits HitsMetadata `json:"hits"`
}

InnerHitsResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/hits.ts#L85-L87

func NewInnerHitsResult ¶

func NewInnerHitsResult() *InnerHitsResult

NewInnerHitsResult returns a InnerHitsResult.

type InnerHitsVariant ¶

type InnerHitsVariant interface {
	InnerHitsCaster() *InnerHits
}

type InnerRetriever ¶ added in v9.0.1

type InnerRetriever struct {
	Normalizer scorenormalizer.ScoreNormalizer `json:"normalizer"`
	Retriever  RetrieverContainer              `json:"retriever"`
	Weight     float32                         `json:"weight"`
}

InnerRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L85-L89

func NewInnerRetriever ¶ added in v9.0.1

func NewInnerRetriever() *InnerRetriever

NewInnerRetriever returns a InnerRetriever.

func (*InnerRetriever) InnerRetrieverCaster ¶ added in v9.0.1

func (s *InnerRetriever) InnerRetrieverCaster() *InnerRetriever

func (*InnerRetriever) UnmarshalJSON ¶ added in v9.0.1

func (s *InnerRetriever) UnmarshalJSON(data []byte) error

type InnerRetrieverVariant ¶ added in v9.0.1

type InnerRetrieverVariant interface {
	InnerRetrieverCaster() *InnerRetriever
}

type Input ¶

type Input struct {
	FieldNames []string `json:"field_names"`
}

Input type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L56-L58

func NewInput ¶

func NewInput() *Input

NewInput returns a Input.

func (*Input) InputCaster ¶

func (s *Input) InputCaster() *Input

func (*Input) UnmarshalJSON ¶

func (s *Input) UnmarshalJSON(data []byte) error

type InputConfig ¶

type InputConfig struct {
	InputField  string `json:"input_field"`
	OutputField string `json:"output_field"`
}

InputConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1062-L1065

func NewInputConfig ¶

func NewInputConfig() *InputConfig

NewInputConfig returns a InputConfig.

func (*InputConfig) InputConfigCaster ¶

func (s *InputConfig) InputConfigCaster() *InputConfig

func (*InputConfig) UnmarshalJSON ¶

func (s *InputConfig) UnmarshalJSON(data []byte) error

type InputConfigVariant ¶

type InputConfigVariant interface {
	InputConfigCaster() *InputConfig
}

type InputVariant ¶

type InputVariant interface {
	InputCaster() *Input
}

type IntegerNumberProperty ¶

type IntegerNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *int                                             `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

IntegerNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L172-L175

func NewIntegerNumberProperty ¶

func NewIntegerNumberProperty() *IntegerNumberProperty

NewIntegerNumberProperty returns a IntegerNumberProperty.

func (*IntegerNumberProperty) IntegerNumberPropertyCaster ¶

func (s *IntegerNumberProperty) IntegerNumberPropertyCaster() *IntegerNumberProperty

func (IntegerNumberProperty) MarshalJSON ¶

func (s IntegerNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IntegerNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *IntegerNumberProperty) PropertyCaster() *Property

func (*IntegerNumberProperty) UnmarshalJSON ¶

func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error

type IntegerNumberPropertyVariant ¶

type IntegerNumberPropertyVariant interface {
	IntegerNumberPropertyCaster() *IntegerNumberProperty
}

type IntegerRangeProperty ¶

type IntegerRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

IntegerRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L42-L44

func NewIntegerRangeProperty ¶

func NewIntegerRangeProperty() *IntegerRangeProperty

NewIntegerRangeProperty returns a IntegerRangeProperty.

func (*IntegerRangeProperty) IntegerRangePropertyCaster ¶

func (s *IntegerRangeProperty) IntegerRangePropertyCaster() *IntegerRangeProperty

func (IntegerRangeProperty) MarshalJSON ¶

func (s IntegerRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IntegerRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *IntegerRangeProperty) PropertyCaster() *Property

func (*IntegerRangeProperty) UnmarshalJSON ¶

func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error

type IntegerRangePropertyVariant ¶

type IntegerRangePropertyVariant interface {
	IntegerRangePropertyCaster() *IntegerRangeProperty
}

type Intervals ¶

type Intervals struct {
	AdditionalIntervalsProperty map[string]json.RawMessage `json:"-"`
	// AllOf Returns matches that span a combination of other rules.
	AllOf *IntervalsAllOf `json:"all_of,omitempty"`
	// AnyOf Returns intervals produced by any of its sub-rules.
	AnyOf *IntervalsAnyOf `json:"any_of,omitempty"`
	// Fuzzy Matches analyzed text.
	Fuzzy *IntervalsFuzzy `json:"fuzzy,omitempty"`
	// Match Matches analyzed text.
	Match *IntervalsMatch `json:"match,omitempty"`
	// Prefix Matches terms that start with a specified set of characters.
	Prefix *IntervalsPrefix `json:"prefix,omitempty"`
	Range  *IntervalsRange  `json:"range,omitempty"`
	Regexp *IntervalsRegexp `json:"regexp,omitempty"`
	// Wildcard Matches terms using a wildcard pattern.
	Wildcard *IntervalsWildcard `json:"wildcard,omitempty"`
}

Intervals type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L83-L112

func NewIntervals ¶

func NewIntervals() *Intervals

NewIntervals returns a Intervals.

func (*Intervals) IntervalsCaster ¶

func (s *Intervals) IntervalsCaster() *Intervals

func (Intervals) MarshalJSON ¶

func (s Intervals) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type IntervalsAllOf ¶

type IntervalsAllOf struct {
	// Filter Rule used to filter returned intervals.
	Filter *IntervalsFilter `json:"filter,omitempty"`
	// Intervals An array of rules to combine. All rules must produce a match in a document
	// for the overall source to match.
	Intervals []Intervals `json:"intervals"`
	// MaxGaps Maximum number of positions between the matching terms.
	// Intervals produced by the rules further apart than this are not considered
	// matches.
	MaxGaps *int `json:"max_gaps,omitempty"`
	// Ordered If `true`, intervals produced by the rules should appear in the order in
	// which they are specified.
	Ordered *bool `json:"ordered,omitempty"`
}

IntervalsAllOf type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L50-L70

func NewIntervalsAllOf ¶

func NewIntervalsAllOf() *IntervalsAllOf

NewIntervalsAllOf returns a IntervalsAllOf.

func (*IntervalsAllOf) IntervalsAllOfCaster ¶

func (s *IntervalsAllOf) IntervalsAllOfCaster() *IntervalsAllOf

func (*IntervalsAllOf) UnmarshalJSON ¶

func (s *IntervalsAllOf) UnmarshalJSON(data []byte) error

type IntervalsAllOfVariant ¶

type IntervalsAllOfVariant interface {
	IntervalsAllOfCaster() *IntervalsAllOf
}

type IntervalsAnyOf ¶

type IntervalsAnyOf struct {
	// Filter Rule used to filter returned intervals.
	Filter *IntervalsFilter `json:"filter,omitempty"`
	// Intervals An array of rules to match.
	Intervals []Intervals `json:"intervals"`
}

IntervalsAnyOf type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L72-L81

func NewIntervalsAnyOf ¶

func NewIntervalsAnyOf() *IntervalsAnyOf

NewIntervalsAnyOf returns a IntervalsAnyOf.

func (*IntervalsAnyOf) IntervalsAnyOfCaster ¶

func (s *IntervalsAnyOf) IntervalsAnyOfCaster() *IntervalsAnyOf

type IntervalsAnyOfVariant ¶

type IntervalsAnyOfVariant interface {
	IntervalsAnyOfCaster() *IntervalsAnyOf
}

type IntervalsFilter ¶

type IntervalsFilter struct {
	AdditionalIntervalsFilterProperty map[string]json.RawMessage `json:"-"`
	// After Query used to return intervals that follow an interval from the `filter`
	// rule.
	After *Intervals `json:"after,omitempty"`
	// Before Query used to return intervals that occur before an interval from the
	// `filter` rule.
	Before *Intervals `json:"before,omitempty"`
	// ContainedBy Query used to return intervals contained by an interval from the `filter`
	// rule.
	ContainedBy *Intervals `json:"contained_by,omitempty"`
	// Containing Query used to return intervals that contain an interval from the `filter`
	// rule.
	Containing *Intervals `json:"containing,omitempty"`
	// NotContainedBy Query used to return intervals that are **not** contained by an interval from
	// the `filter` rule.
	NotContainedBy *Intervals `json:"not_contained_by,omitempty"`
	// NotContaining Query used to return intervals that do **not** contain an interval from the
	// `filter` rule.
	NotContaining *Intervals `json:"not_containing,omitempty"`
	// NotOverlapping Query used to return intervals that do **not** overlap with an interval from
	// the `filter` rule.
	NotOverlapping *Intervals `json:"not_overlapping,omitempty"`
	// Overlapping Query used to return intervals that overlap with an interval from the
	// `filter` rule.
	Overlapping *Intervals `json:"overlapping,omitempty"`
	// Script Script used to return matching documents.
	// This script must return a boolean value: `true` or `false`.
	Script *Script `json:"script,omitempty"`
}

IntervalsFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L114-L154

func NewIntervalsFilter ¶

func NewIntervalsFilter() *IntervalsFilter

NewIntervalsFilter returns a IntervalsFilter.

func (*IntervalsFilter) IntervalsFilterCaster ¶

func (s *IntervalsFilter) IntervalsFilterCaster() *IntervalsFilter

func (IntervalsFilter) MarshalJSON ¶

func (s IntervalsFilter) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type IntervalsFilterVariant ¶

type IntervalsFilterVariant interface {
	IntervalsFilterCaster() *IntervalsFilter
}

type IntervalsFuzzy ¶

type IntervalsFuzzy struct {
	// Analyzer Analyzer used to normalize the term.
	Analyzer *string `json:"analyzer,omitempty"`
	// Fuzziness Maximum edit distance allowed for matching.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// PrefixLength Number of beginning characters left unchanged when creating expansions.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Term The term to match.
	Term string `json:"term"`
	// Transpositions Indicates whether edits include transpositions of two adjacent characters
	// (for example, `ab` to `ba`).
	Transpositions *bool `json:"transpositions,omitempty"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `term` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsFuzzy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L156-L186

func NewIntervalsFuzzy ¶

func NewIntervalsFuzzy() *IntervalsFuzzy

NewIntervalsFuzzy returns a IntervalsFuzzy.

func (*IntervalsFuzzy) IntervalsFuzzyCaster ¶

func (s *IntervalsFuzzy) IntervalsFuzzyCaster() *IntervalsFuzzy

func (*IntervalsFuzzy) UnmarshalJSON ¶

func (s *IntervalsFuzzy) UnmarshalJSON(data []byte) error

type IntervalsFuzzyVariant ¶

type IntervalsFuzzyVariant interface {
	IntervalsFuzzyCaster() *IntervalsFuzzy
}

type IntervalsMatch ¶

type IntervalsMatch struct {
	// Analyzer Analyzer used to analyze terms in the query.
	Analyzer *string `json:"analyzer,omitempty"`
	// Filter An optional interval filter.
	Filter *IntervalsFilter `json:"filter,omitempty"`
	// MaxGaps Maximum number of positions between the matching terms.
	// Terms further apart than this are not considered matches.
	MaxGaps *int `json:"max_gaps,omitempty"`
	// Ordered If `true`, matching terms must appear in their specified order.
	Ordered *bool `json:"ordered,omitempty"`
	// Query Text you wish to find in the provided field.
	Query string `json:"query"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `term` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsMatch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L188-L218

func NewIntervalsMatch ¶

func NewIntervalsMatch() *IntervalsMatch

NewIntervalsMatch returns a IntervalsMatch.

func (*IntervalsMatch) IntervalsMatchCaster ¶

func (s *IntervalsMatch) IntervalsMatchCaster() *IntervalsMatch

func (*IntervalsMatch) UnmarshalJSON ¶

func (s *IntervalsMatch) UnmarshalJSON(data []byte) error

type IntervalsMatchVariant ¶

type IntervalsMatchVariant interface {
	IntervalsMatchCaster() *IntervalsMatch
}

type IntervalsPrefix ¶

type IntervalsPrefix struct {
	// Analyzer Analyzer used to analyze the `prefix`.
	Analyzer *string `json:"analyzer,omitempty"`
	// Prefix Beginning characters of terms you wish to find in the top-level field.
	Prefix string `json:"prefix"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `prefix` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsPrefix type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L220-L235

func NewIntervalsPrefix ¶

func NewIntervalsPrefix() *IntervalsPrefix

NewIntervalsPrefix returns a IntervalsPrefix.

func (*IntervalsPrefix) IntervalsPrefixCaster ¶

func (s *IntervalsPrefix) IntervalsPrefixCaster() *IntervalsPrefix

func (*IntervalsPrefix) UnmarshalJSON ¶

func (s *IntervalsPrefix) UnmarshalJSON(data []byte) error

type IntervalsPrefixVariant ¶

type IntervalsPrefixVariant interface {
	IntervalsPrefixCaster() *IntervalsPrefix
}

type IntervalsQuery ¶

type IntervalsQuery struct {
	AdditionalIntervalsQueryProperty map[string]json.RawMessage `json:"-"`
	// AllOf Returns matches that span a combination of other rules.
	AllOf *IntervalsAllOf `json:"all_of,omitempty"`
	// AnyOf Returns intervals produced by any of its sub-rules.
	AnyOf *IntervalsAnyOf `json:"any_of,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Fuzzy Matches terms that are similar to the provided term, within an edit distance
	// defined by `fuzziness`.
	Fuzzy *IntervalsFuzzy `json:"fuzzy,omitempty"`
	// Match Matches analyzed text.
	Match *IntervalsMatch `json:"match,omitempty"`
	// Prefix Matches terms that start with a specified set of characters.
	Prefix     *IntervalsPrefix `json:"prefix,omitempty"`
	QueryName_ *string          `json:"_name,omitempty"`
	Range      *IntervalsRange  `json:"range,omitempty"`
	Regexp     *IntervalsRegexp `json:"regexp,omitempty"`
	// Wildcard Matches terms using a wildcard pattern.
	Wildcard *IntervalsWildcard `json:"wildcard,omitempty"`
}

IntervalsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L283-L317

func NewIntervalsQuery ¶

func NewIntervalsQuery() *IntervalsQuery

NewIntervalsQuery returns a IntervalsQuery.

func (*IntervalsQuery) IntervalsQueryCaster ¶

func (s *IntervalsQuery) IntervalsQueryCaster() *IntervalsQuery

func (IntervalsQuery) MarshalJSON ¶

func (s IntervalsQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*IntervalsQuery) UnmarshalJSON ¶

func (s *IntervalsQuery) UnmarshalJSON(data []byte) error

type IntervalsQueryVariant ¶

type IntervalsQueryVariant interface {
	IntervalsQueryCaster() *IntervalsQuery
}

type IntervalsRange ¶ added in v9.0.1

type IntervalsRange struct {
	// Analyzer Analyzer used to analyze the `prefix`.
	Analyzer *string `json:"analyzer,omitempty"`
	// Gt Lower term, either gte or gt must be provided.
	Gt *string `json:"gt,omitempty"`
	// Gte Lower term, either gte or gt must be provided.
	Gte *string `json:"gte,omitempty"`
	// Lt Upper term, either lte or lt must be provided.
	Lt *string `json:"lt,omitempty"`
	// Lte Upper term, either lte or lt must be provided.
	Lte *string `json:"lte,omitempty"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `prefix` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsRange type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L237-L264

func NewIntervalsRange ¶ added in v9.0.1

func NewIntervalsRange() *IntervalsRange

NewIntervalsRange returns a IntervalsRange.

func (*IntervalsRange) IntervalsRangeCaster ¶ added in v9.0.1

func (s *IntervalsRange) IntervalsRangeCaster() *IntervalsRange

func (*IntervalsRange) UnmarshalJSON ¶ added in v9.0.1

func (s *IntervalsRange) UnmarshalJSON(data []byte) error

type IntervalsRangeVariant ¶ added in v9.0.1

type IntervalsRangeVariant interface {
	IntervalsRangeCaster() *IntervalsRange
}

type IntervalsRegexp ¶ added in v9.0.1

type IntervalsRegexp struct {
	// Analyzer Analyzer used to analyze the `prefix`.
	Analyzer *string `json:"analyzer,omitempty"`
	// Pattern Regex pattern.
	Pattern string `json:"pattern"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `prefix` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsRegexp type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L266-L281

func NewIntervalsRegexp ¶ added in v9.0.1

func NewIntervalsRegexp() *IntervalsRegexp

NewIntervalsRegexp returns a IntervalsRegexp.

func (*IntervalsRegexp) IntervalsRegexpCaster ¶ added in v9.0.1

func (s *IntervalsRegexp) IntervalsRegexpCaster() *IntervalsRegexp

func (*IntervalsRegexp) UnmarshalJSON ¶ added in v9.0.1

func (s *IntervalsRegexp) UnmarshalJSON(data []byte) error

type IntervalsRegexpVariant ¶ added in v9.0.1

type IntervalsRegexpVariant interface {
	IntervalsRegexpCaster() *IntervalsRegexp
}

type IntervalsVariant ¶

type IntervalsVariant interface {
	IntervalsCaster() *Intervals
}

type IntervalsWildcard ¶

type IntervalsWildcard struct {
	// Analyzer Analyzer used to analyze the `pattern`.
	// Defaults to the top-level field's analyzer.
	Analyzer *string `json:"analyzer,omitempty"`
	// Pattern Wildcard pattern used to find matching terms.
	Pattern string `json:"pattern"`
	// UseField If specified, match intervals from this field rather than the top-level
	// field.
	// The `pattern` is normalized using the search analyzer from this field, unless
	// `analyzer` is specified separately.
	UseField *string `json:"use_field,omitempty"`
}

IntervalsWildcard type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L319-L334

func NewIntervalsWildcard ¶

func NewIntervalsWildcard() *IntervalsWildcard

NewIntervalsWildcard returns a IntervalsWildcard.

func (*IntervalsWildcard) IntervalsWildcardCaster ¶

func (s *IntervalsWildcard) IntervalsWildcardCaster() *IntervalsWildcard

func (*IntervalsWildcard) UnmarshalJSON ¶

func (s *IntervalsWildcard) UnmarshalJSON(data []byte) error

type IntervalsWildcardVariant ¶

type IntervalsWildcardVariant interface {
	IntervalsWildcardCaster() *IntervalsWildcard
}

type InvertedIndex ¶

type InvertedIndex struct {
	Offsets         uint `json:"offsets"`
	Payloads        uint `json:"payloads"`
	Positions       uint `json:"positions"`
	Postings        uint `json:"postings"`
	Proximity       uint `json:"proximity"`
	TermFrequencies uint `json:"term_frequencies"`
	Terms           uint `json:"terms"`
}

InvertedIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77

func NewInvertedIndex ¶

func NewInvertedIndex() *InvertedIndex

NewInvertedIndex returns a InvertedIndex.

type Invocation ¶

type Invocation struct {
	SnapshotName string   `json:"snapshot_name"`
	Time         DateTime `json:"time"`
}

Invocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L148-L151

func NewInvocation ¶

func NewInvocation() *Invocation

NewInvocation returns a Invocation.

func (*Invocation) UnmarshalJSON ¶

func (s *Invocation) UnmarshalJSON(data []byte) error

type Invocations ¶

type Invocations struct {
	Total int64 `json:"total"`
}

Invocations type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L41-L43

func NewInvocations ¶

func NewInvocations() *Invocations

NewInvocations returns a Invocations.

func (*Invocations) UnmarshalJSON ¶

func (s *Invocations) UnmarshalJSON(data []byte) error

type IoStatDevice ¶

type IoStatDevice struct {
	// DeviceName The Linux device name.
	DeviceName *string `json:"device_name,omitempty"`
	// Operations The total number of read and write operations for the device completed since
	// starting Elasticsearch.
	Operations *int64 `json:"operations,omitempty"`
	// ReadKilobytes The total number of kilobytes read for the device since starting
	// Elasticsearch.
	ReadKilobytes *int64 `json:"read_kilobytes,omitempty"`
	// ReadOperations The total number of read operations for the device completed since starting
	// Elasticsearch.
	ReadOperations *int64 `json:"read_operations,omitempty"`
	// WriteKilobytes The total number of kilobytes written for the device since starting
	// Elasticsearch.
	WriteKilobytes *int64 `json:"write_kilobytes,omitempty"`
	// WriteOperations The total number of write operations for the device completed since starting
	// Elasticsearch.
	WriteOperations *int64 `json:"write_operations,omitempty"`
}

IoStatDevice type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L803-L828

func NewIoStatDevice ¶

func NewIoStatDevice() *IoStatDevice

NewIoStatDevice returns a IoStatDevice.

func (*IoStatDevice) UnmarshalJSON ¶

func (s *IoStatDevice) UnmarshalJSON(data []byte) error

type IoStats ¶

type IoStats struct {
	// Devices Array of disk metrics for each device that is backing an Elasticsearch data
	// path.
	// These disk metrics are probed periodically and averages between the last
	// probe and the current probe are computed.
	Devices []IoStatDevice `json:"devices,omitempty"`
	// Total The sum of the disk metrics for all devices that back an Elasticsearch data
	// path.
	Total *IoStatDevice `json:"total,omitempty"`
}

IoStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L791-L801

func NewIoStats ¶

func NewIoStats() *IoStats

NewIoStats returns a IoStats.

type IpFilter ¶

type IpFilter struct {
	Http      bool `json:"http"`
	Transport bool `json:"transport"`
}

IpFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L177-L180

func NewIpFilter ¶

func NewIpFilter() *IpFilter

NewIpFilter returns a IpFilter.

func (*IpFilter) UnmarshalJSON ¶

func (s *IpFilter) UnmarshalJSON(data []byte) error

type IpLocationDatabaseConfigurationMetadata ¶

type IpLocationDatabaseConfigurationMetadata struct {
	Database           DatabaseConfigurationFull `json:"database"`
	Id                 string                    `json:"id"`
	ModifiedDate       *int64                    `json:"modified_date,omitempty"`
	ModifiedDateMillis *int64                    `json:"modified_date_millis,omitempty"`
	Version            int64                     `json:"version"`
}

IpLocationDatabaseConfigurationMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34

func NewIpLocationDatabaseConfigurationMetadata ¶

func NewIpLocationDatabaseConfigurationMetadata() *IpLocationDatabaseConfigurationMetadata

NewIpLocationDatabaseConfigurationMetadata returns a IpLocationDatabaseConfigurationMetadata.

func (*IpLocationDatabaseConfigurationMetadata) UnmarshalJSON ¶

func (s *IpLocationDatabaseConfigurationMetadata) UnmarshalJSON(data []byte) error

type IpLocationProcessor ¶

type IpLocationProcessor struct {
	// DatabaseFile The database filename referring to a database the module ships with
	// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom
	// database in the ingest-geoip config directory.
	DatabaseFile *string `json:"database_file,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// DownloadDatabaseOnPipelineCreation If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the
	// missing database is downloaded when the pipeline is created.
	// Else, the download is triggered by when the pipeline is used as the
	// `default_pipeline` or `final_pipeline` in an index.
	DownloadDatabaseOnPipelineCreation *bool `json:"download_database_on_pipeline_creation,omitempty"`
	// Field The field to get the ip address from for the geographical lookup.
	Field string `json:"field"`
	// FirstOnly If `true`, only the first found IP location data will be returned, even if
	// the field contains an array.
	FirstOnly *bool `json:"first_only,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Properties Controls what properties are added to the `target_field` based on the IP
	// location lookup.
	Properties []string `json:"properties,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that will hold the geographical information looked up from the
	// MaxMind database.
	TargetField *string `json:"target_field,omitempty"`
}

IpLocationProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L479-L513

func NewIpLocationProcessor ¶

func NewIpLocationProcessor() *IpLocationProcessor

NewIpLocationProcessor returns a IpLocationProcessor.

func (*IpLocationProcessor) IpLocationProcessorCaster ¶

func (s *IpLocationProcessor) IpLocationProcessorCaster() *IpLocationProcessor

func (*IpLocationProcessor) UnmarshalJSON ¶

func (s *IpLocationProcessor) UnmarshalJSON(data []byte) error

type IpLocationProcessorVariant ¶

type IpLocationProcessorVariant interface {
	IpLocationProcessorCaster() *IpLocationProcessor
}

type IpPrefixAggregate ¶

type IpPrefixAggregate struct {
	Buckets BucketsIpPrefixBucket `json:"buckets"`
	Meta    Metadata              `json:"meta,omitempty"`
}

IpPrefixAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L711-L715

func NewIpPrefixAggregate ¶

func NewIpPrefixAggregate() *IpPrefixAggregate

NewIpPrefixAggregate returns a IpPrefixAggregate.

func (*IpPrefixAggregate) UnmarshalJSON ¶

func (s *IpPrefixAggregate) UnmarshalJSON(data []byte) error

type IpPrefixAggregation ¶

type IpPrefixAggregation struct {
	// AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the
	// response.
	AppendPrefixLength *bool `json:"append_prefix_length,omitempty"`
	// Field The IP address field to aggregation on. The field mapping type must be `ip`.
	Field string `json:"field"`
	// IsIpv6 Defines whether the prefix applies to IPv6 addresses.
	IsIpv6 *bool `json:"is_ipv6,omitempty"`
	// Keyed Defines whether buckets are returned as a hash rather than an array in the
	// response.
	Keyed *bool `json:"keyed,omitempty"`
	// MinDocCount Minimum number of documents in a bucket for it to be included in the
	// response.
	MinDocCount *int64 `json:"min_doc_count,omitempty"`
	// PrefixLength Length of the network prefix. For IPv4 addresses the accepted range is [0,
	// 32].
	// For IPv6 addresses the accepted range is [0, 128].
	PrefixLength int `json:"prefix_length"`
}

IpPrefixAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1196-L1225

func NewIpPrefixAggregation ¶

func NewIpPrefixAggregation() *IpPrefixAggregation

NewIpPrefixAggregation returns a IpPrefixAggregation.

func (*IpPrefixAggregation) IpPrefixAggregationCaster ¶

func (s *IpPrefixAggregation) IpPrefixAggregationCaster() *IpPrefixAggregation

func (*IpPrefixAggregation) UnmarshalJSON ¶

func (s *IpPrefixAggregation) UnmarshalJSON(data []byte) error

type IpPrefixAggregationVariant ¶

type IpPrefixAggregationVariant interface {
	IpPrefixAggregationCaster() *IpPrefixAggregation
}

type IpPrefixBucket ¶

type IpPrefixBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	IsIpv6       bool                 `json:"is_ipv6"`
	Key          string               `json:"key"`
	Netmask      *string              `json:"netmask,omitempty"`
	PrefixLength int                  `json:"prefix_length"`
}

IpPrefixBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L717-L722

func NewIpPrefixBucket ¶

func NewIpPrefixBucket() *IpPrefixBucket

NewIpPrefixBucket returns a IpPrefixBucket.

func (IpPrefixBucket) MarshalJSON ¶

func (s IpPrefixBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*IpPrefixBucket) UnmarshalJSON ¶

func (s *IpPrefixBucket) UnmarshalJSON(data []byte) error

type IpProperty ¶

type IpProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *string                                          `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool  `json:"time_series_dimension,omitempty"`
	Type                string `json:"type,omitempty"`
}

IpProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L74-L88

func NewIpProperty ¶

func NewIpProperty() *IpProperty

NewIpProperty returns a IpProperty.

func (*IpProperty) IpPropertyCaster ¶

func (s *IpProperty) IpPropertyCaster() *IpProperty

func (IpProperty) MarshalJSON ¶

func (s IpProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IpProperty) PropertyCaster ¶ added in v9.0.1

func (s *IpProperty) PropertyCaster() *Property

func (*IpProperty) UnmarshalJSON ¶

func (s *IpProperty) UnmarshalJSON(data []byte) error

type IpPropertyVariant ¶

type IpPropertyVariant interface {
	IpPropertyCaster() *IpProperty
}

type IpRangeAggregate ¶

type IpRangeAggregate struct {
	Buckets BucketsIpRangeBucket `json:"buckets"`
	Meta    Metadata             `json:"meta,omitempty"`
}

IpRangeAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L624-L629

func NewIpRangeAggregate ¶

func NewIpRangeAggregate() *IpRangeAggregate

NewIpRangeAggregate returns a IpRangeAggregate.

func (*IpRangeAggregate) UnmarshalJSON ¶

func (s *IpRangeAggregate) UnmarshalJSON(data []byte) error

type IpRangeAggregation ¶

type IpRangeAggregation struct {
	// Field The date field whose values are used to build ranges.
	Field *string `json:"field,omitempty"`
	// Ranges Array of IP ranges.
	Ranges []IpRangeAggregationRange `json:"ranges,omitempty"`
}

IpRangeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L567-L576

func NewIpRangeAggregation ¶

func NewIpRangeAggregation() *IpRangeAggregation

NewIpRangeAggregation returns a IpRangeAggregation.

func (*IpRangeAggregation) IpRangeAggregationCaster ¶

func (s *IpRangeAggregation) IpRangeAggregationCaster() *IpRangeAggregation

func (*IpRangeAggregation) UnmarshalJSON ¶

func (s *IpRangeAggregation) UnmarshalJSON(data []byte) error

type IpRangeAggregationRange ¶

type IpRangeAggregationRange struct {
	// From Start of the range.
	From *string `json:"from,omitempty"`
	// Mask IP range defined as a CIDR mask.
	Mask *string `json:"mask,omitempty"`
	// To End of the range.
	To *string `json:"to,omitempty"`
}

IpRangeAggregationRange type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L578-L591

func NewIpRangeAggregationRange ¶

func NewIpRangeAggregationRange() *IpRangeAggregationRange

NewIpRangeAggregationRange returns a IpRangeAggregationRange.

func (*IpRangeAggregationRange) IpRangeAggregationRangeCaster ¶

func (s *IpRangeAggregationRange) IpRangeAggregationRangeCaster() *IpRangeAggregationRange

func (*IpRangeAggregationRange) UnmarshalJSON ¶

func (s *IpRangeAggregationRange) UnmarshalJSON(data []byte) error

type IpRangeAggregationRangeVariant ¶

type IpRangeAggregationRangeVariant interface {
	IpRangeAggregationRangeCaster() *IpRangeAggregationRange
}

type IpRangeAggregationVariant ¶

type IpRangeAggregationVariant interface {
	IpRangeAggregationCaster() *IpRangeAggregation
}

type IpRangeBucket ¶

type IpRangeBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	From         *string              `json:"from,omitempty"`
	Key          *string              `json:"key,omitempty"`
	To           *string              `json:"to,omitempty"`
}

IpRangeBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L631-L635

func NewIpRangeBucket ¶

func NewIpRangeBucket() *IpRangeBucket

NewIpRangeBucket returns a IpRangeBucket.

func (IpRangeBucket) MarshalJSON ¶

func (s IpRangeBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*IpRangeBucket) UnmarshalJSON ¶

func (s *IpRangeBucket) UnmarshalJSON(data []byte) error

type IpRangeProperty ¶

type IpRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

IpRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L46-L48

func NewIpRangeProperty ¶

func NewIpRangeProperty() *IpRangeProperty

NewIpRangeProperty returns a IpRangeProperty.

func (*IpRangeProperty) IpRangePropertyCaster ¶

func (s *IpRangeProperty) IpRangePropertyCaster() *IpRangeProperty

func (IpRangeProperty) MarshalJSON ¶

func (s IpRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IpRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *IpRangeProperty) PropertyCaster() *Property

func (*IpRangeProperty) UnmarshalJSON ¶

func (s *IpRangeProperty) UnmarshalJSON(data []byte) error

type IpRangePropertyVariant ¶

type IpRangePropertyVariant interface {
	IpRangePropertyCaster() *IpRangeProperty
}

type Ipinfo ¶

type Ipinfo struct {
}

Ipinfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Database.ts#L59-L59

func NewIpinfo ¶

func NewIpinfo() *Ipinfo

NewIpinfo returns a Ipinfo.

func (*Ipinfo) IpinfoCaster ¶

func (s *Ipinfo) IpinfoCaster() *Ipinfo

type IpinfoVariant ¶

type IpinfoVariant interface {
	IpinfoCaster() *Ipinfo
}

type IrishAnalyzer ¶

type IrishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

IrishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L220-L225

func NewIrishAnalyzer ¶

func NewIrishAnalyzer() *IrishAnalyzer

NewIrishAnalyzer returns a IrishAnalyzer.

func (*IrishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *IrishAnalyzer) AnalyzerCaster() *Analyzer

func (*IrishAnalyzer) IrishAnalyzerCaster ¶

func (s *IrishAnalyzer) IrishAnalyzerCaster() *IrishAnalyzer

func (IrishAnalyzer) MarshalJSON ¶

func (s IrishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*IrishAnalyzer) UnmarshalJSON ¶

func (s *IrishAnalyzer) UnmarshalJSON(data []byte) error

type IrishAnalyzerVariant ¶

type IrishAnalyzerVariant interface {
	IrishAnalyzerCaster() *IrishAnalyzer
}

type ItalianAnalyzer ¶

type ItalianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

ItalianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L227-L232

func NewItalianAnalyzer ¶

func NewItalianAnalyzer() *ItalianAnalyzer

NewItalianAnalyzer returns a ItalianAnalyzer.

func (*ItalianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *ItalianAnalyzer) AnalyzerCaster() *Analyzer

func (*ItalianAnalyzer) ItalianAnalyzerCaster ¶

func (s *ItalianAnalyzer) ItalianAnalyzerCaster() *ItalianAnalyzer

func (ItalianAnalyzer) MarshalJSON ¶

func (s ItalianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ItalianAnalyzer) UnmarshalJSON ¶

func (s *ItalianAnalyzer) UnmarshalJSON(data []byte) error

type ItalianAnalyzerVariant ¶

type ItalianAnalyzerVariant interface {
	ItalianAnalyzerCaster() *ItalianAnalyzer
}

type JaStopTokenFilter ¶ added in v9.0.1

type JaStopTokenFilter struct {
	Stopwords StopWords `json:"stopwords,omitempty"`
	Type      string    `json:"type,omitempty"`
	Version   *string   `json:"version,omitempty"`
}

JaStopTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L32-L35

func NewJaStopTokenFilter ¶ added in v9.0.1

func NewJaStopTokenFilter() *JaStopTokenFilter

NewJaStopTokenFilter returns a JaStopTokenFilter.

func (*JaStopTokenFilter) JaStopTokenFilterCaster ¶ added in v9.0.1

func (s *JaStopTokenFilter) JaStopTokenFilterCaster() *JaStopTokenFilter

func (JaStopTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s JaStopTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*JaStopTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *JaStopTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*JaStopTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *JaStopTokenFilter) UnmarshalJSON(data []byte) error

type JaStopTokenFilterVariant ¶ added in v9.0.1

type JaStopTokenFilterVariant interface {
	JaStopTokenFilterCaster() *JaStopTokenFilter
}

type JinaAIServiceSettings ¶

type JinaAIServiceSettings struct {
	// ApiKey A valid API key of your JinaAI account.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// ModelId The name of the model to use for the inference task.
	// For a `rerank` task, it is required.
	// For a `text_embedding` task, it is optional.
	ModelId *string `json:"model_id,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// JinaAI.
	// By default, the `jinaai` service sets the number of requests allowed per
	// minute to 2000 for all task types.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Similarity For a `text_embedding` task, the similarity measure. One of cosine,
	// dot_product, l2_norm.
	// The default values varies with the embedding type.
	// For example, a float embedding type uses a `dot_product` similarity measure
	// by default.
	Similarity *jinaaisimilaritytype.JinaAISimilarityType `json:"similarity,omitempty"`
}

JinaAIServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1439-L1468

func NewJinaAIServiceSettings ¶

func NewJinaAIServiceSettings() *JinaAIServiceSettings

NewJinaAIServiceSettings returns a JinaAIServiceSettings.

func (*JinaAIServiceSettings) JinaAIServiceSettingsCaster ¶

func (s *JinaAIServiceSettings) JinaAIServiceSettingsCaster() *JinaAIServiceSettings

func (*JinaAIServiceSettings) UnmarshalJSON ¶

func (s *JinaAIServiceSettings) UnmarshalJSON(data []byte) error

type JinaAIServiceSettingsVariant ¶

type JinaAIServiceSettingsVariant interface {
	JinaAIServiceSettingsCaster() *JinaAIServiceSettings
}

type JinaAITaskSettings ¶

type JinaAITaskSettings struct {
	// ReturnDocuments For a `rerank` task, return the doc text within the results.
	ReturnDocuments *bool `json:"return_documents,omitempty"`
	// Task For a `text_embedding` task, the task passed to the model.
	// Valid values are:
	//
	// * `classification`: Use it for embeddings passed through a text classifier.
	// * `clustering`: Use it for the embeddings run through a clustering algorithm.
	// * `ingest`: Use it for storing document embeddings in a vector database.
	// * `search`: Use it for storing embeddings of search queries run against a
	// vector database to find relevant documents.
	Task *jinaaitextembeddingtask.JinaAITextEmbeddingTask `json:"task,omitempty"`
	// TopN For a `rerank` task, the number of most relevant documents to return.
	// It defaults to the number of the documents.
	// If this inference endpoint is used in a `text_similarity_reranker` retriever
	// query and `top_n` is set, it must be greater than or equal to
	// `rank_window_size` in the query.
	TopN *int `json:"top_n,omitempty"`
}

JinaAITaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1470-L1491

func NewJinaAITaskSettings ¶

func NewJinaAITaskSettings() *JinaAITaskSettings

NewJinaAITaskSettings returns a JinaAITaskSettings.

func (*JinaAITaskSettings) JinaAITaskSettingsCaster ¶

func (s *JinaAITaskSettings) JinaAITaskSettingsCaster() *JinaAITaskSettings

func (*JinaAITaskSettings) UnmarshalJSON ¶

func (s *JinaAITaskSettings) UnmarshalJSON(data []byte) error

type JinaAITaskSettingsVariant ¶

type JinaAITaskSettingsVariant interface {
	JinaAITaskSettingsCaster() *JinaAITaskSettings
}

type Job ¶

type Job struct {
	// AllowLazyOpen Advanced configuration option.
	// Specifies whether this job can open when there is insufficient machine
	// learning node capacity for it to be immediately assigned to a node.
	AllowLazyOpen bool `json:"allow_lazy_open"`
	// AnalysisConfig The analysis configuration, which specifies how to analyze the data.
	// After you create a job, you cannot change the analysis configuration; all the
	// properties are informational.
	AnalysisConfig AnalysisConfig `json:"analysis_config"`
	// AnalysisLimits Limits can be applied for the resources required to hold the mathematical
	// models in memory.
	// These limits are approximate and can be set per job.
	// They do not control the memory used by other processes, for example the
	// Elasticsearch Java processes.
	AnalysisLimits *AnalysisLimits `json:"analysis_limits,omitempty"`
	// BackgroundPersistInterval Advanced configuration option.
	// The time between each periodic persistence of the model.
	// The default value is a randomized value between 3 to 4 hours, which avoids
	// all jobs persisting at exactly the same time.
	// The smallest allowed value is 1 hour.
	BackgroundPersistInterval Duration    `json:"background_persist_interval,omitempty"`
	Blocked                   *JobBlocked `json:"blocked,omitempty"`
	CreateTime                DateTime    `json:"create_time,omitempty"`
	// CustomSettings Advanced configuration option.
	// Contains custom metadata about the job.
	CustomSettings json.RawMessage `json:"custom_settings,omitempty"`
	// DailyModelSnapshotRetentionAfterDays Advanced configuration option, which affects the automatic removal of old
	// model snapshots for this job.
	// It specifies a period of time (in days) after which only the first snapshot
	// per day is retained.
	// This period is relative to the timestamp of the most recent snapshot for this
	// job.
	// Valid values range from 0 to `model_snapshot_retention_days`.
	DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`
	// DataDescription The data description defines the format of the input data when you send data
	// to the job by using the post data API.
	// Note that when configuring a datafeed, these properties are automatically
	// set.
	// When data is received via the post data API, it is not stored in
	// Elasticsearch.
	// Only the results for anomaly detection are retained.
	DataDescription DataDescription `json:"data_description"`
	// DatafeedConfig The datafeed, which retrieves data from Elasticsearch for analysis by the
	// job.
	// You can associate only one datafeed with each anomaly detection job.
	DatafeedConfig *MLDatafeed `json:"datafeed_config,omitempty"`
	// Deleting Indicates that the process of deleting the job is in progress but not yet
	// completed.
	// It is only reported when `true`.
	Deleting *bool `json:"deleting,omitempty"`
	// Description A description of the job.
	Description *string `json:"description,omitempty"`
	// FinishedTime If the job closed or failed, this is the time the job finished, otherwise it
	// is `null`.
	// This property is informational; you cannot change its value.
	FinishedTime DateTime `json:"finished_time,omitempty"`
	// Groups A list of job groups.
	// A job can belong to no groups or many.
	Groups []string `json:"groups,omitempty"`
	// JobId Identifier for the anomaly detection job.
	// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),
	// hyphens, and underscores.
	// It must start and end with alphanumeric characters.
	JobId string `json:"job_id"`
	// JobType Reserved for future use, currently set to `anomaly_detector`.
	JobType *string `json:"job_type,omitempty"`
	// JobVersion The machine learning configuration version number at which the the job was
	// created.
	JobVersion *string `json:"job_version,omitempty"`
	// ModelPlotConfig This advanced configuration option stores model information along with the
	// results.
	// It provides a more detailed view into anomaly detection.
	// Model plot provides a simplified and indicative view of the model and its
	// bounds.
	ModelPlotConfig *ModelPlotConfig `json:"model_plot_config,omitempty"`
	ModelSnapshotId *string          `json:"model_snapshot_id,omitempty"`
	// ModelSnapshotRetentionDays Advanced configuration option, which affects the automatic removal of old
	// model snapshots for this job.
	// It specifies the maximum period of time (in days) that snapshots are
	// retained.
	// This period is relative to the timestamp of the most recent snapshot for this
	// job.
	// By default, snapshots ten days older than the newest snapshot are deleted.
	ModelSnapshotRetentionDays int64 `json:"model_snapshot_retention_days"`
	// RenormalizationWindowDays Advanced configuration option.
	// The period over which adjustments to the score are applied, as new data is
	// seen.
	// The default value is the longer of 30 days or 100 `bucket_spans`.
	RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`
	// ResultsIndexName A text string that affects the name of the machine learning results index.
	// The default value is `shared`, which generates an index named
	// `.ml-anomalies-shared`.
	ResultsIndexName string `json:"results_index_name"`
	// ResultsRetentionDays Advanced configuration option.
	// The period of time (in days) that results are retained.
	// Age is calculated relative to the timestamp of the latest bucket result.
	// If this property has a non-null value, once per day at 00:30 (server time),
	// results that are the specified number of days older than the latest bucket
	// result are deleted from Elasticsearch.
	// The default value is null, which means all results are retained.
	// Annotations generated by the system also count as results for retention
	// purposes; they are deleted after the same number of days as results.
	// Annotations added by users are retained forever.
	ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`
}

Job type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L61-L180

func NewJob ¶

func NewJob() *Job

NewJob returns a Job.

func (*Job) UnmarshalJSON ¶

func (s *Job) UnmarshalJSON(data []byte) error

type JobBlocked ¶

type JobBlocked struct {
	Reason jobblockedreason.JobBlockedReason `json:"reason"`
	TaskId *string                           `json:"task_id,omitempty"`
}

JobBlocked type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L392-L395

func NewJobBlocked ¶

func NewJobBlocked() *JobBlocked

NewJobBlocked returns a JobBlocked.

func (*JobBlocked) UnmarshalJSON ¶

func (s *JobBlocked) UnmarshalJSON(data []byte) error

type JobConfig ¶

type JobConfig struct {
	// AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there
	// is insufficient machine learning node capacity for it to be immediately
	// assigned to a node.
	AllowLazyOpen *bool `json:"allow_lazy_open,omitempty"`
	// AnalysisConfig The analysis configuration, which specifies how to analyze the data.
	// After you create a job, you cannot change the analysis configuration; all the
	// properties are informational.
	AnalysisConfig AnalysisConfig `json:"analysis_config"`
	// AnalysisLimits Limits can be applied for the resources required to hold the mathematical
	// models in memory.
	// These limits are approximate and can be set per job.
	// They do not control the memory used by other processes, for example the
	// Elasticsearch Java processes.
	AnalysisLimits *AnalysisLimits `json:"analysis_limits,omitempty"`
	// BackgroundPersistInterval Advanced configuration option.
	// The time between each periodic persistence of the model.
	// The default value is a randomized value between 3 to 4 hours, which avoids
	// all jobs persisting at exactly the same time.
	// The smallest allowed value is 1 hour.
	BackgroundPersistInterval Duration `json:"background_persist_interval,omitempty"`
	// CustomSettings Advanced configuration option.
	// Contains custom metadata about the job.
	CustomSettings json.RawMessage `json:"custom_settings,omitempty"`
	// DailyModelSnapshotRetentionAfterDays Advanced configuration option, which affects the automatic removal of old
	// model snapshots for this job.
	// It specifies a period of time (in days) after which only the first snapshot
	// per day is retained.
	// This period is relative to the timestamp of the most recent snapshot for this
	// job.
	DailyModelSnapshotRetentionAfterDays *int64 `json:"daily_model_snapshot_retention_after_days,omitempty"`
	// DataDescription The data description defines the format of the input data when you send data
	// to the job by using the post data API.
	// Note that when configure a datafeed, these properties are automatically set.
	DataDescription DataDescription `json:"data_description"`
	// DatafeedConfig The datafeed, which retrieves data from Elasticsearch for analysis by the
	// job.
	// You can associate only one datafeed with each anomaly detection job.
	DatafeedConfig *DatafeedConfig `json:"datafeed_config,omitempty"`
	// Description A description of the job.
	Description *string `json:"description,omitempty"`
	// Groups A list of job groups. A job can belong to no groups or many.
	Groups []string `json:"groups,omitempty"`
	// JobId Identifier for the anomaly detection job.
	// This identifier can contain lowercase alphanumeric characters (a-z and 0-9),
	// hyphens, and underscores.
	// It must start and end with alphanumeric characters.
	JobId *string `json:"job_id,omitempty"`
	// JobType Reserved for future use, currently set to `anomaly_detector`.
	JobType *string `json:"job_type,omitempty"`
	// ModelPlotConfig This advanced configuration option stores model information along with the
	// results.
	// It provides a more detailed view into anomaly detection.
	// Model plot provides a simplified and indicative view of the model and its
	// bounds.
	ModelPlotConfig *ModelPlotConfig `json:"model_plot_config,omitempty"`
	// ModelSnapshotRetentionDays Advanced configuration option, which affects the automatic removal of old
	// model snapshots for this job.
	// It specifies the maximum period of time (in days) that snapshots are
	// retained.
	// This period is relative to the timestamp of the most recent snapshot for this
	// job.
	// The default value is `10`, which means snapshots ten days older than the
	// newest snapshot are deleted.
	ModelSnapshotRetentionDays *int64 `json:"model_snapshot_retention_days,omitempty"`
	// RenormalizationWindowDays Advanced configuration option.
	// The period over which adjustments to the score are applied, as new data is
	// seen.
	// The default value is the longer of 30 days or 100 `bucket_spans`.
	RenormalizationWindowDays *int64 `json:"renormalization_window_days,omitempty"`
	// ResultsIndexName A text string that affects the name of the machine learning results index.
	// The default value is `shared`, which generates an index named
	// `.ml-anomalies-shared`.
	ResultsIndexName *string `json:"results_index_name,omitempty"`
	// ResultsRetentionDays Advanced configuration option.
	// The period of time (in days) that results are retained.
	// Age is calculated relative to the timestamp of the latest bucket result.
	// If this property has a non-null value, once per day at 00:30 (server time),
	// results that are the specified number of days older than the latest bucket
	// result are deleted from Elasticsearch.
	// The default value is null, which means all results are retained.
	// Annotations generated by the system also count as results for retention
	// purposes; they are deleted after the same number of days as results.
	// Annotations added by users are retained forever.
	ResultsRetentionDays *int64 `json:"results_retention_days,omitempty"`
}

JobConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L182-L283

func NewJobConfig ¶

func NewJobConfig() *JobConfig

NewJobConfig returns a JobConfig.

func (*JobConfig) JobConfigCaster ¶

func (s *JobConfig) JobConfigCaster() *JobConfig

func (*JobConfig) UnmarshalJSON ¶

func (s *JobConfig) UnmarshalJSON(data []byte) error

type JobConfigVariant ¶

type JobConfigVariant interface {
	JobConfigCaster() *JobConfig
}

type JobForecastStatistics ¶

type JobForecastStatistics struct {
	ForecastedJobs   int              `json:"forecasted_jobs"`
	MemoryBytes      *JobStatistics   `json:"memory_bytes,omitempty"`
	ProcessingTimeMs *JobStatistics   `json:"processing_time_ms,omitempty"`
	Records          *JobStatistics   `json:"records,omitempty"`
	Status           map[string]int64 `json:"status,omitempty"`
	Total            int64            `json:"total"`
}

JobForecastStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L343-L350

func NewJobForecastStatistics ¶

func NewJobForecastStatistics() *JobForecastStatistics

NewJobForecastStatistics returns a JobForecastStatistics.

func (*JobForecastStatistics) UnmarshalJSON ¶

func (s *JobForecastStatistics) UnmarshalJSON(data []byte) error

type JobStatistics ¶

type JobStatistics struct {
	Avg   Float64 `json:"avg"`
	Max   Float64 `json:"max"`
	Min   Float64 `json:"min"`
	Total Float64 `json:"total"`
}

JobStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L54-L59

func NewJobStatistics ¶

func NewJobStatistics() *JobStatistics

NewJobStatistics returns a JobStatistics.

func (*JobStatistics) UnmarshalJSON ¶

func (s *JobStatistics) UnmarshalJSON(data []byte) error

type JobStats ¶

type JobStats struct {
	// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the
	// selection of a node to run the job.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// DataCounts An object that describes the quantity of input to the job and any related
	// error counts.
	// The `data_count` values are cumulative for the lifetime of a job.
	// If a model snapshot is reverted or old results are deleted, the job counts
	// are not reset.
	DataCounts DataCounts `json:"data_counts"`
	// Deleting Indicates that the process of deleting the job is in progress but not yet
	// completed. It is only reported when `true`.
	Deleting *bool `json:"deleting,omitempty"`
	// ForecastsStats An object that provides statistical information about forecasts belonging to
	// this job.
	// Some statistics are omitted if no forecasts have been made.
	ForecastsStats JobForecastStatistics `json:"forecasts_stats"`
	// JobId Identifier for the anomaly detection job.
	JobId string `json:"job_id"`
	// ModelSizeStats An object that provides information about the size and contents of the model.
	ModelSizeStats ModelSizeStats `json:"model_size_stats"`
	// Node Contains properties for the node that runs the job.
	// This information is available only for open jobs.
	Node *DiscoveryNodeCompact `json:"node,omitempty"`
	// OpenTime For open jobs only, the elapsed time for which the job has been open.
	OpenTime DateTime `json:"open_time,omitempty"`
	// State The status of the anomaly detection job, which can be one of the following
	// values: `closed`, `closing`, `failed`, `opened`, `opening`.
	State jobstate.JobState `json:"state"`
	// TimingStats An object that provides statistical information about timing aspect of this
	// job.
	TimingStats JobTimingStats `json:"timing_stats"`
}

JobStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L284-L330

func NewJobStats ¶

func NewJobStats() *JobStats

NewJobStats returns a JobStats.

func (*JobStats) UnmarshalJSON ¶

func (s *JobStats) UnmarshalJSON(data []byte) error

type JobTimingStats ¶

type JobTimingStats struct {
	AverageBucketProcessingTimeMs                   Float64 `json:"average_bucket_processing_time_ms,omitempty"`
	BucketCount                                     int64   `json:"bucket_count"`
	ExponentialAverageBucketProcessingTimeMs        Float64 `json:"exponential_average_bucket_processing_time_ms,omitempty"`
	ExponentialAverageBucketProcessingTimePerHourMs Float64 `json:"exponential_average_bucket_processing_time_per_hour_ms"`
	JobId                                           string  `json:"job_id"`
	MaximumBucketProcessingTimeMs                   Float64 `json:"maximum_bucket_processing_time_ms,omitempty"`
	MinimumBucketProcessingTimeMs                   Float64 `json:"minimum_bucket_processing_time_ms,omitempty"`
	TotalBucketProcessingTimeMs                     Float64 `json:"total_bucket_processing_time_ms"`
}

JobTimingStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Job.ts#L332-L341

func NewJobTimingStats ¶

func NewJobTimingStats() *JobTimingStats

NewJobTimingStats returns a JobTimingStats.

func (*JobTimingStats) UnmarshalJSON ¶

func (s *JobTimingStats) UnmarshalJSON(data []byte) error

type JobUsage ¶

type JobUsage struct {
	Count     int              `json:"count"`
	CreatedBy map[string]int64 `json:"created_by"`
	Detectors JobStatistics    `json:"detectors"`
	Forecasts MlJobForecasts   `json:"forecasts"`
	ModelSize JobStatistics    `json:"model_size"`
}

JobUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L370-L376

func NewJobUsage ¶

func NewJobUsage() *JobUsage

NewJobUsage returns a JobUsage.

func (*JobUsage) UnmarshalJSON ¶

func (s *JobUsage) UnmarshalJSON(data []byte) error

type JobsRecord ¶

type JobsRecord struct {
	// AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the
	// selection of a node to run the job.
	AssignmentExplanation *string `json:"assignment_explanation,omitempty"`
	// BucketsCount The number of bucket results produced by the job.
	BucketsCount *string `json:"buckets.count,omitempty"`
	// BucketsTimeExpAvg The exponential moving average of all bucket processing times, in
	// milliseconds.
	BucketsTimeExpAvg *string `json:"buckets.time.exp_avg,omitempty"`
	// BucketsTimeExpAvgHour The exponential moving average of bucket processing times calculated in a one
	// hour time window, in milliseconds.
	BucketsTimeExpAvgHour *string `json:"buckets.time.exp_avg_hour,omitempty"`
	// BucketsTimeMax The maximum of all bucket processing times, in milliseconds.
	BucketsTimeMax *string `json:"buckets.time.max,omitempty"`
	// BucketsTimeMin The minimum of all bucket processing times, in milliseconds.
	BucketsTimeMin *string `json:"buckets.time.min,omitempty"`
	// BucketsTimeTotal The sum of all bucket processing times, in milliseconds.
	BucketsTimeTotal *string `json:"buckets.time.total,omitempty"`
	// DataBuckets The total number of buckets processed.
	DataBuckets *string `json:"data.buckets,omitempty"`
	// DataEarliestRecord The timestamp of the earliest chronologically input document.
	DataEarliestRecord *string `json:"data.earliest_record,omitempty"`
	// DataEmptyBuckets The number of buckets which did not contain any data.
	// If your data contains many empty buckets, consider increasing your
	// `bucket_span` or using functions that are tolerant to gaps in data such as
	// mean, `non_null_sum` or `non_zero_count`.
	DataEmptyBuckets *string `json:"data.empty_buckets,omitempty"`
	// DataInputBytes The number of bytes of input data posted to the anomaly detection job.
	DataInputBytes ByteSize `json:"data.input_bytes,omitempty"`
	// DataInputFields The total number of fields in input documents posted to the anomaly detection
	// job.
	// This count includes fields that are not used in the analysis.
	// However, be aware that if you are using a datafeed, it extracts only the
	// required fields from the documents it retrieves before posting them to the
	// job.
	DataInputFields *string `json:"data.input_fields,omitempty"`
	// DataInputRecords The number of input documents posted to the anomaly detection job.
	DataInputRecords *string `json:"data.input_records,omitempty"`
	// DataInvalidDates The number of input documents with either a missing date field or a date that
	// could not be parsed.
	DataInvalidDates *string `json:"data.invalid_dates,omitempty"`
	// DataLast The timestamp at which data was last analyzed, according to server time.
	DataLast *string `json:"data.last,omitempty"`
	// DataLastEmptyBucket The timestamp of the last bucket that did not contain any data.
	DataLastEmptyBucket *string `json:"data.last_empty_bucket,omitempty"`
	// DataLastSparseBucket The timestamp of the last bucket that was considered sparse.
	DataLastSparseBucket *string `json:"data.last_sparse_bucket,omitempty"`
	// DataLatestRecord The timestamp of the latest chronologically input document.
	DataLatestRecord *string `json:"data.latest_record,omitempty"`
	// DataMissingFields The number of input documents that are missing a field that the anomaly
	// detection job is configured to analyze.
	// Input documents with missing fields are still processed because it is
	// possible that not all fields are missing.
	// If you are using datafeeds or posting data to the job in JSON format, a high
	// `missing_field_count` is often not an indication of data issues.
	// It is not necessarily a cause for concern.
	DataMissingFields *string `json:"data.missing_fields,omitempty"`
	// DataOutOfOrderTimestamps The number of input documents that have a timestamp chronologically preceding
	// the start of the current anomaly detection bucket offset by the latency
	// window.
	// This information is applicable only when you provide data to the anomaly
	// detection job by using the post data API.
	// These out of order documents are discarded, since jobs require time series
	// data to be in ascending chronological order.
	DataOutOfOrderTimestamps *string `json:"data.out_of_order_timestamps,omitempty"`
	// DataProcessedFields The total number of fields in all the documents that have been processed by
	// the anomaly detection job.
	// Only fields that are specified in the detector configuration object
	// contribute to this count.
	// The timestamp is not included in this count.
	DataProcessedFields *string `json:"data.processed_fields,omitempty"`
	// DataProcessedRecords The number of input documents that have been processed by the anomaly
	// detection job.
	// This value includes documents with missing fields, since they are nonetheless
	// analyzed.
	// If you use datafeeds and have aggregations in your search query, the
	// `processed_record_count` is the number of aggregation results processed, not
	// the number of Elasticsearch documents.
	DataProcessedRecords *string `json:"data.processed_records,omitempty"`
	// DataSparseBuckets The number of buckets that contained few data points compared to the expected
	// number of data points.
	// If your data contains many sparse buckets, consider using a longer
	// `bucket_span`.
	DataSparseBuckets *string `json:"data.sparse_buckets,omitempty"`
	// ForecastsMemoryAvg The average memory usage in bytes for forecasts related to the anomaly
	// detection job.
	ForecastsMemoryAvg *string `json:"forecasts.memory.avg,omitempty"`
	// ForecastsMemoryMax The maximum memory usage in bytes for forecasts related to the anomaly
	// detection job.
	ForecastsMemoryMax *string `json:"forecasts.memory.max,omitempty"`
	// ForecastsMemoryMin The minimum memory usage in bytes for forecasts related to the anomaly
	// detection job.
	ForecastsMemoryMin *string `json:"forecasts.memory.min,omitempty"`
	// ForecastsMemoryTotal The total memory usage in bytes for forecasts related to the anomaly
	// detection job.
	ForecastsMemoryTotal *string `json:"forecasts.memory.total,omitempty"`
	// ForecastsRecordsAvg The average number of `model_forecast` documents written for forecasts
	// related to the anomaly detection job.
	ForecastsRecordsAvg *string `json:"forecasts.records.avg,omitempty"`
	// ForecastsRecordsMax The maximum number of `model_forecast` documents written for forecasts
	// related to the anomaly detection job.
	ForecastsRecordsMax *string `json:"forecasts.records.max,omitempty"`
	// ForecastsRecordsMin The minimum number of `model_forecast` documents written for forecasts
	// related to the anomaly detection job.
	ForecastsRecordsMin *string `json:"forecasts.records.min,omitempty"`
	// ForecastsRecordsTotal The total number of `model_forecast` documents written for forecasts related
	// to the anomaly detection job.
	ForecastsRecordsTotal *string `json:"forecasts.records.total,omitempty"`
	// ForecastsTimeAvg The average runtime in milliseconds for forecasts related to the anomaly
	// detection job.
	ForecastsTimeAvg *string `json:"forecasts.time.avg,omitempty"`
	// ForecastsTimeMax The maximum runtime in milliseconds for forecasts related to the anomaly
	// detection job.
	ForecastsTimeMax *string `json:"forecasts.time.max,omitempty"`
	// ForecastsTimeMin The minimum runtime in milliseconds for forecasts related to the anomaly
	// detection job.
	ForecastsTimeMin *string `json:"forecasts.time.min,omitempty"`
	// ForecastsTimeTotal The total runtime in milliseconds for forecasts related to the anomaly
	// detection job.
	ForecastsTimeTotal *string `json:"forecasts.time.total,omitempty"`
	// ForecastsTotal The number of individual forecasts currently available for the job.
	// A value of one or more indicates that forecasts exist.
	ForecastsTotal *string `json:"forecasts.total,omitempty"`
	// Id The anomaly detection job identifier.
	Id *string `json:"id,omitempty"`
	// ModelBucketAllocationFailures The number of buckets for which new entities in incoming data were not
	// processed due to insufficient model memory.
	// This situation is also signified by a `hard_limit: memory_status` property
	// value.
	ModelBucketAllocationFailures *string `json:"model.bucket_allocation_failures,omitempty"`
	// ModelByFields The number of `by` field values that were analyzed by the models.
	// This value is cumulative for all detectors in the job.
	ModelByFields *string `json:"model.by_fields,omitempty"`
	// ModelBytes The number of bytes of memory used by the models.
	// This is the maximum value since the last time the model was persisted.
	// If the job is closed, this value indicates the latest size.
	ModelBytes ByteSize `json:"model.bytes,omitempty"`
	// ModelBytesExceeded The number of bytes over the high limit for memory usage at the last
	// allocation failure.
	ModelBytesExceeded ByteSize `json:"model.bytes_exceeded,omitempty"`
	// ModelCategorizationStatus The status of categorization for the job.
	ModelCategorizationStatus *categorizationstatus.CategorizationStatus `json:"model.categorization_status,omitempty"`
	// ModelCategorizedDocCount The number of documents that have had a field categorized.
	ModelCategorizedDocCount *string `json:"model.categorized_doc_count,omitempty"`
	// ModelDeadCategoryCount The number of categories created by categorization that will never be
	// assigned again because another category’s definition makes it a superset of
	// the dead category.
	// Dead categories are a side effect of the way categorization has no prior
	// training.
	ModelDeadCategoryCount *string `json:"model.dead_category_count,omitempty"`
	// ModelFailedCategoryCount The number of times that categorization wanted to create a new category but
	// couldn’t because the job had hit its `model_memory_limit`.
	// This count does not track which specific categories failed to be created.
	// Therefore you cannot use this value to determine the number of unique
	// categories that were missed.
	ModelFailedCategoryCount *string `json:"model.failed_category_count,omitempty"`
	// ModelFrequentCategoryCount The number of categories that match more than 1% of categorized documents.
	ModelFrequentCategoryCount *string `json:"model.frequent_category_count,omitempty"`
	// ModelLogTime The timestamp when the model stats were gathered, according to server time.
	ModelLogTime *string `json:"model.log_time,omitempty"`
	// ModelMemoryLimit The upper limit for model memory usage, checked on increasing values.
	ModelMemoryLimit *string `json:"model.memory_limit,omitempty"`
	// ModelMemoryStatus The status of the mathematical models.
	ModelMemoryStatus *memorystatus.MemoryStatus `json:"model.memory_status,omitempty"`
	// ModelOverFields The number of `over` field values that were analyzed by the models.
	// This value is cumulative for all detectors in the job.
	ModelOverFields *string `json:"model.over_fields,omitempty"`
	// ModelPartitionFields The number of `partition` field values that were analyzed by the models.
	// This value is cumulative for all detectors in the job.
	ModelPartitionFields *string `json:"model.partition_fields,omitempty"`
	// ModelRareCategoryCount The number of categories that match just one categorized document.
	ModelRareCategoryCount *string `json:"model.rare_category_count,omitempty"`
	// ModelTimestamp The timestamp of the last record when the model stats were gathered.
	ModelTimestamp *string `json:"model.timestamp,omitempty"`
	// ModelTotalCategoryCount The number of categories created by categorization.
	ModelTotalCategoryCount *string `json:"model.total_category_count,omitempty"`
	// NodeAddress The network address of the assigned node.
	NodeAddress *string `json:"node.address,omitempty"`
	// NodeEphemeralId The ephemeral identifier of the assigned node.
	NodeEphemeralId *string `json:"node.ephemeral_id,omitempty"`
	// NodeId The uniqe identifier of the assigned node.
	NodeId *string `json:"node.id,omitempty"`
	// NodeName The name of the assigned node.
	NodeName *string `json:"node.name,omitempty"`
	// OpenedTime For open jobs only, the amount of time the job has been opened.
	OpenedTime *string `json:"opened_time,omitempty"`
	// State The status of the anomaly detection job.
	State *jobstate.JobState `json:"state,omitempty"`
}

JobsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/ml_jobs/types.ts#L24-L347

func NewJobsRecord ¶

func NewJobsRecord() *JobsRecord

NewJobsRecord returns a JobsRecord.

func (*JobsRecord) UnmarshalJSON ¶

func (s *JobsRecord) UnmarshalJSON(data []byte) error

type JoinProcessor ¶

type JoinProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field Field containing array values to join.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Separator The separator character.
	Separator string `json:"separator"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the joined value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

JoinProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1122-L1137

func NewJoinProcessor ¶

func NewJoinProcessor() *JoinProcessor

NewJoinProcessor returns a JoinProcessor.

func (*JoinProcessor) JoinProcessorCaster ¶

func (s *JoinProcessor) JoinProcessorCaster() *JoinProcessor

func (*JoinProcessor) UnmarshalJSON ¶

func (s *JoinProcessor) UnmarshalJSON(data []byte) error

type JoinProcessorVariant ¶

type JoinProcessorVariant interface {
	JoinProcessorCaster() *JoinProcessor
}

type JoinProperty ¶

type JoinProperty struct {
	Dynamic             *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EagerGlobalOrdinals *bool                          `json:"eager_global_ordinals,omitempty"`
	Fields              map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove         *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Relations           map[string][]string                              `json:"relations,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

JoinProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L103-L107

func NewJoinProperty ¶

func NewJoinProperty() *JoinProperty

NewJoinProperty returns a JoinProperty.

func (*JoinProperty) JoinPropertyCaster ¶

func (s *JoinProperty) JoinPropertyCaster() *JoinProperty

func (JoinProperty) MarshalJSON ¶

func (s JoinProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*JoinProperty) PropertyCaster ¶ added in v9.0.1

func (s *JoinProperty) PropertyCaster() *Property

func (*JoinProperty) UnmarshalJSON ¶

func (s *JoinProperty) UnmarshalJSON(data []byte) error

type JoinPropertyVariant ¶

type JoinPropertyVariant interface {
	JoinPropertyCaster() *JoinProperty
}

type JsonProcessor ¶

type JsonProcessor struct {
	// AddToRoot Flag that forces the parsed JSON to be added at the top level of the
	// document.
	// `target_field` must not be set when this option is chosen.
	AddToRoot *bool `json:"add_to_root,omitempty"`
	// AddToRootConflictStrategy When set to `replace`, root fields that conflict with fields from the parsed
	// JSON will be overridden.
	// When set to `merge`, conflicting fields will be merged.
	// Only applicable `if add_to_root` is set to true.
	AddToRootConflictStrategy *jsonprocessorconflictstrategy.JsonProcessorConflictStrategy `json:"add_to_root_conflict_strategy,omitempty"`
	// AllowDuplicateKeys When set to `true`, the JSON parser will not fail if the JSON contains
	// duplicate keys.
	// Instead, the last encountered value for any duplicate key wins.
	AllowDuplicateKeys *bool `json:"allow_duplicate_keys,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to be parsed.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that the converted structured object will be written into.
	// Any existing content in this field will be overwritten.
	TargetField *string `json:"target_field,omitempty"`
}

JsonProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1139-L1168

func NewJsonProcessor ¶

func NewJsonProcessor() *JsonProcessor

NewJsonProcessor returns a JsonProcessor.

func (*JsonProcessor) JsonProcessorCaster ¶

func (s *JsonProcessor) JsonProcessorCaster() *JsonProcessor

func (*JsonProcessor) UnmarshalJSON ¶

func (s *JsonProcessor) UnmarshalJSON(data []byte) error

type JsonProcessorVariant ¶

type JsonProcessorVariant interface {
	JsonProcessorCaster() *JsonProcessor
}

type Jvm ¶

type Jvm struct {
	// BufferPools Contains statistics about JVM buffer pools for the node.
	BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"`
	// Classes Contains statistics about classes loaded by JVM for the node.
	Classes *JvmClasses `json:"classes,omitempty"`
	// Gc Contains statistics about JVM garbage collectors for the node.
	Gc *GarbageCollector `json:"gc,omitempty"`
	// Mem Contains JVM memory usage statistics for the node.
	Mem *JvmMemoryStats `json:"mem,omitempty"`
	// Threads Contains statistics about JVM thread usage for the node.
	Threads *JvmThreads `json:"threads,omitempty"`
	// Timestamp Last time JVM statistics were refreshed.
	Timestamp *int64 `json:"timestamp,omitempty"`
	// Uptime Human-readable JVM uptime.
	// Only returned if the `human` query parameter is `true`.
	Uptime *string `json:"uptime,omitempty"`
	// UptimeInMillis JVM uptime in milliseconds.
	UptimeInMillis *int64 `json:"uptime_in_millis,omitempty"`
}

Jvm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L884-L918

func NewJvm ¶

func NewJvm() *Jvm

NewJvm returns a Jvm.

func (*Jvm) UnmarshalJSON ¶

func (s *Jvm) UnmarshalJSON(data []byte) error

type JvmClasses ¶

type JvmClasses struct {
	// CurrentLoadedCount Number of classes currently loaded by JVM.
	CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"`
	// TotalLoadedCount Total number of classes loaded since the JVM started.
	TotalLoadedCount *int64 `json:"total_loaded_count,omitempty"`
	// TotalUnloadedCount Total number of classes unloaded since the JVM started.
	TotalUnloadedCount *int64 `json:"total_unloaded_count,omitempty"`
}

JvmClasses type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L986-L999

func NewJvmClasses ¶

func NewJvmClasses() *JvmClasses

NewJvmClasses returns a JvmClasses.

func (*JvmClasses) UnmarshalJSON ¶

func (s *JvmClasses) UnmarshalJSON(data []byte) error

type JvmMemoryStats ¶

type JvmMemoryStats struct {
	// HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap.
	HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"`
	// HeapMax Maximum amount of memory, available for use by the heap.
	HeapMax ByteSize `json:"heap_max,omitempty"`
	// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap.
	HeapMaxInBytes *int64 `json:"heap_max_in_bytes,omitempty"`
	// HeapUsedInBytes Memory, in bytes, currently in use by the heap.
	HeapUsedInBytes *int64 `json:"heap_used_in_bytes,omitempty"`
	// HeapUsedPercent Percentage of memory currently in use by the heap.
	HeapUsedPercent *int64 `json:"heap_used_percent,omitempty"`
	// NonHeapCommittedInBytes Amount of non-heap memory available, in bytes.
	NonHeapCommittedInBytes *int64 `json:"non_heap_committed_in_bytes,omitempty"`
	// NonHeapUsedInBytes Non-heap memory used, in bytes.
	NonHeapUsedInBytes *int64 `json:"non_heap_used_in_bytes,omitempty"`
	// Pools Contains statistics about heap memory usage for the node.
	Pools map[string]Pool `json:"pools,omitempty"`
}

JvmMemoryStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L920-L954

func NewJvmMemoryStats ¶

func NewJvmMemoryStats() *JvmMemoryStats

NewJvmMemoryStats returns a JvmMemoryStats.

func (*JvmMemoryStats) UnmarshalJSON ¶

func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error

type JvmStats ¶

type JvmStats struct {
	// HeapMax Maximum amount of memory available for use by the heap.
	HeapMax ByteSize `json:"heap_max,omitempty"`
	// HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap.
	HeapMaxInBytes int `json:"heap_max_in_bytes"`
	// JavaInference Amount of Java heap currently being used for caching inference models.
	JavaInference ByteSize `json:"java_inference,omitempty"`
	// JavaInferenceInBytes Amount of Java heap, in bytes, currently being used for caching inference
	// models.
	JavaInferenceInBytes int `json:"java_inference_in_bytes"`
	// JavaInferenceMax Maximum amount of Java heap to be used for caching inference models.
	JavaInferenceMax ByteSize `json:"java_inference_max,omitempty"`
	// JavaInferenceMaxInBytes Maximum amount of Java heap, in bytes, to be used for caching inference
	// models.
	JavaInferenceMaxInBytes int `json:"java_inference_max_in_bytes"`
}

JvmStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/get_memory_stats/types.ts#L50-L63

func NewJvmStats ¶

func NewJvmStats() *JvmStats

NewJvmStats returns a JvmStats.

func (*JvmStats) UnmarshalJSON ¶

func (s *JvmStats) UnmarshalJSON(data []byte) error

type JvmThreads ¶

type JvmThreads struct {
	// Count Number of active threads in use by JVM.
	Count *int64 `json:"count,omitempty"`
	// PeakCount Highest number of threads used by JVM.
	PeakCount *int64 `json:"peak_count,omitempty"`
}

JvmThreads type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L975-L984

func NewJvmThreads ¶

func NewJvmThreads() *JvmThreads

NewJvmThreads returns a JvmThreads.

func (*JvmThreads) UnmarshalJSON ¶

func (s *JvmThreads) UnmarshalJSON(data []byte) error

type KStemTokenFilter ¶

type KStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

KStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L324-L326

func NewKStemTokenFilter ¶

func NewKStemTokenFilter() *KStemTokenFilter

NewKStemTokenFilter returns a KStemTokenFilter.

func (*KStemTokenFilter) KStemTokenFilterCaster ¶

func (s *KStemTokenFilter) KStemTokenFilterCaster() *KStemTokenFilter

func (KStemTokenFilter) MarshalJSON ¶

func (s KStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KStemTokenFilter) UnmarshalJSON ¶

func (s *KStemTokenFilter) UnmarshalJSON(data []byte) error

type KStemTokenFilterVariant ¶

type KStemTokenFilterVariant interface {
	KStemTokenFilterCaster() *KStemTokenFilter
}

type KeepTypesTokenFilter ¶

type KeepTypesTokenFilter struct {
	// Mode Indicates whether to keep or remove the specified token types.
	Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"`
	Type string                       `json:"type,omitempty"`
	// Types List of token types to keep or remove.
	Types   []string `json:"types"`
	Version *string  `json:"version,omitempty"`
}

KeepTypesTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L287-L293

func NewKeepTypesTokenFilter ¶

func NewKeepTypesTokenFilter() *KeepTypesTokenFilter

NewKeepTypesTokenFilter returns a KeepTypesTokenFilter.

func (*KeepTypesTokenFilter) KeepTypesTokenFilterCaster ¶

func (s *KeepTypesTokenFilter) KeepTypesTokenFilterCaster() *KeepTypesTokenFilter

func (KeepTypesTokenFilter) MarshalJSON ¶

func (s KeepTypesTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeepTypesTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KeepTypesTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KeepTypesTokenFilter) UnmarshalJSON ¶

func (s *KeepTypesTokenFilter) UnmarshalJSON(data []byte) error

type KeepTypesTokenFilterVariant ¶

type KeepTypesTokenFilterVariant interface {
	KeepTypesTokenFilterCaster() *KeepTypesTokenFilter
}

type KeepWordsTokenFilter ¶

type KeepWordsTokenFilter struct {
	// KeepWords List of words to keep. Only tokens that match words in this list are included
	// in the output.
	// Either this parameter or `keep_words_path` must be specified.
	KeepWords []string `json:"keep_words,omitempty"`
	// KeepWordsCase If `true`, lowercase all keep words. Defaults to `false`.
	KeepWordsCase *bool `json:"keep_words_case,omitempty"`
	// KeepWordsPath Path to a file that contains a list of words to keep. Only tokens that match
	// words in this list are included in the output.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each word in the file must be separated by a line
	// break.
	// Either this parameter or `keep_words` must be specified.
	KeepWordsPath *string `json:"keep_words_path,omitempty"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

KeepWordsTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L295-L306

func NewKeepWordsTokenFilter ¶

func NewKeepWordsTokenFilter() *KeepWordsTokenFilter

NewKeepWordsTokenFilter returns a KeepWordsTokenFilter.

func (*KeepWordsTokenFilter) KeepWordsTokenFilterCaster ¶

func (s *KeepWordsTokenFilter) KeepWordsTokenFilterCaster() *KeepWordsTokenFilter

func (KeepWordsTokenFilter) MarshalJSON ¶

func (s KeepWordsTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeepWordsTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KeepWordsTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KeepWordsTokenFilter) UnmarshalJSON ¶

func (s *KeepWordsTokenFilter) UnmarshalJSON(data []byte) error

type KeepWordsTokenFilterVariant ¶

type KeepWordsTokenFilterVariant interface {
	KeepWordsTokenFilterCaster() *KeepWordsTokenFilter
}

type KeyValueProcessor ¶

type KeyValueProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// ExcludeKeys List of keys to exclude from document.
	ExcludeKeys []string `json:"exclude_keys,omitempty"`
	// Field The field to be parsed.
	// Supports template snippets.
	Field string `json:"field"`
	// FieldSplit Regex pattern to use for splitting key-value pairs.
	FieldSplit string `json:"field_split"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// IncludeKeys List of keys to filter and insert into document.
	// Defaults to including all keys.
	IncludeKeys []string `json:"include_keys,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Prefix Prefix to be added to extracted keys.
	Prefix *string `json:"prefix,omitempty"`
	// StripBrackets If `true`. strip brackets `()`, `<>`, `[]` as well as quotes `'` and `"` from
	// extracted values.
	StripBrackets *bool `json:"strip_brackets,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to insert the extracted keys into.
	// Defaults to the root of the document.
	// Supports template snippets.
	TargetField *string `json:"target_field,omitempty"`
	// TrimKey String of characters to trim from extracted keys.
	TrimKey *string `json:"trim_key,omitempty"`
	// TrimValue String of characters to trim from extracted values.
	TrimValue *string `json:"trim_value,omitempty"`
	// ValueSplit Regex pattern to use for splitting the key from the value within a key-value
	// pair.
	ValueSplit string `json:"value_split"`
}

KeyValueProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1177-L1229

func NewKeyValueProcessor ¶

func NewKeyValueProcessor() *KeyValueProcessor

NewKeyValueProcessor returns a KeyValueProcessor.

func (*KeyValueProcessor) KeyValueProcessorCaster ¶

func (s *KeyValueProcessor) KeyValueProcessorCaster() *KeyValueProcessor

func (*KeyValueProcessor) UnmarshalJSON ¶

func (s *KeyValueProcessor) UnmarshalJSON(data []byte) error

type KeyValueProcessorVariant ¶

type KeyValueProcessorVariant interface {
	KeyValueProcessorCaster() *KeyValueProcessor
}

type KeyedProcessor ¶

type KeyedProcessor struct {
	Stats *Processor `json:"stats,omitempty"`
	Type  *string    `json:"type,omitempty"`
}

KeyedProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L417-L420

func NewKeyedProcessor ¶

func NewKeyedProcessor() *KeyedProcessor

NewKeyedProcessor returns a KeyedProcessor.

func (*KeyedProcessor) UnmarshalJSON ¶

func (s *KeyedProcessor) UnmarshalJSON(data []byte) error

type KeywordAnalyzer ¶

type KeywordAnalyzer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

KeywordAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L66-L70

func NewKeywordAnalyzer ¶

func NewKeywordAnalyzer() *KeywordAnalyzer

NewKeywordAnalyzer returns a KeywordAnalyzer.

func (*KeywordAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *KeywordAnalyzer) AnalyzerCaster() *Analyzer

func (*KeywordAnalyzer) KeywordAnalyzerCaster ¶

func (s *KeywordAnalyzer) KeywordAnalyzerCaster() *KeywordAnalyzer

func (KeywordAnalyzer) MarshalJSON ¶

func (s KeywordAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeywordAnalyzer) UnmarshalJSON ¶

func (s *KeywordAnalyzer) UnmarshalJSON(data []byte) error

type KeywordAnalyzerVariant ¶

type KeywordAnalyzerVariant interface {
	KeywordAnalyzerCaster() *KeywordAnalyzer
}

type KeywordMarkerTokenFilter ¶

type KeywordMarkerTokenFilter struct {
	// IgnoreCase If `true`, matching for the `keywords` and `keywords_path` parameters ignores
	// letter case. Defaults to `false`.
	IgnoreCase *bool `json:"ignore_case,omitempty"`
	// Keywords Array of keywords. Tokens that match these keywords are not stemmed.
	// This parameter, `keywords_path`, or `keywords_pattern` must be specified. You
	// cannot specify this parameter and `keywords_pattern`.
	Keywords []string `json:"keywords,omitempty"`
	// KeywordsPath Path to a file that contains a list of keywords. Tokens that match these
	// keywords are not stemmed.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each word in the file must be separated by a line
	// break.
	// This parameter, `keywords`, or `keywords_pattern` must be specified. You
	// cannot specify this parameter and `keywords_pattern`.
	KeywordsPath *string `json:"keywords_path,omitempty"`
	// KeywordsPattern Java regular expression used to match tokens. Tokens that match this
	// expression are marked as keywords and not stemmed.
	// This parameter, `keywords`, or `keywords_path` must be specified. You cannot
	// specify this parameter and `keywords` or `keywords_pattern`.
	KeywordsPattern *string `json:"keywords_pattern,omitempty"`
	Type            string  `json:"type,omitempty"`
	Version         *string `json:"version,omitempty"`
}

KeywordMarkerTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L308-L322

func NewKeywordMarkerTokenFilter ¶

func NewKeywordMarkerTokenFilter() *KeywordMarkerTokenFilter

NewKeywordMarkerTokenFilter returns a KeywordMarkerTokenFilter.

func (*KeywordMarkerTokenFilter) KeywordMarkerTokenFilterCaster ¶

func (s *KeywordMarkerTokenFilter) KeywordMarkerTokenFilterCaster() *KeywordMarkerTokenFilter

func (KeywordMarkerTokenFilter) MarshalJSON ¶

func (s KeywordMarkerTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeywordMarkerTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KeywordMarkerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KeywordMarkerTokenFilter) UnmarshalJSON ¶

func (s *KeywordMarkerTokenFilter) UnmarshalJSON(data []byte) error

type KeywordMarkerTokenFilterVariant ¶

type KeywordMarkerTokenFilterVariant interface {
	KeywordMarkerTokenFilterCaster() *KeywordMarkerTokenFilter
}

type KeywordProperty ¶

type KeywordProperty struct {
	Boost               *Float64                       `json:"boost,omitempty"`
	CopyTo              []string                       `json:"copy_to,omitempty"`
	DocValues           *bool                          `json:"doc_values,omitempty"`
	Dynamic             *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EagerGlobalOrdinals *bool                          `json:"eager_global_ordinals,omitempty"`
	Fields              map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove         *int                           `json:"ignore_above,omitempty"`
	Index               *bool                          `json:"index,omitempty"`
	IndexOptions        *indexoptions.IndexOptions     `json:"index_options,omitempty"`
	// Meta Metadata about the field.
	Meta                     map[string]string                                `json:"meta,omitempty"`
	Normalizer               *string                                          `json:"normalizer,omitempty"`
	Norms                    *bool                                            `json:"norms,omitempty"`
	NullValue                *string                                          `json:"null_value,omitempty"`
	OnScriptError            *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties               map[string]Property                              `json:"properties,omitempty"`
	Script                   *Script                                          `json:"script,omitempty"`
	Similarity               *string                                          `json:"similarity,omitempty"`
	SplitQueriesOnWhitespace *bool                                            `json:"split_queries_on_whitespace,omitempty"`
	Store                    *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep      *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool  `json:"time_series_dimension,omitempty"`
	Type                string `json:"type,omitempty"`
}

KeywordProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L109-L128

func NewKeywordProperty ¶

func NewKeywordProperty() *KeywordProperty

NewKeywordProperty returns a KeywordProperty.

func (*KeywordProperty) KeywordPropertyCaster ¶

func (s *KeywordProperty) KeywordPropertyCaster() *KeywordProperty

func (KeywordProperty) MarshalJSON ¶

func (s KeywordProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeywordProperty) PropertyCaster ¶ added in v9.0.1

func (s *KeywordProperty) PropertyCaster() *Property

func (*KeywordProperty) UnmarshalJSON ¶

func (s *KeywordProperty) UnmarshalJSON(data []byte) error

type KeywordPropertyVariant ¶

type KeywordPropertyVariant interface {
	KeywordPropertyCaster() *KeywordProperty
}

type KeywordRepeatTokenFilter ¶ added in v9.0.1

type KeywordRepeatTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

KeywordRepeatTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L510-L512

func NewKeywordRepeatTokenFilter ¶ added in v9.0.1

func NewKeywordRepeatTokenFilter() *KeywordRepeatTokenFilter

NewKeywordRepeatTokenFilter returns a KeywordRepeatTokenFilter.

func (*KeywordRepeatTokenFilter) KeywordRepeatTokenFilterCaster ¶ added in v9.0.1

func (s *KeywordRepeatTokenFilter) KeywordRepeatTokenFilterCaster() *KeywordRepeatTokenFilter

func (KeywordRepeatTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s KeywordRepeatTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeywordRepeatTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KeywordRepeatTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KeywordRepeatTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *KeywordRepeatTokenFilter) UnmarshalJSON(data []byte) error

type KeywordRepeatTokenFilterVariant ¶ added in v9.0.1

type KeywordRepeatTokenFilterVariant interface {
	KeywordRepeatTokenFilterCaster() *KeywordRepeatTokenFilter
}

type KeywordTokenizer ¶

type KeywordTokenizer struct {
	BufferSize *int    `json:"buffer_size,omitempty"`
	Type       string  `json:"type,omitempty"`
	Version    *string `json:"version,omitempty"`
}

KeywordTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L69-L75

func NewKeywordTokenizer ¶

func NewKeywordTokenizer() *KeywordTokenizer

NewKeywordTokenizer returns a KeywordTokenizer.

func (*KeywordTokenizer) KeywordTokenizerCaster ¶

func (s *KeywordTokenizer) KeywordTokenizerCaster() *KeywordTokenizer

func (KeywordTokenizer) MarshalJSON ¶

func (s KeywordTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KeywordTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *KeywordTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*KeywordTokenizer) UnmarshalJSON ¶

func (s *KeywordTokenizer) UnmarshalJSON(data []byte) error

type KeywordTokenizerVariant ¶

type KeywordTokenizerVariant interface {
	KeywordTokenizerCaster() *KeywordTokenizer
}

type KibanaToken ¶

type KibanaToken struct {
	// Name The name of the bearer token for the `elastic/kibana` service account.
	Name string `json:"name"`
	// Value The value of the bearer token for the `elastic/kibana` service account.
	// Use this value to authenticate the service account with Elasticsearch.
	Value string `json:"value"`
}

KibanaToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/enroll_kibana/Response.ts#L31-L41

func NewKibanaToken ¶

func NewKibanaToken() *KibanaToken

NewKibanaToken returns a KibanaToken.

func (*KibanaToken) UnmarshalJSON ¶

func (s *KibanaToken) UnmarshalJSON(data []byte) error

type KnnCollectorResult ¶

type KnnCollectorResult struct {
	Children    []KnnCollectorResult `json:"children,omitempty"`
	Name        string               `json:"name"`
	Reason      string               `json:"reason"`
	Time        Duration             `json:"time,omitempty"`
	TimeInNanos int64                `json:"time_in_nanos"`
}

KnnCollectorResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L222-L228

func NewKnnCollectorResult ¶

func NewKnnCollectorResult() *KnnCollectorResult

NewKnnCollectorResult returns a KnnCollectorResult.

func (*KnnCollectorResult) UnmarshalJSON ¶

func (s *KnnCollectorResult) UnmarshalJSON(data []byte) error

type KnnQuery ¶

type KnnQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field The name of the vector field to search against
	Field string `json:"field"`
	// Filter Filters for the kNN search query
	Filter []Query `json:"filter,omitempty"`
	// K The final number of nearest neighbors to return as top hits
	K *int `json:"k,omitempty"`
	// NumCandidates The number of nearest neighbor candidates to consider per shard
	NumCandidates *int    `json:"num_candidates,omitempty"`
	QueryName_    *string `json:"_name,omitempty"`
	// QueryVector The query vector
	QueryVector []float32 `json:"query_vector,omitempty"`
	// QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or
	// query_vector, but not both.
	QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`
	// RescoreVector Apply oversampling and rescoring to quantized vectors
	RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`
	// Similarity The minimum similarity for a vector to be considered a match
	Similarity *float32 `json:"similarity,omitempty"`
}

KnnQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Knn.ts#L64-L87

func NewKnnQuery ¶

func NewKnnQuery() *KnnQuery

NewKnnQuery returns a KnnQuery.

func (*KnnQuery) KnnQueryCaster ¶

func (s *KnnQuery) KnnQueryCaster() *KnnQuery

func (*KnnQuery) UnmarshalJSON ¶

func (s *KnnQuery) UnmarshalJSON(data []byte) error

type KnnQueryProfileBreakdown ¶

type KnnQueryProfileBreakdown struct {
	Advance                     int64 `json:"advance"`
	AdvanceCount                int64 `json:"advance_count"`
	BuildScorer                 int64 `json:"build_scorer"`
	BuildScorerCount            int64 `json:"build_scorer_count"`
	ComputeMaxScore             int64 `json:"compute_max_score"`
	ComputeMaxScoreCount        int64 `json:"compute_max_score_count"`
	CountWeight                 int64 `json:"count_weight"`
	CountWeightCount            int64 `json:"count_weight_count"`
	CreateWeight                int64 `json:"create_weight"`
	CreateWeightCount           int64 `json:"create_weight_count"`
	Match                       int64 `json:"match"`
	MatchCount                  int64 `json:"match_count"`
	NextDoc                     int64 `json:"next_doc"`
	NextDocCount                int64 `json:"next_doc_count"`
	Score                       int64 `json:"score"`
	ScoreCount                  int64 `json:"score_count"`
	SetMinCompetitiveScore      int64 `json:"set_min_competitive_score"`
	SetMinCompetitiveScoreCount int64 `json:"set_min_competitive_score_count"`
	ShallowAdvance              int64 `json:"shallow_advance"`
	ShallowAdvanceCount         int64 `json:"shallow_advance_count"`
}

KnnQueryProfileBreakdown type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L199-L220

func NewKnnQueryProfileBreakdown ¶

func NewKnnQueryProfileBreakdown() *KnnQueryProfileBreakdown

NewKnnQueryProfileBreakdown returns a KnnQueryProfileBreakdown.

func (*KnnQueryProfileBreakdown) UnmarshalJSON ¶

func (s *KnnQueryProfileBreakdown) UnmarshalJSON(data []byte) error

type KnnQueryProfileResult ¶

type KnnQueryProfileResult struct {
	Breakdown   KnnQueryProfileBreakdown   `json:"breakdown"`
	Children    []KnnQueryProfileResult    `json:"children,omitempty"`
	Debug       map[string]json.RawMessage `json:"debug,omitempty"`
	Description string                     `json:"description"`
	Time        Duration                   `json:"time,omitempty"`
	TimeInNanos int64                      `json:"time_in_nanos"`
	Type        string                     `json:"type"`
}

KnnQueryProfileResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L188-L196

func NewKnnQueryProfileResult ¶

func NewKnnQueryProfileResult() *KnnQueryProfileResult

NewKnnQueryProfileResult returns a KnnQueryProfileResult.

func (*KnnQueryProfileResult) UnmarshalJSON ¶

func (s *KnnQueryProfileResult) UnmarshalJSON(data []byte) error

type KnnQueryVariant ¶

type KnnQueryVariant interface {
	KnnQueryCaster() *KnnQuery
}

type KnnRetriever ¶

type KnnRetriever struct {
	// Field The name of the vector field to search against.
	Field string `json:"field"`
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// K Number of nearest neighbors to return as top hits.
	K int `json:"k"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_ *string `json:"_name,omitempty"`
	// NumCandidates Number of nearest neighbor candidates to consider per shard.
	NumCandidates int `json:"num_candidates"`
	// QueryVector Query vector. Must have the same number of dimensions as the vector field you
	// are searching against. You must provide a query_vector_builder or
	// query_vector, but not both.
	QueryVector []float32 `json:"query_vector,omitempty"`
	// QueryVectorBuilder Defines a model to build a query vector.
	QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`
	// RescoreVector Apply oversampling and rescoring to quantized vectors
	RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`
	// Similarity The minimum similarity required for a document to be considered a match.
	Similarity *float32 `json:"similarity,omitempty"`
}

KnnRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L115-L133

func NewKnnRetriever ¶

func NewKnnRetriever() *KnnRetriever

NewKnnRetriever returns a KnnRetriever.

func (*KnnRetriever) KnnRetrieverCaster ¶

func (s *KnnRetriever) KnnRetrieverCaster() *KnnRetriever

func (*KnnRetriever) UnmarshalJSON ¶

func (s *KnnRetriever) UnmarshalJSON(data []byte) error

type KnnRetrieverVariant ¶

type KnnRetrieverVariant interface {
	KnnRetrieverCaster() *KnnRetriever
}

type KnnSearch ¶

type KnnSearch struct {
	// Boost Boost value to apply to kNN scores
	Boost *float32 `json:"boost,omitempty"`
	// Field The name of the vector field to search against
	Field string `json:"field"`
	// Filter Filters for the kNN search query
	Filter []Query `json:"filter,omitempty"`
	// InnerHits If defined, each search hit will contain inner hits.
	InnerHits *InnerHits `json:"inner_hits,omitempty"`
	// K The final number of nearest neighbors to return as top hits
	K *int `json:"k,omitempty"`
	// NumCandidates The number of nearest neighbor candidates to consider per shard
	NumCandidates *int `json:"num_candidates,omitempty"`
	// QueryVector The query vector
	QueryVector []float32 `json:"query_vector,omitempty"`
	// QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or
	// query_vector, but not both.
	QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"`
	// RescoreVector Apply oversampling and rescoring to quantized vectors
	RescoreVector *RescoreVector `json:"rescore_vector,omitempty"`
	// Similarity The minimum similarity for a vector to be considered a match
	Similarity *float32 `json:"similarity,omitempty"`
}

KnnSearch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Knn.ts#L35-L62

func NewKnnSearch ¶

func NewKnnSearch() *KnnSearch

NewKnnSearch returns a KnnSearch.

func (*KnnSearch) KnnSearchCaster ¶

func (s *KnnSearch) KnnSearchCaster() *KnnSearch

func (*KnnSearch) UnmarshalJSON ¶

func (s *KnnSearch) UnmarshalJSON(data []byte) error

type KnnSearchVariant ¶

type KnnSearchVariant interface {
	KnnSearchCaster() *KnnSearch
}

type KuromojiAnalyzer ¶

type KuromojiAnalyzer struct {
	Mode           kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"`
	Type           string                                            `json:"type,omitempty"`
	UserDictionary *string                                           `json:"user_dictionary,omitempty"`
}

KuromojiAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L26-L30

func NewKuromojiAnalyzer ¶

func NewKuromojiAnalyzer() *KuromojiAnalyzer

NewKuromojiAnalyzer returns a KuromojiAnalyzer.

func (*KuromojiAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *KuromojiAnalyzer) AnalyzerCaster() *Analyzer

func (*KuromojiAnalyzer) KuromojiAnalyzerCaster ¶

func (s *KuromojiAnalyzer) KuromojiAnalyzerCaster() *KuromojiAnalyzer

func (KuromojiAnalyzer) MarshalJSON ¶

func (s KuromojiAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiAnalyzer) UnmarshalJSON ¶

func (s *KuromojiAnalyzer) UnmarshalJSON(data []byte) error

type KuromojiAnalyzerVariant ¶

type KuromojiAnalyzerVariant interface {
	KuromojiAnalyzerCaster() *KuromojiAnalyzer
}

type KuromojiIterationMarkCharFilter ¶

type KuromojiIterationMarkCharFilter struct {
	NormalizeKana  bool    `json:"normalize_kana"`
	NormalizeKanji bool    `json:"normalize_kanji"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

KuromojiIterationMarkCharFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L37-L41

func NewKuromojiIterationMarkCharFilter ¶

func NewKuromojiIterationMarkCharFilter() *KuromojiIterationMarkCharFilter

NewKuromojiIterationMarkCharFilter returns a KuromojiIterationMarkCharFilter.

func (*KuromojiIterationMarkCharFilter) CharFilterDefinitionCaster ¶ added in v9.0.1

func (s *KuromojiIterationMarkCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition

func (*KuromojiIterationMarkCharFilter) KuromojiIterationMarkCharFilterCaster ¶

func (s *KuromojiIterationMarkCharFilter) KuromojiIterationMarkCharFilterCaster() *KuromojiIterationMarkCharFilter

func (KuromojiIterationMarkCharFilter) MarshalJSON ¶

func (s KuromojiIterationMarkCharFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiIterationMarkCharFilter) UnmarshalJSON ¶

func (s *KuromojiIterationMarkCharFilter) UnmarshalJSON(data []byte) error

type KuromojiIterationMarkCharFilterVariant ¶

type KuromojiIterationMarkCharFilterVariant interface {
	KuromojiIterationMarkCharFilterCaster() *KuromojiIterationMarkCharFilter
}

type KuromojiPartOfSpeechTokenFilter ¶

type KuromojiPartOfSpeechTokenFilter struct {
	Stoptags []string `json:"stoptags"`
	Type     string   `json:"type,omitempty"`
	Version  *string  `json:"version,omitempty"`
}

KuromojiPartOfSpeechTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L43-L46

func NewKuromojiPartOfSpeechTokenFilter ¶

func NewKuromojiPartOfSpeechTokenFilter() *KuromojiPartOfSpeechTokenFilter

NewKuromojiPartOfSpeechTokenFilter returns a KuromojiPartOfSpeechTokenFilter.

func (*KuromojiPartOfSpeechTokenFilter) KuromojiPartOfSpeechTokenFilterCaster ¶

func (s *KuromojiPartOfSpeechTokenFilter) KuromojiPartOfSpeechTokenFilterCaster() *KuromojiPartOfSpeechTokenFilter

func (KuromojiPartOfSpeechTokenFilter) MarshalJSON ¶

func (s KuromojiPartOfSpeechTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiPartOfSpeechTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KuromojiPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KuromojiPartOfSpeechTokenFilter) UnmarshalJSON ¶

func (s *KuromojiPartOfSpeechTokenFilter) UnmarshalJSON(data []byte) error

type KuromojiPartOfSpeechTokenFilterVariant ¶

type KuromojiPartOfSpeechTokenFilterVariant interface {
	KuromojiPartOfSpeechTokenFilterCaster() *KuromojiPartOfSpeechTokenFilter
}

type KuromojiReadingFormTokenFilter ¶

type KuromojiReadingFormTokenFilter struct {
	Type      string  `json:"type,omitempty"`
	UseRomaji bool    `json:"use_romaji"`
	Version   *string `json:"version,omitempty"`
}

KuromojiReadingFormTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L48-L51

func NewKuromojiReadingFormTokenFilter ¶

func NewKuromojiReadingFormTokenFilter() *KuromojiReadingFormTokenFilter

NewKuromojiReadingFormTokenFilter returns a KuromojiReadingFormTokenFilter.

func (*KuromojiReadingFormTokenFilter) KuromojiReadingFormTokenFilterCaster ¶

func (s *KuromojiReadingFormTokenFilter) KuromojiReadingFormTokenFilterCaster() *KuromojiReadingFormTokenFilter

func (KuromojiReadingFormTokenFilter) MarshalJSON ¶

func (s KuromojiReadingFormTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiReadingFormTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KuromojiReadingFormTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KuromojiReadingFormTokenFilter) UnmarshalJSON ¶

func (s *KuromojiReadingFormTokenFilter) UnmarshalJSON(data []byte) error

type KuromojiReadingFormTokenFilterVariant ¶

type KuromojiReadingFormTokenFilterVariant interface {
	KuromojiReadingFormTokenFilterCaster() *KuromojiReadingFormTokenFilter
}

type KuromojiStemmerTokenFilter ¶

type KuromojiStemmerTokenFilter struct {
	MinimumLength int     `json:"minimum_length"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

KuromojiStemmerTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L53-L56

func NewKuromojiStemmerTokenFilter ¶

func NewKuromojiStemmerTokenFilter() *KuromojiStemmerTokenFilter

NewKuromojiStemmerTokenFilter returns a KuromojiStemmerTokenFilter.

func (*KuromojiStemmerTokenFilter) KuromojiStemmerTokenFilterCaster ¶

func (s *KuromojiStemmerTokenFilter) KuromojiStemmerTokenFilterCaster() *KuromojiStemmerTokenFilter

func (KuromojiStemmerTokenFilter) MarshalJSON ¶

func (s KuromojiStemmerTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiStemmerTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *KuromojiStemmerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*KuromojiStemmerTokenFilter) UnmarshalJSON ¶

func (s *KuromojiStemmerTokenFilter) UnmarshalJSON(data []byte) error

type KuromojiStemmerTokenFilterVariant ¶

type KuromojiStemmerTokenFilterVariant interface {
	KuromojiStemmerTokenFilterCaster() *KuromojiStemmerTokenFilter
}

type KuromojiTokenizer ¶

type KuromojiTokenizer struct {
	DiscardCompoundToken *bool                                             `json:"discard_compound_token,omitempty"`
	DiscardPunctuation   *bool                                             `json:"discard_punctuation,omitempty"`
	Mode                 kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"`
	NbestCost            *int                                              `json:"nbest_cost,omitempty"`
	NbestExamples        *string                                           `json:"nbest_examples,omitempty"`
	Type                 string                                            `json:"type,omitempty"`
	UserDictionary       *string                                           `json:"user_dictionary,omitempty"`
	UserDictionaryRules  []string                                          `json:"user_dictionary_rules,omitempty"`
	Version              *string                                           `json:"version,omitempty"`
}

KuromojiTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/kuromoji-plugin.ts#L64-L73

func NewKuromojiTokenizer ¶

func NewKuromojiTokenizer() *KuromojiTokenizer

NewKuromojiTokenizer returns a KuromojiTokenizer.

func (*KuromojiTokenizer) KuromojiTokenizerCaster ¶

func (s *KuromojiTokenizer) KuromojiTokenizerCaster() *KuromojiTokenizer

func (KuromojiTokenizer) MarshalJSON ¶

func (s KuromojiTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*KuromojiTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *KuromojiTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*KuromojiTokenizer) UnmarshalJSON ¶

func (s *KuromojiTokenizer) UnmarshalJSON(data []byte) error

type KuromojiTokenizerVariant ¶

type KuromojiTokenizerVariant interface {
	KuromojiTokenizerCaster() *KuromojiTokenizer
}

type LanguageContext ¶

type LanguageContext struct {
	Contexts []string                      `json:"contexts"`
	Language scriptlanguage.ScriptLanguage `json:"language"`
}

LanguageContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/get_script_languages/types.ts#L22-L25

func NewLanguageContext ¶

func NewLanguageContext() *LanguageContext

NewLanguageContext returns a LanguageContext.

type LaplaceSmoothingModel ¶

type LaplaceSmoothingModel struct {
	// Alpha A constant that is added to all counts to balance weights.
	Alpha Float64 `json:"alpha"`
}

LaplaceSmoothingModel type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L431-L436

func NewLaplaceSmoothingModel ¶

func NewLaplaceSmoothingModel() *LaplaceSmoothingModel

NewLaplaceSmoothingModel returns a LaplaceSmoothingModel.

func (*LaplaceSmoothingModel) LaplaceSmoothingModelCaster ¶

func (s *LaplaceSmoothingModel) LaplaceSmoothingModelCaster() *LaplaceSmoothingModel

func (*LaplaceSmoothingModel) UnmarshalJSON ¶

func (s *LaplaceSmoothingModel) UnmarshalJSON(data []byte) error

type LaplaceSmoothingModelVariant ¶

type LaplaceSmoothingModelVariant interface {
	LaplaceSmoothingModelCaster() *LaplaceSmoothingModel
}

type LatLonGeoLocation ¶

type LatLonGeoLocation struct {
	// Lat Latitude
	Lat Float64 `json:"lat"`
	// Lon Longitude
	Lon Float64 `json:"lon"`
}

LatLonGeoLocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L120-L129

func NewLatLonGeoLocation ¶

func NewLatLonGeoLocation() *LatLonGeoLocation

NewLatLonGeoLocation returns a LatLonGeoLocation.

func (*LatLonGeoLocation) GeoLocationCaster ¶ added in v9.0.1

func (s *LatLonGeoLocation) GeoLocationCaster() *GeoLocation

func (*LatLonGeoLocation) LatLonGeoLocationCaster ¶

func (s *LatLonGeoLocation) LatLonGeoLocationCaster() *LatLonGeoLocation

func (*LatLonGeoLocation) UnmarshalJSON ¶

func (s *LatLonGeoLocation) UnmarshalJSON(data []byte) error

type LatLonGeoLocationVariant ¶

type LatLonGeoLocationVariant interface {
	LatLonGeoLocationCaster() *LatLonGeoLocation
}

type Latest ¶

type Latest struct {
	// Sort Specifies the date field that is used to identify the latest documents.
	Sort string `json:"sort"`
	// UniqueKey Specifies an array of one or more fields that are used to group the data.
	UniqueKey []string `json:"unique_key"`
}

Latest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L47-L52

func NewLatest ¶

func NewLatest() *Latest

NewLatest returns a Latest.

func (*Latest) LatestCaster ¶

func (s *Latest) LatestCaster() *Latest

func (*Latest) UnmarshalJSON ¶

func (s *Latest) UnmarshalJSON(data []byte) error

type LatestVariant ¶

type LatestVariant interface {
	LatestCaster() *Latest
}

type LatvianAnalyzer ¶

type LatvianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

LatvianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L234-L239

func NewLatvianAnalyzer ¶

func NewLatvianAnalyzer() *LatvianAnalyzer

NewLatvianAnalyzer returns a LatvianAnalyzer.

func (*LatvianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *LatvianAnalyzer) AnalyzerCaster() *Analyzer

func (*LatvianAnalyzer) LatvianAnalyzerCaster ¶

func (s *LatvianAnalyzer) LatvianAnalyzerCaster() *LatvianAnalyzer

func (LatvianAnalyzer) MarshalJSON ¶

func (s LatvianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LatvianAnalyzer) UnmarshalJSON ¶

func (s *LatvianAnalyzer) UnmarshalJSON(data []byte) error

type LatvianAnalyzerVariant ¶

type LatvianAnalyzerVariant interface {
	LatvianAnalyzerCaster() *LatvianAnalyzer
}

type LearningToRank ¶

type LearningToRank struct {
	// ModelId The unique identifier of the trained model uploaded to Elasticsearch
	ModelId string `json:"model_id"`
	// Params Named parameters to be passed to the query templates used for feature
	Params map[string]json.RawMessage `json:"params,omitempty"`
}

LearningToRank type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/rescoring.ts#L88-L97

func NewLearningToRank ¶

func NewLearningToRank() *LearningToRank

NewLearningToRank returns a LearningToRank.

func (*LearningToRank) LearningToRankCaster ¶

func (s *LearningToRank) LearningToRankCaster() *LearningToRank

func (*LearningToRank) UnmarshalJSON ¶

func (s *LearningToRank) UnmarshalJSON(data []byte) error

type LearningToRankConfig ¶

type LearningToRankConfig struct {
	DefaultParams                 map[string]json.RawMessage         `json:"default_params,omitempty"`
	FeatureExtractors             []map[string]QueryFeatureExtractor `json:"feature_extractors,omitempty"`
	NumTopFeatureImportanceValues int                                `json:"num_top_feature_importance_values"`
}

LearningToRankConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L87-L91

func NewLearningToRankConfig ¶

func NewLearningToRankConfig() *LearningToRankConfig

NewLearningToRankConfig returns a LearningToRankConfig.

func (*LearningToRankConfig) LearningToRankConfigCaster ¶

func (s *LearningToRankConfig) LearningToRankConfigCaster() *LearningToRankConfig

func (*LearningToRankConfig) UnmarshalJSON ¶

func (s *LearningToRankConfig) UnmarshalJSON(data []byte) error

type LearningToRankConfigVariant ¶

type LearningToRankConfigVariant interface {
	LearningToRankConfigCaster() *LearningToRankConfig
}

type LearningToRankVariant ¶

type LearningToRankVariant interface {
	LearningToRankCaster() *LearningToRank
}

type LengthTokenFilter ¶

type LengthTokenFilter struct {
	// Max Maximum character length of a token. Longer tokens are excluded from the
	// output. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`.
	Max *int `json:"max,omitempty"`
	// Min Minimum character length of a token. Shorter tokens are excluded from the
	// output. Defaults to `0`.
	Min     *int    `json:"min,omitempty"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

LengthTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L328-L334

func NewLengthTokenFilter ¶

func NewLengthTokenFilter() *LengthTokenFilter

NewLengthTokenFilter returns a LengthTokenFilter.

func (*LengthTokenFilter) LengthTokenFilterCaster ¶

func (s *LengthTokenFilter) LengthTokenFilterCaster() *LengthTokenFilter

func (LengthTokenFilter) MarshalJSON ¶

func (s LengthTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LengthTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *LengthTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*LengthTokenFilter) UnmarshalJSON ¶

func (s *LengthTokenFilter) UnmarshalJSON(data []byte) error

type LengthTokenFilterVariant ¶

type LengthTokenFilterVariant interface {
	LengthTokenFilterCaster() *LengthTokenFilter
}

type LessThanValidation ¶

type LessThanValidation struct {
	Constraint Float64 `json:"constraint"`
	Type       string  `json:"type,omitempty"`
}

LessThanValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L58-L61

func NewLessThanValidation ¶

func NewLessThanValidation() *LessThanValidation

NewLessThanValidation returns a LessThanValidation.

func (*LessThanValidation) LessThanValidationCaster ¶

func (s *LessThanValidation) LessThanValidationCaster() *LessThanValidation

func (LessThanValidation) MarshalJSON ¶

func (s LessThanValidation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LessThanValidation) UnmarshalJSON ¶

func (s *LessThanValidation) UnmarshalJSON(data []byte) error

func (*LessThanValidation) ValidationCaster ¶ added in v9.0.1

func (s *LessThanValidation) ValidationCaster() *Validation

type LessThanValidationVariant ¶

type LessThanValidationVariant interface {
	LessThanValidationCaster() *LessThanValidation
}

type LetterTokenizer ¶

type LetterTokenizer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

LetterTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L77-L79

func NewLetterTokenizer ¶

func NewLetterTokenizer() *LetterTokenizer

NewLetterTokenizer returns a LetterTokenizer.

func (*LetterTokenizer) LetterTokenizerCaster ¶

func (s *LetterTokenizer) LetterTokenizerCaster() *LetterTokenizer

func (LetterTokenizer) MarshalJSON ¶

func (s LetterTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LetterTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *LetterTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*LetterTokenizer) UnmarshalJSON ¶

func (s *LetterTokenizer) UnmarshalJSON(data []byte) error

type LetterTokenizerVariant ¶

type LetterTokenizerVariant interface {
	LetterTokenizerCaster() *LetterTokenizer
}

type License ¶

type License struct {
	ExpiryDateInMillis int64                   `json:"expiry_date_in_millis"`
	IssueDateInMillis  int64                   `json:"issue_date_in_millis"`
	IssuedTo           string                  `json:"issued_to"`
	Issuer             string                  `json:"issuer"`
	MaxNodes           *int64                  `json:"max_nodes,omitempty"`
	MaxResourceUnits   *int64                  `json:"max_resource_units,omitempty"`
	Signature          string                  `json:"signature"`
	StartDateInMillis  *int64                  `json:"start_date_in_millis,omitempty"`
	Type               licensetype.LicenseType `json:"type"`
	Uid                string                  `json:"uid"`
}

License type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/license/_types/License.ts#L42-L53

func NewLicense ¶

func NewLicense() *License

NewLicense returns a License.

func (*License) LicenseCaster ¶

func (s *License) LicenseCaster() *License

func (*License) UnmarshalJSON ¶

func (s *License) UnmarshalJSON(data []byte) error

type LicenseInformation ¶

type LicenseInformation struct {
	ExpiryDate         DateTime                    `json:"expiry_date,omitempty"`
	ExpiryDateInMillis *int64                      `json:"expiry_date_in_millis,omitempty"`
	IssueDate          DateTime                    `json:"issue_date"`
	IssueDateInMillis  int64                       `json:"issue_date_in_millis"`
	IssuedTo           string                      `json:"issued_to"`
	Issuer             string                      `json:"issuer"`
	MaxNodes           *int64                      `json:"max_nodes,omitempty"`
	MaxResourceUnits   *int                        `json:"max_resource_units,omitempty"`
	StartDateInMillis  int64                       `json:"start_date_in_millis"`
	Status             licensestatus.LicenseStatus `json:"status"`
	Type               licensetype.LicenseType     `json:"type"`
	Uid                string                      `json:"uid"`
}

LicenseInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/license/get/types.ts#L25-L38

func NewLicenseInformation ¶

func NewLicenseInformation() *LicenseInformation

NewLicenseInformation returns a LicenseInformation.

func (*LicenseInformation) UnmarshalJSON ¶

func (s *LicenseInformation) UnmarshalJSON(data []byte) error

type LicenseVariant ¶

type LicenseVariant interface {
	LicenseCaster() *License
}

type Lifecycle ¶

type Lifecycle struct {
	ModifiedDate DateTime  `json:"modified_date"`
	Policy       IlmPolicy `json:"policy"`
	Version      int64     `json:"version"`
}

Lifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/get_lifecycle/types.ts#L24-L28

func NewLifecycle ¶

func NewLifecycle() *Lifecycle

NewLifecycle returns a Lifecycle.

func (*Lifecycle) UnmarshalJSON ¶

func (s *Lifecycle) UnmarshalJSON(data []byte) error

type LifecycleExplain ¶

type LifecycleExplain any

LifecycleExplain holds the union for the following types:

LifecycleExplainManaged
LifecycleExplainUnmanaged

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/explain_lifecycle/types.ts#L65-L68

type LifecycleExplainManaged ¶

type LifecycleExplainManaged struct {
	Action                  *string                         `json:"action,omitempty"`
	ActionTime              DateTime                        `json:"action_time,omitempty"`
	ActionTimeMillis        *int64                          `json:"action_time_millis,omitempty"`
	Age                     Duration                        `json:"age,omitempty"`
	FailedStep              *string                         `json:"failed_step,omitempty"`
	FailedStepRetryCount    *int                            `json:"failed_step_retry_count,omitempty"`
	Index                   string                          `json:"index"`
	IndexCreationDate       DateTime                        `json:"index_creation_date,omitempty"`
	IndexCreationDateMillis *int64                          `json:"index_creation_date_millis,omitempty"`
	IsAutoRetryableError    *bool                           `json:"is_auto_retryable_error,omitempty"`
	LifecycleDate           DateTime                        `json:"lifecycle_date,omitempty"`
	LifecycleDateMillis     *int64                          `json:"lifecycle_date_millis,omitempty"`
	Managed                 bool                            `json:"managed,omitempty"`
	Phase                   *string                         `json:"phase,omitempty"`
	PhaseExecution          *LifecycleExplainPhaseExecution `json:"phase_execution,omitempty"`
	PhaseTime               DateTime                        `json:"phase_time,omitempty"`
	PhaseTimeMillis         *int64                          `json:"phase_time_millis,omitempty"`
	Policy                  *string                         `json:"policy,omitempty"`
	PreviousStepInfo        map[string]json.RawMessage      `json:"previous_step_info,omitempty"`
	RepositoryName          *string                         `json:"repository_name,omitempty"`
	ShrinkIndexName         *string                         `json:"shrink_index_name,omitempty"`
	Skip                    bool                            `json:"skip"`
	SnapshotName            *string                         `json:"snapshot_name,omitempty"`
	Step                    *string                         `json:"step,omitempty"`
	StepInfo                map[string]json.RawMessage      `json:"step_info,omitempty"`
	StepTime                DateTime                        `json:"step_time,omitempty"`
	StepTimeMillis          *int64                          `json:"step_time_millis,omitempty"`
	TimeSinceIndexCreation  Duration                        `json:"time_since_index_creation,omitempty"`
}

LifecycleExplainManaged type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/explain_lifecycle/types.ts#L27-L58

func NewLifecycleExplainManaged ¶

func NewLifecycleExplainManaged() *LifecycleExplainManaged

NewLifecycleExplainManaged returns a LifecycleExplainManaged.

func (LifecycleExplainManaged) MarshalJSON ¶

func (s LifecycleExplainManaged) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LifecycleExplainManaged) UnmarshalJSON ¶

func (s *LifecycleExplainManaged) UnmarshalJSON(data []byte) error

type LifecycleExplainPhaseExecution ¶

type LifecycleExplainPhaseExecution struct {
	ModifiedDateInMillis int64  `json:"modified_date_in_millis"`
	PhaseDefinition      *Phase `json:"phase_definition,omitempty"`
	Policy               string `json:"policy"`
	Version              int64  `json:"version"`
}

LifecycleExplainPhaseExecution type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/explain_lifecycle/types.ts#L70-L75

func NewLifecycleExplainPhaseExecution ¶

func NewLifecycleExplainPhaseExecution() *LifecycleExplainPhaseExecution

NewLifecycleExplainPhaseExecution returns a LifecycleExplainPhaseExecution.

func (*LifecycleExplainPhaseExecution) UnmarshalJSON ¶

func (s *LifecycleExplainPhaseExecution) UnmarshalJSON(data []byte) error

type LifecycleExplainUnmanaged ¶

type LifecycleExplainUnmanaged struct {
	Index   string `json:"index"`
	Managed bool   `json:"managed,omitempty"`
}

LifecycleExplainUnmanaged type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/explain_lifecycle/types.ts#L60-L63

func NewLifecycleExplainUnmanaged ¶

func NewLifecycleExplainUnmanaged() *LifecycleExplainUnmanaged

NewLifecycleExplainUnmanaged returns a LifecycleExplainUnmanaged.

func (LifecycleExplainUnmanaged) MarshalJSON ¶

func (s LifecycleExplainUnmanaged) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LifecycleExplainUnmanaged) UnmarshalJSON ¶

func (s *LifecycleExplainUnmanaged) UnmarshalJSON(data []byte) error

type LikeDocument ¶

type LikeDocument struct {
	// Doc A document not present in the index.
	Doc    json.RawMessage `json:"doc,omitempty"`
	Fields []string        `json:"fields,omitempty"`
	// Id_ ID of a document.
	Id_ *string `json:"_id,omitempty"`
	// Index_ Index of a document.
	Index_ *string `json:"_index,omitempty"`
	// PerFieldAnalyzer Overrides the default analyzer.
	PerFieldAnalyzer map[string]string        `json:"per_field_analyzer,omitempty"`
	Routing          *string                  `json:"routing,omitempty"`
	Version          *int64                   `json:"version,omitempty"`
	VersionType      *versiontype.VersionType `json:"version_type,omitempty"`
}

LikeDocument type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L174-L196

func NewLikeDocument ¶

func NewLikeDocument() *LikeDocument

NewLikeDocument returns a LikeDocument.

func (*LikeDocument) LikeCaster ¶ added in v9.0.1

func (s *LikeDocument) LikeCaster() *Like

func (*LikeDocument) LikeDocumentCaster ¶

func (s *LikeDocument) LikeDocumentCaster() *LikeDocument

func (*LikeDocument) UnmarshalJSON ¶

func (s *LikeDocument) UnmarshalJSON(data []byte) error

type LikeDocumentVariant ¶

type LikeDocumentVariant interface {
	LikeDocumentCaster() *LikeDocument
}

type LikeVariant ¶

type LikeVariant interface {
	LikeCaster() *Like
}

type LimitTokenCountTokenFilter ¶

type LimitTokenCountTokenFilter struct {
	// ConsumeAllTokens If `true`, the limit filter exhausts the token stream, even if the
	// `max_token_count` has already been reached. Defaults to `false`.
	ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"`
	// MaxTokenCount Maximum number of tokens to keep. Once this limit is reached, any remaining
	// tokens are excluded from the output. Defaults to `1`.
	MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"`
	Type          string             `json:"type,omitempty"`
	Version       *string            `json:"version,omitempty"`
}

LimitTokenCountTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L336-L342

func NewLimitTokenCountTokenFilter ¶

func NewLimitTokenCountTokenFilter() *LimitTokenCountTokenFilter

NewLimitTokenCountTokenFilter returns a LimitTokenCountTokenFilter.

func (*LimitTokenCountTokenFilter) LimitTokenCountTokenFilterCaster ¶

func (s *LimitTokenCountTokenFilter) LimitTokenCountTokenFilterCaster() *LimitTokenCountTokenFilter

func (LimitTokenCountTokenFilter) MarshalJSON ¶

func (s LimitTokenCountTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LimitTokenCountTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *LimitTokenCountTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*LimitTokenCountTokenFilter) UnmarshalJSON ¶

func (s *LimitTokenCountTokenFilter) UnmarshalJSON(data []byte) error

type LimitTokenCountTokenFilterVariant ¶

type LimitTokenCountTokenFilterVariant interface {
	LimitTokenCountTokenFilterCaster() *LimitTokenCountTokenFilter
}

type Limits ¶

type Limits struct {
	EffectiveMaxModelMemoryLimit ByteSize `json:"effective_max_model_memory_limit,omitempty"`
	MaxModelMemoryLimit          ByteSize `json:"max_model_memory_limit,omitempty"`
	MaxSingleMlNodeProcessors    *int     `json:"max_single_ml_node_processors,omitempty"`
	TotalMlMemory                ByteSize `json:"total_ml_memory"`
	TotalMlProcessors            *int     `json:"total_ml_processors,omitempty"`
}

Limits type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/info/types.ts#L34-L40

func NewLimits ¶

func NewLimits() *Limits

NewLimits returns a Limits.

func (*Limits) UnmarshalJSON ¶

func (s *Limits) UnmarshalJSON(data []byte) error

type LinearInterpolationSmoothingModel ¶

type LinearInterpolationSmoothingModel struct {
	BigramLambda  Float64 `json:"bigram_lambda"`
	TrigramLambda Float64 `json:"trigram_lambda"`
	UnigramLambda Float64 `json:"unigram_lambda"`
}

LinearInterpolationSmoothingModel type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L438-L442

func NewLinearInterpolationSmoothingModel ¶

func NewLinearInterpolationSmoothingModel() *LinearInterpolationSmoothingModel

NewLinearInterpolationSmoothingModel returns a LinearInterpolationSmoothingModel.

func (*LinearInterpolationSmoothingModel) LinearInterpolationSmoothingModelCaster ¶

func (s *LinearInterpolationSmoothingModel) LinearInterpolationSmoothingModelCaster() *LinearInterpolationSmoothingModel

func (*LinearInterpolationSmoothingModel) UnmarshalJSON ¶

func (s *LinearInterpolationSmoothingModel) UnmarshalJSON(data []byte) error

type LinearInterpolationSmoothingModelVariant ¶

type LinearInterpolationSmoothingModelVariant interface {
	LinearInterpolationSmoothingModelCaster() *LinearInterpolationSmoothingModel
}

type LinearMovingAverageAggregation ¶

type LinearMovingAverageAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	Minimize  *bool                `json:"minimize,omitempty"`
	Model     string               `json:"model,omitempty"`
	Predict   *int                 `json:"predict,omitempty"`
	Settings  EmptyObject          `json:"settings"`
	Window    *int                 `json:"window,omitempty"`
}

LinearMovingAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L268-L271

func NewLinearMovingAverageAggregation ¶

func NewLinearMovingAverageAggregation() *LinearMovingAverageAggregation

NewLinearMovingAverageAggregation returns a LinearMovingAverageAggregation.

func (*LinearMovingAverageAggregation) LinearMovingAverageAggregationCaster ¶

func (s *LinearMovingAverageAggregation) LinearMovingAverageAggregationCaster() *LinearMovingAverageAggregation

func (LinearMovingAverageAggregation) MarshalJSON ¶

func (s LinearMovingAverageAggregation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LinearMovingAverageAggregation) MovingAverageAggregationCaster ¶ added in v9.0.1

func (s *LinearMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation

func (*LinearMovingAverageAggregation) UnmarshalJSON ¶

func (s *LinearMovingAverageAggregation) UnmarshalJSON(data []byte) error

type LinearMovingAverageAggregationVariant ¶

type LinearMovingAverageAggregationVariant interface {
	LinearMovingAverageAggregationCaster() *LinearMovingAverageAggregation
}

type LinearRetriever ¶ added in v9.0.1

type LinearRetriever struct {
	Fields []string `json:"fields,omitempty"`
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_          *string                          `json:"_name,omitempty"`
	Normalizer     *scorenormalizer.ScoreNormalizer `json:"normalizer,omitempty"`
	Query          *string                          `json:"query,omitempty"`
	RankWindowSize *int                             `json:"rank_window_size,omitempty"`
	// Retrievers Inner retrievers.
	Retrievers []InnerRetriever `json:"retrievers,omitempty"`
}

LinearRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L68-L75

func NewLinearRetriever ¶ added in v9.0.1

func NewLinearRetriever() *LinearRetriever

NewLinearRetriever returns a LinearRetriever.

func (*LinearRetriever) LinearRetrieverCaster ¶ added in v9.0.1

func (s *LinearRetriever) LinearRetrieverCaster() *LinearRetriever

func (*LinearRetriever) UnmarshalJSON ¶ added in v9.0.1

func (s *LinearRetriever) UnmarshalJSON(data []byte) error

type LinearRetrieverVariant ¶ added in v9.0.1

type LinearRetrieverVariant interface {
	LinearRetrieverCaster() *LinearRetriever
}

type ListTypeValidation ¶

type ListTypeValidation struct {
	Constraint string `json:"constraint"`
	Type       string `json:"type,omitempty"`
}

ListTypeValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L68-L71

func NewListTypeValidation ¶

func NewListTypeValidation() *ListTypeValidation

NewListTypeValidation returns a ListTypeValidation.

func (*ListTypeValidation) ListTypeValidationCaster ¶

func (s *ListTypeValidation) ListTypeValidationCaster() *ListTypeValidation

func (ListTypeValidation) MarshalJSON ¶

func (s ListTypeValidation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ListTypeValidation) UnmarshalJSON ¶

func (s *ListTypeValidation) UnmarshalJSON(data []byte) error

func (*ListTypeValidation) ValidationCaster ¶ added in v9.0.1

func (s *ListTypeValidation) ValidationCaster() *Validation

type ListTypeValidationVariant ¶

type ListTypeValidationVariant interface {
	ListTypeValidationCaster() *ListTypeValidation
}

type LithuanianAnalyzer ¶

type LithuanianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

LithuanianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L241-L246

func NewLithuanianAnalyzer ¶

func NewLithuanianAnalyzer() *LithuanianAnalyzer

NewLithuanianAnalyzer returns a LithuanianAnalyzer.

func (*LithuanianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *LithuanianAnalyzer) AnalyzerCaster() *Analyzer

func (*LithuanianAnalyzer) LithuanianAnalyzerCaster ¶

func (s *LithuanianAnalyzer) LithuanianAnalyzerCaster() *LithuanianAnalyzer

func (LithuanianAnalyzer) MarshalJSON ¶

func (s LithuanianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LithuanianAnalyzer) UnmarshalJSON ¶

func (s *LithuanianAnalyzer) UnmarshalJSON(data []byte) error

type LithuanianAnalyzerVariant ¶

type LithuanianAnalyzerVariant interface {
	LithuanianAnalyzerCaster() *LithuanianAnalyzer
}

type Local ¶

type Local struct {
	Type string `json:"type"`
}

Local type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Database.ts#L63-L65

func NewLocal ¶

func NewLocal() *Local

NewLocal returns a Local.

func (*Local) UnmarshalJSON ¶

func (s *Local) UnmarshalJSON(data []byte) error

type LoggingAction ¶

type LoggingAction struct {
	Category *string `json:"category,omitempty"`
	Level    *string `json:"level,omitempty"`
	Text     string  `json:"text"`
}

LoggingAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L281-L285

func NewLoggingAction ¶

func NewLoggingAction() *LoggingAction

NewLoggingAction returns a LoggingAction.

func (*LoggingAction) LoggingActionCaster ¶

func (s *LoggingAction) LoggingActionCaster() *LoggingAction

func (*LoggingAction) UnmarshalJSON ¶

func (s *LoggingAction) UnmarshalJSON(data []byte) error

type LoggingActionVariant ¶

type LoggingActionVariant interface {
	LoggingActionCaster() *LoggingAction
}

type LoggingResult ¶

type LoggingResult struct {
	LoggedText string `json:"logged_text"`
}

LoggingResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L287-L289

func NewLoggingResult ¶

func NewLoggingResult() *LoggingResult

NewLoggingResult returns a LoggingResult.

func (*LoggingResult) UnmarshalJSON ¶

func (s *LoggingResult) UnmarshalJSON(data []byte) error

type LogstashPipeline ¶

type LogstashPipeline struct {
	// Description A description of the pipeline.
	// This description is not used by Elasticsearch or Logstash.
	Description string `json:"description"`
	// LastModified The date the pipeline was last updated.
	// It must be in the `yyyy-MM-dd'T'HH:mm:ss.SSSZZ` strict_date_time format.
	LastModified DateTime `json:"last_modified"`
	// Pipeline The configuration for the pipeline.
	Pipeline string `json:"pipeline"`
	// PipelineMetadata Optional metadata about the pipeline, which can have any contents.
	// This metadata is not generated or used by Elasticsearch or Logstash.
	PipelineMetadata PipelineMetadata `json:"pipeline_metadata"`
	// PipelineSettings Settings for the pipeline.
	// It supports only flat keys in dot notation.
	PipelineSettings PipelineSettings `json:"pipeline_settings"`
	// Username The user who last updated the pipeline.
	Username string `json:"username"`
}

LogstashPipeline type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/logstash/_types/Pipeline.ts#L56-L87

func NewLogstashPipeline ¶

func NewLogstashPipeline() *LogstashPipeline

NewLogstashPipeline returns a LogstashPipeline.

func (*LogstashPipeline) LogstashPipelineCaster ¶

func (s *LogstashPipeline) LogstashPipelineCaster() *LogstashPipeline

func (*LogstashPipeline) UnmarshalJSON ¶

func (s *LogstashPipeline) UnmarshalJSON(data []byte) error

type LogstashPipelineVariant ¶

type LogstashPipelineVariant interface {
	LogstashPipelineCaster() *LogstashPipeline
}

type LongNumberProperty ¶

type LongNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *int64                                           `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

LongNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L177-L180

func NewLongNumberProperty ¶

func NewLongNumberProperty() *LongNumberProperty

NewLongNumberProperty returns a LongNumberProperty.

func (*LongNumberProperty) LongNumberPropertyCaster ¶

func (s *LongNumberProperty) LongNumberPropertyCaster() *LongNumberProperty

func (LongNumberProperty) MarshalJSON ¶

func (s LongNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LongNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *LongNumberProperty) PropertyCaster() *Property

func (*LongNumberProperty) UnmarshalJSON ¶

func (s *LongNumberProperty) UnmarshalJSON(data []byte) error

type LongNumberPropertyVariant ¶

type LongNumberPropertyVariant interface {
	LongNumberPropertyCaster() *LongNumberProperty
}

type LongRangeProperty ¶

type LongRangeProperty struct {
	Boost       *Float64                       `json:"boost,omitempty"`
	Coerce      *bool                          `json:"coerce,omitempty"`
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	Index       *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

LongRangeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/range.ts#L50-L52

func NewLongRangeProperty ¶

func NewLongRangeProperty() *LongRangeProperty

NewLongRangeProperty returns a LongRangeProperty.

func (*LongRangeProperty) LongRangePropertyCaster ¶

func (s *LongRangeProperty) LongRangePropertyCaster() *LongRangeProperty

func (LongRangeProperty) MarshalJSON ¶

func (s LongRangeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LongRangeProperty) PropertyCaster ¶ added in v9.0.1

func (s *LongRangeProperty) PropertyCaster() *Property

func (*LongRangeProperty) UnmarshalJSON ¶

func (s *LongRangeProperty) UnmarshalJSON(data []byte) error

type LongRangePropertyVariant ¶

type LongRangePropertyVariant interface {
	LongRangePropertyCaster() *LongRangeProperty
}

type LongRareTermsAggregate ¶

type LongRareTermsAggregate struct {
	Buckets BucketsLongRareTermsBucket `json:"buckets"`
	Meta    Metadata                   `json:"meta,omitempty"`
}

LongRareTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L471-L476

func NewLongRareTermsAggregate ¶

func NewLongRareTermsAggregate() *LongRareTermsAggregate

NewLongRareTermsAggregate returns a LongRareTermsAggregate.

func (*LongRareTermsAggregate) UnmarshalJSON ¶

func (s *LongRareTermsAggregate) UnmarshalJSON(data []byte) error

type LongRareTermsBucket ¶

type LongRareTermsBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          int64                `json:"key"`
	KeyAsString  *string              `json:"key_as_string,omitempty"`
}

LongRareTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L478-L481

func NewLongRareTermsBucket ¶

func NewLongRareTermsBucket() *LongRareTermsBucket

NewLongRareTermsBucket returns a LongRareTermsBucket.

func (LongRareTermsBucket) MarshalJSON ¶

func (s LongRareTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*LongRareTermsBucket) UnmarshalJSON ¶

func (s *LongRareTermsBucket) UnmarshalJSON(data []byte) error

type LongTermsAggregate ¶

type LongTermsAggregate struct {
	Buckets                 BucketsLongTermsBucket `json:"buckets"`
	DocCountErrorUpperBound *int64                 `json:"doc_count_error_upper_bound,omitempty"`
	Meta                    Metadata               `json:"meta,omitempty"`
	SumOtherDocCount        *int64                 `json:"sum_other_doc_count,omitempty"`
}

LongTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L439-L444

func NewLongTermsAggregate ¶

func NewLongTermsAggregate() *LongTermsAggregate

NewLongTermsAggregate returns a LongTermsAggregate.

func (*LongTermsAggregate) UnmarshalJSON ¶

func (s *LongTermsAggregate) UnmarshalJSON(data []byte) error

type LongTermsBucket ¶

type LongTermsBucket struct {
	Aggregations            map[string]Aggregate `json:"-"`
	DocCount                int64                `json:"doc_count"`
	DocCountErrorUpperBound *int64               `json:"doc_count_error_upper_bound,omitempty"`
	Key                     int64                `json:"key"`
	KeyAsString             *string              `json:"key_as_string,omitempty"`
}

LongTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L446-L449

func NewLongTermsBucket ¶

func NewLongTermsBucket() *LongTermsBucket

NewLongTermsBucket returns a LongTermsBucket.

func (LongTermsBucket) MarshalJSON ¶

func (s LongTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*LongTermsBucket) UnmarshalJSON ¶

func (s *LongTermsBucket) UnmarshalJSON(data []byte) error

type LowercaseNormalizer ¶

type LowercaseNormalizer struct {
	Type string `json:"type,omitempty"`
}

LowercaseNormalizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/normalizers.ts#L26-L28

func NewLowercaseNormalizer ¶

func NewLowercaseNormalizer() *LowercaseNormalizer

NewLowercaseNormalizer returns a LowercaseNormalizer.

func (*LowercaseNormalizer) LowercaseNormalizerCaster ¶

func (s *LowercaseNormalizer) LowercaseNormalizerCaster() *LowercaseNormalizer

func (LowercaseNormalizer) MarshalJSON ¶

func (s LowercaseNormalizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LowercaseNormalizer) NormalizerCaster ¶ added in v9.0.1

func (s *LowercaseNormalizer) NormalizerCaster() *Normalizer

type LowercaseNormalizerVariant ¶

type LowercaseNormalizerVariant interface {
	LowercaseNormalizerCaster() *LowercaseNormalizer
}

type LowercaseProcessor ¶

type LowercaseProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to make lowercase.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

LowercaseProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1231-L1247

func NewLowercaseProcessor ¶

func NewLowercaseProcessor() *LowercaseProcessor

NewLowercaseProcessor returns a LowercaseProcessor.

func (*LowercaseProcessor) LowercaseProcessorCaster ¶

func (s *LowercaseProcessor) LowercaseProcessorCaster() *LowercaseProcessor

func (*LowercaseProcessor) UnmarshalJSON ¶

func (s *LowercaseProcessor) UnmarshalJSON(data []byte) error

type LowercaseProcessorVariant ¶

type LowercaseProcessorVariant interface {
	LowercaseProcessorCaster() *LowercaseProcessor
}

type LowercaseTokenFilter ¶

type LowercaseTokenFilter struct {
	// Language Language-specific lowercase token filter to use.
	Language *lowercasetokenfilterlanguages.LowercaseTokenFilterLanguages `json:"language,omitempty"`
	Type     string                                                       `json:"type,omitempty"`
	Version  *string                                                      `json:"version,omitempty"`
}

LowercaseTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L350-L354

func NewLowercaseTokenFilter ¶

func NewLowercaseTokenFilter() *LowercaseTokenFilter

NewLowercaseTokenFilter returns a LowercaseTokenFilter.

func (*LowercaseTokenFilter) LowercaseTokenFilterCaster ¶

func (s *LowercaseTokenFilter) LowercaseTokenFilterCaster() *LowercaseTokenFilter

func (LowercaseTokenFilter) MarshalJSON ¶

func (s LowercaseTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LowercaseTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *LowercaseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*LowercaseTokenFilter) UnmarshalJSON ¶

func (s *LowercaseTokenFilter) UnmarshalJSON(data []byte) error

type LowercaseTokenFilterVariant ¶

type LowercaseTokenFilterVariant interface {
	LowercaseTokenFilterCaster() *LowercaseTokenFilter
}

type LowercaseTokenizer ¶

type LowercaseTokenizer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

LowercaseTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L81-L83

func NewLowercaseTokenizer ¶

func NewLowercaseTokenizer() *LowercaseTokenizer

NewLowercaseTokenizer returns a LowercaseTokenizer.

func (*LowercaseTokenizer) LowercaseTokenizerCaster ¶

func (s *LowercaseTokenizer) LowercaseTokenizerCaster() *LowercaseTokenizer

func (LowercaseTokenizer) MarshalJSON ¶

func (s LowercaseTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*LowercaseTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *LowercaseTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*LowercaseTokenizer) UnmarshalJSON ¶

func (s *LowercaseTokenizer) UnmarshalJSON(data []byte) error

type LowercaseTokenizerVariant ¶

type LowercaseTokenizerVariant interface {
	LowercaseTokenizerCaster() *LowercaseTokenizer
}

type MLDatafeed ¶

type MLDatafeed struct {
	Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
	// Authorization The security privileges that the datafeed uses to run its queries. If Elastic
	// Stack security features were disabled at the time of the most recent update
	// to the datafeed, this property is omitted.
	Authorization          *DatafeedAuthorization `json:"authorization,omitempty"`
	ChunkingConfig         *ChunkingConfig        `json:"chunking_config,omitempty"`
	DatafeedId             string                 `json:"datafeed_id"`
	DelayedDataCheckConfig DelayedDataCheckConfig `json:"delayed_data_check_config"`
	Frequency              Duration               `json:"frequency,omitempty"`
	Indexes                []string               `json:"indexes,omitempty"`
	Indices                []string               `json:"indices"`
	IndicesOptions         *IndicesOptions        `json:"indices_options,omitempty"`
	JobId                  string                 `json:"job_id"`
	MaxEmptySearches       *int                   `json:"max_empty_searches,omitempty"`
	Query                  Query                  `json:"query"`
	QueryDelay             Duration               `json:"query_delay,omitempty"`
	RuntimeMappings        RuntimeFields          `json:"runtime_mappings,omitempty"`
	ScriptFields           map[string]ScriptField `json:"script_fields,omitempty"`
	ScrollSize             *int                   `json:"scroll_size,omitempty"`
}

MLDatafeed type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L37-L61

func NewMLDatafeed ¶

func NewMLDatafeed() *MLDatafeed

NewMLDatafeed returns a MLDatafeed.

func (*MLDatafeed) UnmarshalJSON ¶

func (s *MLDatafeed) UnmarshalJSON(data []byte) error

type MLFilter ¶

type MLFilter struct {
	// Description A description of the filter.
	Description *string `json:"description,omitempty"`
	// FilterId A string that uniquely identifies a filter.
	FilterId string `json:"filter_id"`
	// Items An array of strings which is the filter item list.
	Items []string `json:"items"`
}

MLFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Filter.ts#L22-L29

func NewMLFilter ¶

func NewMLFilter() *MLFilter

NewMLFilter returns a MLFilter.

func (*MLFilter) UnmarshalJSON ¶

func (s *MLFilter) UnmarshalJSON(data []byte) error

type MTermVectorsOperation ¶

type MTermVectorsOperation struct {
	// Doc An artificial document (a document not present in the index) for which you
	// want to retrieve term vectors.
	Doc json.RawMessage `json:"doc,omitempty"`
	// FieldStatistics If `true`, the response includes the document count, sum of document
	// frequencies, and sum of total term frequencies.
	FieldStatistics *bool `json:"field_statistics,omitempty"`
	// Fields Comma-separated list or wildcard expressions of fields to include in the
	// statistics.
	// Used as the default list unless a specific field list is provided in the
	// `completion_fields` or `fielddata_fields` parameters.
	Fields []string `json:"fields,omitempty"`
	// Filter Filter terms based on their tf-idf scores.
	Filter *TermVectorsFilter `json:"filter,omitempty"`
	// Id_ The ID of the document.
	Id_ *string `json:"_id,omitempty"`
	// Index_ The index of the document.
	Index_ *string `json:"_index,omitempty"`
	// Offsets If `true`, the response includes term offsets.
	Offsets *bool `json:"offsets,omitempty"`
	// Payloads If `true`, the response includes term payloads.
	Payloads *bool `json:"payloads,omitempty"`
	// Positions If `true`, the response includes term positions.
	Positions *bool `json:"positions,omitempty"`
	// Routing Custom value used to route operations to a specific shard.
	Routing *string `json:"routing,omitempty"`
	// TermStatistics If true, the response includes term frequency and document frequency.
	TermStatistics *bool `json:"term_statistics,omitempty"`
	// Version If `true`, returns the document version as part of a hit.
	Version *int64 `json:"version,omitempty"`
	// VersionType Specific version type.
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

MTermVectorsOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/mtermvectors/types.ts#L35-L94

func NewMTermVectorsOperation ¶

func NewMTermVectorsOperation() *MTermVectorsOperation

NewMTermVectorsOperation returns a MTermVectorsOperation.

func (*MTermVectorsOperation) MTermVectorsOperationCaster ¶

func (s *MTermVectorsOperation) MTermVectorsOperationCaster() *MTermVectorsOperation

func (*MTermVectorsOperation) UnmarshalJSON ¶

func (s *MTermVectorsOperation) UnmarshalJSON(data []byte) error

type MTermVectorsOperationVariant ¶

type MTermVectorsOperationVariant interface {
	MTermVectorsOperationCaster() *MTermVectorsOperation
}

type MachineLearning ¶

type MachineLearning struct {
	Available              bool                     `json:"available"`
	DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"`
	Datafeeds              map[string]XpackDatafeed `json:"datafeeds"`
	Enabled                bool                     `json:"enabled"`
	Inference              MlInference              `json:"inference"`
	// Jobs Job usage statistics. The `_all` entry is always present and gathers
	// statistics for all jobs.
	Jobs      map[string]JobUsage `json:"jobs"`
	NodeCount int                 `json:"node_count"`
}

MachineLearning type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L378-L385

func NewMachineLearning ¶

func NewMachineLearning() *MachineLearning

NewMachineLearning returns a MachineLearning.

func (*MachineLearning) UnmarshalJSON ¶

func (s *MachineLearning) UnmarshalJSON(data []byte) error

type ManageUserPrivileges ¶

type ManageUserPrivileges struct {
	Applications []string `json:"applications"`
}

ManageUserPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L440-L442

func NewManageUserPrivileges ¶

func NewManageUserPrivileges() *ManageUserPrivileges

NewManageUserPrivileges returns a ManageUserPrivileges.

func (*ManageUserPrivileges) ManageUserPrivilegesCaster ¶

func (s *ManageUserPrivileges) ManageUserPrivilegesCaster() *ManageUserPrivileges

type ManageUserPrivilegesVariant ¶

type ManageUserPrivilegesVariant interface {
	ManageUserPrivilegesCaster() *ManageUserPrivileges
}

type MappingCharFilter ¶

type MappingCharFilter struct {
	Mappings     []string `json:"mappings,omitempty"`
	MappingsPath *string  `json:"mappings_path,omitempty"`
	Type         string   `json:"type,omitempty"`
	Version      *string  `json:"version,omitempty"`
}

MappingCharFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/char_filters.ts#L51-L55

func NewMappingCharFilter ¶

func NewMappingCharFilter() *MappingCharFilter

NewMappingCharFilter returns a MappingCharFilter.

func (*MappingCharFilter) CharFilterDefinitionCaster ¶ added in v9.0.1

func (s *MappingCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition

func (*MappingCharFilter) MappingCharFilterCaster ¶

func (s *MappingCharFilter) MappingCharFilterCaster() *MappingCharFilter

func (MappingCharFilter) MarshalJSON ¶

func (s MappingCharFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*MappingCharFilter) UnmarshalJSON ¶

func (s *MappingCharFilter) UnmarshalJSON(data []byte) error

type MappingCharFilterVariant ¶

type MappingCharFilterVariant interface {
	MappingCharFilterCaster() *MappingCharFilter
}

type MappingLimitSettings ¶

type MappingLimitSettings struct {
	Coerce          *bool                                `json:"coerce,omitempty"`
	Depth           *MappingLimitSettingsDepth           `json:"depth,omitempty"`
	DimensionFields *MappingLimitSettingsDimensionFields `json:"dimension_fields,omitempty"`
	FieldNameLength *MappingLimitSettingsFieldNameLength `json:"field_name_length,omitempty"`
	IgnoreMalformed *string                              `json:"ignore_malformed,omitempty"`
	NestedFields    *MappingLimitSettingsNestedFields    `json:"nested_fields,omitempty"`
	NestedObjects   *MappingLimitSettingsNestedObjects   `json:"nested_objects,omitempty"`
	Source          *MappingLimitSettingsSourceFields    `json:"source,omitempty"`
	TotalFields     *MappingLimitSettingsTotalFields     `json:"total_fields,omitempty"`
}

MappingLimitSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L438-L452

func NewMappingLimitSettings ¶

func NewMappingLimitSettings() *MappingLimitSettings

NewMappingLimitSettings returns a MappingLimitSettings.

func (*MappingLimitSettings) MappingLimitSettingsCaster ¶

func (s *MappingLimitSettings) MappingLimitSettingsCaster() *MappingLimitSettings

func (*MappingLimitSettings) UnmarshalJSON ¶

func (s *MappingLimitSettings) UnmarshalJSON(data []byte) error

type MappingLimitSettingsDepth ¶

type MappingLimitSettingsDepth struct {
	// Limit The maximum depth for a field, which is measured as the number of inner
	// objects. For instance, if all fields are defined
	// at the root object level, then the depth is 1. If there is one object
	// mapping, then the depth is 2, etc.
	Limit *int64 `json:"limit,omitempty"`
}

MappingLimitSettingsDepth type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L473-L480

func NewMappingLimitSettingsDepth ¶

func NewMappingLimitSettingsDepth() *MappingLimitSettingsDepth

NewMappingLimitSettingsDepth returns a MappingLimitSettingsDepth.

func (*MappingLimitSettingsDepth) MappingLimitSettingsDepthCaster ¶

func (s *MappingLimitSettingsDepth) MappingLimitSettingsDepthCaster() *MappingLimitSettingsDepth

func (*MappingLimitSettingsDepth) UnmarshalJSON ¶

func (s *MappingLimitSettingsDepth) UnmarshalJSON(data []byte) error

type MappingLimitSettingsDepthVariant ¶

type MappingLimitSettingsDepthVariant interface {
	MappingLimitSettingsDepthCaster() *MappingLimitSettingsDepth
}

type MappingLimitSettingsDimensionFields ¶

type MappingLimitSettingsDimensionFields struct {
	// Limit [preview] This functionality is in technical preview and may be changed or
	// removed in a future release.
	// Elastic will work to fix any issues, but features in technical preview are
	// not subject to the support SLA of official GA features.
	Limit *int64 `json:"limit,omitempty"`
}

MappingLimitSettingsDimensionFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L510-L516

func NewMappingLimitSettingsDimensionFields ¶

func NewMappingLimitSettingsDimensionFields() *MappingLimitSettingsDimensionFields

NewMappingLimitSettingsDimensionFields returns a MappingLimitSettingsDimensionFields.

func (*MappingLimitSettingsDimensionFields) MappingLimitSettingsDimensionFieldsCaster ¶

func (s *MappingLimitSettingsDimensionFields) MappingLimitSettingsDimensionFieldsCaster() *MappingLimitSettingsDimensionFields

func (*MappingLimitSettingsDimensionFields) UnmarshalJSON ¶

func (s *MappingLimitSettingsDimensionFields) UnmarshalJSON(data []byte) error

type MappingLimitSettingsDimensionFieldsVariant ¶

type MappingLimitSettingsDimensionFieldsVariant interface {
	MappingLimitSettingsDimensionFieldsCaster() *MappingLimitSettingsDimensionFields
}

type MappingLimitSettingsFieldNameLength ¶

type MappingLimitSettingsFieldNameLength struct {
	// Limit Setting for the maximum length of a field name. This setting isn’t really
	// something that addresses mappings explosion but
	// might still be useful if you want to limit the field length. It usually
	// shouldn’t be necessary to set this setting. The
	// default is okay unless a user starts to add a huge number of fields with
	// really long names. Default is `Long.MAX_VALUE` (no limit).
	Limit *int64 `json:"limit,omitempty"`
}

MappingLimitSettingsFieldNameLength type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L501-L508

func NewMappingLimitSettingsFieldNameLength ¶

func NewMappingLimitSettingsFieldNameLength() *MappingLimitSettingsFieldNameLength

NewMappingLimitSettingsFieldNameLength returns a MappingLimitSettingsFieldNameLength.

func (*MappingLimitSettingsFieldNameLength) MappingLimitSettingsFieldNameLengthCaster ¶

func (s *MappingLimitSettingsFieldNameLength) MappingLimitSettingsFieldNameLengthCaster() *MappingLimitSettingsFieldNameLength

func (*MappingLimitSettingsFieldNameLength) UnmarshalJSON ¶

func (s *MappingLimitSettingsFieldNameLength) UnmarshalJSON(data []byte) error

type MappingLimitSettingsFieldNameLengthVariant ¶

type MappingLimitSettingsFieldNameLengthVariant interface {
	MappingLimitSettingsFieldNameLengthCaster() *MappingLimitSettingsFieldNameLength
}

type MappingLimitSettingsNestedFields ¶

type MappingLimitSettingsNestedFields struct {
	// Limit The maximum number of distinct nested mappings in an index. The nested type
	// should only be used in special cases, when
	// arrays of objects need to be queried independently of each other. To
	// safeguard against poorly designed mappings, this
	// setting limits the number of unique nested types per index.
	Limit *int64 `json:"limit,omitempty"`
}

MappingLimitSettingsNestedFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L482-L490

func NewMappingLimitSettingsNestedFields ¶

func NewMappingLimitSettingsNestedFields() *MappingLimitSettingsNestedFields

NewMappingLimitSettingsNestedFields returns a MappingLimitSettingsNestedFields.

func (*MappingLimitSettingsNestedFields) MappingLimitSettingsNestedFieldsCaster ¶

func (s *MappingLimitSettingsNestedFields) MappingLimitSettingsNestedFieldsCaster() *MappingLimitSettingsNestedFields

func (*MappingLimitSettingsNestedFields) UnmarshalJSON ¶

func (s *MappingLimitSettingsNestedFields) UnmarshalJSON(data []byte) error

type MappingLimitSettingsNestedFieldsVariant ¶

type MappingLimitSettingsNestedFieldsVariant interface {
	MappingLimitSettingsNestedFieldsCaster() *MappingLimitSettingsNestedFields
}

type MappingLimitSettingsNestedObjects ¶

type MappingLimitSettingsNestedObjects struct {
	// Limit The maximum number of nested JSON objects that a single document can contain
	// across all nested types. This limit helps
	// to prevent out of memory errors when a document contains too many nested
	// objects.
	Limit *int64 `json:"limit,omitempty"`
}

MappingLimitSettingsNestedObjects type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L492-L499

func NewMappingLimitSettingsNestedObjects ¶

func NewMappingLimitSettingsNestedObjects() *MappingLimitSettingsNestedObjects

NewMappingLimitSettingsNestedObjects returns a MappingLimitSettingsNestedObjects.

func (*MappingLimitSettingsNestedObjects) MappingLimitSettingsNestedObjectsCaster ¶

func (s *MappingLimitSettingsNestedObjects) MappingLimitSettingsNestedObjectsCaster() *MappingLimitSettingsNestedObjects

func (*MappingLimitSettingsNestedObjects) UnmarshalJSON ¶

func (s *MappingLimitSettingsNestedObjects) UnmarshalJSON(data []byte) error

type MappingLimitSettingsNestedObjectsVariant ¶

type MappingLimitSettingsNestedObjectsVariant interface {
	MappingLimitSettingsNestedObjectsCaster() *MappingLimitSettingsNestedObjects
}

type MappingLimitSettingsSourceFields ¶

type MappingLimitSettingsSourceFields struct {
	Mode sourcemode.SourceMode `json:"mode"`
}

MappingLimitSettingsSourceFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L518-L520

func NewMappingLimitSettingsSourceFields ¶

func NewMappingLimitSettingsSourceFields() *MappingLimitSettingsSourceFields

NewMappingLimitSettingsSourceFields returns a MappingLimitSettingsSourceFields.

func (*MappingLimitSettingsSourceFields) MappingLimitSettingsSourceFieldsCaster ¶

func (s *MappingLimitSettingsSourceFields) MappingLimitSettingsSourceFieldsCaster() *MappingLimitSettingsSourceFields

type MappingLimitSettingsSourceFieldsVariant ¶

type MappingLimitSettingsSourceFieldsVariant interface {
	MappingLimitSettingsSourceFieldsCaster() *MappingLimitSettingsSourceFields
}

type MappingLimitSettingsTotalFields ¶

type MappingLimitSettingsTotalFields struct {
	// IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would
	// exceed the total fields limit. When set
	// to false (the default), the index request of the document that tries to add a
	// dynamic field to the mapping will fail
	// with the message Limit of total fields [X] has been exceeded. When set to
	// true, the index request will not fail.
	// Instead, fields that would exceed the limit are not added to the mapping,
	// similar to dynamic: false.
	// The fields that were not added to the mapping will be added to the _ignored
	// field.
	IgnoreDynamicBeyondLimit *string `json:"ignore_dynamic_beyond_limit,omitempty"`
	// Limit The maximum number of fields in an index. Field and object mappings, as well
	// as field aliases count towards this limit.
	// The limit is in place to prevent mappings and searches from becoming too
	// large. Higher values can lead to performance
	// degradations and memory issues, especially in clusters with a high load or
	// few resources.
	Limit *string `json:"limit,omitempty"`
}

MappingLimitSettingsTotalFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L454-L471

func NewMappingLimitSettingsTotalFields ¶

func NewMappingLimitSettingsTotalFields() *MappingLimitSettingsTotalFields

NewMappingLimitSettingsTotalFields returns a MappingLimitSettingsTotalFields.

func (*MappingLimitSettingsTotalFields) MappingLimitSettingsTotalFieldsCaster ¶

func (s *MappingLimitSettingsTotalFields) MappingLimitSettingsTotalFieldsCaster() *MappingLimitSettingsTotalFields

func (*MappingLimitSettingsTotalFields) UnmarshalJSON ¶

func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error

type MappingLimitSettingsTotalFieldsVariant ¶

type MappingLimitSettingsTotalFieldsVariant interface {
	MappingLimitSettingsTotalFieldsCaster() *MappingLimitSettingsTotalFields
}

type MappingLimitSettingsVariant ¶

type MappingLimitSettingsVariant interface {
	MappingLimitSettingsCaster() *MappingLimitSettings
}

type MappingStats ¶

type MappingStats struct {
	TotalCount                    int64    `json:"total_count"`
	TotalEstimatedOverhead        ByteSize `json:"total_estimated_overhead,omitempty"`
	TotalEstimatedOverheadInBytes int64    `json:"total_estimated_overhead_in_bytes"`
}

MappingStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L186-L190

func NewMappingStats ¶

func NewMappingStats() *MappingStats

NewMappingStats returns a MappingStats.

func (*MappingStats) UnmarshalJSON ¶

func (s *MappingStats) UnmarshalJSON(data []byte) error

type MasterIsStableIndicator ¶

type MasterIsStableIndicator struct {
	Details   *MasterIsStableIndicatorDetails             `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

MasterIsStableIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L82-L86

func NewMasterIsStableIndicator ¶

func NewMasterIsStableIndicator() *MasterIsStableIndicator

NewMasterIsStableIndicator returns a MasterIsStableIndicator.

func (*MasterIsStableIndicator) UnmarshalJSON ¶

func (s *MasterIsStableIndicator) UnmarshalJSON(data []byte) error

type MasterIsStableIndicatorClusterFormationNode ¶

type MasterIsStableIndicatorClusterFormationNode struct {
	ClusterFormationMessage string  `json:"cluster_formation_message"`
	Name                    *string `json:"name,omitempty"`
	NodeId                  string  `json:"node_id"`
}

MasterIsStableIndicatorClusterFormationNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L101-L105

func NewMasterIsStableIndicatorClusterFormationNode ¶

func NewMasterIsStableIndicatorClusterFormationNode() *MasterIsStableIndicatorClusterFormationNode

NewMasterIsStableIndicatorClusterFormationNode returns a MasterIsStableIndicatorClusterFormationNode.

func (*MasterIsStableIndicatorClusterFormationNode) UnmarshalJSON ¶

func (s *MasterIsStableIndicatorClusterFormationNode) UnmarshalJSON(data []byte) error

type MasterIsStableIndicatorDetails ¶

type MasterIsStableIndicatorDetails struct {
	ClusterFormation         []MasterIsStableIndicatorClusterFormationNode    `json:"cluster_formation,omitempty"`
	CurrentMaster            IndicatorNode                                    `json:"current_master"`
	ExceptionFetchingHistory *MasterIsStableIndicatorExceptionFetchingHistory `json:"exception_fetching_history,omitempty"`
	RecentMasters            []IndicatorNode                                  `json:"recent_masters"`
}

MasterIsStableIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L87-L92

func NewMasterIsStableIndicatorDetails ¶

func NewMasterIsStableIndicatorDetails() *MasterIsStableIndicatorDetails

NewMasterIsStableIndicatorDetails returns a MasterIsStableIndicatorDetails.

type MasterIsStableIndicatorExceptionFetchingHistory ¶

type MasterIsStableIndicatorExceptionFetchingHistory struct {
	Message    string `json:"message"`
	StackTrace string `json:"stack_trace"`
}

MasterIsStableIndicatorExceptionFetchingHistory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L97-L100

func NewMasterIsStableIndicatorExceptionFetchingHistory ¶

func NewMasterIsStableIndicatorExceptionFetchingHistory() *MasterIsStableIndicatorExceptionFetchingHistory

NewMasterIsStableIndicatorExceptionFetchingHistory returns a MasterIsStableIndicatorExceptionFetchingHistory.

func (*MasterIsStableIndicatorExceptionFetchingHistory) UnmarshalJSON ¶

type MasterRecord ¶

type MasterRecord struct {
	// Host host name
	Host *string `json:"host,omitempty"`
	// Id node id
	Id *string `json:"id,omitempty"`
	// Ip ip address
	Ip *string `json:"ip,omitempty"`
	// Node node name
	Node *string `json:"node,omitempty"`
}

MasterRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/master/types.ts#L20-L39

func NewMasterRecord ¶

func NewMasterRecord() *MasterRecord

NewMasterRecord returns a MasterRecord.

func (*MasterRecord) UnmarshalJSON ¶

func (s *MasterRecord) UnmarshalJSON(data []byte) error

type MatchAllQuery ¶

type MatchAllQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
}

MatchAllQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25

func NewMatchAllQuery ¶

func NewMatchAllQuery() *MatchAllQuery

NewMatchAllQuery returns a MatchAllQuery.

func (*MatchAllQuery) MatchAllQueryCaster ¶

func (s *MatchAllQuery) MatchAllQueryCaster() *MatchAllQuery

func (*MatchAllQuery) UnmarshalJSON ¶

func (s *MatchAllQuery) UnmarshalJSON(data []byte) error

type MatchAllQueryVariant ¶

type MatchAllQueryVariant interface {
	MatchAllQueryCaster() *MatchAllQuery
}

type MatchBoolPrefixQuery ¶

type MatchBoolPrefixQuery struct {
	// Analyzer Analyzer used to convert the text in the query value into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Fuzziness Maximum edit distance allowed for matching.
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// FuzzyRewrite Method used to rewrite the query.
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`
	// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent
	// characters (for example, `ab` to `ba`).
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`
	// MaxExpansions Maximum number of terms to which the query will expand.
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	MaxExpansions *int `json:"max_expansions,omitempty"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	// Applied to the constructed bool query.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Operator Boolean logic used to interpret text in the query value.
	// Applied to the constructed bool query.
	Operator *operator.Operator `json:"operator,omitempty"`
	// PrefixLength Number of beginning characters left unchanged for fuzzy matching.
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Query Terms you wish to find in the provided field.
	// The last term is used in a prefix query.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
}

MatchBoolPrefixQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L406-L463

func NewMatchBoolPrefixQuery ¶

func NewMatchBoolPrefixQuery() *MatchBoolPrefixQuery

NewMatchBoolPrefixQuery returns a MatchBoolPrefixQuery.

func (*MatchBoolPrefixQuery) MatchBoolPrefixQueryCaster ¶

func (s *MatchBoolPrefixQuery) MatchBoolPrefixQueryCaster() *MatchBoolPrefixQuery

func (*MatchBoolPrefixQuery) UnmarshalJSON ¶

func (s *MatchBoolPrefixQuery) UnmarshalJSON(data []byte) error

type MatchBoolPrefixQueryVariant ¶

type MatchBoolPrefixQueryVariant interface {
	MatchBoolPrefixQueryCaster() *MatchBoolPrefixQuery
}

type MatchNoneQuery ¶

type MatchNoneQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
}

MatchNoneQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25

func NewMatchNoneQuery ¶

func NewMatchNoneQuery() *MatchNoneQuery

NewMatchNoneQuery returns a MatchNoneQuery.

func (*MatchNoneQuery) MatchNoneQueryCaster ¶

func (s *MatchNoneQuery) MatchNoneQueryCaster() *MatchNoneQuery

func (*MatchNoneQuery) UnmarshalJSON ¶

func (s *MatchNoneQuery) UnmarshalJSON(data []byte) error

type MatchNoneQueryVariant ¶

type MatchNoneQueryVariant interface {
	MatchNoneQueryCaster() *MatchNoneQuery
}

type MatchOnlyTextProperty ¶

type MatchOnlyTextProperty struct {
	// CopyTo Allows you to copy the values of multiple fields into a group
	// field, which can then be queried as a single field.
	CopyTo []string `json:"copy_to,omitempty"`
	// Fields Multi-fields allow the same string value to be indexed in multiple ways for
	// different purposes, such as one
	// field for search and a multi-field for sorting and aggregations, or the same
	// string value analyzed by different analyzers.
	Fields map[string]Property `json:"fields,omitempty"`
	// Meta Metadata about the field.
	Meta map[string]string `json:"meta,omitempty"`
	Type string            `json:"type,omitempty"`
}

MatchOnlyTextProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L282-L307

func NewMatchOnlyTextProperty ¶

func NewMatchOnlyTextProperty() *MatchOnlyTextProperty

NewMatchOnlyTextProperty returns a MatchOnlyTextProperty.

func (MatchOnlyTextProperty) MarshalJSON ¶

func (s MatchOnlyTextProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*MatchOnlyTextProperty) MatchOnlyTextPropertyCaster ¶

func (s *MatchOnlyTextProperty) MatchOnlyTextPropertyCaster() *MatchOnlyTextProperty

func (*MatchOnlyTextProperty) PropertyCaster ¶ added in v9.0.1

func (s *MatchOnlyTextProperty) PropertyCaster() *Property

func (*MatchOnlyTextProperty) UnmarshalJSON ¶

func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error

type MatchOnlyTextPropertyVariant ¶

type MatchOnlyTextPropertyVariant interface {
	MatchOnlyTextPropertyCaster() *MatchOnlyTextProperty
}

type MatchPhrasePrefixQuery ¶

type MatchPhrasePrefixQuery struct {
	// Analyzer Analyzer used to convert text in the query value into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// MaxExpansions Maximum number of terms to which the last provided term of the query value
	// will expand.
	MaxExpansions *int `json:"max_expansions,omitempty"`
	// Query Text you wish to find in the provided field.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// Slop Maximum number of positions allowed between matching tokens.
	Slop *int `json:"slop,omitempty"`
	// ZeroTermsQuery Indicates whether no documents are returned if the analyzer removes all
	// tokens, such as when using a `stop` filter.
	ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`
}

MatchPhrasePrefixQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L491-L520

func NewMatchPhrasePrefixQuery ¶

func NewMatchPhrasePrefixQuery() *MatchPhrasePrefixQuery

NewMatchPhrasePrefixQuery returns a MatchPhrasePrefixQuery.

func (*MatchPhrasePrefixQuery) MatchPhrasePrefixQueryCaster ¶

func (s *MatchPhrasePrefixQuery) MatchPhrasePrefixQueryCaster() *MatchPhrasePrefixQuery

func (*MatchPhrasePrefixQuery) UnmarshalJSON ¶

func (s *MatchPhrasePrefixQuery) UnmarshalJSON(data []byte) error

type MatchPhrasePrefixQueryVariant ¶

type MatchPhrasePrefixQueryVariant interface {
	MatchPhrasePrefixQueryCaster() *MatchPhrasePrefixQuery
}

type MatchPhraseQuery ¶

type MatchPhraseQuery struct {
	// Analyzer Analyzer used to convert the text in the query value into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Query Query terms that are analyzed and turned into a phrase query.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// Slop Maximum number of positions allowed between matching tokens.
	Slop *int `json:"slop,omitempty"`
	// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all
	// tokens, such as when using a `stop` filter.
	ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`
}

MatchPhraseQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L465-L489

func NewMatchPhraseQuery ¶

func NewMatchPhraseQuery() *MatchPhraseQuery

NewMatchPhraseQuery returns a MatchPhraseQuery.

func (*MatchPhraseQuery) MatchPhraseQueryCaster ¶

func (s *MatchPhraseQuery) MatchPhraseQueryCaster() *MatchPhraseQuery

func (*MatchPhraseQuery) UnmarshalJSON ¶

func (s *MatchPhraseQuery) UnmarshalJSON(data []byte) error

type MatchPhraseQueryVariant ¶

type MatchPhraseQueryVariant interface {
	MatchPhraseQueryCaster() *MatchPhraseQuery
}

type MatchQuery ¶

type MatchQuery struct {
	// Analyzer Analyzer used to convert the text in the query value into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term
	// synonyms.
	AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost           *float32 `json:"boost,omitempty"`
	CutoffFrequency *Float64 `json:"cutoff_frequency,omitempty"`
	// Fuzziness Maximum edit distance allowed for matching.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// FuzzyRewrite Method used to rewrite the query.
	FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`
	// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent
	// characters (for example, `ab` to `ba`).
	FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`
	// Lenient If `true`, format-based errors, such as providing a text query value for a
	// numeric field, are ignored.
	Lenient *bool `json:"lenient,omitempty"`
	// MaxExpansions Maximum number of terms to which the query will expand.
	MaxExpansions *int `json:"max_expansions,omitempty"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Operator Boolean logic used to interpret text in the query value.
	Operator *operator.Operator `json:"operator,omitempty"`
	// PrefixLength Number of beginning characters left unchanged for fuzzy matching.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Query Text, number, boolean value or date you wish to find in the provided field.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all
	// tokens, such as when using a `stop` filter.
	ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`
}

MatchQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L336-L404

func NewMatchQuery ¶

func NewMatchQuery() *MatchQuery

NewMatchQuery returns a MatchQuery.

func (*MatchQuery) MatchQueryCaster ¶

func (s *MatchQuery) MatchQueryCaster() *MatchQuery

func (*MatchQuery) UnmarshalJSON ¶

func (s *MatchQuery) UnmarshalJSON(data []byte) error

type MatchQueryVariant ¶

type MatchQueryVariant interface {
	MatchQueryCaster() *MatchQuery
}

type MatchedField ¶

type MatchedField struct {
	Length int    `json:"length"`
	Match  string `json:"match"`
	Offset int    `json:"offset"`
}

MatchedField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/text_structure/test_grok_pattern/types.ts#L23-L27

func NewMatchedField ¶

func NewMatchedField() *MatchedField

NewMatchedField returns a MatchedField.

func (*MatchedField) UnmarshalJSON ¶

func (s *MatchedField) UnmarshalJSON(data []byte) error

type MatchedText ¶

type MatchedText struct {
	Fields  map[string][]MatchedField `json:"fields,omitempty"`
	Matched bool                      `json:"matched"`
}

MatchedText type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/text_structure/test_grok_pattern/types.ts#L29-L32

func NewMatchedText ¶

func NewMatchedText() *MatchedText

NewMatchedText returns a MatchedText.

func (*MatchedText) UnmarshalJSON ¶

func (s *MatchedText) UnmarshalJSON(data []byte) error

type MatrixStatsAggregate ¶

type MatrixStatsAggregate struct {
	DocCount int64               `json:"doc_count"`
	Fields   []MatrixStatsFields `json:"fields,omitempty"`
	Meta     Metadata            `json:"meta,omitempty"`
}

MatrixStatsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L868-L875

func NewMatrixStatsAggregate ¶

func NewMatrixStatsAggregate() *MatrixStatsAggregate

NewMatrixStatsAggregate returns a MatrixStatsAggregate.

func (*MatrixStatsAggregate) UnmarshalJSON ¶

func (s *MatrixStatsAggregate) UnmarshalJSON(data []byte) error

type MatrixStatsAggregation ¶

type MatrixStatsAggregation struct {
	// Fields An array of fields for computing the statistics.
	Fields []string `json:"fields,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing map[string]Float64 `json:"missing,omitempty"`
	// Mode Array value the aggregation will use for array or multi-valued fields.
	Mode *sortmode.SortMode `json:"mode,omitempty"`
}

MatrixStatsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/matrix.ts#L38-L44

func NewMatrixStatsAggregation ¶

func NewMatrixStatsAggregation() *MatrixStatsAggregation

NewMatrixStatsAggregation returns a MatrixStatsAggregation.

func (*MatrixStatsAggregation) MatrixStatsAggregationCaster ¶

func (s *MatrixStatsAggregation) MatrixStatsAggregationCaster() *MatrixStatsAggregation

func (*MatrixStatsAggregation) UnmarshalJSON ¶

func (s *MatrixStatsAggregation) UnmarshalJSON(data []byte) error

type MatrixStatsAggregationVariant ¶

type MatrixStatsAggregationVariant interface {
	MatrixStatsAggregationCaster() *MatrixStatsAggregation
}

type MatrixStatsFields ¶

type MatrixStatsFields struct {
	Correlation map[string]Float64 `json:"correlation"`
	Count       int64              `json:"count"`
	Covariance  map[string]Float64 `json:"covariance"`
	Kurtosis    Float64            `json:"kurtosis"`
	Mean        Float64            `json:"mean"`
	Name        string             `json:"name"`
	Skewness    Float64            `json:"skewness"`
	Variance    Float64            `json:"variance"`
}

MatrixStatsFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L877-L886

func NewMatrixStatsFields ¶

func NewMatrixStatsFields() *MatrixStatsFields

NewMatrixStatsFields returns a MatrixStatsFields.

func (*MatrixStatsFields) UnmarshalJSON ¶

func (s *MatrixStatsFields) UnmarshalJSON(data []byte) error

type MaxAggregate ¶

type MaxAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

MaxAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L205-L209

func NewMaxAggregate ¶

func NewMaxAggregate() *MaxAggregate

NewMaxAggregate returns a MaxAggregate.

func (*MaxAggregate) UnmarshalJSON ¶

func (s *MaxAggregate) UnmarshalJSON(data []byte) error

type MaxAggregation ¶

type MaxAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

MaxAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L171-L171

func NewMaxAggregation ¶

func NewMaxAggregation() *MaxAggregation

NewMaxAggregation returns a MaxAggregation.

func (*MaxAggregation) MaxAggregationCaster ¶

func (s *MaxAggregation) MaxAggregationCaster() *MaxAggregation

func (*MaxAggregation) UnmarshalJSON ¶

func (s *MaxAggregation) UnmarshalJSON(data []byte) error

type MaxAggregationVariant ¶

type MaxAggregationVariant interface {
	MaxAggregationCaster() *MaxAggregation
}

type MaxBucketAggregation ¶

type MaxBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

MaxBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L244-L247

func NewMaxBucketAggregation ¶

func NewMaxBucketAggregation() *MaxBucketAggregation

NewMaxBucketAggregation returns a MaxBucketAggregation.

func (*MaxBucketAggregation) MaxBucketAggregationCaster ¶

func (s *MaxBucketAggregation) MaxBucketAggregationCaster() *MaxBucketAggregation

func (*MaxBucketAggregation) UnmarshalJSON ¶

func (s *MaxBucketAggregation) UnmarshalJSON(data []byte) error

type MaxBucketAggregationVariant ¶

type MaxBucketAggregationVariant interface {
	MaxBucketAggregationCaster() *MaxBucketAggregation
}

type Maxmind ¶

type Maxmind struct {
	AccountId string `json:"account_id"`
}

Maxmind type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Database.ts#L55-L57

func NewMaxmind ¶

func NewMaxmind() *Maxmind

NewMaxmind returns a Maxmind.

func (*Maxmind) MaxmindCaster ¶

func (s *Maxmind) MaxmindCaster() *Maxmind

func (*Maxmind) UnmarshalJSON ¶

func (s *Maxmind) UnmarshalJSON(data []byte) error

type MaxmindVariant ¶

type MaxmindVariant interface {
	MaxmindCaster() *Maxmind
}

type MedianAbsoluteDeviationAggregate ¶

type MedianAbsoluteDeviationAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

MedianAbsoluteDeviationAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L196-L197

func NewMedianAbsoluteDeviationAggregate ¶

func NewMedianAbsoluteDeviationAggregate() *MedianAbsoluteDeviationAggregate

NewMedianAbsoluteDeviationAggregate returns a MedianAbsoluteDeviationAggregate.

func (*MedianAbsoluteDeviationAggregate) UnmarshalJSON ¶

func (s *MedianAbsoluteDeviationAggregate) UnmarshalJSON(data []byte) error

type MedianAbsoluteDeviationAggregation ¶

type MedianAbsoluteDeviationAggregation struct {
	// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
	// to `20 * compression`, enabling control of memory usage and approximation
	// error.
	Compression *Float64 `json:"compression,omitempty"`
	// ExecutionHint The default implementation of TDigest is optimized for performance, scaling
	// to millions or even billions of sample values while maintaining acceptable
	// accuracy levels (close to 1% relative error for millions of samples in some
	// cases).
	// To use an implementation optimized for accuracy, set this parameter to
	// high_accuracy instead.
	ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

MedianAbsoluteDeviationAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L173-L188

func NewMedianAbsoluteDeviationAggregation ¶

func NewMedianAbsoluteDeviationAggregation() *MedianAbsoluteDeviationAggregation

NewMedianAbsoluteDeviationAggregation returns a MedianAbsoluteDeviationAggregation.

func (*MedianAbsoluteDeviationAggregation) MedianAbsoluteDeviationAggregationCaster ¶

func (s *MedianAbsoluteDeviationAggregation) MedianAbsoluteDeviationAggregationCaster() *MedianAbsoluteDeviationAggregation

func (*MedianAbsoluteDeviationAggregation) UnmarshalJSON ¶

func (s *MedianAbsoluteDeviationAggregation) UnmarshalJSON(data []byte) error

type MedianAbsoluteDeviationAggregationVariant ¶

type MedianAbsoluteDeviationAggregationVariant interface {
	MedianAbsoluteDeviationAggregationCaster() *MedianAbsoluteDeviationAggregation
}

type MemMlStats ¶

type MemMlStats struct {
	// AnomalyDetectors Amount of native memory set aside for anomaly detection jobs.
	AnomalyDetectors ByteSize `json:"anomaly_detectors,omitempty"`
	// AnomalyDetectorsInBytes Amount of native memory, in bytes, set aside for anomaly detection jobs.
	AnomalyDetectorsInBytes int `json:"anomaly_detectors_in_bytes"`
	// DataFrameAnalytics Amount of native memory set aside for data frame analytics jobs.
	DataFrameAnalytics ByteSize `json:"data_frame_analytics,omitempty"`
	// DataFrameAnalyticsInBytes Amount of native memory, in bytes, set aside for data frame analytics jobs.
	DataFrameAnalyticsInBytes int `json:"data_frame_analytics_in_bytes"`
	// Max Maximum amount of native memory (separate to the JVM heap) that may be used
	// by machine learning native processes.
	Max ByteSize `json:"max,omitempty"`
	// MaxInBytes Maximum amount of native memory (separate to the JVM heap), in bytes, that
	// may be used by machine learning native processes.
	MaxInBytes int `json:"max_in_bytes"`
	// NativeCodeOverhead Amount of native memory set aside for loading machine learning native code
	// shared libraries.
	NativeCodeOverhead ByteSize `json:"native_code_overhead,omitempty"`
	// NativeCodeOverheadInBytes Amount of native memory, in bytes, set aside for loading machine learning
	// native code shared libraries.
	NativeCodeOverheadInBytes int `json:"native_code_overhead_in_bytes"`
	// NativeInference Amount of native memory set aside for trained models that have a PyTorch
	// model_type.
	NativeInference ByteSize `json:"native_inference,omitempty"`
	// NativeInferenceInBytes Amount of native memory, in bytes, set aside for trained models that have a
	// PyTorch model_type.
	NativeInferenceInBytes int `json:"native_inference_in_bytes"`
}

MemMlStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/get_memory_stats/types.ts#L90-L111

func NewMemMlStats ¶

func NewMemMlStats() *MemMlStats

NewMemMlStats returns a MemMlStats.

func (*MemMlStats) UnmarshalJSON ¶

func (s *MemMlStats) UnmarshalJSON(data []byte) error

type MemStats ¶

type MemStats struct {
	// AdjustedTotal If the amount of physical memory has been overridden using the
	// es.total_memory_bytes system property
	// then this reports the overridden value. Otherwise it reports the same value
	// as total.
	AdjustedTotal ByteSize `json:"adjusted_total,omitempty"`
	// AdjustedTotalInBytes If the amount of physical memory has been overridden using the
	// `es.total_memory_bytes` system property
	// then this reports the overridden value in bytes. Otherwise it reports the
	// same value as `total_in_bytes`.
	AdjustedTotalInBytes int `json:"adjusted_total_in_bytes"`
	// Ml Contains statistics about machine learning use of native memory on the node.
	Ml MemMlStats `json:"ml"`
	// Total Total amount of physical memory.
	Total ByteSize `json:"total,omitempty"`
	// TotalInBytes Total amount of physical memory in bytes.
	TotalInBytes int `json:"total_in_bytes"`
}

MemStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/get_memory_stats/types.ts#L65-L88

func NewMemStats ¶

func NewMemStats() *MemStats

NewMemStats returns a MemStats.

func (*MemStats) UnmarshalJSON ¶

func (s *MemStats) UnmarshalJSON(data []byte) error

type Memory ¶

type Memory struct {
	Attributes  map[string]string `json:"attributes"`
	EphemeralId string            `json:"ephemeral_id"`
	// Jvm Contains Java Virtual Machine (JVM) statistics for the node.
	Jvm JvmStats `json:"jvm"`
	// Mem Contains statistics about memory usage for the node.
	Mem MemStats `json:"mem"`
	// Name Human-readable identifier for the node. Based on the Node name setting
	// setting.
	Name string `json:"name"`
	// Roles Roles assigned to the node.
	Roles []string `json:"roles"`
	// TransportAddress The host and port where transport HTTP connections are accepted.
	TransportAddress string `json:"transport_address"`
}

Memory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/get_memory_stats/types.ts#L25-L48

func NewMemory ¶

func NewMemory() *Memory

NewMemory returns a Memory.

func (*Memory) UnmarshalJSON ¶

func (s *Memory) UnmarshalJSON(data []byte) error

type MemoryStats ¶

type MemoryStats struct {
	// AdjustedTotalInBytes If the amount of physical memory has been overridden using the
	// `es`.`total_memory_bytes` system property then this reports the overridden
	// value in bytes.
	// Otherwise it reports the same value as `total_in_bytes`.
	AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`
	// FreeInBytes Amount of free physical memory in bytes.
	FreeInBytes     *int64  `json:"free_in_bytes,omitempty"`
	Resident        *string `json:"resident,omitempty"`
	ResidentInBytes *int64  `json:"resident_in_bytes,omitempty"`
	Share           *string `json:"share,omitempty"`
	ShareInBytes    *int64  `json:"share_in_bytes,omitempty"`
	// TotalInBytes Total amount of physical memory in bytes.
	TotalInBytes        *int64  `json:"total_in_bytes,omitempty"`
	TotalVirtual        *string `json:"total_virtual,omitempty"`
	TotalVirtualInBytes *int64  `json:"total_virtual_in_bytes,omitempty"`
	// UsedInBytes Amount of used physical memory in bytes.
	UsedInBytes *int64 `json:"used_in_bytes,omitempty"`
}

MemoryStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L634-L658

func NewMemoryStats ¶

func NewMemoryStats() *MemoryStats

NewMemoryStats returns a MemoryStats.

func (*MemoryStats) UnmarshalJSON ¶

func (s *MemoryStats) UnmarshalJSON(data []byte) error

type Merge ¶

type Merge struct {
	Scheduler *MergeScheduler `json:"scheduler,omitempty"`
}

Merge type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L359-L361

func NewMerge ¶

func NewMerge() *Merge

NewMerge returns a Merge.

func (*Merge) MergeCaster ¶

func (s *Merge) MergeCaster() *Merge

type MergeScheduler ¶

type MergeScheduler struct {
	MaxMergeCount  Stringifiedinteger `json:"max_merge_count,omitempty"`
	MaxThreadCount Stringifiedinteger `json:"max_thread_count,omitempty"`
}

MergeScheduler type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L363-L366

func NewMergeScheduler ¶

func NewMergeScheduler() *MergeScheduler

NewMergeScheduler returns a MergeScheduler.

func (*MergeScheduler) MergeSchedulerCaster ¶

func (s *MergeScheduler) MergeSchedulerCaster() *MergeScheduler

func (*MergeScheduler) UnmarshalJSON ¶

func (s *MergeScheduler) UnmarshalJSON(data []byte) error

type MergeSchedulerVariant ¶

type MergeSchedulerVariant interface {
	MergeSchedulerCaster() *MergeScheduler
}

type MergeVariant ¶

type MergeVariant interface {
	MergeCaster() *Merge
}

type MergesStats ¶

type MergesStats struct {
	Current                    int64    `json:"current"`
	CurrentDocs                int64    `json:"current_docs"`
	CurrentSize                *string  `json:"current_size,omitempty"`
	CurrentSizeInBytes         int64    `json:"current_size_in_bytes"`
	Total                      int64    `json:"total"`
	TotalAutoThrottle          *string  `json:"total_auto_throttle,omitempty"`
	TotalAutoThrottleInBytes   int64    `json:"total_auto_throttle_in_bytes"`
	TotalDocs                  int64    `json:"total_docs"`
	TotalSize                  *string  `json:"total_size,omitempty"`
	TotalSizeInBytes           int64    `json:"total_size_in_bytes"`
	TotalStoppedTime           Duration `json:"total_stopped_time,omitempty"`
	TotalStoppedTimeInMillis   int64    `json:"total_stopped_time_in_millis"`
	TotalThrottledTime         Duration `json:"total_throttled_time,omitempty"`
	TotalThrottledTimeInMillis int64    `json:"total_throttled_time_in_millis"`
	TotalTime                  Duration `json:"total_time,omitempty"`
	TotalTimeInMillis          int64    `json:"total_time_in_millis"`
}

MergesStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L188-L205

func NewMergesStats ¶

func NewMergesStats() *MergesStats

NewMergesStats returns a MergesStats.

func (*MergesStats) UnmarshalJSON ¶

func (s *MergesStats) UnmarshalJSON(data []byte) error

type Message ¶

type Message struct {
	// Content The content of the message.
	//
	// String example:
	// “`
	//
	//	{
	//	   "content": "Some string"
	//	}
	//
	// “`
	//
	// Object example:
	// “`
	//
	//	{
	//	  "content": [
	//	      {
	//	       "text": "Some text",
	//	       "type": "text"
	//	      }
	//	   ]
	//	}
	//
	// “`
	Content MessageContent `json:"content,omitempty"`
	// Role The role of the message author. Valid values are `user`, `assistant`,
	// `system`, and `tool`.
	Role string `json:"role"`
	// ToolCallId Only for `tool` role messages. The tool call that this message is responding
	// to.
	ToolCallId *string `json:"tool_call_id,omitempty"`
	// ToolCalls Only for `assistant` role messages. The tool calls generated by the model. If
	// it's specified, the `content` field is optional.
	// Example:
	// “`
	//
	//	{
	//	  "tool_calls": [
	//	      {
	//	          "id": "call_KcAjWtAww20AihPHphUh46Gd",
	//	          "type": "function",
	//	          "function": {
	//	              "name": "get_current_weather",
	//	              "arguments": "{\"location\":\"Boston, MA\"}"
	//	          }
	//	      }
	//	  ]
	//	}
	//
	// “`
	ToolCalls []ToolCall `json:"tool_calls,omitempty"`
}

Message type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L174-L228

func NewMessage ¶

func NewMessage() *Message

NewMessage returns a Message.

func (*Message) MessageCaster ¶

func (s *Message) MessageCaster() *Message

func (*Message) UnmarshalJSON ¶

func (s *Message) UnmarshalJSON(data []byte) error

type MessageContentVariant ¶

type MessageContentVariant interface {
	MessageContentCaster() *MessageContent
}

type MessageVariant ¶

type MessageVariant interface {
	MessageCaster() *Message
}

type MetadataVariant ¶

type MetadataVariant interface {
	MetadataCaster() *Metadata
}

type MgetOperation ¶

type MgetOperation struct {
	// Id_ The unique document ID.
	Id_ string `json:"_id"`
	// Index_ The index that contains the document.
	Index_ *string `json:"_index,omitempty"`
	// Routing The key for the primary shard the document resides on. Required if routing is
	// used during indexing.
	Routing *string `json:"routing,omitempty"`
	// Source_ If `false`, excludes all _source fields.
	Source_ SourceConfig `json:"_source,omitempty"`
	// StoredFields The stored fields you want to retrieve.
	StoredFields []string                 `json:"stored_fields,omitempty"`
	Version      *int64                   `json:"version,omitempty"`
	VersionType  *versiontype.VersionType `json:"version_type,omitempty"`
}

MgetOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/mget/types.ts#L32-L55

func NewMgetOperation ¶

func NewMgetOperation() *MgetOperation

NewMgetOperation returns a MgetOperation.

func (*MgetOperation) MgetOperationCaster ¶

func (s *MgetOperation) MgetOperationCaster() *MgetOperation

func (*MgetOperation) UnmarshalJSON ¶

func (s *MgetOperation) UnmarshalJSON(data []byte) error

type MgetOperationVariant ¶

type MgetOperationVariant interface {
	MgetOperationCaster() *MgetOperation
}

type MgetResponseItem ¶

type MgetResponseItem any

MgetResponseItem holds the union for the following types:

GetResult
MultiGetError

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/mget/types.ts#L57-L60

type MigrateAction ¶

type MigrateAction struct {
	Enabled *bool `json:"enabled,omitempty"`
}

MigrateAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L141-L143

func NewMigrateAction ¶

func NewMigrateAction() *MigrateAction

NewMigrateAction returns a MigrateAction.

func (*MigrateAction) MigrateActionCaster ¶

func (s *MigrateAction) MigrateActionCaster() *MigrateAction

func (*MigrateAction) UnmarshalJSON ¶

func (s *MigrateAction) UnmarshalJSON(data []byte) error

type MigrateActionVariant ¶

type MigrateActionVariant interface {
	MigrateActionCaster() *MigrateAction
}

type MigrateReindex ¶

type MigrateReindex struct {
	// Mode Reindex mode. Currently only 'upgrade' is supported.
	Mode modeenum.ModeEnum `json:"mode"`
	// Source The source index or data stream (only data streams are currently supported).
	Source SourceIndex `json:"source"`
}

MigrateReindex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48

func NewMigrateReindex ¶

func NewMigrateReindex() *MigrateReindex

NewMigrateReindex returns a MigrateReindex.

func (*MigrateReindex) MigrateReindexCaster ¶

func (s *MigrateReindex) MigrateReindexCaster() *MigrateReindex

type MigrateReindexVariant ¶

type MigrateReindexVariant interface {
	MigrateReindexCaster() *MigrateReindex
}

type MigrationFeatureIndexInfo ¶

type MigrationFeatureIndexInfo struct {
	FailureCause *ErrorCause `json:"failure_cause,omitempty"`
	Index        string      `json:"index"`
	Version      string      `json:"version"`
}

MigrationFeatureIndexInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48

func NewMigrationFeatureIndexInfo ¶

func NewMigrationFeatureIndexInfo() *MigrationFeatureIndexInfo

NewMigrationFeatureIndexInfo returns a MigrationFeatureIndexInfo.

func (*MigrationFeatureIndexInfo) UnmarshalJSON ¶

func (s *MigrationFeatureIndexInfo) UnmarshalJSON(data []byte) error

type MinAggregate ¶

type MinAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

MinAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L199-L203

func NewMinAggregate ¶

func NewMinAggregate() *MinAggregate

NewMinAggregate returns a MinAggregate.

func (*MinAggregate) UnmarshalJSON ¶

func (s *MinAggregate) UnmarshalJSON(data []byte) error

type MinAggregation ¶

type MinAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

MinAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L190-L190

func NewMinAggregation ¶

func NewMinAggregation() *MinAggregation

NewMinAggregation returns a MinAggregation.

func (*MinAggregation) MinAggregationCaster ¶

func (s *MinAggregation) MinAggregationCaster() *MinAggregation

func (*MinAggregation) UnmarshalJSON ¶

func (s *MinAggregation) UnmarshalJSON(data []byte) error

type MinAggregationVariant ¶

type MinAggregationVariant interface {
	MinAggregationCaster() *MinAggregation
}

type MinBucketAggregation ¶

type MinBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

MinBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L249-L252

func NewMinBucketAggregation ¶

func NewMinBucketAggregation() *MinBucketAggregation

NewMinBucketAggregation returns a MinBucketAggregation.

func (*MinBucketAggregation) MinBucketAggregationCaster ¶

func (s *MinBucketAggregation) MinBucketAggregationCaster() *MinBucketAggregation

func (*MinBucketAggregation) UnmarshalJSON ¶

func (s *MinBucketAggregation) UnmarshalJSON(data []byte) error

type MinBucketAggregationVariant ¶

type MinBucketAggregationVariant interface {
	MinBucketAggregationCaster() *MinBucketAggregation
}

type MinHashTokenFilter ¶ added in v9.0.1

type MinHashTokenFilter struct {
	// BucketCount Number of buckets to which hashes are assigned. Defaults to `512`.
	BucketCount *int `json:"bucket_count,omitempty"`
	// HashCount Number of ways to hash each token in the stream. Defaults to `1`.
	HashCount *int `json:"hash_count,omitempty"`
	// HashSetSize Number of hashes to keep from each bucket. Defaults to `1`.
	// Hashes are retained by ascending size, starting with the bucket’s smallest
	// hash first.
	HashSetSize *int    `json:"hash_set_size,omitempty"`
	Type        string  `json:"type,omitempty"`
	Version     *string `json:"version,omitempty"`
	// WithRotation If `true`, the filter fills empty buckets with the value of the first
	// non-empty bucket to its circular right if the `hash_set_size` is `1`. If the
	// `bucket_count` argument is greater than 1, this parameter defaults to `true`.
	// Otherwise, this parameter defaults to `false`.
	WithRotation *bool `json:"with_rotation,omitempty"`
}

MinHashTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L514-L525

func NewMinHashTokenFilter ¶ added in v9.0.1

func NewMinHashTokenFilter() *MinHashTokenFilter

NewMinHashTokenFilter returns a MinHashTokenFilter.

func (MinHashTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s MinHashTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*MinHashTokenFilter) MinHashTokenFilterCaster ¶ added in v9.0.1

func (s *MinHashTokenFilter) MinHashTokenFilterCaster() *MinHashTokenFilter

func (*MinHashTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *MinHashTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*MinHashTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *MinHashTokenFilter) UnmarshalJSON(data []byte) error

type MinHashTokenFilterVariant ¶ added in v9.0.1

type MinHashTokenFilterVariant interface {
	MinHashTokenFilterCaster() *MinHashTokenFilter
}

type MinimalLicenseInformation ¶

type MinimalLicenseInformation struct {
	ExpiryDateInMillis int64                       `json:"expiry_date_in_millis"`
	Mode               licensetype.LicenseType     `json:"mode"`
	Status             licensestatus.LicenseStatus `json:"status"`
	Type               licensetype.LicenseType     `json:"type"`
	Uid                string                      `json:"uid"`
}

MinimalLicenseInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/info/types.ts#L34-L40

func NewMinimalLicenseInformation ¶

func NewMinimalLicenseInformation() *MinimalLicenseInformation

NewMinimalLicenseInformation returns a MinimalLicenseInformation.

func (*MinimalLicenseInformation) UnmarshalJSON ¶

func (s *MinimalLicenseInformation) UnmarshalJSON(data []byte) error

type MinimumShouldMatchVariant ¶

type MinimumShouldMatchVariant interface {
	MinimumShouldMatchCaster() *MinimumShouldMatch
}

type MissingAggregate ¶

type MissingAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

MissingAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L528-L532

func NewMissingAggregate ¶

func NewMissingAggregate() *MissingAggregate

NewMissingAggregate returns a MissingAggregate.

func (MissingAggregate) MarshalJSON ¶

func (s MissingAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*MissingAggregate) UnmarshalJSON ¶

func (s *MissingAggregate) UnmarshalJSON(data []byte) error

type MissingAggregation ¶

type MissingAggregation struct {
	// Field The name of the field.
	Field   *string `json:"field,omitempty"`
	Missing Missing `json:"missing,omitempty"`
}

MissingAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L593-L599

func NewMissingAggregation ¶

func NewMissingAggregation() *MissingAggregation

NewMissingAggregation returns a MissingAggregation.

func (*MissingAggregation) MissingAggregationCaster ¶

func (s *MissingAggregation) MissingAggregationCaster() *MissingAggregation

func (*MissingAggregation) UnmarshalJSON ¶

func (s *MissingAggregation) UnmarshalJSON(data []byte) error

type MissingAggregationVariant ¶

type MissingAggregationVariant interface {
	MissingAggregationCaster() *MissingAggregation
}

type MissingVariant ¶

type MissingVariant interface {
	MissingCaster() *Missing
}

type MistralServiceSettings ¶

type MistralServiceSettings struct {
	// ApiKey A valid API key of your Mistral account.
	// You can find your Mistral API keys or you can create a new one on the API
	// Keys page.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// MaxInputTokens The maximum number of tokens per input before chunking occurs.
	MaxInputTokens *int `json:"max_input_tokens,omitempty"`
	// Model The name of the model to use for the inference task.
	// Refer to the Mistral models documentation for the list of available models.
	Model string `json:"model"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// the Mistral API.
	// By default, the `mistral` service sets the number of requests allowed per
	// minute to 240.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
}

MistralServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1515-L1542

func NewMistralServiceSettings ¶

func NewMistralServiceSettings() *MistralServiceSettings

NewMistralServiceSettings returns a MistralServiceSettings.

func (*MistralServiceSettings) MistralServiceSettingsCaster ¶

func (s *MistralServiceSettings) MistralServiceSettingsCaster() *MistralServiceSettings

func (*MistralServiceSettings) UnmarshalJSON ¶

func (s *MistralServiceSettings) UnmarshalJSON(data []byte) error

type MistralServiceSettingsVariant ¶

type MistralServiceSettingsVariant interface {
	MistralServiceSettingsCaster() *MistralServiceSettings
}

type MlCounter ¶

type MlCounter struct {
	Count int64 `json:"count"`
}

MlCounter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L265-L267

func NewMlCounter ¶

func NewMlCounter() *MlCounter

NewMlCounter returns a MlCounter.

func (*MlCounter) UnmarshalJSON ¶

func (s *MlCounter) UnmarshalJSON(data []byte) error

type MlDataFrameAnalyticsJobs ¶

type MlDataFrameAnalyticsJobs struct {
	All_           MlDataFrameAnalyticsJobsCount     `json:"_all"`
	AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"`
	MemoryUsage    *MlDataFrameAnalyticsJobsMemory   `json:"memory_usage,omitempty"`
	Stopped        *MlDataFrameAnalyticsJobsCount    `json:"stopped,omitempty"`
}

MlDataFrameAnalyticsJobs type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L187-L192

func NewMlDataFrameAnalyticsJobs ¶

func NewMlDataFrameAnalyticsJobs() *MlDataFrameAnalyticsJobs

NewMlDataFrameAnalyticsJobs returns a MlDataFrameAnalyticsJobs.

type MlDataFrameAnalyticsJobsAnalysis ¶

type MlDataFrameAnalyticsJobsAnalysis struct {
	Classification   *int `json:"classification,omitempty"`
	OutlierDetection *int `json:"outlier_detection,omitempty"`
	Regression       *int `json:"regression,omitempty"`
}

MlDataFrameAnalyticsJobsAnalysis type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L194-L198

func NewMlDataFrameAnalyticsJobsAnalysis ¶

func NewMlDataFrameAnalyticsJobsAnalysis() *MlDataFrameAnalyticsJobsAnalysis

NewMlDataFrameAnalyticsJobsAnalysis returns a MlDataFrameAnalyticsJobsAnalysis.

func (*MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON ¶

func (s *MlDataFrameAnalyticsJobsAnalysis) UnmarshalJSON(data []byte) error

type MlDataFrameAnalyticsJobsCount ¶

type MlDataFrameAnalyticsJobsCount struct {
	Count int64 `json:"count"`
}

MlDataFrameAnalyticsJobsCount type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L204-L206

func NewMlDataFrameAnalyticsJobsCount ¶

func NewMlDataFrameAnalyticsJobsCount() *MlDataFrameAnalyticsJobsCount

NewMlDataFrameAnalyticsJobsCount returns a MlDataFrameAnalyticsJobsCount.

func (*MlDataFrameAnalyticsJobsCount) UnmarshalJSON ¶

func (s *MlDataFrameAnalyticsJobsCount) UnmarshalJSON(data []byte) error

type MlDataFrameAnalyticsJobsMemory ¶

type MlDataFrameAnalyticsJobsMemory struct {
	PeakUsageBytes JobStatistics `json:"peak_usage_bytes"`
}

MlDataFrameAnalyticsJobsMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L200-L202

func NewMlDataFrameAnalyticsJobsMemory ¶

func NewMlDataFrameAnalyticsJobsMemory() *MlDataFrameAnalyticsJobsMemory

NewMlDataFrameAnalyticsJobsMemory returns a MlDataFrameAnalyticsJobsMemory.

type MlInference ¶

type MlInference struct {
	Deployments      *MlInferenceDeployments               `json:"deployments,omitempty"`
	IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"`
	TrainedModels    MlInferenceTrainedModels              `json:"trained_models"`
}

MlInference type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L208-L216

func NewMlInference ¶

func NewMlInference() *MlInference

NewMlInference returns a MlInference.

type MlInferenceDeployments ¶

type MlInferenceDeployments struct {
	Count           int                          `json:"count"`
	InferenceCounts JobStatistics                `json:"inference_counts"`
	ModelSizesBytes JobStatistics                `json:"model_sizes_bytes"`
	TimeMs          MlInferenceDeploymentsTimeMs `json:"time_ms"`
}

MlInferenceDeployments type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L237-L242

func NewMlInferenceDeployments ¶

func NewMlInferenceDeployments() *MlInferenceDeployments

NewMlInferenceDeployments returns a MlInferenceDeployments.

func (*MlInferenceDeployments) UnmarshalJSON ¶

func (s *MlInferenceDeployments) UnmarshalJSON(data []byte) error

type MlInferenceDeploymentsTimeMs ¶

type MlInferenceDeploymentsTimeMs struct {
	Avg Float64 `json:"avg"`
}

MlInferenceDeploymentsTimeMs type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L244-L246

func NewMlInferenceDeploymentsTimeMs ¶

func NewMlInferenceDeploymentsTimeMs() *MlInferenceDeploymentsTimeMs

NewMlInferenceDeploymentsTimeMs returns a MlInferenceDeploymentsTimeMs.

func (*MlInferenceDeploymentsTimeMs) UnmarshalJSON ¶

func (s *MlInferenceDeploymentsTimeMs) UnmarshalJSON(data []byte) error

type MlInferenceIngestProcessor ¶

type MlInferenceIngestProcessor struct {
	NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"`
	NumFailures      MlInferenceIngestProcessorCount `json:"num_failures"`
	Pipelines        MlCounter                       `json:"pipelines"`
	TimeMs           MlInferenceIngestProcessorCount `json:"time_ms"`
}

MlInferenceIngestProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L218-L223

func NewMlInferenceIngestProcessor ¶

func NewMlInferenceIngestProcessor() *MlInferenceIngestProcessor

NewMlInferenceIngestProcessor returns a MlInferenceIngestProcessor.

type MlInferenceIngestProcessorCount ¶

type MlInferenceIngestProcessorCount struct {
	Max int64 `json:"max"`
	Min int64 `json:"min"`
	Sum int64 `json:"sum"`
}

MlInferenceIngestProcessorCount type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L248-L252

func NewMlInferenceIngestProcessorCount ¶

func NewMlInferenceIngestProcessorCount() *MlInferenceIngestProcessorCount

NewMlInferenceIngestProcessorCount returns a MlInferenceIngestProcessorCount.

func (*MlInferenceIngestProcessorCount) UnmarshalJSON ¶

func (s *MlInferenceIngestProcessorCount) UnmarshalJSON(data []byte) error

type MlInferenceTrainedModels ¶

type MlInferenceTrainedModels struct {
	All_                          MlCounter                      `json:"_all"`
	Count                         *MlInferenceTrainedModelsCount `json:"count,omitempty"`
	EstimatedHeapMemoryUsageBytes *JobStatistics                 `json:"estimated_heap_memory_usage_bytes,omitempty"`
	EstimatedOperations           *JobStatistics                 `json:"estimated_operations,omitempty"`
	ModelSizeBytes                *JobStatistics                 `json:"model_size_bytes,omitempty"`
}

MlInferenceTrainedModels type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L225-L235

func NewMlInferenceTrainedModels ¶

func NewMlInferenceTrainedModels() *MlInferenceTrainedModels

NewMlInferenceTrainedModels returns a MlInferenceTrainedModels.

type MlInferenceTrainedModelsCount ¶

type MlInferenceTrainedModelsCount struct {
	Classification *int64 `json:"classification,omitempty"`
	Ner            *int64 `json:"ner,omitempty"`
	Other          int64  `json:"other"`
	PassThrough    *int64 `json:"pass_through,omitempty"`
	Prepackaged    int64  `json:"prepackaged"`
	Regression     *int64 `json:"regression,omitempty"`
	TextEmbedding  *int64 `json:"text_embedding,omitempty"`
	Total          int64  `json:"total"`
}

MlInferenceTrainedModelsCount type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L254-L263

func NewMlInferenceTrainedModelsCount ¶

func NewMlInferenceTrainedModelsCount() *MlInferenceTrainedModelsCount

NewMlInferenceTrainedModelsCount returns a MlInferenceTrainedModelsCount.

func (*MlInferenceTrainedModelsCount) UnmarshalJSON ¶

func (s *MlInferenceTrainedModelsCount) UnmarshalJSON(data []byte) error

type MlJobForecasts ¶

type MlJobForecasts struct {
	ForecastedJobs int64 `json:"forecasted_jobs"`
	Total          int64 `json:"total"`
}

MlJobForecasts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L182-L185

func NewMlJobForecasts ¶

func NewMlJobForecasts() *MlJobForecasts

NewMlJobForecasts returns a MlJobForecasts.

func (*MlJobForecasts) UnmarshalJSON ¶

func (s *MlJobForecasts) UnmarshalJSON(data []byte) error

type ModelPackageConfig ¶

type ModelPackageConfig struct {
	CreateTime           *int64                     `json:"create_time,omitempty"`
	Description          *string                    `json:"description,omitempty"`
	InferenceConfig      map[string]json.RawMessage `json:"inference_config,omitempty"`
	Metadata             Metadata                   `json:"metadata,omitempty"`
	MinimumVersion       *string                    `json:"minimum_version,omitempty"`
	ModelRepository      *string                    `json:"model_repository,omitempty"`
	ModelType            *string                    `json:"model_type,omitempty"`
	PackagedModelId      string                     `json:"packaged_model_id"`
	PlatformArchitecture *string                    `json:"platform_architecture,omitempty"`
	PrefixStrings        *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"`
	Sha256               *string                    `json:"sha256,omitempty"`
	Size                 ByteSize                   `json:"size,omitempty"`
	Tags                 []string                   `json:"tags,omitempty"`
	VocabularyFile       *string                    `json:"vocabulary_file,omitempty"`
}

ModelPackageConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L257-L272

func NewModelPackageConfig ¶

func NewModelPackageConfig() *ModelPackageConfig

NewModelPackageConfig returns a ModelPackageConfig.

func (*ModelPackageConfig) UnmarshalJSON ¶

func (s *ModelPackageConfig) UnmarshalJSON(data []byte) error

type ModelPlotConfig ¶

type ModelPlotConfig struct {
	// AnnotationsEnabled If true, enables calculation and storage of the model change annotations for
	// each entity that is being analyzed.
	AnnotationsEnabled *bool `json:"annotations_enabled,omitempty"`
	// Enabled If true, enables calculation and storage of the model bounds for each entity
	// that is being analyzed.
	Enabled *bool `json:"enabled,omitempty"`
	// Terms Limits data collection to this comma separated list of partition or by field
	// values. If terms are not specified or it is an empty string, no filtering is
	// applied. Wildcards are not supported. Only the specified terms can be viewed
	// when using the Single Metric Viewer.
	Terms *string `json:"terms,omitempty"`
}

ModelPlotConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/ModelPlot.ts#L23-L42

func NewModelPlotConfig ¶

func NewModelPlotConfig() *ModelPlotConfig

NewModelPlotConfig returns a ModelPlotConfig.

func (*ModelPlotConfig) ModelPlotConfigCaster ¶

func (s *ModelPlotConfig) ModelPlotConfigCaster() *ModelPlotConfig

func (*ModelPlotConfig) UnmarshalJSON ¶

func (s *ModelPlotConfig) UnmarshalJSON(data []byte) error

type ModelPlotConfigVariant ¶

type ModelPlotConfigVariant interface {
	ModelPlotConfigCaster() *ModelPlotConfig
}

type ModelSizeStats ¶

type ModelSizeStats struct {
	AssignmentMemoryBasis         *string                                   `json:"assignment_memory_basis,omitempty"`
	BucketAllocationFailuresCount int64                                     `json:"bucket_allocation_failures_count"`
	CategorizationStatus          categorizationstatus.CategorizationStatus `json:"categorization_status"`
	CategorizedDocCount           int                                       `json:"categorized_doc_count"`
	DeadCategoryCount             int                                       `json:"dead_category_count"`
	FailedCategoryCount           int                                       `json:"failed_category_count"`
	FrequentCategoryCount         int                                       `json:"frequent_category_count"`
	JobId                         string                                    `json:"job_id"`
	LogTime                       DateTime                                  `json:"log_time"`
	MemoryStatus                  memorystatus.MemoryStatus                 `json:"memory_status"`
	ModelBytes                    ByteSize                                  `json:"model_bytes"`
	ModelBytesExceeded            ByteSize                                  `json:"model_bytes_exceeded,omitempty"`
	ModelBytesMemoryLimit         ByteSize                                  `json:"model_bytes_memory_limit,omitempty"`
	OutputMemoryAllocatorBytes    ByteSize                                  `json:"output_memory_allocator_bytes,omitempty"`
	PeakModelBytes                ByteSize                                  `json:"peak_model_bytes,omitempty"`
	RareCategoryCount             int                                       `json:"rare_category_count"`
	ResultType                    string                                    `json:"result_type"`
	Timestamp                     *int64                                    `json:"timestamp,omitempty"`
	TotalByFieldCount             int64                                     `json:"total_by_field_count"`
	TotalCategoryCount            int                                       `json:"total_category_count"`
	TotalOverFieldCount           int64                                     `json:"total_over_field_count"`
	TotalPartitionFieldCount      int64                                     `json:"total_partition_field_count"`
}

ModelSizeStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Model.ts#L59-L82

func NewModelSizeStats ¶

func NewModelSizeStats() *ModelSizeStats

NewModelSizeStats returns a ModelSizeStats.

func (*ModelSizeStats) UnmarshalJSON ¶

func (s *ModelSizeStats) UnmarshalJSON(data []byte) error

type ModelSnapshot ¶

type ModelSnapshot struct {
	// Description An optional description of the job.
	Description *string `json:"description,omitempty"`
	// JobId A numerical character string that uniquely identifies the job that the
	// snapshot was created for.
	JobId string `json:"job_id"`
	// LatestRecordTimeStamp The timestamp of the latest processed record.
	LatestRecordTimeStamp *int `json:"latest_record_time_stamp,omitempty"`
	// LatestResultTimeStamp The timestamp of the latest bucket result.
	LatestResultTimeStamp *int `json:"latest_result_time_stamp,omitempty"`
	// MinVersion The minimum version required to be able to restore the model snapshot.
	MinVersion string `json:"min_version"`
	// ModelSizeStats Summary information describing the model.
	ModelSizeStats *ModelSizeStats `json:"model_size_stats,omitempty"`
	// Retain If true, this snapshot will not be deleted during automatic cleanup of
	// snapshots older than model_snapshot_retention_days. However, this snapshot
	// will be deleted when the job is deleted. The default value is false.
	Retain bool `json:"retain"`
	// SnapshotDocCount For internal use only.
	SnapshotDocCount int64 `json:"snapshot_doc_count"`
	// SnapshotId A numerical character string that uniquely identifies the model snapshot.
	SnapshotId string `json:"snapshot_id"`
	// Timestamp The creation timestamp for the snapshot.
	Timestamp int64 `json:"timestamp"`
}

ModelSnapshot type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Model.ts#L25-L46

func NewModelSnapshot ¶

func NewModelSnapshot() *ModelSnapshot

NewModelSnapshot returns a ModelSnapshot.

func (*ModelSnapshot) UnmarshalJSON ¶

func (s *ModelSnapshot) UnmarshalJSON(data []byte) error

type ModelSnapshotUpgrade ¶

type ModelSnapshotUpgrade struct {
	AssignmentExplanation string                                    `json:"assignment_explanation"`
	JobId                 string                                    `json:"job_id"`
	Node                  DiscoveryNode                             `json:"node"`
	SnapshotId            string                                    `json:"snapshot_id"`
	State                 snapshotupgradestate.SnapshotUpgradeState `json:"state"`
}

ModelSnapshotUpgrade type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Model.ts#L48-L57

func NewModelSnapshotUpgrade ¶

func NewModelSnapshotUpgrade() *ModelSnapshotUpgrade

NewModelSnapshotUpgrade returns a ModelSnapshotUpgrade.

func (*ModelSnapshotUpgrade) UnmarshalJSON ¶

func (s *ModelSnapshotUpgrade) UnmarshalJSON(data []byte) error

type Monitoring ¶

type Monitoring struct {
	Available         bool             `json:"available"`
	CollectionEnabled bool             `json:"collection_enabled"`
	Enabled           bool             `json:"enabled"`
	EnabledExporters  map[string]int64 `json:"enabled_exporters"`
}

Monitoring type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L387-L390

func NewMonitoring ¶

func NewMonitoring() *Monitoring

NewMonitoring returns a Monitoring.

func (*Monitoring) UnmarshalJSON ¶

func (s *Monitoring) UnmarshalJSON(data []byte) error

type MoreLikeThisQuery ¶

type MoreLikeThisQuery struct {
	// Analyzer The analyzer that is used to analyze the free form text.
	// Defaults to the analyzer associated with the first field in fields.
	Analyzer *string `json:"analyzer,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// BoostTerms Each term in the formed query could be further boosted by their tf-idf score.
	// This sets the boost factor to use when using this feature.
	// Defaults to deactivated (0).
	BoostTerms *Float64 `json:"boost_terms,omitempty"`
	// FailOnUnsupportedField Controls whether the query should fail (throw an exception) if any of the
	// specified fields are not of the supported types (`text` or `keyword`).
	FailOnUnsupportedField *bool `json:"fail_on_unsupported_field,omitempty"`
	// Fields A list of fields to fetch and analyze the text from.
	// Defaults to the `index.query.default_field` index setting, which has a
	// default value of `*`.
	Fields []string `json:"fields,omitempty"`
	// Include Specifies whether the input documents should also be included in the search
	// results returned.
	Include *bool `json:"include,omitempty"`
	// Like Specifies free form text and/or a single or multiple documents for which you
	// want to find similar documents.
	Like []Like `json:"like"`
	// MaxDocFreq The maximum document frequency above which the terms are ignored from the
	// input document.
	MaxDocFreq *int `json:"max_doc_freq,omitempty"`
	// MaxQueryTerms The maximum number of query terms that can be selected.
	MaxQueryTerms *int `json:"max_query_terms,omitempty"`
	// MaxWordLength The maximum word length above which the terms are ignored.
	// Defaults to unbounded (`0`).
	MaxWordLength *int `json:"max_word_length,omitempty"`
	// MinDocFreq The minimum document frequency below which the terms are ignored from the
	// input document.
	MinDocFreq *int `json:"min_doc_freq,omitempty"`
	// MinTermFreq The minimum term frequency below which the terms are ignored from the input
	// document.
	MinTermFreq *int `json:"min_term_freq,omitempty"`
	// MinWordLength The minimum word length below which the terms are ignored.
	MinWordLength *int `json:"min_word_length,omitempty"`
	// MinimumShouldMatch After the disjunctive query has been formed, this parameter controls the
	// number of terms that must match.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	QueryName_         *string            `json:"_name,omitempty"`
	Routing            *string            `json:"routing,omitempty"`
	// StopWords An array of stop words.
	// Any word in this set is ignored.
	StopWords StopWords `json:"stop_words,omitempty"`
	// Unlike Used in combination with `like` to exclude documents that match a set of
	// terms.
	Unlike      []Like                   `json:"unlike,omitempty"`
	Version     *int64                   `json:"version,omitempty"`
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

MoreLikeThisQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L87-L172

func NewMoreLikeThisQuery ¶

func NewMoreLikeThisQuery() *MoreLikeThisQuery

NewMoreLikeThisQuery returns a MoreLikeThisQuery.

func (*MoreLikeThisQuery) MoreLikeThisQueryCaster ¶

func (s *MoreLikeThisQuery) MoreLikeThisQueryCaster() *MoreLikeThisQuery

func (*MoreLikeThisQuery) UnmarshalJSON ¶

func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error

type MoreLikeThisQueryVariant ¶

type MoreLikeThisQueryVariant interface {
	MoreLikeThisQueryCaster() *MoreLikeThisQuery
}

type MountedSnapshot ¶

type MountedSnapshot struct {
	Indices  []string        `json:"indices"`
	Shards   ShardStatistics `json:"shards"`
	Snapshot string          `json:"snapshot"`
}

MountedSnapshot type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/searchable_snapshots/mount/types.ts#L23-L27

func NewMountedSnapshot ¶

func NewMountedSnapshot() *MountedSnapshot

NewMountedSnapshot returns a MountedSnapshot.

func (*MountedSnapshot) UnmarshalJSON ¶

func (s *MountedSnapshot) UnmarshalJSON(data []byte) error

type MovingAverageAggregation ¶

type MovingAverageAggregation any

MovingAverageAggregation holds the union for the following types:

LinearMovingAverageAggregation
SimpleMovingAverageAggregation
EwmaMovingAverageAggregation
HoltMovingAverageAggregation
HoltWintersMovingAverageAggregation

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L254-L260

type MovingAverageAggregationVariant ¶

type MovingAverageAggregationVariant interface {
	MovingAverageAggregationCaster() *MovingAverageAggregation
}

type MovingFunctionAggregation ¶

type MovingFunctionAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Script The script that should be executed on each window of data.
	Script *string `json:"script,omitempty"`
	// Shift By default, the window consists of the last n values excluding the current
	// bucket.
	// Increasing `shift` by 1, moves the starting window position by 1 to the
	// right.
	Shift *int `json:"shift,omitempty"`
	// Window The size of window to "slide" across the histogram.
	Window *int `json:"window,omitempty"`
}

MovingFunctionAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L314-L332

func NewMovingFunctionAggregation ¶

func NewMovingFunctionAggregation() *MovingFunctionAggregation

NewMovingFunctionAggregation returns a MovingFunctionAggregation.

func (*MovingFunctionAggregation) MovingFunctionAggregationCaster ¶

func (s *MovingFunctionAggregation) MovingFunctionAggregationCaster() *MovingFunctionAggregation

func (*MovingFunctionAggregation) UnmarshalJSON ¶

func (s *MovingFunctionAggregation) UnmarshalJSON(data []byte) error

type MovingFunctionAggregationVariant ¶

type MovingFunctionAggregationVariant interface {
	MovingFunctionAggregationCaster() *MovingFunctionAggregation
}

type MovingPercentilesAggregation ¶

type MovingPercentilesAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	Keyed     *bool                `json:"keyed,omitempty"`
	// Shift By default, the window consists of the last n values excluding the current
	// bucket.
	// Increasing `shift` by 1, moves the starting window position by 1 to the
	// right.
	Shift *int `json:"shift,omitempty"`
	// Window The size of window to "slide" across the histogram.
	Window *int `json:"window,omitempty"`
}

MovingPercentilesAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L334-L349

func NewMovingPercentilesAggregation ¶

func NewMovingPercentilesAggregation() *MovingPercentilesAggregation

NewMovingPercentilesAggregation returns a MovingPercentilesAggregation.

func (*MovingPercentilesAggregation) MovingPercentilesAggregationCaster ¶

func (s *MovingPercentilesAggregation) MovingPercentilesAggregationCaster() *MovingPercentilesAggregation

func (*MovingPercentilesAggregation) UnmarshalJSON ¶

func (s *MovingPercentilesAggregation) UnmarshalJSON(data []byte) error

type MovingPercentilesAggregationVariant ¶

type MovingPercentilesAggregationVariant interface {
	MovingPercentilesAggregationCaster() *MovingPercentilesAggregation
}

type MsearchRequestItem ¶

type MsearchRequestItem any

MsearchRequestItem holds the union for the following types:

MultisearchHeader
SearchRequestBody

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/msearch/types.ts#L26-L29

type MsearchRequestItemVariant ¶

type MsearchRequestItemVariant interface {
	MsearchRequestItemCaster() *MsearchRequestItem
}

type MsearchResponseItem ¶

type MsearchResponseItem any

MsearchResponseItem holds the union for the following types:

MultiSearchItem
ErrorResponseBase

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/msearch/types.ts#L53-L56

type MultiGetError ¶

type MultiGetError struct {
	Error  ErrorCause `json:"error"`
	Id_    string     `json:"_id"`
	Index_ string     `json:"_index"`
}

MultiGetError type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/mget/types.ts#L62-L66

func NewMultiGetError ¶

func NewMultiGetError() *MultiGetError

NewMultiGetError returns a MultiGetError.

func (*MultiGetError) UnmarshalJSON ¶

func (s *MultiGetError) UnmarshalJSON(data []byte) error

type MultiMatchQuery ¶

type MultiMatchQuery struct {
	// Analyzer Analyzer used to convert the text in the query value into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term
	// synonyms.
	AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost           *float32 `json:"boost,omitempty"`
	CutoffFrequency *Float64 `json:"cutoff_frequency,omitempty"`
	// Fields The fields to be queried.
	// Defaults to the `index.query.default_field` index settings, which in turn
	// defaults to `*`.
	Fields []string `json:"fields,omitempty"`
	// Fuzziness Maximum edit distance allowed for matching.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// FuzzyRewrite Method used to rewrite the query.
	FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`
	// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent
	// characters (for example, `ab` to `ba`).
	// Can be applied to the term subqueries constructed for all terms but the final
	// term.
	FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`
	// Lenient If `true`, format-based errors, such as providing a text query value for a
	// numeric field, are ignored.
	Lenient *bool `json:"lenient,omitempty"`
	// MaxExpansions Maximum number of terms to which the query will expand.
	MaxExpansions *int `json:"max_expansions,omitempty"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Operator Boolean logic used to interpret text in the query value.
	Operator *operator.Operator `json:"operator,omitempty"`
	// PrefixLength Number of beginning characters left unchanged for fuzzy matching.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Query Text, number, boolean value or date you wish to find in the provided field.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// Slop Maximum number of positions allowed between matching tokens.
	Slop *int `json:"slop,omitempty"`
	// TieBreaker Determines how scores for each per-term blended query and scores across
	// groups are combined.
	TieBreaker *Float64 `json:"tie_breaker,omitempty"`
	// Type How `the` multi_match query is executed internally.
	Type *textquerytype.TextQueryType `json:"type,omitempty"`
	// ZeroTermsQuery Indicates whether no documents are returned if the `analyzer` removes all
	// tokens, such as when using a `stop` filter.
	ZeroTermsQuery *zerotermsquery.ZeroTermsQuery `json:"zero_terms_query,omitempty"`
}

MultiMatchQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L522-L608

func NewMultiMatchQuery ¶

func NewMultiMatchQuery() *MultiMatchQuery

NewMultiMatchQuery returns a MultiMatchQuery.

func (*MultiMatchQuery) MultiMatchQueryCaster ¶

func (s *MultiMatchQuery) MultiMatchQueryCaster() *MultiMatchQuery

func (*MultiMatchQuery) UnmarshalJSON ¶

func (s *MultiMatchQuery) UnmarshalJSON(data []byte) error

type MultiMatchQueryVariant ¶

type MultiMatchQueryVariant interface {
	MultiMatchQueryCaster() *MultiMatchQuery
}

type MultiSearchItem ¶

type MultiSearchItem struct {
	Aggregations map[string]Aggregate       `json:"aggregations,omitempty"`
	Clusters_    *ClusterStatistics         `json:"_clusters,omitempty"`
	Fields       map[string]json.RawMessage `json:"fields,omitempty"`
	// Hits The returned documents and metadata.
	Hits            HitsMetadata `json:"hits"`
	MaxScore        *Float64     `json:"max_score,omitempty"`
	NumReducePhases *int64       `json:"num_reduce_phases,omitempty"`
	PitId           *string      `json:"pit_id,omitempty"`
	Profile         *Profile     `json:"profile,omitempty"`
	// ScrollId_ The identifier for the search and its search context.
	// You can use this scroll ID with the scroll API to retrieve the next batch of
	// search results for the request.
	// This property is returned only if the `scroll` query parameter is specified
	// in the request.
	ScrollId_ *string `json:"_scroll_id,omitempty"`
	// Shards_ A count of shards used for the request.
	Shards_         ShardStatistics      `json:"_shards"`
	Status          *int                 `json:"status,omitempty"`
	Suggest         map[string][]Suggest `json:"suggest,omitempty"`
	TerminatedEarly *bool                `json:"terminated_early,omitempty"`
	// TimedOut If `true`, the request timed out before completion; returned results may be
	// partial or empty.
	TimedOut bool `json:"timed_out"`
	// Took The number of milliseconds it took Elasticsearch to run the request.
	// This value is calculated by measuring the time elapsed between receipt of a
	// request on the coordinating node and the time at which the coordinating node
	// is ready to send the response.
	// It includes:
	//
	// * Communication time between the coordinating node and data nodes
	// * Time the request spends in the search thread pool, queued for execution
	// * Actual run time
	//
	// It does not include:
	//
	// * Time needed to send the request to Elasticsearch
	// * Time needed to serialize the JSON response
	// * Time needed to send the response to a client
	Took int64 `json:"took"`
}

MultiSearchItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/msearch/types.ts#L58-L61

func NewMultiSearchItem ¶

func NewMultiSearchItem() *MultiSearchItem

NewMultiSearchItem returns a MultiSearchItem.

func (*MultiSearchItem) UnmarshalJSON ¶

func (s *MultiSearchItem) UnmarshalJSON(data []byte) error

type MultiTermLookup ¶

type MultiTermLookup struct {
	// Field A fields from which to retrieve terms.
	Field string `json:"field"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
}

MultiTermLookup type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L643-L653

func NewMultiTermLookup ¶

func NewMultiTermLookup() *MultiTermLookup

NewMultiTermLookup returns a MultiTermLookup.

func (*MultiTermLookup) MultiTermLookupCaster ¶

func (s *MultiTermLookup) MultiTermLookupCaster() *MultiTermLookup

func (*MultiTermLookup) UnmarshalJSON ¶

func (s *MultiTermLookup) UnmarshalJSON(data []byte) error

type MultiTermLookupVariant ¶

type MultiTermLookupVariant interface {
	MultiTermLookupCaster() *MultiTermLookup
}

type MultiTermsAggregate ¶

type MultiTermsAggregate struct {
	Buckets                 BucketsMultiTermsBucket `json:"buckets"`
	DocCountErrorUpperBound *int64                  `json:"doc_count_error_upper_bound,omitempty"`
	Meta                    Metadata                `json:"meta,omitempty"`
	SumOtherDocCount        *int64                  `json:"sum_other_doc_count,omitempty"`
}

MultiTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L501-L506

func NewMultiTermsAggregate ¶

func NewMultiTermsAggregate() *MultiTermsAggregate

NewMultiTermsAggregate returns a MultiTermsAggregate.

func (*MultiTermsAggregate) UnmarshalJSON ¶

func (s *MultiTermsAggregate) UnmarshalJSON(data []byte) error

type MultiTermsAggregation ¶

type MultiTermsAggregation struct {
	// CollectMode Specifies the strategy for data collection.
	CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"`
	// MinDocCount The minimum number of documents in a bucket for it to be returned.
	MinDocCount *int64 `json:"min_doc_count,omitempty"`
	// Order Specifies the sort order of the buckets.
	// Defaults to sorting by descending document count.
	Order AggregateOrder `json:"order,omitempty"`
	// ShardMinDocCount The minimum number of documents in a bucket on each shard for it to be
	// returned.
	ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`
	// ShardSize The number of candidate terms produced by each shard.
	// By default, `shard_size` will be automatically estimated based on the number
	// of shards and the `size` parameter.
	ShardSize *int `json:"shard_size,omitempty"`
	// ShowTermDocCountError Calculates the doc count error on per term basis.
	ShowTermDocCountError *bool `json:"show_term_doc_count_error,omitempty"`
	// Size The number of term buckets should be returned out of the overall terms list.
	Size *int `json:"size,omitempty"`
	// Terms The field from which to generate sets of terms.
	Terms []MultiTermLookup `json:"terms"`
}

MultiTermsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L601-L641

func NewMultiTermsAggregation ¶

func NewMultiTermsAggregation() *MultiTermsAggregation

NewMultiTermsAggregation returns a MultiTermsAggregation.

func (*MultiTermsAggregation) MultiTermsAggregationCaster ¶

func (s *MultiTermsAggregation) MultiTermsAggregationCaster() *MultiTermsAggregation

func (*MultiTermsAggregation) UnmarshalJSON ¶

func (s *MultiTermsAggregation) UnmarshalJSON(data []byte) error

type MultiTermsAggregationVariant ¶

type MultiTermsAggregationVariant interface {
	MultiTermsAggregationCaster() *MultiTermsAggregation
}

type MultiTermsBucket ¶

type MultiTermsBucket struct {
	Aggregations            map[string]Aggregate `json:"-"`
	DocCount                int64                `json:"doc_count"`
	DocCountErrorUpperBound *int64               `json:"doc_count_error_upper_bound,omitempty"`
	Key                     []FieldValue         `json:"key"`
	KeyAsString             *string              `json:"key_as_string,omitempty"`
}

MultiTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L508-L512

func NewMultiTermsBucket ¶

func NewMultiTermsBucket() *MultiTermsBucket

NewMultiTermsBucket returns a MultiTermsBucket.

func (MultiTermsBucket) MarshalJSON ¶

func (s MultiTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*MultiTermsBucket) UnmarshalJSON ¶

func (s *MultiTermsBucket) UnmarshalJSON(data []byte) error

type MultiplexerTokenFilter ¶

type MultiplexerTokenFilter struct {
	// Filters A list of token filters to apply to incoming tokens.
	Filters []string `json:"filters"`
	// PreserveOriginal If `true` (the default) then emit the original token in addition to the
	// filtered tokens.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	Type             string             `json:"type,omitempty"`
	Version          *string            `json:"version,omitempty"`
}

MultiplexerTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L356-L362

func NewMultiplexerTokenFilter ¶

func NewMultiplexerTokenFilter() *MultiplexerTokenFilter

NewMultiplexerTokenFilter returns a MultiplexerTokenFilter.

func (MultiplexerTokenFilter) MarshalJSON ¶

func (s MultiplexerTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*MultiplexerTokenFilter) MultiplexerTokenFilterCaster ¶

func (s *MultiplexerTokenFilter) MultiplexerTokenFilterCaster() *MultiplexerTokenFilter

func (*MultiplexerTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *MultiplexerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*MultiplexerTokenFilter) UnmarshalJSON ¶

func (s *MultiplexerTokenFilter) UnmarshalJSON(data []byte) error

type MultiplexerTokenFilterVariant ¶

type MultiplexerTokenFilterVariant interface {
	MultiplexerTokenFilterCaster() *MultiplexerTokenFilter
}

type MultisearchHeader ¶

type MultisearchHeader struct {
	AllowNoIndices            *bool                           `json:"allow_no_indices,omitempty"`
	AllowPartialSearchResults *bool                           `json:"allow_partial_search_results,omitempty"`
	CcsMinimizeRoundtrips     *bool                           `json:"ccs_minimize_roundtrips,omitempty"`
	ExpandWildcards           []expandwildcard.ExpandWildcard `json:"expand_wildcards,omitempty"`
	IgnoreThrottled           *bool                           `json:"ignore_throttled,omitempty"`
	IgnoreUnavailable         *bool                           `json:"ignore_unavailable,omitempty"`
	Index                     []string                        `json:"index,omitempty"`
	Preference                *string                         `json:"preference,omitempty"`
	RequestCache              *bool                           `json:"request_cache,omitempty"`
	Routing                   *string                         `json:"routing,omitempty"`
	SearchType                *searchtype.SearchType          `json:"search_type,omitempty"`
}

MultisearchHeader type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/msearch/types.ts#L31-L46

func NewMultisearchHeader ¶

func NewMultisearchHeader() *MultisearchHeader

NewMultisearchHeader returns a MultisearchHeader.

func (*MultisearchHeader) MsearchRequestItemCaster ¶ added in v9.0.1

func (s *MultisearchHeader) MsearchRequestItemCaster() *MsearchRequestItem

func (*MultisearchHeader) MultisearchHeaderCaster ¶

func (s *MultisearchHeader) MultisearchHeaderCaster() *MultisearchHeader

func (*MultisearchHeader) RequestItemCaster ¶ added in v9.0.1

func (s *MultisearchHeader) RequestItemCaster() *RequestItem

func (*MultisearchHeader) UnmarshalJSON ¶

func (s *MultisearchHeader) UnmarshalJSON(data []byte) error

type MultisearchHeaderVariant ¶

type MultisearchHeaderVariant interface {
	MultisearchHeaderCaster() *MultisearchHeader
}

type Murmur3HashProperty ¶

type Murmur3HashProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

Murmur3HashProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L90-L92

func NewMurmur3HashProperty ¶

func NewMurmur3HashProperty() *Murmur3HashProperty

NewMurmur3HashProperty returns a Murmur3HashProperty.

func (Murmur3HashProperty) MarshalJSON ¶

func (s Murmur3HashProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*Murmur3HashProperty) Murmur3HashPropertyCaster ¶

func (s *Murmur3HashProperty) Murmur3HashPropertyCaster() *Murmur3HashProperty

func (*Murmur3HashProperty) PropertyCaster ¶ added in v9.0.1

func (s *Murmur3HashProperty) PropertyCaster() *Property

func (*Murmur3HashProperty) UnmarshalJSON ¶

func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error

type Murmur3HashPropertyVariant ¶

type Murmur3HashPropertyVariant interface {
	Murmur3HashPropertyCaster() *Murmur3HashProperty
}

type MutualInformationHeuristic ¶

type MutualInformationHeuristic struct {
	// BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a
	// different set of documents that you want to compare to.
	BackgroundIsSuperset *bool `json:"background_is_superset,omitempty"`
	// IncludeNegatives Set to `false` to filter out the terms that appear less often in the subset
	// than in documents outside the subset.
	IncludeNegatives *bool `json:"include_negatives,omitempty"`
}

MutualInformationHeuristic type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L800-L809

func NewMutualInformationHeuristic ¶

func NewMutualInformationHeuristic() *MutualInformationHeuristic

NewMutualInformationHeuristic returns a MutualInformationHeuristic.

func (*MutualInformationHeuristic) MutualInformationHeuristicCaster ¶

func (s *MutualInformationHeuristic) MutualInformationHeuristicCaster() *MutualInformationHeuristic

func (*MutualInformationHeuristic) UnmarshalJSON ¶

func (s *MutualInformationHeuristic) UnmarshalJSON(data []byte) error

type MutualInformationHeuristicVariant ¶

type MutualInformationHeuristicVariant interface {
	MutualInformationHeuristicCaster() *MutualInformationHeuristic
}

type NGramTokenFilter ¶

type NGramTokenFilter struct {
	// MaxGram Maximum length of characters in a gram. Defaults to `2`.
	MaxGram *int `json:"max_gram,omitempty"`
	// MinGram Minimum length of characters in a gram. Defaults to `1`.
	MinGram *int `json:"min_gram,omitempty"`
	// PreserveOriginal Emits original token when set to `true`. Defaults to `false`.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	Type             string             `json:"type,omitempty"`
	Version          *string            `json:"version,omitempty"`
}

NGramTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L364-L372

func NewNGramTokenFilter ¶

func NewNGramTokenFilter() *NGramTokenFilter

NewNGramTokenFilter returns a NGramTokenFilter.

func (NGramTokenFilter) MarshalJSON ¶

func (s NGramTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NGramTokenFilter) NGramTokenFilterCaster ¶

func (s *NGramTokenFilter) NGramTokenFilterCaster() *NGramTokenFilter

func (*NGramTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *NGramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*NGramTokenFilter) UnmarshalJSON ¶

func (s *NGramTokenFilter) UnmarshalJSON(data []byte) error

type NGramTokenFilterVariant ¶

type NGramTokenFilterVariant interface {
	NGramTokenFilterCaster() *NGramTokenFilter
}

type NGramTokenizer ¶

type NGramTokenizer struct {
	CustomTokenChars *string               `json:"custom_token_chars,omitempty"`
	MaxGram          *int                  `json:"max_gram,omitempty"`
	MinGram          *int                  `json:"min_gram,omitempty"`
	TokenChars       []tokenchar.TokenChar `json:"token_chars,omitempty"`
	Type             string                `json:"type,omitempty"`
	Version          *string               `json:"version,omitempty"`
}

NGramTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L85-L95

func NewNGramTokenizer ¶

func NewNGramTokenizer() *NGramTokenizer

NewNGramTokenizer returns a NGramTokenizer.

func (NGramTokenizer) MarshalJSON ¶

func (s NGramTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NGramTokenizer) NGramTokenizerCaster ¶

func (s *NGramTokenizer) NGramTokenizerCaster() *NGramTokenizer

func (*NGramTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *NGramTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*NGramTokenizer) UnmarshalJSON ¶

func (s *NGramTokenizer) UnmarshalJSON(data []byte) error

type NGramTokenizerVariant ¶

type NGramTokenizerVariant interface {
	NGramTokenizerCaster() *NGramTokenizer
}

type NamesVariant ¶

type NamesVariant interface {
	NamesCaster() *Names
}

type NativeCode ¶

type NativeCode struct {
	BuildHash string `json:"build_hash"`
	Version   string `json:"version"`
}

NativeCode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/info/types.ts#L29-L32

func NewNativeCode ¶

func NewNativeCode() *NativeCode

NewNativeCode returns a NativeCode.

func (*NativeCode) UnmarshalJSON ¶

func (s *NativeCode) UnmarshalJSON(data []byte) error

type NativeCodeInformation ¶

type NativeCodeInformation struct {
	BuildHash string `json:"build_hash"`
	Version   string `json:"version"`
}

NativeCodeInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/info/types.ts#L29-L32

func NewNativeCodeInformation ¶

func NewNativeCodeInformation() *NativeCodeInformation

NewNativeCodeInformation returns a NativeCodeInformation.

func (*NativeCodeInformation) UnmarshalJSON ¶

func (s *NativeCodeInformation) UnmarshalJSON(data []byte) error

type NerInferenceOptions ¶

type NerInferenceOptions struct {
	// ClassificationLabels The token classification labels. Must be IOB formatted tags
	ClassificationLabels []string `json:"classification_labels,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   *Vocabulary                  `json:"vocabulary,omitempty"`
}

NerInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L273-L282

func NewNerInferenceOptions ¶

func NewNerInferenceOptions() *NerInferenceOptions

NewNerInferenceOptions returns a NerInferenceOptions.

func (*NerInferenceOptions) NerInferenceOptionsCaster ¶

func (s *NerInferenceOptions) NerInferenceOptionsCaster() *NerInferenceOptions

func (*NerInferenceOptions) UnmarshalJSON ¶

func (s *NerInferenceOptions) UnmarshalJSON(data []byte) error

type NerInferenceOptionsVariant ¶

type NerInferenceOptionsVariant interface {
	NerInferenceOptionsCaster() *NerInferenceOptions
}

type NerInferenceUpdateOptions ¶

type NerInferenceUpdateOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

NerInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L423-L428

func NewNerInferenceUpdateOptions ¶

func NewNerInferenceUpdateOptions() *NerInferenceUpdateOptions

NewNerInferenceUpdateOptions returns a NerInferenceUpdateOptions.

func (*NerInferenceUpdateOptions) NerInferenceUpdateOptionsCaster ¶

func (s *NerInferenceUpdateOptions) NerInferenceUpdateOptionsCaster() *NerInferenceUpdateOptions

func (*NerInferenceUpdateOptions) UnmarshalJSON ¶

func (s *NerInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type NerInferenceUpdateOptionsVariant ¶

type NerInferenceUpdateOptionsVariant interface {
	NerInferenceUpdateOptionsCaster() *NerInferenceUpdateOptions
}

type NestedAggregate ¶

type NestedAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

NestedAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L534-L538

func NewNestedAggregate ¶

func NewNestedAggregate() *NestedAggregate

NewNestedAggregate returns a NestedAggregate.

func (NestedAggregate) MarshalJSON ¶

func (s NestedAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*NestedAggregate) UnmarshalJSON ¶

func (s *NestedAggregate) UnmarshalJSON(data []byte) error

type NestedAggregation ¶

type NestedAggregation struct {
	// Path The path to the field of type `nested`.
	Path *string `json:"path,omitempty"`
}

NestedAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L655-L660

func NewNestedAggregation ¶

func NewNestedAggregation() *NestedAggregation

NewNestedAggregation returns a NestedAggregation.

func (*NestedAggregation) NestedAggregationCaster ¶

func (s *NestedAggregation) NestedAggregationCaster() *NestedAggregation

func (*NestedAggregation) UnmarshalJSON ¶

func (s *NestedAggregation) UnmarshalJSON(data []byte) error

type NestedAggregationVariant ¶

type NestedAggregationVariant interface {
	NestedAggregationCaster() *NestedAggregation
}

type NestedIdentity ¶

type NestedIdentity struct {
	Field   string          `json:"field"`
	Nested_ *NestedIdentity `json:"_nested,omitempty"`
	Offset  int             `json:"offset"`
}

NestedIdentity type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/hits.ts#L89-L93

func NewNestedIdentity ¶

func NewNestedIdentity() *NestedIdentity

NewNestedIdentity returns a NestedIdentity.

func (*NestedIdentity) UnmarshalJSON ¶

func (s *NestedIdentity) UnmarshalJSON(data []byte) error

type NestedProperty ¶

type NestedProperty struct {
	CopyTo          []string                       `json:"copy_to,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Enabled         *bool                          `json:"enabled,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IncludeInParent *bool                          `json:"include_in_parent,omitempty"`
	IncludeInRoot   *bool                          `json:"include_in_root,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

NestedProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/complex.ts#L40-L45

func NewNestedProperty ¶

func NewNestedProperty() *NestedProperty

NewNestedProperty returns a NestedProperty.

func (NestedProperty) MarshalJSON ¶

func (s NestedProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NestedProperty) NestedPropertyCaster ¶

func (s *NestedProperty) NestedPropertyCaster() *NestedProperty

func (*NestedProperty) PropertyCaster ¶ added in v9.0.1

func (s *NestedProperty) PropertyCaster() *Property

func (*NestedProperty) UnmarshalJSON ¶

func (s *NestedProperty) UnmarshalJSON(data []byte) error

type NestedPropertyVariant ¶

type NestedPropertyVariant interface {
	NestedPropertyCaster() *NestedProperty
}

type NestedQuery ¶

type NestedQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// IgnoreUnmapped Indicates whether to ignore an unmapped path and not return any documents
	// instead of an error.
	IgnoreUnmapped *bool `json:"ignore_unmapped,omitempty"`
	// InnerHits If defined, each search hit will contain inner hits.
	InnerHits *InnerHits `json:"inner_hits,omitempty"`
	// Path Path to the nested object you wish to search.
	Path string `json:"path"`
	// Query Query you wish to run on nested objects in the path.
	Query      Query   `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// ScoreMode How scores for matching child objects affect the root parent document’s
	// relevance score.
	ScoreMode *childscoremode.ChildScoreMode `json:"score_mode,omitempty"`
}

NestedQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/joining.ts#L112-L139

func NewNestedQuery ¶

func NewNestedQuery() *NestedQuery

NewNestedQuery returns a NestedQuery.

func (*NestedQuery) NestedQueryCaster ¶

func (s *NestedQuery) NestedQueryCaster() *NestedQuery

func (*NestedQuery) UnmarshalJSON ¶

func (s *NestedQuery) UnmarshalJSON(data []byte) error

type NestedQueryVariant ¶

type NestedQueryVariant interface {
	NestedQueryCaster() *NestedQuery
}

type NestedSortValue ¶

type NestedSortValue struct {
	Filter      *Query           `json:"filter,omitempty"`
	MaxChildren *int             `json:"max_children,omitempty"`
	Nested      *NestedSortValue `json:"nested,omitempty"`
	Path        string           `json:"path"`
}

NestedSortValue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L29-L34

func NewNestedSortValue ¶

func NewNestedSortValue() *NestedSortValue

NewNestedSortValue returns a NestedSortValue.

func (*NestedSortValue) NestedSortValueCaster ¶

func (s *NestedSortValue) NestedSortValueCaster() *NestedSortValue

func (*NestedSortValue) UnmarshalJSON ¶

func (s *NestedSortValue) UnmarshalJSON(data []byte) error

type NestedSortValueVariant ¶

type NestedSortValueVariant interface {
	NestedSortValueCaster() *NestedSortValue
}

type NetworkDirectionProcessor ¶

type NetworkDirectionProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// DestinationIp Field containing the destination IP address.
	DestinationIp *string `json:"destination_ip,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If true and any required fields are missing, the processor quietly exits
	// without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// InternalNetworks List of internal networks. Supports IPv4 and IPv6 addresses and ranges in
	// CIDR notation. Also supports the named ranges listed below. These may be
	// constructed with template snippets. Must specify only one of
	// internal_networks or internal_networks_field.
	InternalNetworks []string `json:"internal_networks,omitempty"`
	// InternalNetworksField A field on the given document to read the internal_networks configuration
	// from.
	InternalNetworksField *string `json:"internal_networks_field,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// SourceIp Field containing the source IP address.
	SourceIp *string `json:"source_ip,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Output field for the network direction.
	TargetField *string `json:"target_field,omitempty"`
}

NetworkDirectionProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1249-L1283

func NewNetworkDirectionProcessor ¶

func NewNetworkDirectionProcessor() *NetworkDirectionProcessor

NewNetworkDirectionProcessor returns a NetworkDirectionProcessor.

func (*NetworkDirectionProcessor) NetworkDirectionProcessorCaster ¶

func (s *NetworkDirectionProcessor) NetworkDirectionProcessorCaster() *NetworkDirectionProcessor

func (*NetworkDirectionProcessor) UnmarshalJSON ¶

func (s *NetworkDirectionProcessor) UnmarshalJSON(data []byte) error

type NetworkDirectionProcessorVariant ¶

type NetworkDirectionProcessorVariant interface {
	NetworkDirectionProcessorCaster() *NetworkDirectionProcessor
}

type NeverCondition ¶

type NeverCondition struct {
}

NeverCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L73-L73

func NewNeverCondition ¶

func NewNeverCondition() *NeverCondition

NewNeverCondition returns a NeverCondition.

func (*NeverCondition) NeverConditionCaster ¶

func (s *NeverCondition) NeverConditionCaster() *NeverCondition

type NeverConditionVariant ¶

type NeverConditionVariant interface {
	NeverConditionCaster() *NeverCondition
}

type NlpBertTokenizationConfig ¶

type NlpBertTokenizationConfig struct {
	// DoLowerCase Should the tokenizer lower case the text
	DoLowerCase *bool `json:"do_lower_case,omitempty"`
	// MaxSequenceLength Maximum input sequence length for the model
	MaxSequenceLength *int `json:"max_sequence_length,omitempty"`
	// Span Tokenization spanning options. Special value of -1 indicates no spanning
	// takes place
	Span *int `json:"span,omitempty"`
	// Truncate Should tokenization input be automatically truncated before sending to the
	// model for inference
	Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`
	// WithSpecialTokens Is tokenization completed with special tokens
	WithSpecialTokens *bool `json:"with_special_tokens,omitempty"`
}

NlpBertTokenizationConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L188-L189

func NewNlpBertTokenizationConfig ¶

func NewNlpBertTokenizationConfig() *NlpBertTokenizationConfig

NewNlpBertTokenizationConfig returns a NlpBertTokenizationConfig.

func (*NlpBertTokenizationConfig) NlpBertTokenizationConfigCaster ¶

func (s *NlpBertTokenizationConfig) NlpBertTokenizationConfigCaster() *NlpBertTokenizationConfig

func (*NlpBertTokenizationConfig) UnmarshalJSON ¶

func (s *NlpBertTokenizationConfig) UnmarshalJSON(data []byte) error

type NlpBertTokenizationConfigVariant ¶

type NlpBertTokenizationConfigVariant interface {
	NlpBertTokenizationConfigCaster() *NlpBertTokenizationConfig
}

type NlpRobertaTokenizationConfig ¶

type NlpRobertaTokenizationConfig struct {
	// AddPrefixSpace Should the tokenizer prefix input with a space character
	AddPrefixSpace *bool `json:"add_prefix_space,omitempty"`
	// DoLowerCase Should the tokenizer lower case the text
	DoLowerCase *bool `json:"do_lower_case,omitempty"`
	// MaxSequenceLength Maximum input sequence length for the model
	MaxSequenceLength *int `json:"max_sequence_length,omitempty"`
	// Span Tokenization spanning options. Special value of -1 indicates no spanning
	// takes place
	Span *int `json:"span,omitempty"`
	// Truncate Should tokenization input be automatically truncated before sending to the
	// model for inference
	Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`
	// WithSpecialTokens Is tokenization completed with special tokens
	WithSpecialTokens *bool `json:"with_special_tokens,omitempty"`
}

NlpRobertaTokenizationConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L191-L198

func NewNlpRobertaTokenizationConfig ¶

func NewNlpRobertaTokenizationConfig() *NlpRobertaTokenizationConfig

NewNlpRobertaTokenizationConfig returns a NlpRobertaTokenizationConfig.

func (*NlpRobertaTokenizationConfig) NlpRobertaTokenizationConfigCaster ¶

func (s *NlpRobertaTokenizationConfig) NlpRobertaTokenizationConfigCaster() *NlpRobertaTokenizationConfig

func (*NlpRobertaTokenizationConfig) UnmarshalJSON ¶

func (s *NlpRobertaTokenizationConfig) UnmarshalJSON(data []byte) error

type NlpRobertaTokenizationConfigVariant ¶

type NlpRobertaTokenizationConfigVariant interface {
	NlpRobertaTokenizationConfigCaster() *NlpRobertaTokenizationConfig
}

type NlpTokenizationUpdateOptions ¶

type NlpTokenizationUpdateOptions struct {
	// Span Span options to apply
	Span *int `json:"span,omitempty"`
	// Truncate Truncate options to apply
	Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`
}

NlpTokenizationUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L375-L380

func NewNlpTokenizationUpdateOptions ¶

func NewNlpTokenizationUpdateOptions() *NlpTokenizationUpdateOptions

NewNlpTokenizationUpdateOptions returns a NlpTokenizationUpdateOptions.

func (*NlpTokenizationUpdateOptions) NlpTokenizationUpdateOptionsCaster ¶

func (s *NlpTokenizationUpdateOptions) NlpTokenizationUpdateOptionsCaster() *NlpTokenizationUpdateOptions

func (*NlpTokenizationUpdateOptions) UnmarshalJSON ¶

func (s *NlpTokenizationUpdateOptions) UnmarshalJSON(data []byte) error

type NlpTokenizationUpdateOptionsVariant ¶

type NlpTokenizationUpdateOptionsVariant interface {
	NlpTokenizationUpdateOptionsCaster() *NlpTokenizationUpdateOptions
}

type NodeAllocationExplanation ¶

type NodeAllocationExplanation struct {
	Deciders         []AllocationDecision `json:"deciders"`
	NodeAttributes   map[string]string    `json:"node_attributes"`
	NodeDecision     decision.Decision    `json:"node_decision"`
	NodeId           string               `json:"node_id"`
	NodeName         string               `json:"node_name"`
	Roles            []noderole.NodeRole  `json:"roles"`
	Store            *AllocationStore     `json:"store,omitempty"`
	TransportAddress string               `json:"transport_address"`
	WeightRanking    int                  `json:"weight_ranking"`
}

NodeAllocationExplanation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L103-L117

func NewNodeAllocationExplanation ¶

func NewNodeAllocationExplanation() *NodeAllocationExplanation

NewNodeAllocationExplanation returns a NodeAllocationExplanation.

func (*NodeAllocationExplanation) UnmarshalJSON ¶

func (s *NodeAllocationExplanation) UnmarshalJSON(data []byte) error

type NodeAttributes ¶

type NodeAttributes struct {
	// Attributes Lists node attributes.
	Attributes map[string]string `json:"attributes"`
	// EphemeralId The ephemeral ID of the node.
	EphemeralId string `json:"ephemeral_id"`
	// Id The unique identifier of the node.
	Id *string `json:"id,omitempty"`
	// Name The unique identifier of the node.
	Name string `json:"name"`
	// TransportAddress The host and port where transport HTTP connections are accepted.
	TransportAddress string `json:"transport_address"`
}

NodeAttributes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Node.ts#L41-L52

func NewNodeAttributes ¶

func NewNodeAttributes() *NodeAttributes

NewNodeAttributes returns a NodeAttributes.

func (*NodeAttributes) UnmarshalJSON ¶

func (s *NodeAttributes) UnmarshalJSON(data []byte) error

type NodeAttributesRecord ¶

type NodeAttributesRecord struct {
	// Attr The attribute name.
	Attr *string `json:"attr,omitempty"`
	// Host The host name.
	Host *string `json:"host,omitempty"`
	// Id The unique node identifier.
	Id *string `json:"id,omitempty"`
	// Ip The IP address.
	Ip *string `json:"ip,omitempty"`
	// Node The node name.
	Node *string `json:"node,omitempty"`
	// Pid The process identifier.
	Pid *string `json:"pid,omitempty"`
	// Port The bound transport port.
	Port *string `json:"port,omitempty"`
	// Value The attribute value.
	Value *string `json:"value,omitempty"`
}

NodeAttributesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/nodeattrs/types.ts#L20-L55

func NewNodeAttributesRecord ¶

func NewNodeAttributesRecord() *NodeAttributesRecord

NewNodeAttributesRecord returns a NodeAttributesRecord.

func (*NodeAttributesRecord) UnmarshalJSON ¶

func (s *NodeAttributesRecord) UnmarshalJSON(data []byte) error

type NodeBufferPool ¶

type NodeBufferPool struct {
	// Count Number of buffer pools.
	Count *int64 `json:"count,omitempty"`
	// TotalCapacity Total capacity of buffer pools.
	TotalCapacity *string `json:"total_capacity,omitempty"`
	// TotalCapacityInBytes Total capacity of buffer pools in bytes.
	TotalCapacityInBytes *int64 `json:"total_capacity_in_bytes,omitempty"`
	// Used Size of buffer pools.
	Used *string `json:"used,omitempty"`
	// UsedInBytes Size of buffer pools in bytes.
	UsedInBytes *int64 `json:"used_in_bytes,omitempty"`
}

NodeBufferPool type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L861-L882

func NewNodeBufferPool ¶

func NewNodeBufferPool() *NodeBufferPool

NewNodeBufferPool returns a NodeBufferPool.

func (*NodeBufferPool) UnmarshalJSON ¶

func (s *NodeBufferPool) UnmarshalJSON(data []byte) error

type NodeDiskUsage ¶

type NodeDiskUsage struct {
	LeastAvailable DiskUsage `json:"least_available"`
	MostAvailable  DiskUsage `json:"most_available"`
	NodeName       string    `json:"node_name"`
}

NodeDiskUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L57-L61

func NewNodeDiskUsage ¶

func NewNodeDiskUsage() *NodeDiskUsage

NewNodeDiskUsage returns a NodeDiskUsage.

func (*NodeDiskUsage) UnmarshalJSON ¶

func (s *NodeDiskUsage) UnmarshalJSON(data []byte) error

type NodeInfo ¶

type NodeInfo struct {
	Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"`
	Attributes   map[string]string              `json:"attributes"`
	BuildFlavor  string                         `json:"build_flavor"`
	// BuildHash Short hash of the last git commit in this release.
	BuildHash         string         `json:"build_hash"`
	BuildType         string         `json:"build_type"`
	ComponentVersions map[string]int `json:"component_versions"`
	// Host The node’s host name.
	Host         string          `json:"host"`
	Http         *NodeInfoHttp   `json:"http,omitempty"`
	IndexVersion int64           `json:"index_version"`
	Ingest       *NodeInfoIngest `json:"ingest,omitempty"`
	// Ip The node’s IP address.
	Ip      string        `json:"ip"`
	Jvm     *NodeJvmInfo  `json:"jvm,omitempty"`
	Modules []PluginStats `json:"modules,omitempty"`
	// Name The node's name
	Name                string                        `json:"name"`
	Os                  *NodeOperatingSystemInfo      `json:"os,omitempty"`
	Plugins             []PluginStats                 `json:"plugins,omitempty"`
	Process             *NodeProcessInfo              `json:"process,omitempty"`
	RemoteClusterServer *RemoveClusterServer          `json:"remote_cluster_server,omitempty"`
	Roles               []noderole.NodeRole           `json:"roles"`
	Settings            *NodeInfoSettings             `json:"settings,omitempty"`
	ThreadPool          map[string]NodeThreadPoolInfo `json:"thread_pool,omitempty"`
	// TotalIndexingBuffer Total heap allowed to be used to hold recently indexed documents before they
	// must be written to disk. This size is a shared pool across all shards on this
	// node, and is controlled by Indexing Buffer settings.
	TotalIndexingBuffer *int64 `json:"total_indexing_buffer,omitempty"`
	// TotalIndexingBufferInBytes Same as total_indexing_buffer, but expressed in bytes.
	TotalIndexingBufferInBytes ByteSize           `json:"total_indexing_buffer_in_bytes,omitempty"`
	Transport                  *NodeInfoTransport `json:"transport,omitempty"`
	// TransportAddress Host and port where transport HTTP connections are accepted.
	TransportAddress string `json:"transport_address"`
	TransportVersion int64  `json:"transport_version"`
	// Version Elasticsearch version running on this node.
	Version string `json:"version"`
}

NodeInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L32-L72

func NewNodeInfo ¶

func NewNodeInfo() *NodeInfo

NewNodeInfo returns a NodeInfo.

func (*NodeInfo) UnmarshalJSON ¶

func (s *NodeInfo) UnmarshalJSON(data []byte) error

type NodeInfoAction ¶

type NodeInfoAction struct {
	DestructiveRequiresName string `json:"destructive_requires_name"`
}

NodeInfoAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L194-L196

func NewNodeInfoAction ¶

func NewNodeInfoAction() *NodeInfoAction

NewNodeInfoAction returns a NodeInfoAction.

func (*NodeInfoAction) UnmarshalJSON ¶

func (s *NodeInfoAction) UnmarshalJSON(data []byte) error

type NodeInfoAggregation ¶

type NodeInfoAggregation struct {
	Types []string `json:"types"`
}

NodeInfoAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L250-L252

func NewNodeInfoAggregation ¶

func NewNodeInfoAggregation() *NodeInfoAggregation

NewNodeInfoAggregation returns a NodeInfoAggregation.

type NodeInfoBootstrap ¶

type NodeInfoBootstrap struct {
	MemoryLock string `json:"memory_lock"`
}

NodeInfoBootstrap type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L214-L216

func NewNodeInfoBootstrap ¶

func NewNodeInfoBootstrap() *NodeInfoBootstrap

NewNodeInfoBootstrap returns a NodeInfoBootstrap.

func (*NodeInfoBootstrap) UnmarshalJSON ¶

func (s *NodeInfoBootstrap) UnmarshalJSON(data []byte) error

type NodeInfoClient ¶

type NodeInfoClient struct {
	Type string `json:"type"`
}

NodeInfoClient type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L198-L200

func NewNodeInfoClient ¶

func NewNodeInfoClient() *NodeInfoClient

NewNodeInfoClient returns a NodeInfoClient.

func (*NodeInfoClient) UnmarshalJSON ¶

func (s *NodeInfoClient) UnmarshalJSON(data []byte) error

type NodeInfoDiscover ¶

type NodeInfoDiscover struct {
	NodeInfoDiscover map[string]json.RawMessage `json:"-"`
	SeedHosts        []string                   `json:"seed_hosts,omitempty"`
	SeedProviders    []string                   `json:"seed_providers,omitempty"`
	Type             *string                    `json:"type,omitempty"`
}

NodeInfoDiscover type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L183-L192

func NewNodeInfoDiscover ¶

func NewNodeInfoDiscover() *NodeInfoDiscover

NewNodeInfoDiscover returns a NodeInfoDiscover.

func (NodeInfoDiscover) MarshalJSON ¶

func (s NodeInfoDiscover) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*NodeInfoDiscover) UnmarshalJSON ¶

func (s *NodeInfoDiscover) UnmarshalJSON(data []byte) error

type NodeInfoHttp ¶

type NodeInfoHttp struct {
	BoundAddress            []string `json:"bound_address"`
	MaxContentLength        ByteSize `json:"max_content_length,omitempty"`
	MaxContentLengthInBytes int64    `json:"max_content_length_in_bytes"`
	PublishAddress          string   `json:"publish_address"`
}

NodeInfoHttp type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L326-L331

func NewNodeInfoHttp ¶

func NewNodeInfoHttp() *NodeInfoHttp

NewNodeInfoHttp returns a NodeInfoHttp.

func (*NodeInfoHttp) UnmarshalJSON ¶

func (s *NodeInfoHttp) UnmarshalJSON(data []byte) error

type NodeInfoIngest ¶

type NodeInfoIngest struct {
	Processors []NodeInfoIngestProcessor `json:"processors"`
}

NodeInfoIngest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L242-L244

func NewNodeInfoIngest ¶

func NewNodeInfoIngest() *NodeInfoIngest

NewNodeInfoIngest returns a NodeInfoIngest.

type NodeInfoIngestDownloader ¶

type NodeInfoIngestDownloader struct {
	Enabled string `json:"enabled"`
}

NodeInfoIngestDownloader type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L138-L140

func NewNodeInfoIngestDownloader ¶

func NewNodeInfoIngestDownloader() *NodeInfoIngestDownloader

NewNodeInfoIngestDownloader returns a NodeInfoIngestDownloader.

func (*NodeInfoIngestDownloader) UnmarshalJSON ¶

func (s *NodeInfoIngestDownloader) UnmarshalJSON(data []byte) error

type NodeInfoIngestInfo ¶

type NodeInfoIngestInfo struct {
	Downloader NodeInfoIngestDownloader `json:"downloader"`
}

NodeInfoIngestInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L134-L136

func NewNodeInfoIngestInfo ¶

func NewNodeInfoIngestInfo() *NodeInfoIngestInfo

NewNodeInfoIngestInfo returns a NodeInfoIngestInfo.

type NodeInfoIngestProcessor ¶

type NodeInfoIngestProcessor struct {
	Type string `json:"type"`
}

NodeInfoIngestProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L246-L248

func NewNodeInfoIngestProcessor ¶

func NewNodeInfoIngestProcessor() *NodeInfoIngestProcessor

NewNodeInfoIngestProcessor returns a NodeInfoIngestProcessor.

func (*NodeInfoIngestProcessor) UnmarshalJSON ¶

func (s *NodeInfoIngestProcessor) UnmarshalJSON(data []byte) error

type NodeInfoJvmMemory ¶

type NodeInfoJvmMemory struct {
	DirectMax          ByteSize `json:"direct_max,omitempty"`
	DirectMaxInBytes   int64    `json:"direct_max_in_bytes"`
	HeapInit           ByteSize `json:"heap_init,omitempty"`
	HeapInitInBytes    int64    `json:"heap_init_in_bytes"`
	HeapMax            ByteSize `json:"heap_max,omitempty"`
	HeapMaxInBytes     int64    `json:"heap_max_in_bytes"`
	NonHeapInit        ByteSize `json:"non_heap_init,omitempty"`
	NonHeapInitInBytes int64    `json:"non_heap_init_in_bytes"`
	NonHeapMax         ByteSize `json:"non_heap_max,omitempty"`
	NonHeapMaxInBytes  int64    `json:"non_heap_max_in_bytes"`
}

NodeInfoJvmMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L333-L344

func NewNodeInfoJvmMemory ¶

func NewNodeInfoJvmMemory() *NodeInfoJvmMemory

NewNodeInfoJvmMemory returns a NodeInfoJvmMemory.

func (*NodeInfoJvmMemory) UnmarshalJSON ¶

func (s *NodeInfoJvmMemory) UnmarshalJSON(data []byte) error

type NodeInfoMemory ¶

type NodeInfoMemory struct {
	Total        string `json:"total"`
	TotalInBytes int64  `json:"total_in_bytes"`
}

NodeInfoMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L346-L349

func NewNodeInfoMemory ¶

func NewNodeInfoMemory() *NodeInfoMemory

NewNodeInfoMemory returns a NodeInfoMemory.

func (*NodeInfoMemory) UnmarshalJSON ¶

func (s *NodeInfoMemory) UnmarshalJSON(data []byte) error

type NodeInfoOSCPU ¶

type NodeInfoOSCPU struct {
	CacheSize        string `json:"cache_size"`
	CacheSizeInBytes int    `json:"cache_size_in_bytes"`
	CoresPerSocket   int    `json:"cores_per_socket"`
	Mhz              int    `json:"mhz"`
	Model            string `json:"model"`
	TotalCores       int    `json:"total_cores"`
	TotalSockets     int    `json:"total_sockets"`
	Vendor           string `json:"vendor"`
}

NodeInfoOSCPU type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L351-L360

func NewNodeInfoOSCPU ¶

func NewNodeInfoOSCPU() *NodeInfoOSCPU

NewNodeInfoOSCPU returns a NodeInfoOSCPU.

func (*NodeInfoOSCPU) UnmarshalJSON ¶

func (s *NodeInfoOSCPU) UnmarshalJSON(data []byte) error

type NodeInfoPath ¶

type NodeInfoPath struct {
	Data []string `json:"data,omitempty"`
	Home *string  `json:"home,omitempty"`
	Logs *string  `json:"logs,omitempty"`
	Repo []string `json:"repo,omitempty"`
}

NodeInfoPath type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L168-L173

func NewNodeInfoPath ¶

func NewNodeInfoPath() *NodeInfoPath

NewNodeInfoPath returns a NodeInfoPath.

func (*NodeInfoPath) UnmarshalJSON ¶

func (s *NodeInfoPath) UnmarshalJSON(data []byte) error

type NodeInfoRepositories ¶

type NodeInfoRepositories struct {
	Url NodeInfoRepositoriesUrl `json:"url"`
}

NodeInfoRepositories type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L175-L177

func NewNodeInfoRepositories ¶

func NewNodeInfoRepositories() *NodeInfoRepositories

NewNodeInfoRepositories returns a NodeInfoRepositories.

type NodeInfoRepositoriesUrl ¶

type NodeInfoRepositoriesUrl struct {
	AllowedUrls string `json:"allowed_urls"`
}

NodeInfoRepositoriesUrl type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L179-L181

func NewNodeInfoRepositoriesUrl ¶

func NewNodeInfoRepositoriesUrl() *NodeInfoRepositoriesUrl

NewNodeInfoRepositoriesUrl returns a NodeInfoRepositoriesUrl.

func (*NodeInfoRepositoriesUrl) UnmarshalJSON ¶

func (s *NodeInfoRepositoriesUrl) UnmarshalJSON(data []byte) error

type NodeInfoScript ¶

type NodeInfoScript struct {
	AllowedTypes               string  `json:"allowed_types"`
	DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"`
}

NodeInfoScript type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L304-L307

func NewNodeInfoScript ¶

func NewNodeInfoScript() *NodeInfoScript

NewNodeInfoScript returns a NodeInfoScript.

func (*NodeInfoScript) UnmarshalJSON ¶

func (s *NodeInfoScript) UnmarshalJSON(data []byte) error

type NodeInfoSearch ¶

type NodeInfoSearch struct {
	Remote NodeInfoSearchRemote `json:"remote"`
}

NodeInfoSearch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L309-L311

func NewNodeInfoSearch ¶

func NewNodeInfoSearch() *NodeInfoSearch

NewNodeInfoSearch returns a NodeInfoSearch.

type NodeInfoSearchRemote ¶

type NodeInfoSearchRemote struct {
	Connect string `json:"connect"`
}

NodeInfoSearchRemote type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L313-L315

func NewNodeInfoSearchRemote ¶

func NewNodeInfoSearchRemote() *NodeInfoSearchRemote

NewNodeInfoSearchRemote returns a NodeInfoSearchRemote.

func (*NodeInfoSearchRemote) UnmarshalJSON ¶

func (s *NodeInfoSearchRemote) UnmarshalJSON(data []byte) error

type NodeInfoSettings ¶

type NodeInfoSettings struct {
	Action       *NodeInfoAction           `json:"action,omitempty"`
	Bootstrap    *NodeInfoBootstrap        `json:"bootstrap,omitempty"`
	Client       *NodeInfoClient           `json:"client,omitempty"`
	Cluster      NodeInfoSettingsCluster   `json:"cluster"`
	Discovery    *NodeInfoDiscover         `json:"discovery,omitempty"`
	Http         NodeInfoSettingsHttp      `json:"http"`
	Ingest       *NodeInfoSettingsIngest   `json:"ingest,omitempty"`
	Network      *NodeInfoSettingsNetwork  `json:"network,omitempty"`
	Node         NodeInfoSettingsNode      `json:"node"`
	Path         *NodeInfoPath             `json:"path,omitempty"`
	Repositories *NodeInfoRepositories     `json:"repositories,omitempty"`
	Script       *NodeInfoScript           `json:"script,omitempty"`
	Search       *NodeInfoSearch           `json:"search,omitempty"`
	Transport    NodeInfoSettingsTransport `json:"transport"`
	Xpack        *NodeInfoXpack            `json:"xpack,omitempty"`
}

NodeInfoSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L79-L95

func NewNodeInfoSettings ¶

func NewNodeInfoSettings() *NodeInfoSettings

NewNodeInfoSettings returns a NodeInfoSettings.

type NodeInfoSettingsCluster ¶

type NodeInfoSettingsCluster struct {
	DeprecationIndexing *DeprecationIndexing            `json:"deprecation_indexing,omitempty"`
	Election            NodeInfoSettingsClusterElection `json:"election"`
	InitialMasterNodes  []string                        `json:"initial_master_nodes,omitempty"`
	Name                string                          `json:"name"`
	Routing             *IndexRouting                   `json:"routing,omitempty"`
}

NodeInfoSettingsCluster type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L142-L152

func NewNodeInfoSettingsCluster ¶

func NewNodeInfoSettingsCluster() *NodeInfoSettingsCluster

NewNodeInfoSettingsCluster returns a NodeInfoSettingsCluster.

func (*NodeInfoSettingsCluster) UnmarshalJSON ¶

func (s *NodeInfoSettingsCluster) UnmarshalJSON(data []byte) error

type NodeInfoSettingsClusterElection ¶

type NodeInfoSettingsClusterElection struct {
	Strategy string `json:"strategy"`
}

NodeInfoSettingsClusterElection type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L158-L160

func NewNodeInfoSettingsClusterElection ¶

func NewNodeInfoSettingsClusterElection() *NodeInfoSettingsClusterElection

NewNodeInfoSettingsClusterElection returns a NodeInfoSettingsClusterElection.

func (*NodeInfoSettingsClusterElection) UnmarshalJSON ¶

func (s *NodeInfoSettingsClusterElection) UnmarshalJSON(data []byte) error

type NodeInfoSettingsHttp ¶

type NodeInfoSettingsHttp struct {
	Compression *string                  `json:"compression,omitempty"`
	Port        *string                  `json:"port,omitempty"`
	Type        NodeInfoSettingsHttpType `json:"type"`
	TypeDefault *string                  `json:"type.default,omitempty"`
}

NodeInfoSettingsHttp type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L202-L207

func NewNodeInfoSettingsHttp ¶

func NewNodeInfoSettingsHttp() *NodeInfoSettingsHttp

NewNodeInfoSettingsHttp returns a NodeInfoSettingsHttp.

func (*NodeInfoSettingsHttp) UnmarshalJSON ¶

func (s *NodeInfoSettingsHttp) UnmarshalJSON(data []byte) error

type NodeInfoSettingsHttpType ¶

type NodeInfoSettingsHttpType struct {
	Default string `json:"default"`
}

NodeInfoSettingsHttpType type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L209-L212

func NewNodeInfoSettingsHttpType ¶

func NewNodeInfoSettingsHttpType() *NodeInfoSettingsHttpType

NewNodeInfoSettingsHttpType returns a NodeInfoSettingsHttpType.

func (*NodeInfoSettingsHttpType) UnmarshalJSON ¶

func (s *NodeInfoSettingsHttpType) UnmarshalJSON(data []byte) error

type NodeInfoSettingsIngest ¶

type NodeInfoSettingsIngest struct {
	Append          *NodeInfoIngestInfo `json:"append,omitempty"`
	Attachment      *NodeInfoIngestInfo `json:"attachment,omitempty"`
	Bytes           *NodeInfoIngestInfo `json:"bytes,omitempty"`
	Circle          *NodeInfoIngestInfo `json:"circle,omitempty"`
	Convert         *NodeInfoIngestInfo `json:"convert,omitempty"`
	Csv             *NodeInfoIngestInfo `json:"csv,omitempty"`
	Date            *NodeInfoIngestInfo `json:"date,omitempty"`
	DateIndexName   *NodeInfoIngestInfo `json:"date_index_name,omitempty"`
	Dissect         *NodeInfoIngestInfo `json:"dissect,omitempty"`
	DotExpander     *NodeInfoIngestInfo `json:"dot_expander,omitempty"`
	Drop            *NodeInfoIngestInfo `json:"drop,omitempty"`
	Enrich          *NodeInfoIngestInfo `json:"enrich,omitempty"`
	Fail            *NodeInfoIngestInfo `json:"fail,omitempty"`
	Foreach         *NodeInfoIngestInfo `json:"foreach,omitempty"`
	Geoip           *NodeInfoIngestInfo `json:"geoip,omitempty"`
	Grok            *NodeInfoIngestInfo `json:"grok,omitempty"`
	Gsub            *NodeInfoIngestInfo `json:"gsub,omitempty"`
	Inference       *NodeInfoIngestInfo `json:"inference,omitempty"`
	Join            *NodeInfoIngestInfo `json:"join,omitempty"`
	Json            *NodeInfoIngestInfo `json:"json,omitempty"`
	Kv              *NodeInfoIngestInfo `json:"kv,omitempty"`
	Lowercase       *NodeInfoIngestInfo `json:"lowercase,omitempty"`
	Pipeline        *NodeInfoIngestInfo `json:"pipeline,omitempty"`
	Remove          *NodeInfoIngestInfo `json:"remove,omitempty"`
	Rename          *NodeInfoIngestInfo `json:"rename,omitempty"`
	Script          *NodeInfoIngestInfo `json:"script,omitempty"`
	Set             *NodeInfoIngestInfo `json:"set,omitempty"`
	SetSecurityUser *NodeInfoIngestInfo `json:"set_security_user,omitempty"`
	Sort            *NodeInfoIngestInfo `json:"sort,omitempty"`
	Split           *NodeInfoIngestInfo `json:"split,omitempty"`
	Trim            *NodeInfoIngestInfo `json:"trim,omitempty"`
	Uppercase       *NodeInfoIngestInfo `json:"uppercase,omitempty"`
	Urldecode       *NodeInfoIngestInfo `json:"urldecode,omitempty"`
	UserAgent       *NodeInfoIngestInfo `json:"user_agent,omitempty"`
}

NodeInfoSettingsIngest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L97-L132

func NewNodeInfoSettingsIngest ¶

func NewNodeInfoSettingsIngest() *NodeInfoSettingsIngest

NewNodeInfoSettingsIngest returns a NodeInfoSettingsIngest.

type NodeInfoSettingsNetwork ¶

type NodeInfoSettingsNetwork struct {
	Host []string `json:"host,omitempty"`
}

NodeInfoSettingsNetwork type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L238-L240

func NewNodeInfoSettingsNetwork ¶

func NewNodeInfoSettingsNetwork() *NodeInfoSettingsNetwork

NewNodeInfoSettingsNetwork returns a NodeInfoSettingsNetwork.

func (*NodeInfoSettingsNetwork) UnmarshalJSON ¶

func (s *NodeInfoSettingsNetwork) UnmarshalJSON(data []byte) error

type NodeInfoSettingsNode ¶

type NodeInfoSettingsNode struct {
	Attr                 map[string]json.RawMessage `json:"attr"`
	MaxLocalStorageNodes *string                    `json:"max_local_storage_nodes,omitempty"`
	Name                 string                     `json:"name"`
}

NodeInfoSettingsNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L162-L166

func NewNodeInfoSettingsNode ¶

func NewNodeInfoSettingsNode() *NodeInfoSettingsNode

NewNodeInfoSettingsNode returns a NodeInfoSettingsNode.

func (*NodeInfoSettingsNode) UnmarshalJSON ¶

func (s *NodeInfoSettingsNode) UnmarshalJSON(data []byte) error

type NodeInfoSettingsTransport ¶

type NodeInfoSettingsTransport struct {
	Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"`
	// IgnoreDeserializationErrors Only used in unit tests
	IgnoreDeserializationErrors Stringifiedboolean            `json:"ignore_deserialization_errors,omitempty"`
	Type                        NodeInfoSettingsTransportType `json:"type"`
	TypeDefault                 *string                       `json:"type.default,omitempty"`
}

NodeInfoSettingsTransport type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L218-L227

func NewNodeInfoSettingsTransport ¶

func NewNodeInfoSettingsTransport() *NodeInfoSettingsTransport

NewNodeInfoSettingsTransport returns a NodeInfoSettingsTransport.

func (*NodeInfoSettingsTransport) UnmarshalJSON ¶

func (s *NodeInfoSettingsTransport) UnmarshalJSON(data []byte) error

type NodeInfoSettingsTransportFeatures ¶

type NodeInfoSettingsTransportFeatures struct {
	XPack string `json:"x-pack"`
}

NodeInfoSettingsTransportFeatures type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L234-L236

func NewNodeInfoSettingsTransportFeatures ¶

func NewNodeInfoSettingsTransportFeatures() *NodeInfoSettingsTransportFeatures

NewNodeInfoSettingsTransportFeatures returns a NodeInfoSettingsTransportFeatures.

func (*NodeInfoSettingsTransportFeatures) UnmarshalJSON ¶

func (s *NodeInfoSettingsTransportFeatures) UnmarshalJSON(data []byte) error

type NodeInfoSettingsTransportType ¶

type NodeInfoSettingsTransportType struct {
	Default string `json:"default"`
}

NodeInfoSettingsTransportType type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L229-L232

func NewNodeInfoSettingsTransportType ¶

func NewNodeInfoSettingsTransportType() *NodeInfoSettingsTransportType

NewNodeInfoSettingsTransportType returns a NodeInfoSettingsTransportType.

func (*NodeInfoSettingsTransportType) UnmarshalJSON ¶

func (s *NodeInfoSettingsTransportType) UnmarshalJSON(data []byte) error

type NodeInfoTransport ¶

type NodeInfoTransport struct {
	BoundAddress   []string          `json:"bound_address"`
	Profiles       map[string]string `json:"profiles"`
	PublishAddress string            `json:"publish_address"`
}

NodeInfoTransport type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L362-L366

func NewNodeInfoTransport ¶

func NewNodeInfoTransport() *NodeInfoTransport

NewNodeInfoTransport returns a NodeInfoTransport.

func (*NodeInfoTransport) UnmarshalJSON ¶

func (s *NodeInfoTransport) UnmarshalJSON(data []byte) error

type NodeInfoXpack ¶

type NodeInfoXpack struct {
	License      *NodeInfoXpackLicense      `json:"license,omitempty"`
	Ml           *NodeInfoXpackMl           `json:"ml,omitempty"`
	Notification map[string]json.RawMessage `json:"notification,omitempty"`
	Security     NodeInfoXpackSecurity      `json:"security"`
}

NodeInfoXpack type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L254-L259

func NewNodeInfoXpack ¶

func NewNodeInfoXpack() *NodeInfoXpack

NewNodeInfoXpack returns a NodeInfoXpack.

type NodeInfoXpackLicense ¶

type NodeInfoXpackLicense struct {
	SelfGenerated NodeInfoXpackLicenseType `json:"self_generated"`
}

NodeInfoXpackLicense type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L296-L298

func NewNodeInfoXpackLicense ¶

func NewNodeInfoXpackLicense() *NodeInfoXpackLicense

NewNodeInfoXpackLicense returns a NodeInfoXpackLicense.

type NodeInfoXpackLicenseType ¶

type NodeInfoXpackLicenseType struct {
	Type string `json:"type"`
}

NodeInfoXpackLicenseType type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L300-L302

func NewNodeInfoXpackLicenseType ¶

func NewNodeInfoXpackLicenseType() *NodeInfoXpackLicenseType

NewNodeInfoXpackLicenseType returns a NodeInfoXpackLicenseType.

func (*NodeInfoXpackLicenseType) UnmarshalJSON ¶

func (s *NodeInfoXpackLicenseType) UnmarshalJSON(data []byte) error

type NodeInfoXpackMl ¶

type NodeInfoXpackMl struct {
	UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"`
}

NodeInfoXpackMl type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L268-L270

func NewNodeInfoXpackMl ¶

func NewNodeInfoXpackMl() *NodeInfoXpackMl

NewNodeInfoXpackMl returns a NodeInfoXpackMl.

func (*NodeInfoXpackMl) UnmarshalJSON ¶

func (s *NodeInfoXpackMl) UnmarshalJSON(data []byte) error

type NodeInfoXpackSecurity ¶

type NodeInfoXpackSecurity struct {
	Authc     *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"`
	Enabled   string                      `json:"enabled"`
	Http      *NodeInfoXpackSecuritySsl   `json:"http,omitempty"`
	Transport *NodeInfoXpackSecuritySsl   `json:"transport,omitempty"`
}

NodeInfoXpackSecurity type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L261-L266

func NewNodeInfoXpackSecurity ¶

func NewNodeInfoXpackSecurity() *NodeInfoXpackSecurity

NewNodeInfoXpackSecurity returns a NodeInfoXpackSecurity.

func (*NodeInfoXpackSecurity) UnmarshalJSON ¶

func (s *NodeInfoXpackSecurity) UnmarshalJSON(data []byte) error

type NodeInfoXpackSecurityAuthc ¶

type NodeInfoXpackSecurityAuthc struct {
	Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"`
	Token  *NodeInfoXpackSecurityAuthcToken  `json:"token,omitempty"`
}

NodeInfoXpackSecurityAuthc type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L276-L279

func NewNodeInfoXpackSecurityAuthc ¶

func NewNodeInfoXpackSecurityAuthc() *NodeInfoXpackSecurityAuthc

NewNodeInfoXpackSecurityAuthc returns a NodeInfoXpackSecurityAuthc.

type NodeInfoXpackSecurityAuthcRealms ¶

type NodeInfoXpackSecurityAuthcRealms struct {
	File   map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"`
	Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"`
	Pki    map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"pki,omitempty"`
}

NodeInfoXpackSecurityAuthcRealms type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L281-L285

func NewNodeInfoXpackSecurityAuthcRealms ¶

func NewNodeInfoXpackSecurityAuthcRealms() *NodeInfoXpackSecurityAuthcRealms

NewNodeInfoXpackSecurityAuthcRealms returns a NodeInfoXpackSecurityAuthcRealms.

type NodeInfoXpackSecurityAuthcRealmsStatus ¶

type NodeInfoXpackSecurityAuthcRealmsStatus struct {
	Enabled *string `json:"enabled,omitempty"`
	Order   string  `json:"order"`
}

NodeInfoXpackSecurityAuthcRealmsStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L291-L294

func NewNodeInfoXpackSecurityAuthcRealmsStatus ¶

func NewNodeInfoXpackSecurityAuthcRealmsStatus() *NodeInfoXpackSecurityAuthcRealmsStatus

NewNodeInfoXpackSecurityAuthcRealmsStatus returns a NodeInfoXpackSecurityAuthcRealmsStatus.

func (*NodeInfoXpackSecurityAuthcRealmsStatus) UnmarshalJSON ¶

func (s *NodeInfoXpackSecurityAuthcRealmsStatus) UnmarshalJSON(data []byte) error

type NodeInfoXpackSecurityAuthcToken ¶

type NodeInfoXpackSecurityAuthcToken struct {
	Enabled string `json:"enabled"`
}

NodeInfoXpackSecurityAuthcToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L287-L289

func NewNodeInfoXpackSecurityAuthcToken ¶

func NewNodeInfoXpackSecurityAuthcToken() *NodeInfoXpackSecurityAuthcToken

NewNodeInfoXpackSecurityAuthcToken returns a NodeInfoXpackSecurityAuthcToken.

func (*NodeInfoXpackSecurityAuthcToken) UnmarshalJSON ¶

func (s *NodeInfoXpackSecurityAuthcToken) UnmarshalJSON(data []byte) error

type NodeInfoXpackSecuritySsl ¶

type NodeInfoXpackSecuritySsl struct {
	Ssl map[string]string `json:"ssl"`
}

NodeInfoXpackSecuritySsl type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L272-L274

func NewNodeInfoXpackSecuritySsl ¶

func NewNodeInfoXpackSecuritySsl() *NodeInfoXpackSecuritySsl

NewNodeInfoXpackSecuritySsl returns a NodeInfoXpackSecuritySsl.

type NodeJvmInfo ¶

type NodeJvmInfo struct {
	GcCollectors                          []string          `json:"gc_collectors"`
	InputArguments                        []string          `json:"input_arguments"`
	Mem                                   NodeInfoJvmMemory `json:"mem"`
	MemoryPools                           []string          `json:"memory_pools"`
	Pid                                   int               `json:"pid"`
	StartTimeInMillis                     int64             `json:"start_time_in_millis"`
	UsingBundledJdk                       bool              `json:"using_bundled_jdk"`
	UsingCompressedOrdinaryObjectPointers *string           `json:"using_compressed_ordinary_object_pointers,omitempty"`
	Version                               string            `json:"version"`
	VmName                                string            `json:"vm_name"`
	VmVendor                              string            `json:"vm_vendor"`
	VmVersion                             string            `json:"vm_version"`
}

NodeJvmInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L368-L381

func NewNodeJvmInfo ¶

func NewNodeJvmInfo() *NodeJvmInfo

NewNodeJvmInfo returns a NodeJvmInfo.

func (*NodeJvmInfo) UnmarshalJSON ¶

func (s *NodeJvmInfo) UnmarshalJSON(data []byte) error

type NodeOperatingSystemInfo ¶

type NodeOperatingSystemInfo struct {
	// AllocatedProcessors The number of processors actually used to calculate thread pool size. This
	// number can be set with the node.processors setting of a node and defaults to
	// the number of processors reported by the OS.
	AllocatedProcessors *int `json:"allocated_processors,omitempty"`
	// Arch Name of the JVM architecture (ex: amd64, x86)
	Arch string `json:"arch"`
	// AvailableProcessors Number of processors available to the Java virtual machine
	AvailableProcessors int             `json:"available_processors"`
	Cpu                 *NodeInfoOSCPU  `json:"cpu,omitempty"`
	Mem                 *NodeInfoMemory `json:"mem,omitempty"`
	// Name Name of the operating system (ex: Linux, Windows, Mac OS X)
	Name       string `json:"name"`
	PrettyName string `json:"pretty_name"`
	// RefreshIntervalInMillis Refresh interval for the OS statistics
	RefreshIntervalInMillis int64           `json:"refresh_interval_in_millis"`
	Swap                    *NodeInfoMemory `json:"swap,omitempty"`
	// Version Version of the operating system
	Version string `json:"version"`
}

NodeOperatingSystemInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L383-L400

func NewNodeOperatingSystemInfo ¶

func NewNodeOperatingSystemInfo() *NodeOperatingSystemInfo

NewNodeOperatingSystemInfo returns a NodeOperatingSystemInfo.

func (*NodeOperatingSystemInfo) UnmarshalJSON ¶

func (s *NodeOperatingSystemInfo) UnmarshalJSON(data []byte) error

type NodePackagingType ¶

type NodePackagingType struct {
	// Count Number of selected nodes using the distribution flavor and file type.
	Count int `json:"count"`
	// Flavor Type of Elasticsearch distribution. This is always `default`.
	Flavor string `json:"flavor"`
	// Type File type (such as `tar` or `zip`) used for the distribution package.
	Type string `json:"type"`
}

NodePackagingType type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L700-L713

func NewNodePackagingType ¶

func NewNodePackagingType() *NodePackagingType

NewNodePackagingType returns a NodePackagingType.

func (*NodePackagingType) UnmarshalJSON ¶

func (s *NodePackagingType) UnmarshalJSON(data []byte) error

type NodeProcessInfo ¶

type NodeProcessInfo struct {
	// Id Process identifier (PID)
	Id int64 `json:"id"`
	// Mlockall Indicates if the process address space has been successfully locked in memory
	Mlockall bool `json:"mlockall"`
	// RefreshIntervalInMillis Refresh interval for the process statistics
	RefreshIntervalInMillis int64 `json:"refresh_interval_in_millis"`
}

NodeProcessInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L402-L409

func NewNodeProcessInfo ¶

func NewNodeProcessInfo() *NodeProcessInfo

NewNodeProcessInfo returns a NodeProcessInfo.

func (*NodeProcessInfo) UnmarshalJSON ¶

func (s *NodeProcessInfo) UnmarshalJSON(data []byte) error

type NodeReloadResult ¶

type NodeReloadResult struct {
	Name            string      `json:"name"`
	ReloadException *ErrorCause `json:"reload_exception,omitempty"`
}

NodeReloadResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/NodeReloadResult.ts#L23-L26

func NewNodeReloadResult ¶

func NewNodeReloadResult() *NodeReloadResult

NewNodeReloadResult returns a NodeReloadResult.

func (*NodeReloadResult) UnmarshalJSON ¶

func (s *NodeReloadResult) UnmarshalJSON(data []byte) error

type NodeShard ¶

type NodeShard struct {
	AllocationId          map[string]string                   `json:"allocation_id,omitempty"`
	Index                 string                              `json:"index"`
	Node                  *string                             `json:"node,omitempty"`
	Primary               bool                                `json:"primary"`
	RecoverySource        map[string]string                   `json:"recovery_source,omitempty"`
	RelocatingNode        *string                             `json:"relocating_node,omitempty"`
	RelocationFailureInfo *RelocationFailureInfo              `json:"relocation_failure_info,omitempty"`
	Shard                 int                                 `json:"shard"`
	State                 shardroutingstate.ShardRoutingState `json:"state"`
	UnassignedInfo        *UnassignedInformation              `json:"unassigned_info,omitempty"`
}

NodeShard type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Node.ts#L54-L65

func NewNodeShard ¶

func NewNodeShard() *NodeShard

NewNodeShard returns a NodeShard.

func (*NodeShard) UnmarshalJSON ¶

func (s *NodeShard) UnmarshalJSON(data []byte) error

type NodeShutdownStatus ¶

type NodeShutdownStatus struct {
	NodeId                string                        `json:"node_id"`
	PersistentTasks       PersistentTaskStatus          `json:"persistent_tasks"`
	Plugins               PluginsStatus                 `json:"plugins"`
	Reason                string                        `json:"reason"`
	ShardMigration        ShardMigrationStatus          `json:"shard_migration"`
	ShutdownStartedmillis int64                         `json:"shutdown_startedmillis"`
	Status                shutdownstatus.ShutdownStatus `json:"status"`
	Type                  shutdowntype.ShutdownType     `json:"type"`
}

NodeShutdownStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38

func NewNodeShutdownStatus ¶

func NewNodeShutdownStatus() *NodeShutdownStatus

NewNodeShutdownStatus returns a NodeShutdownStatus.

func (*NodeShutdownStatus) UnmarshalJSON ¶

func (s *NodeShutdownStatus) UnmarshalJSON(data []byte) error

type NodeStatistics ¶

type NodeStatistics struct {
	// Failed Number of nodes that rejected the request or failed to respond. If this value
	// is not 0, a reason for the rejection or failure is included in the response.
	Failed   int          `json:"failed"`
	Failures []ErrorCause `json:"failures,omitempty"`
	// Successful Number of nodes that responded successfully to the request.
	Successful int `json:"successful"`
	// Total Total number of nodes selected by the request.
	Total int `json:"total"`
}

NodeStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Node.ts#L28-L39

func NewNodeStatistics ¶

func NewNodeStatistics() *NodeStatistics

NewNodeStatistics returns a NodeStatistics.

func (*NodeStatistics) UnmarshalJSON ¶

func (s *NodeStatistics) UnmarshalJSON(data []byte) error

type NodeTasks ¶

type NodeTasks struct {
	Attributes       map[string]string   `json:"attributes,omitempty"`
	Host             *string             `json:"host,omitempty"`
	Ip               *string             `json:"ip,omitempty"`
	Name             *string             `json:"name,omitempty"`
	Roles            []string            `json:"roles,omitempty"`
	Tasks            map[string]TaskInfo `json:"tasks"`
	TransportAddress *string             `json:"transport_address,omitempty"`
}

NodeTasks type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/tasks/_types/TaskListResponseBase.ts#L49-L57

func NewNodeTasks ¶

func NewNodeTasks() *NodeTasks

NewNodeTasks returns a NodeTasks.

func (*NodeTasks) UnmarshalJSON ¶

func (s *NodeTasks) UnmarshalJSON(data []byte) error

type NodeThreadPoolInfo ¶

type NodeThreadPoolInfo struct {
	Core      *int     `json:"core,omitempty"`
	KeepAlive Duration `json:"keep_alive,omitempty"`
	Max       *int     `json:"max,omitempty"`
	QueueSize int      `json:"queue_size"`
	Size      *int     `json:"size,omitempty"`
	Type      string   `json:"type"`
}

NodeThreadPoolInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L317-L324

func NewNodeThreadPoolInfo ¶

func NewNodeThreadPoolInfo() *NodeThreadPoolInfo

NewNodeThreadPoolInfo returns a NodeThreadPoolInfo.

func (*NodeThreadPoolInfo) UnmarshalJSON ¶

func (s *NodeThreadPoolInfo) UnmarshalJSON(data []byte) error

type NodeUsage ¶

type NodeUsage struct {
	Aggregations map[string]json.RawMessage `json:"aggregations"`
	RestActions  map[string]int             `json:"rest_actions"`
	Since        int64                      `json:"since"`
	Timestamp    int64                      `json:"timestamp"`
}

NodeUsage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/usage/types.ts#L25-L30

func NewNodeUsage ¶

func NewNodeUsage() *NodeUsage

NewNodeUsage returns a NodeUsage.

func (*NodeUsage) UnmarshalJSON ¶

func (s *NodeUsage) UnmarshalJSON(data []byte) error

type NodesContext ¶

type NodesContext struct {
	CacheEvictions            *int64  `json:"cache_evictions,omitempty"`
	CompilationLimitTriggered *int64  `json:"compilation_limit_triggered,omitempty"`
	Compilations              *int64  `json:"compilations,omitempty"`
	Context                   *string `json:"context,omitempty"`
}

NodesContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1075-L1080

func NewNodesContext ¶

func NewNodesContext() *NodesContext

NewNodesContext returns a NodesContext.

func (*NodesContext) UnmarshalJSON ¶

func (s *NodesContext) UnmarshalJSON(data []byte) error

type NodesCredentials ¶

type NodesCredentials struct {
	// FileTokens File-backed tokens collected from all nodes
	FileTokens map[string]NodesCredentialsFileToken `json:"file_tokens"`
	// NodeStats General status showing how nodes respond to the above collection request
	NodeStats NodeStatistics `json:"_nodes"`
}

NodesCredentials type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_service_credentials/types.ts#L23-L28

func NewNodesCredentials ¶

func NewNodesCredentials() *NodesCredentials

NewNodesCredentials returns a NodesCredentials.

type NodesCredentialsFileToken ¶

type NodesCredentialsFileToken struct {
	Nodes []string `json:"nodes"`
}

NodesCredentialsFileToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_service_credentials/types.ts#L30-L32

func NewNodesCredentialsFileToken ¶

func NewNodesCredentialsFileToken() *NodesCredentialsFileToken

NewNodesCredentialsFileToken returns a NodesCredentialsFileToken.

type NodesIndexingPressure ¶

type NodesIndexingPressure struct {
	// Memory Contains statistics for memory consumption from indexing load.
	Memory *NodesIndexingPressureMemory `json:"memory,omitempty"`
}

NodesIndexingPressure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L116-L121

func NewNodesIndexingPressure ¶

func NewNodesIndexingPressure() *NodesIndexingPressure

NewNodesIndexingPressure returns a NodesIndexingPressure.

type NodesIndexingPressureMemory ¶

type NodesIndexingPressureMemory struct {
	// Current Contains statistics for current indexing load.
	Current *PressureMemory `json:"current,omitempty"`
	// Limit Configured memory limit for the indexing requests.
	// Replica requests have an automatic limit that is 1.5x this value.
	Limit ByteSize `json:"limit,omitempty"`
	// LimitInBytes Configured memory limit, in bytes, for the indexing requests.
	// Replica requests have an automatic limit that is 1.5x this value.
	LimitInBytes *int64 `json:"limit_in_bytes,omitempty"`
	// Total Contains statistics for the cumulative indexing load since the node started.
	Total *PressureMemory `json:"total,omitempty"`
}

NodesIndexingPressureMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L123-L142

func NewNodesIndexingPressureMemory ¶

func NewNodesIndexingPressureMemory() *NodesIndexingPressureMemory

NewNodesIndexingPressureMemory returns a NodesIndexingPressureMemory.

func (*NodesIndexingPressureMemory) UnmarshalJSON ¶

func (s *NodesIndexingPressureMemory) UnmarshalJSON(data []byte) error

type NodesIngest ¶

type NodesIngest struct {
	// Pipelines Contains statistics about ingest pipelines for the node.
	Pipelines map[string]IngestStats `json:"pipelines,omitempty"`
	// Total Contains statistics about ingest operations for the node.
	Total *IngestTotal `json:"total,omitempty"`
}

NodesIngest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L347-L356

func NewNodesIngest ¶

func NewNodesIngest() *NodesIngest

NewNodesIngest returns a NodesIngest.

type NodesRecord ¶

type NodesRecord struct {
	// Build The Elasticsearch build hash.
	Build *string `json:"build,omitempty"`
	// BulkAvgSizeInBytes The average size in bytes of shard bulk.
	BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`
	// BulkAvgTime The average time spend in shard bulk.
	BulkAvgTime *string `json:"bulk.avg_time,omitempty"`
	// BulkTotalOperations The number of bulk shard operations.
	BulkTotalOperations *string `json:"bulk.total_operations,omitempty"`
	// BulkTotalSizeInBytes The total size in bytes of shard bulk.
	BulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`
	// BulkTotalTime The time spend in shard bulk.
	BulkTotalTime *string `json:"bulk.total_time,omitempty"`
	// CompletionSize The size of completion.
	CompletionSize *string `json:"completion.size,omitempty"`
	// Cpu The recent system CPU usage as a percentage.
	Cpu *string `json:"cpu,omitempty"`
	// DiskAvail The available disk space.
	DiskAvail ByteSize `json:"disk.avail,omitempty"`
	// DiskTotal The total disk space.
	DiskTotal ByteSize `json:"disk.total,omitempty"`
	// DiskUsed The used disk space.
	DiskUsed ByteSize `json:"disk.used,omitempty"`
	// DiskUsedPercent The used disk space percentage.
	DiskUsedPercent Percentage `json:"disk.used_percent,omitempty"`
	// FielddataEvictions The fielddata evictions.
	FielddataEvictions *string `json:"fielddata.evictions,omitempty"`
	// FielddataMemorySize The used fielddata cache.
	FielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`
	// FileDescCurrent The used file descriptors.
	FileDescCurrent *string `json:"file_desc.current,omitempty"`
	// FileDescMax The maximum number of file descriptors.
	FileDescMax *string `json:"file_desc.max,omitempty"`
	// FileDescPercent The used file descriptor ratio.
	FileDescPercent Percentage `json:"file_desc.percent,omitempty"`
	// Flavor The Elasticsearch distribution flavor.
	Flavor *string `json:"flavor,omitempty"`
	// FlushTotal The number of flushes.
	FlushTotal *string `json:"flush.total,omitempty"`
	// FlushTotalTime The time spent in flush.
	FlushTotalTime *string `json:"flush.total_time,omitempty"`
	// GetCurrent The number of current get ops.
	GetCurrent *string `json:"get.current,omitempty"`
	// GetExistsTime The time spent in successful gets.
	GetExistsTime *string `json:"get.exists_time,omitempty"`
	// GetExistsTotal The number of successful get operations.
	GetExistsTotal *string `json:"get.exists_total,omitempty"`
	// GetMissingTime The time spent in failed gets.
	GetMissingTime *string `json:"get.missing_time,omitempty"`
	// GetMissingTotal The number of failed gets.
	GetMissingTotal *string `json:"get.missing_total,omitempty"`
	// GetTime The time spent in get.
	GetTime *string `json:"get.time,omitempty"`
	// GetTotal The number of get ops.
	GetTotal *string `json:"get.total,omitempty"`
	// HeapCurrent The used heap.
	HeapCurrent *string `json:"heap.current,omitempty"`
	// HeapMax The maximum configured heap.
	HeapMax *string `json:"heap.max,omitempty"`
	// HeapPercent The used heap ratio.
	HeapPercent Percentage `json:"heap.percent,omitempty"`
	// HttpAddress The bound HTTP address.
	HttpAddress *string `json:"http_address,omitempty"`
	// Id The unique node identifier.
	Id *string `json:"id,omitempty"`
	// IndexingDeleteCurrent The number of current deletions.
	IndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`
	// IndexingDeleteTime The time spent in deletions.
	IndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`
	// IndexingDeleteTotal The number of delete operations.
	IndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`
	// IndexingIndexCurrent The number of current indexing operations.
	IndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`
	// IndexingIndexFailed The number of failed indexing operations.
	IndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`
	// IndexingIndexTime The time spent in indexing.
	IndexingIndexTime *string `json:"indexing.index_time,omitempty"`
	// IndexingIndexTotal The number of indexing operations.
	IndexingIndexTotal *string `json:"indexing.index_total,omitempty"`
	// Ip The IP address.
	Ip *string `json:"ip,omitempty"`
	// Jdk The Java version.
	Jdk *string `json:"jdk,omitempty"`
	// Load15M The load average for the last fifteen minutes.
	Load15M *string `json:"load_15m,omitempty"`
	// Load1M The load average for the most recent minute.
	Load1M *string `json:"load_1m,omitempty"`
	// Load5M The load average for the last five minutes.
	Load5M *string `json:"load_5m,omitempty"`
	// Master Indicates whether the node is the elected master node.
	// Returned values include `*`(elected master) and `-`(not elected master).
	Master *string `json:"master,omitempty"`
	// MergesCurrent The number of current merges.
	MergesCurrent *string `json:"merges.current,omitempty"`
	// MergesCurrentDocs The number of current merging docs.
	MergesCurrentDocs *string `json:"merges.current_docs,omitempty"`
	// MergesCurrentSize The size of current merges.
	MergesCurrentSize *string `json:"merges.current_size,omitempty"`
	// MergesTotal The number of completed merge operations.
	MergesTotal *string `json:"merges.total,omitempty"`
	// MergesTotalDocs The docs merged.
	MergesTotalDocs *string `json:"merges.total_docs,omitempty"`
	// MergesTotalSize The size merged.
	MergesTotalSize *string `json:"merges.total_size,omitempty"`
	// MergesTotalTime The time spent in merges.
	MergesTotalTime *string `json:"merges.total_time,omitempty"`
	// Name The node name.
	Name *string `json:"name,omitempty"`
	// NodeRole The roles of the node.
	// Returned values include `c`(cold node), `d`(data node), `f`(frozen node),
	// `h`(hot node), `i`(ingest node), `l`(machine learning node), `m` (master
	// eligible node), `r`(remote cluster client node), `s`(content node),
	// `t`(transform node), `v`(voting-only node), `w`(warm node),and
	// `-`(coordinating node only).
	NodeRole *string `json:"node.role,omitempty"`
	// Pid The process identifier.
	Pid *string `json:"pid,omitempty"`
	// Port The bound transport port.
	Port *string `json:"port,omitempty"`
	// QueryCacheEvictions The query cache evictions.
	QueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`
	// QueryCacheHitCount The query cache hit counts.
	QueryCacheHitCount *string `json:"query_cache.hit_count,omitempty"`
	// QueryCacheMemorySize The used query cache.
	QueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`
	// QueryCacheMissCount The query cache miss counts.
	QueryCacheMissCount *string `json:"query_cache.miss_count,omitempty"`
	// RamCurrent The used machine memory.
	RamCurrent *string `json:"ram.current,omitempty"`
	// RamMax The total machine memory.
	RamMax *string `json:"ram.max,omitempty"`
	// RamPercent The used machine memory ratio.
	RamPercent Percentage `json:"ram.percent,omitempty"`
	// RefreshExternalTime The time spent in external refreshes.
	RefreshExternalTime *string `json:"refresh.external_time,omitempty"`
	// RefreshExternalTotal The total external refreshes.
	RefreshExternalTotal *string `json:"refresh.external_total,omitempty"`
	// RefreshListeners The number of pending refresh listeners.
	RefreshListeners *string `json:"refresh.listeners,omitempty"`
	// RefreshTime The time spent in refreshes.
	RefreshTime *string `json:"refresh.time,omitempty"`
	// RefreshTotal The total refreshes.
	RefreshTotal *string `json:"refresh.total,omitempty"`
	// RequestCacheEvictions The request cache evictions.
	RequestCacheEvictions *string `json:"request_cache.evictions,omitempty"`
	// RequestCacheHitCount The request cache hit counts.
	RequestCacheHitCount *string `json:"request_cache.hit_count,omitempty"`
	// RequestCacheMemorySize The used request cache.
	RequestCacheMemorySize *string `json:"request_cache.memory_size,omitempty"`
	// RequestCacheMissCount The request cache miss counts.
	RequestCacheMissCount *string `json:"request_cache.miss_count,omitempty"`
	// ScriptCacheEvictions The total compiled scripts evicted from the cache.
	ScriptCacheEvictions *string `json:"script.cache_evictions,omitempty"`
	// ScriptCompilationLimitTriggered The script cache compilation limit triggered.
	ScriptCompilationLimitTriggered *string `json:"script.compilation_limit_triggered,omitempty"`
	// ScriptCompilations The total script compilations.
	ScriptCompilations *string `json:"script.compilations,omitempty"`
	// SearchFetchCurrent The current fetch phase operations.
	SearchFetchCurrent *string `json:"search.fetch_current,omitempty"`
	// SearchFetchTime The time spent in fetch phase.
	SearchFetchTime *string `json:"search.fetch_time,omitempty"`
	// SearchFetchTotal The total fetch operations.
	SearchFetchTotal *string `json:"search.fetch_total,omitempty"`
	// SearchOpenContexts The open search contexts.
	SearchOpenContexts *string `json:"search.open_contexts,omitempty"`
	// SearchQueryCurrent The current query phase operations.
	SearchQueryCurrent *string `json:"search.query_current,omitempty"`
	// SearchQueryTime The time spent in query phase.
	SearchQueryTime *string `json:"search.query_time,omitempty"`
	// SearchQueryTotal The total query phase operations.
	SearchQueryTotal *string `json:"search.query_total,omitempty"`
	// SearchScrollCurrent The open scroll contexts.
	SearchScrollCurrent *string `json:"search.scroll_current,omitempty"`
	// SearchScrollTime The time scroll contexts held open.
	SearchScrollTime *string `json:"search.scroll_time,omitempty"`
	// SearchScrollTotal The completed scroll contexts.
	SearchScrollTotal *string `json:"search.scroll_total,omitempty"`
	// SegmentsCount The number of segments.
	SegmentsCount *string `json:"segments.count,omitempty"`
	// SegmentsFixedBitsetMemory The memory used by fixed bit sets for nested object field types and export
	// type filters for types referred in _parent fields.
	SegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`
	// SegmentsIndexWriterMemory The memory used by the index writer.
	SegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`
	// SegmentsMemory The memory used by segments.
	SegmentsMemory *string `json:"segments.memory,omitempty"`
	// SegmentsVersionMapMemory The memory used by the version map.
	SegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`
	// SuggestCurrent The number of current suggest operations.
	SuggestCurrent *string `json:"suggest.current,omitempty"`
	// SuggestTime The time spend in suggest.
	SuggestTime *string `json:"suggest.time,omitempty"`
	// SuggestTotal The number of suggest operations.
	SuggestTotal *string `json:"suggest.total,omitempty"`
	// Type The Elasticsearch distribution type.
	Type *string `json:"type,omitempty"`
	// Uptime The node uptime.
	Uptime *string `json:"uptime,omitempty"`
	// Version The Elasticsearch version.
	Version *string `json:"version,omitempty"`
}

NodesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/nodes/types.ts#L23-L542

func NewNodesRecord ¶

func NewNodesRecord() *NodesRecord

NewNodesRecord returns a NodesRecord.

func (*NodesRecord) UnmarshalJSON ¶

func (s *NodesRecord) UnmarshalJSON(data []byte) error

type NoriAnalyzer ¶

type NoriAnalyzer struct {
	DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`
	Stoptags       []string                               `json:"stoptags,omitempty"`
	Type           string                                 `json:"type,omitempty"`
	UserDictionary *string                                `json:"user_dictionary,omitempty"`
	Version        *string                                `json:"version,omitempty"`
}

NoriAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L323-L330

func NewNoriAnalyzer ¶

func NewNoriAnalyzer() *NoriAnalyzer

NewNoriAnalyzer returns a NoriAnalyzer.

func (*NoriAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *NoriAnalyzer) AnalyzerCaster() *Analyzer

func (NoriAnalyzer) MarshalJSON ¶

func (s NoriAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NoriAnalyzer) NoriAnalyzerCaster ¶

func (s *NoriAnalyzer) NoriAnalyzerCaster() *NoriAnalyzer

func (*NoriAnalyzer) UnmarshalJSON ¶

func (s *NoriAnalyzer) UnmarshalJSON(data []byte) error

type NoriAnalyzerVariant ¶

type NoriAnalyzerVariant interface {
	NoriAnalyzerCaster() *NoriAnalyzer
}

type NoriPartOfSpeechTokenFilter ¶

type NoriPartOfSpeechTokenFilter struct {
	// Stoptags An array of part-of-speech tags that should be removed.
	Stoptags []string `json:"stoptags,omitempty"`
	Type     string   `json:"type,omitempty"`
	Version  *string  `json:"version,omitempty"`
}

NoriPartOfSpeechTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/nori-plugin.ts#L37-L41

func NewNoriPartOfSpeechTokenFilter ¶

func NewNoriPartOfSpeechTokenFilter() *NoriPartOfSpeechTokenFilter

NewNoriPartOfSpeechTokenFilter returns a NoriPartOfSpeechTokenFilter.

func (NoriPartOfSpeechTokenFilter) MarshalJSON ¶

func (s NoriPartOfSpeechTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NoriPartOfSpeechTokenFilter) NoriPartOfSpeechTokenFilterCaster ¶

func (s *NoriPartOfSpeechTokenFilter) NoriPartOfSpeechTokenFilterCaster() *NoriPartOfSpeechTokenFilter

func (*NoriPartOfSpeechTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *NoriPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*NoriPartOfSpeechTokenFilter) UnmarshalJSON ¶

func (s *NoriPartOfSpeechTokenFilter) UnmarshalJSON(data []byte) error

type NoriPartOfSpeechTokenFilterVariant ¶

type NoriPartOfSpeechTokenFilterVariant interface {
	NoriPartOfSpeechTokenFilterCaster() *NoriPartOfSpeechTokenFilter
}

type NoriTokenizer ¶

type NoriTokenizer struct {
	DecompoundMode      *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"`
	DiscardPunctuation  *bool                                  `json:"discard_punctuation,omitempty"`
	Type                string                                 `json:"type,omitempty"`
	UserDictionary      *string                                `json:"user_dictionary,omitempty"`
	UserDictionaryRules []string                               `json:"user_dictionary_rules,omitempty"`
	Version             *string                                `json:"version,omitempty"`
}

NoriTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/nori-plugin.ts#L29-L35

func NewNoriTokenizer ¶

func NewNoriTokenizer() *NoriTokenizer

NewNoriTokenizer returns a NoriTokenizer.

func (NoriTokenizer) MarshalJSON ¶

func (s NoriTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NoriTokenizer) NoriTokenizerCaster ¶

func (s *NoriTokenizer) NoriTokenizerCaster() *NoriTokenizer

func (*NoriTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *NoriTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*NoriTokenizer) UnmarshalJSON ¶

func (s *NoriTokenizer) UnmarshalJSON(data []byte) error

type NoriTokenizerVariant ¶

type NoriTokenizerVariant interface {
	NoriTokenizerCaster() *NoriTokenizer
}

type NormalizeAggregation ¶

type NormalizeAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Method The specific method to apply.
	Method *normalizemethod.NormalizeMethod `json:"method,omitempty"`
}

NormalizeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L351-L359

func NewNormalizeAggregation ¶

func NewNormalizeAggregation() *NormalizeAggregation

NewNormalizeAggregation returns a NormalizeAggregation.

func (*NormalizeAggregation) NormalizeAggregationCaster ¶

func (s *NormalizeAggregation) NormalizeAggregationCaster() *NormalizeAggregation

func (*NormalizeAggregation) UnmarshalJSON ¶

func (s *NormalizeAggregation) UnmarshalJSON(data []byte) error

type NormalizeAggregationVariant ¶

type NormalizeAggregationVariant interface {
	NormalizeAggregationCaster() *NormalizeAggregation
}

type Normalizer ¶

type Normalizer any

Normalizer holds the union for the following types:

LowercaseNormalizer
CustomNormalizer

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/normalizers.ts#L20-L24

type NormalizerVariant ¶

type NormalizerVariant interface {
	NormalizerCaster() *Normalizer
}

type NorwegianAnalyzer ¶

type NorwegianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

NorwegianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L248-L253

func NewNorwegianAnalyzer ¶

func NewNorwegianAnalyzer() *NorwegianAnalyzer

NewNorwegianAnalyzer returns a NorwegianAnalyzer.

func (*NorwegianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *NorwegianAnalyzer) AnalyzerCaster() *Analyzer

func (NorwegianAnalyzer) MarshalJSON ¶

func (s NorwegianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*NorwegianAnalyzer) NorwegianAnalyzerCaster ¶

func (s *NorwegianAnalyzer) NorwegianAnalyzerCaster() *NorwegianAnalyzer

func (*NorwegianAnalyzer) UnmarshalJSON ¶

func (s *NorwegianAnalyzer) UnmarshalJSON(data []byte) error

type NorwegianAnalyzerVariant ¶

type NorwegianAnalyzerVariant interface {
	NorwegianAnalyzerCaster() *NorwegianAnalyzer
}

type NotFoundAliases ¶ added in v9.0.1

type NotFoundAliases struct {
	Error           string                  `json:"error"`
	NotFoundAliases map[string]IndexAliases `json:"-"`
	Status          int                     `json:"status"`
}

NotFoundAliases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_alias/_types/response.ts#L28-L36

func NewNotFoundAliases ¶ added in v9.0.1

func NewNotFoundAliases() *NotFoundAliases

NewNotFoundAliases returns a NotFoundAliases.

func (NotFoundAliases) MarshalJSON ¶ added in v9.0.1

func (s NotFoundAliases) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*NotFoundAliases) UnmarshalJSON ¶ added in v9.0.1

func (s *NotFoundAliases) UnmarshalJSON(data []byte) error

type NullValue ¶

type NullValue struct{}

NullValue is a custom type used to represent the concept of a null or missing value. It can be used as a placeholder for variables or fields that are not initialized, or to indicate that a specific piece of data is intentionally absent.

func (NullValue) MarshalJSON ¶

func (n NullValue) MarshalJSON() ([]byte, error)

MarshalJSON converts the NullValue to JSON format. It always returns a "null" value as per JSON standard for null values.

type NumberRangeQuery ¶

type NumberRangeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Gt Greater than.
	Gt *Float64 `json:"gt,omitempty"`
	// Gte Greater than or equal to.
	Gte *Float64 `json:"gte,omitempty"`
	// Lt Less than.
	Lt *Float64 `json:"lt,omitempty"`
	// Lte Less than or equal to.
	Lte        *Float64 `json:"lte,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
	// Relation Indicates how the range query matches values for `range` fields.
	Relation *rangerelation.RangeRelation `json:"relation,omitempty"`
}

NumberRangeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L168-L168

func NewNumberRangeQuery ¶

func NewNumberRangeQuery() *NumberRangeQuery

NewNumberRangeQuery returns a NumberRangeQuery.

func (*NumberRangeQuery) NumberRangeQueryCaster ¶

func (s *NumberRangeQuery) NumberRangeQueryCaster() *NumberRangeQuery

func (*NumberRangeQuery) RangeQueryCaster ¶ added in v9.0.1

func (s *NumberRangeQuery) RangeQueryCaster() *RangeQuery

func (*NumberRangeQuery) UnmarshalJSON ¶

func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error

type NumberRangeQueryVariant ¶

type NumberRangeQueryVariant interface {
	NumberRangeQueryCaster() *NumberRangeQuery
}

type NumericDecayFunction ¶

type NumericDecayFunction struct {
	DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"`
	// MultiValueMode Determines how the distance is calculated when a field used for computing the
	// decay contains multiple values.
	MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`
}

NumericDecayFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L208-L208

func NewNumericDecayFunction ¶

func NewNumericDecayFunction() *NumericDecayFunction

NewNumericDecayFunction returns a NumericDecayFunction.

func (*NumericDecayFunction) DecayFunctionCaster ¶ added in v9.0.1

func (s *NumericDecayFunction) DecayFunctionCaster() *DecayFunction

func (NumericDecayFunction) MarshalJSON ¶

func (s NumericDecayFunction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*NumericDecayFunction) NumericDecayFunctionCaster ¶

func (s *NumericDecayFunction) NumericDecayFunctionCaster() *NumericDecayFunction

type NumericDecayFunctionVariant ¶

type NumericDecayFunctionVariant interface {
	NumericDecayFunctionCaster() *NumericDecayFunction
}

type NumericFielddata ¶

type NumericFielddata struct {
	Format numericfielddataformat.NumericFielddataFormat `json:"format"`
}

NumericFielddata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/NumericFielddata.ts#L22-L24

func NewNumericFielddata ¶

func NewNumericFielddata() *NumericFielddata

NewNumericFielddata returns a NumericFielddata.

func (*NumericFielddata) NumericFielddataCaster ¶

func (s *NumericFielddata) NumericFielddataCaster() *NumericFielddata

type NumericFielddataVariant ¶

type NumericFielddataVariant interface {
	NumericFielddataCaster() *NumericFielddata
}

type ObjectProperty ¶

type ObjectProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Enabled     *bool                          `json:"enabled,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	Subobjects          *subobjects.Subobjects                           `json:"subobjects,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

ObjectProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/complex.ts#L47-L51

func NewObjectProperty ¶

func NewObjectProperty() *ObjectProperty

NewObjectProperty returns a ObjectProperty.

func (ObjectProperty) MarshalJSON ¶

func (s ObjectProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ObjectProperty) ObjectPropertyCaster ¶

func (s *ObjectProperty) ObjectPropertyCaster() *ObjectProperty

func (*ObjectProperty) PropertyCaster ¶ added in v9.0.1

func (s *ObjectProperty) PropertyCaster() *Property

func (*ObjectProperty) UnmarshalJSON ¶

func (s *ObjectProperty) UnmarshalJSON(data []byte) error

type ObjectPropertyVariant ¶

type ObjectPropertyVariant interface {
	ObjectPropertyCaster() *ObjectProperty
}

type OneHotEncodingPreprocessor ¶

type OneHotEncodingPreprocessor struct {
	Field  string            `json:"field"`
	HotMap map[string]string `json:"hot_map"`
}

OneHotEncodingPreprocessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L44-L47

func NewOneHotEncodingPreprocessor ¶

func NewOneHotEncodingPreprocessor() *OneHotEncodingPreprocessor

NewOneHotEncodingPreprocessor returns a OneHotEncodingPreprocessor.

func (*OneHotEncodingPreprocessor) OneHotEncodingPreprocessorCaster ¶

func (s *OneHotEncodingPreprocessor) OneHotEncodingPreprocessorCaster() *OneHotEncodingPreprocessor

func (*OneHotEncodingPreprocessor) UnmarshalJSON ¶

func (s *OneHotEncodingPreprocessor) UnmarshalJSON(data []byte) error

type OneHotEncodingPreprocessorVariant ¶

type OneHotEncodingPreprocessorVariant interface {
	OneHotEncodingPreprocessorCaster() *OneHotEncodingPreprocessor
}

type OpenAIServiceSettings ¶

type OpenAIServiceSettings struct {
	// ApiKey A valid API key of your OpenAI account.
	// You can find your OpenAI API keys in your OpenAI account under the API keys
	// section.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// Dimensions The number of dimensions the resulting output embeddings should have.
	// It is supported only in `text-embedding-3` and later models.
	// If it is not set, the OpenAI defined default for the model is used.
	Dimensions *int `json:"dimensions,omitempty"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the OpenAI documentation for the list of available text embedding
	// models.
	ModelId string `json:"model_id"`
	// OrganizationId The unique identifier for your organization.
	// You can find the Organization ID in your OpenAI account under *Settings >
	// Organizations*.
	OrganizationId *string `json:"organization_id,omitempty"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// OpenAI.
	// The `openai` service sets a default number of requests allowed per minute
	// depending on the task type.
	// For `text_embedding`, it is set to `3000`.
	// For `completion`, it is set to `500`.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Url The URL endpoint to use for the requests.
	// It can be changed for testing purposes.
	Url *string `json:"url,omitempty"`
}

OpenAIServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1554-L1596

func NewOpenAIServiceSettings ¶

func NewOpenAIServiceSettings() *OpenAIServiceSettings

NewOpenAIServiceSettings returns a OpenAIServiceSettings.

func (*OpenAIServiceSettings) OpenAIServiceSettingsCaster ¶

func (s *OpenAIServiceSettings) OpenAIServiceSettingsCaster() *OpenAIServiceSettings

func (*OpenAIServiceSettings) UnmarshalJSON ¶

func (s *OpenAIServiceSettings) UnmarshalJSON(data []byte) error

type OpenAIServiceSettingsVariant ¶

type OpenAIServiceSettingsVariant interface {
	OpenAIServiceSettingsCaster() *OpenAIServiceSettings
}

type OpenAITaskSettings ¶

type OpenAITaskSettings struct {
	// User For a `completion` or `text_embedding` task, specify the user issuing the
	// request.
	// This information can be used for abuse detection.
	User *string `json:"user,omitempty"`
}

OpenAITaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1598-L1604

func NewOpenAITaskSettings ¶

func NewOpenAITaskSettings() *OpenAITaskSettings

NewOpenAITaskSettings returns a OpenAITaskSettings.

func (*OpenAITaskSettings) OpenAITaskSettingsCaster ¶

func (s *OpenAITaskSettings) OpenAITaskSettingsCaster() *OpenAITaskSettings

func (*OpenAITaskSettings) UnmarshalJSON ¶

func (s *OpenAITaskSettings) UnmarshalJSON(data []byte) error

type OpenAITaskSettingsVariant ¶

type OpenAITaskSettingsVariant interface {
	OpenAITaskSettingsCaster() *OpenAITaskSettings
}

type OperatingSystem ¶

type OperatingSystem struct {
	Cgroup    *Cgroup              `json:"cgroup,omitempty"`
	Cpu       *Cpu                 `json:"cpu,omitempty"`
	Mem       *ExtendedMemoryStats `json:"mem,omitempty"`
	Swap      *MemoryStats         `json:"swap,omitempty"`
	Timestamp *int64               `json:"timestamp,omitempty"`
}

OperatingSystem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1023-L1029

func NewOperatingSystem ¶

func NewOperatingSystem() *OperatingSystem

NewOperatingSystem returns a OperatingSystem.

func (*OperatingSystem) UnmarshalJSON ¶

func (s *OperatingSystem) UnmarshalJSON(data []byte) error

type OperatingSystemMemoryInfo ¶

type OperatingSystemMemoryInfo struct {
	// AdjustedTotal Total amount of memory across all selected nodes, but using the value
	// specified using the `es.total_memory_bytes` system property instead of
	// measured total memory for those nodes where that system property was set.
	AdjustedTotal ByteSize `json:"adjusted_total,omitempty"`
	// AdjustedTotalInBytes Total amount, in bytes, of memory across all selected nodes, but using the
	// value specified using the `es.total_memory_bytes` system property instead of
	// measured total memory for those nodes where that system property was set.
	AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"`
	// Free Amount of free physical memory across all selected nodes.
	Free ByteSize `json:"free,omitempty"`
	// FreeInBytes Amount, in bytes, of free physical memory across all selected nodes.
	FreeInBytes int64 `json:"free_in_bytes"`
	// FreePercent Percentage of free physical memory across all selected nodes.
	FreePercent int `json:"free_percent"`
	// Total Total amount of physical memory across all selected nodes.
	Total ByteSize `json:"total,omitempty"`
	// TotalInBytes Total amount, in bytes, of physical memory across all selected nodes.
	TotalInBytes int64 `json:"total_in_bytes"`
	// Used Amount of physical memory in use across all selected nodes.
	Used ByteSize `json:"used,omitempty"`
	// UsedInBytes Amount, in bytes, of physical memory in use across all selected nodes.
	UsedInBytes int64 `json:"used_in_bytes"`
	// UsedPercent Percentage of physical memory in use across all selected nodes.
	UsedPercent int `json:"used_percent"`
}

OperatingSystemMemoryInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L715-L763

func NewOperatingSystemMemoryInfo ¶

func NewOperatingSystemMemoryInfo() *OperatingSystemMemoryInfo

NewOperatingSystemMemoryInfo returns a OperatingSystemMemoryInfo.

func (*OperatingSystemMemoryInfo) UnmarshalJSON ¶

func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error

type OperationContainer ¶

type OperationContainer struct {
	AdditionalOperationContainerProperty map[string]json.RawMessage `json:"-"`
	// Create Index the specified document if it does not already exist.
	// The following line must contain the source data to be indexed.
	Create *CreateOperation `json:"create,omitempty"`
	// Delete Remove the specified document from the index.
	Delete *DeleteOperation `json:"delete,omitempty"`
	// Index Index the specified document.
	// If the document exists, it replaces the document and increments the version.
	// The following line must contain the source data to be indexed.
	Index *IndexOperation `json:"index,omitempty"`
	// Update Perform a partial document update.
	// The following line must contain the partial document and update options.
	Update *UpdateOperation `json:"update,omitempty"`
}

OperationContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L158-L180

func NewOperationContainer ¶

func NewOperationContainer() *OperationContainer

NewOperationContainer returns a OperationContainer.

func (OperationContainer) MarshalJSON ¶

func (s OperationContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*OperationContainer) OperationContainerCaster ¶

func (s *OperationContainer) OperationContainerCaster() *OperationContainer

type OperationContainerVariant ¶

type OperationContainerVariant interface {
	OperationContainerCaster() *OperationContainer
}

type OutlierDetectionParameters ¶

type OutlierDetectionParameters struct {
	// ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled.
	ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"`
	// FeatureInfluenceThreshold The minimum outlier score that a document needs to have in order to calculate
	// its feature influence score.
	// Value range: 0-1
	FeatureInfluenceThreshold *Float64 `json:"feature_influence_threshold,omitempty"`
	// Method The method that outlier detection uses.
	// Available methods are `lof`, `ldof`, `distance_kth_nn`, `distance_knn`, and
	// `ensemble`.
	// The default value is ensemble, which means that outlier detection uses an
	// ensemble of different methods and normalises and combines their individual
	// outlier scores to obtain the overall outlier score.
	Method *string `json:"method,omitempty"`
	// NNeighbors Defines the value for how many nearest neighbors each method of outlier
	// detection uses to calculate its outlier score.
	// When the value is not set, different values are used for different ensemble
	// members.
	// This default behavior helps improve the diversity in the ensemble; only
	// override it if you are confident that the value you choose is appropriate for
	// the data set.
	NNeighbors *int `json:"n_neighbors,omitempty"`
	// OutlierFraction The proportion of the data set that is assumed to be outlying prior to
	// outlier detection.
	// For example, 0.05 means it is assumed that 5% of values are real outliers and
	// 95% are inliers.
	OutlierFraction *Float64 `json:"outlier_fraction,omitempty"`
	// StandardizationEnabled If `true`, the following operation is performed on the columns before
	// computing outlier scores: (x_i - mean(x_i)) / sd(x_i).
	StandardizationEnabled *bool `json:"standardization_enabled,omitempty"`
}

OutlierDetectionParameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L528-L562

func NewOutlierDetectionParameters ¶

func NewOutlierDetectionParameters() *OutlierDetectionParameters

NewOutlierDetectionParameters returns a OutlierDetectionParameters.

func (*OutlierDetectionParameters) UnmarshalJSON ¶

func (s *OutlierDetectionParameters) UnmarshalJSON(data []byte) error

type OverallBucket ¶

type OverallBucket struct {
	// BucketSpan The length of the bucket in seconds. Matches the job with the longest
	// bucket_span value.
	BucketSpan int64 `json:"bucket_span"`
	// IsInterim If true, this is an interim result. In other words, the results are
	// calculated based on partial input data.
	IsInterim bool `json:"is_interim"`
	// Jobs An array of objects that contain the max_anomaly_score per job_id.
	Jobs []OverallBucketJob `json:"jobs"`
	// OverallScore The top_n average of the maximum bucket anomaly_score per job.
	OverallScore Float64 `json:"overall_score"`
	// ResultType Internal. This is always set to overall_bucket.
	ResultType string `json:"result_type"`
	// Timestamp The start time of the bucket for which these results were calculated.
	Timestamp int64 `json:"timestamp"`
	// TimestampString The start time of the bucket for which these results were calculated.
	TimestampString DateTime `json:"timestamp_string,omitempty"`
}

OverallBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Bucket.ts#L129-L144

func NewOverallBucket ¶

func NewOverallBucket() *OverallBucket

NewOverallBucket returns a OverallBucket.

func (*OverallBucket) UnmarshalJSON ¶

func (s *OverallBucket) UnmarshalJSON(data []byte) error

type OverallBucketJob ¶

type OverallBucketJob struct {
	JobId           string  `json:"job_id"`
	MaxAnomalyScore Float64 `json:"max_anomaly_score"`
}

OverallBucketJob type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Bucket.ts#L145-L148

func NewOverallBucketJob ¶

func NewOverallBucketJob() *OverallBucketJob

NewOverallBucketJob returns a OverallBucketJob.

func (*OverallBucketJob) UnmarshalJSON ¶

func (s *OverallBucketJob) UnmarshalJSON(data []byte) error

type Overlapping ¶

type Overlapping struct {
	IndexPatterns []string `json:"index_patterns"`
	Name          string   `json:"name"`
}

Overlapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42

func NewOverlapping ¶

func NewOverlapping() *Overlapping

NewOverlapping returns a Overlapping.

func (*Overlapping) UnmarshalJSON ¶

func (s *Overlapping) UnmarshalJSON(data []byte) error

type Page ¶

type Page struct {
	// From Skips the specified number of items.
	From *int `json:"from,omitempty"`
	// Size Specifies the maximum number of items to obtain.
	Size *int `json:"size,omitempty"`
}

Page type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Page.ts#L22-L33

func NewPage ¶

func NewPage() *Page

NewPage returns a Page.

func (*Page) PageCaster ¶

func (s *Page) PageCaster() *Page

func (*Page) UnmarshalJSON ¶

func (s *Page) UnmarshalJSON(data []byte) error

type PageVariant ¶

type PageVariant interface {
	PageCaster() *Page
}

type PagerDutyAction ¶

type PagerDutyAction struct {
	Account       *string                                `json:"account,omitempty"`
	AttachPayload bool                                   `json:"attach_payload"`
	Client        *string                                `json:"client,omitempty"`
	ClientUrl     *string                                `json:"client_url,omitempty"`
	Contexts      []PagerDutyContext                     `json:"contexts,omitempty"`
	Description   string                                 `json:"description"`
	EventType     *pagerdutyeventtype.PagerDutyEventType `json:"event_type,omitempty"`
	IncidentKey   string                                 `json:"incident_key"`
	Proxy         *PagerDutyEventProxy                   `json:"proxy,omitempty"`
}

PagerDutyAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L54-L54

func NewPagerDutyAction ¶

func NewPagerDutyAction() *PagerDutyAction

NewPagerDutyAction returns a PagerDutyAction.

func (*PagerDutyAction) PagerDutyActionCaster ¶

func (s *PagerDutyAction) PagerDutyActionCaster() *PagerDutyAction

func (*PagerDutyAction) UnmarshalJSON ¶

func (s *PagerDutyAction) UnmarshalJSON(data []byte) error

type PagerDutyActionVariant ¶

type PagerDutyActionVariant interface {
	PagerDutyActionCaster() *PagerDutyAction
}

type PagerDutyContext ¶

type PagerDutyContext struct {
	Href *string                                   `json:"href,omitempty"`
	Src  *string                                   `json:"src,omitempty"`
	Type pagerdutycontexttype.PagerDutyContextType `json:"type"`
}

PagerDutyContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L61-L65

func NewPagerDutyContext ¶

func NewPagerDutyContext() *PagerDutyContext

NewPagerDutyContext returns a PagerDutyContext.

func (*PagerDutyContext) PagerDutyContextCaster ¶

func (s *PagerDutyContext) PagerDutyContextCaster() *PagerDutyContext

func (*PagerDutyContext) UnmarshalJSON ¶

func (s *PagerDutyContext) UnmarshalJSON(data []byte) error

type PagerDutyContextVariant ¶

type PagerDutyContextVariant interface {
	PagerDutyContextCaster() *PagerDutyContext
}

type PagerDutyEvent ¶

type PagerDutyEvent struct {
	Account       *string                                `json:"account,omitempty"`
	AttachPayload bool                                   `json:"attach_payload"`
	Client        *string                                `json:"client,omitempty"`
	ClientUrl     *string                                `json:"client_url,omitempty"`
	Contexts      []PagerDutyContext                     `json:"contexts,omitempty"`
	Description   string                                 `json:"description"`
	EventType     *pagerdutyeventtype.PagerDutyEventType `json:"event_type,omitempty"`
	IncidentKey   string                                 `json:"incident_key"`
	Proxy         *PagerDutyEventProxy                   `json:"proxy,omitempty"`
}

PagerDutyEvent type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L40-L52

func NewPagerDutyEvent ¶

func NewPagerDutyEvent() *PagerDutyEvent

NewPagerDutyEvent returns a PagerDutyEvent.

func (*PagerDutyEvent) UnmarshalJSON ¶

func (s *PagerDutyEvent) UnmarshalJSON(data []byte) error

type PagerDutyEventProxy ¶

type PagerDutyEventProxy struct {
	Host *string `json:"host,omitempty"`
	Port *int    `json:"port,omitempty"`
}

PagerDutyEventProxy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L56-L59

func NewPagerDutyEventProxy ¶

func NewPagerDutyEventProxy() *PagerDutyEventProxy

NewPagerDutyEventProxy returns a PagerDutyEventProxy.

func (*PagerDutyEventProxy) PagerDutyEventProxyCaster ¶

func (s *PagerDutyEventProxy) PagerDutyEventProxyCaster() *PagerDutyEventProxy

func (*PagerDutyEventProxy) UnmarshalJSON ¶

func (s *PagerDutyEventProxy) UnmarshalJSON(data []byte) error

type PagerDutyEventProxyVariant ¶

type PagerDutyEventProxyVariant interface {
	PagerDutyEventProxyCaster() *PagerDutyEventProxy
}

type PagerDutyResult ¶

type PagerDutyResult struct {
	Event    PagerDutyEvent           `json:"event"`
	Reason   *string                  `json:"reason,omitempty"`
	Request  *HttpInputRequestResult  `json:"request,omitempty"`
	Response *HttpInputResponseResult `json:"response,omitempty"`
}

PagerDutyResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L78-L83

func NewPagerDutyResult ¶

func NewPagerDutyResult() *PagerDutyResult

NewPagerDutyResult returns a PagerDutyResult.

func (*PagerDutyResult) UnmarshalJSON ¶

func (s *PagerDutyResult) UnmarshalJSON(data []byte) error

type PainlessContextSetup ¶

type PainlessContextSetup struct {
	// Document Document that's temporarily indexed in-memory and accessible from the script.
	Document json.RawMessage `json:"document,omitempty"`
	// Index Index containing a mapping that's compatible with the indexed document.
	// You may specify a remote index by prefixing the index with the remote cluster
	// alias.
	// For example, `remote1:my_index` indicates that you want to run the painless
	// script against the "my_index" index on the "remote1" cluster.
	// This request will be forwarded to the "remote1" cluster if you have
	// configured a connection to that remote cluster.
	//
	// NOTE: Wildcards are not accepted in the index expression for this endpoint.
	// The expression `*:myindex` will return the error "No such remote cluster" and
	// the expression `logs*` or `remote1:logs*` will return the error "index not
	// found".
	Index string `json:"index"`
	// Query Use this parameter to specify a query for computing a score.
	Query *Query `json:"query,omitempty"`
}

PainlessContextSetup type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/scripts_painless_execute/types.ts#L27-L46

func NewPainlessContextSetup ¶

func NewPainlessContextSetup() *PainlessContextSetup

NewPainlessContextSetup returns a PainlessContextSetup.

func (*PainlessContextSetup) PainlessContextSetupCaster ¶

func (s *PainlessContextSetup) PainlessContextSetupCaster() *PainlessContextSetup

func (*PainlessContextSetup) UnmarshalJSON ¶

func (s *PainlessContextSetup) UnmarshalJSON(data []byte) error

type PainlessContextSetupVariant ¶

type PainlessContextSetupVariant interface {
	PainlessContextSetupCaster() *PainlessContextSetup
}

type ParentAggregate ¶

type ParentAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

ParentAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L896-L900

func NewParentAggregate ¶

func NewParentAggregate() *ParentAggregate

NewParentAggregate returns a ParentAggregate.

func (ParentAggregate) MarshalJSON ¶

func (s ParentAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ParentAggregate) UnmarshalJSON ¶

func (s *ParentAggregate) UnmarshalJSON(data []byte) error

type ParentAggregation ¶

type ParentAggregation struct {
	// Type The child type that should be selected.
	Type *string `json:"type,omitempty"`
}

ParentAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L662-L667

func NewParentAggregation ¶

func NewParentAggregation() *ParentAggregation

NewParentAggregation returns a ParentAggregation.

func (*ParentAggregation) ParentAggregationCaster ¶

func (s *ParentAggregation) ParentAggregationCaster() *ParentAggregation

func (*ParentAggregation) UnmarshalJSON ¶

func (s *ParentAggregation) UnmarshalJSON(data []byte) error

type ParentAggregationVariant ¶

type ParentAggregationVariant interface {
	ParentAggregationCaster() *ParentAggregation
}

type ParentIdQuery ¶

type ParentIdQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Id ID of the parent document.
	Id *string `json:"id,omitempty"`
	// IgnoreUnmapped Indicates whether to ignore an unmapped `type` and not return any documents
	// instead of an error.
	IgnoreUnmapped *bool   `json:"ignore_unmapped,omitempty"`
	QueryName_     *string `json:"_name,omitempty"`
	// Type Name of the child relationship mapped for the `join` field.
	Type *string `json:"type,omitempty"`
}

ParentIdQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/joining.ts#L141-L158

func NewParentIdQuery ¶

func NewParentIdQuery() *ParentIdQuery

NewParentIdQuery returns a ParentIdQuery.

func (*ParentIdQuery) ParentIdQueryCaster ¶

func (s *ParentIdQuery) ParentIdQueryCaster() *ParentIdQuery

func (*ParentIdQuery) UnmarshalJSON ¶

func (s *ParentIdQuery) UnmarshalJSON(data []byte) error

type ParentIdQueryVariant ¶

type ParentIdQueryVariant interface {
	ParentIdQueryCaster() *ParentIdQuery
}

type ParentTaskInfo ¶

type ParentTaskInfo struct {
	Action      string     `json:"action"`
	Cancellable bool       `json:"cancellable"`
	Cancelled   *bool      `json:"cancelled,omitempty"`
	Children    []TaskInfo `json:"children,omitempty"`
	// Description Human readable text that identifies the particular request that the task is
	// performing.
	// For example, it might identify the search request being performed by a search
	// task.
	// Other kinds of tasks have different descriptions, like `_reindex` which has
	// the source and the destination, or `_bulk` which just has the number of
	// requests and the destination indices.
	// Many requests will have only an empty description because more detailed
	// information about the request is not easily available or particularly helpful
	// in identifying the request.
	Description        *string           `json:"description,omitempty"`
	Headers            map[string]string `json:"headers"`
	Id                 int64             `json:"id"`
	Node               string            `json:"node"`
	ParentTaskId       *string           `json:"parent_task_id,omitempty"`
	RunningTime        Duration          `json:"running_time,omitempty"`
	RunningTimeInNanos int64             `json:"running_time_in_nanos"`
	StartTimeInMillis  int64             `json:"start_time_in_millis"`
	// Status The internal status of the task, which varies from task to task.
	// The format also varies.
	// While the goal is to keep the status for a particular task consistent from
	// version to version, this is not always possible because sometimes the
	// implementation changes.
	// Fields might be removed from the status for a particular request so any
	// parsing you do of the status might break in minor releases.
	Status json.RawMessage `json:"status,omitempty"`
	Type   string          `json:"type"`
}

ParentTaskInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/tasks/_types/TaskListResponseBase.ts#L45-L47

func NewParentTaskInfo ¶

func NewParentTaskInfo() *ParentTaskInfo

NewParentTaskInfo returns a ParentTaskInfo.

func (*ParentTaskInfo) UnmarshalJSON ¶

func (s *ParentTaskInfo) UnmarshalJSON(data []byte) error

type PassThroughInferenceOptions ¶

type PassThroughInferenceOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   *Vocabulary                  `json:"vocabulary,omitempty"`
}

PassThroughInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L239-L246

func NewPassThroughInferenceOptions ¶

func NewPassThroughInferenceOptions() *PassThroughInferenceOptions

NewPassThroughInferenceOptions returns a PassThroughInferenceOptions.

func (*PassThroughInferenceOptions) PassThroughInferenceOptionsCaster ¶

func (s *PassThroughInferenceOptions) PassThroughInferenceOptionsCaster() *PassThroughInferenceOptions

func (*PassThroughInferenceOptions) UnmarshalJSON ¶

func (s *PassThroughInferenceOptions) UnmarshalJSON(data []byte) error

type PassThroughInferenceOptionsVariant ¶

type PassThroughInferenceOptionsVariant interface {
	PassThroughInferenceOptionsCaster() *PassThroughInferenceOptions
}

type PassThroughInferenceUpdateOptions ¶

type PassThroughInferenceUpdateOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

PassThroughInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L404-L409

func NewPassThroughInferenceUpdateOptions ¶

func NewPassThroughInferenceUpdateOptions() *PassThroughInferenceUpdateOptions

NewPassThroughInferenceUpdateOptions returns a PassThroughInferenceUpdateOptions.

func (*PassThroughInferenceUpdateOptions) PassThroughInferenceUpdateOptionsCaster ¶

func (s *PassThroughInferenceUpdateOptions) PassThroughInferenceUpdateOptionsCaster() *PassThroughInferenceUpdateOptions

func (*PassThroughInferenceUpdateOptions) UnmarshalJSON ¶

func (s *PassThroughInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type PassThroughInferenceUpdateOptionsVariant ¶

type PassThroughInferenceUpdateOptionsVariant interface {
	PassThroughInferenceUpdateOptionsCaster() *PassThroughInferenceUpdateOptions
}

type PassthroughObjectProperty ¶

type PassthroughObjectProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Enabled     *bool                          `json:"enabled,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Priority            *int                                             `json:"priority,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TimeSeriesDimension *bool                                            `json:"time_series_dimension,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

PassthroughObjectProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/complex.ts#L53-L58

func NewPassthroughObjectProperty ¶

func NewPassthroughObjectProperty() *PassthroughObjectProperty

NewPassthroughObjectProperty returns a PassthroughObjectProperty.

func (PassthroughObjectProperty) MarshalJSON ¶

func (s PassthroughObjectProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PassthroughObjectProperty) PassthroughObjectPropertyCaster ¶

func (s *PassthroughObjectProperty) PassthroughObjectPropertyCaster() *PassthroughObjectProperty

func (*PassthroughObjectProperty) PropertyCaster ¶ added in v9.0.1

func (s *PassthroughObjectProperty) PropertyCaster() *Property

func (*PassthroughObjectProperty) UnmarshalJSON ¶

func (s *PassthroughObjectProperty) UnmarshalJSON(data []byte) error

type PassthroughObjectPropertyVariant ¶

type PassthroughObjectPropertyVariant interface {
	PassthroughObjectPropertyCaster() *PassthroughObjectProperty
}

type PathHierarchyTokenizer ¶

type PathHierarchyTokenizer struct {
	BufferSize  Stringifiedinteger `json:"buffer_size,omitempty"`
	Delimiter   *string            `json:"delimiter,omitempty"`
	Replacement *string            `json:"replacement,omitempty"`
	Reverse     Stringifiedboolean `json:"reverse,omitempty"`
	Skip        Stringifiedinteger `json:"skip,omitempty"`
	Type        string             `json:"type,omitempty"`
	Version     *string            `json:"version,omitempty"`
}

PathHierarchyTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L97-L104

func NewPathHierarchyTokenizer ¶

func NewPathHierarchyTokenizer() *PathHierarchyTokenizer

NewPathHierarchyTokenizer returns a PathHierarchyTokenizer.

func (PathHierarchyTokenizer) MarshalJSON ¶

func (s PathHierarchyTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PathHierarchyTokenizer) PathHierarchyTokenizerCaster ¶

func (s *PathHierarchyTokenizer) PathHierarchyTokenizerCaster() *PathHierarchyTokenizer

func (*PathHierarchyTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *PathHierarchyTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*PathHierarchyTokenizer) UnmarshalJSON ¶

func (s *PathHierarchyTokenizer) UnmarshalJSON(data []byte) error

type PathHierarchyTokenizerVariant ¶

type PathHierarchyTokenizerVariant interface {
	PathHierarchyTokenizerCaster() *PathHierarchyTokenizer
}

type PatternAnalyzer ¶

type PatternAnalyzer struct {
	// Flags Java regular expression flags. Flags should be pipe-separated, eg
	// "CASE_INSENSITIVE|COMMENTS".
	Flags *string `json:"flags,omitempty"`
	// Lowercase Should terms be lowercased or not.
	// Defaults to `true`.
	Lowercase *bool `json:"lowercase,omitempty"`
	// Pattern A Java regular expression.
	// Defaults to `\W+`.
	Pattern *string `json:"pattern,omitempty"`
	// Stopwords A pre-defined stop words list like `_english_` or an array containing a list
	// of stop words.
	// Defaults to `_none_`.
	Stopwords StopWords `json:"stopwords,omitempty"`
	// StopwordsPath The path to a file containing stop words.
	StopwordsPath *string `json:"stopwords_path,omitempty"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

PatternAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L332-L365

func NewPatternAnalyzer ¶

func NewPatternAnalyzer() *PatternAnalyzer

NewPatternAnalyzer returns a PatternAnalyzer.

func (*PatternAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *PatternAnalyzer) AnalyzerCaster() *Analyzer

func (PatternAnalyzer) MarshalJSON ¶

func (s PatternAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PatternAnalyzer) PatternAnalyzerCaster ¶

func (s *PatternAnalyzer) PatternAnalyzerCaster() *PatternAnalyzer

func (*PatternAnalyzer) UnmarshalJSON ¶

func (s *PatternAnalyzer) UnmarshalJSON(data []byte) error

type PatternAnalyzerVariant ¶

type PatternAnalyzerVariant interface {
	PatternAnalyzerCaster() *PatternAnalyzer
}

type PatternCaptureTokenFilter ¶

type PatternCaptureTokenFilter struct {
	// Patterns A list of regular expressions to match.
	Patterns []string `json:"patterns"`
	// PreserveOriginal If set to `true` (the default) it will emit the original token.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	Type             string             `json:"type,omitempty"`
	Version          *string            `json:"version,omitempty"`
}

PatternCaptureTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L374-L380

func NewPatternCaptureTokenFilter ¶

func NewPatternCaptureTokenFilter() *PatternCaptureTokenFilter

NewPatternCaptureTokenFilter returns a PatternCaptureTokenFilter.

func (PatternCaptureTokenFilter) MarshalJSON ¶

func (s PatternCaptureTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PatternCaptureTokenFilter) PatternCaptureTokenFilterCaster ¶

func (s *PatternCaptureTokenFilter) PatternCaptureTokenFilterCaster() *PatternCaptureTokenFilter

func (*PatternCaptureTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PatternCaptureTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PatternCaptureTokenFilter) UnmarshalJSON ¶

func (s *PatternCaptureTokenFilter) UnmarshalJSON(data []byte) error

type PatternCaptureTokenFilterVariant ¶

type PatternCaptureTokenFilterVariant interface {
	PatternCaptureTokenFilterCaster() *PatternCaptureTokenFilter
}

type PatternReplaceCharFilter ¶

type PatternReplaceCharFilter struct {
	Flags       *string `json:"flags,omitempty"`
	Pattern     string  `json:"pattern"`
	Replacement *string `json:"replacement,omitempty"`
	Type        string  `json:"type,omitempty"`
	Version     *string `json:"version,omitempty"`
}

PatternReplaceCharFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/char_filters.ts#L57-L62

func NewPatternReplaceCharFilter ¶

func NewPatternReplaceCharFilter() *PatternReplaceCharFilter

NewPatternReplaceCharFilter returns a PatternReplaceCharFilter.

func (*PatternReplaceCharFilter) CharFilterDefinitionCaster ¶ added in v9.0.1

func (s *PatternReplaceCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition

func (PatternReplaceCharFilter) MarshalJSON ¶

func (s PatternReplaceCharFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PatternReplaceCharFilter) PatternReplaceCharFilterCaster ¶

func (s *PatternReplaceCharFilter) PatternReplaceCharFilterCaster() *PatternReplaceCharFilter

func (*PatternReplaceCharFilter) UnmarshalJSON ¶

func (s *PatternReplaceCharFilter) UnmarshalJSON(data []byte) error

type PatternReplaceCharFilterVariant ¶

type PatternReplaceCharFilterVariant interface {
	PatternReplaceCharFilterCaster() *PatternReplaceCharFilter
}

type PatternReplaceTokenFilter ¶

type PatternReplaceTokenFilter struct {
	// All If `true`, all substrings matching the pattern parameter’s regular expression
	// are replaced. If `false`, the filter replaces only the first matching
	// substring in each token. Defaults to `true`.
	All   *bool   `json:"all,omitempty"`
	Flags *string `json:"flags,omitempty"`
	// Pattern Regular expression, written in Java’s regular expression syntax. The filter
	// replaces token substrings matching this pattern with the substring in the
	// `replacement` parameter.
	Pattern string `json:"pattern"`
	// Replacement Replacement substring. Defaults to an empty substring (`""`).
	Replacement *string `json:"replacement,omitempty"`
	Type        string  `json:"type,omitempty"`
	Version     *string `json:"version,omitempty"`
}

PatternReplaceTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L382-L391

func NewPatternReplaceTokenFilter ¶

func NewPatternReplaceTokenFilter() *PatternReplaceTokenFilter

NewPatternReplaceTokenFilter returns a PatternReplaceTokenFilter.

func (PatternReplaceTokenFilter) MarshalJSON ¶

func (s PatternReplaceTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PatternReplaceTokenFilter) PatternReplaceTokenFilterCaster ¶

func (s *PatternReplaceTokenFilter) PatternReplaceTokenFilterCaster() *PatternReplaceTokenFilter

func (*PatternReplaceTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PatternReplaceTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PatternReplaceTokenFilter) UnmarshalJSON ¶

func (s *PatternReplaceTokenFilter) UnmarshalJSON(data []byte) error

type PatternReplaceTokenFilterVariant ¶

type PatternReplaceTokenFilterVariant interface {
	PatternReplaceTokenFilterCaster() *PatternReplaceTokenFilter
}

type PatternTokenizer ¶

type PatternTokenizer struct {
	Flags   *string `json:"flags,omitempty"`
	Group   *int    `json:"group,omitempty"`
	Pattern *string `json:"pattern,omitempty"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

PatternTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L106-L111

func NewPatternTokenizer ¶

func NewPatternTokenizer() *PatternTokenizer

NewPatternTokenizer returns a PatternTokenizer.

func (PatternTokenizer) MarshalJSON ¶

func (s PatternTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PatternTokenizer) PatternTokenizerCaster ¶

func (s *PatternTokenizer) PatternTokenizerCaster() *PatternTokenizer

func (*PatternTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *PatternTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*PatternTokenizer) UnmarshalJSON ¶

func (s *PatternTokenizer) UnmarshalJSON(data []byte) error

type PatternTokenizerVariant ¶

type PatternTokenizerVariant interface {
	PatternTokenizerCaster() *PatternTokenizer
}

type PendingTask ¶

type PendingTask struct {
	// Executing Indicates whether the pending tasks are currently executing or not.
	Executing bool `json:"executing"`
	// InsertOrder The number that represents when the task has been inserted into the task
	// queue.
	InsertOrder int `json:"insert_order"`
	// Priority The priority of the pending task.
	// The valid priorities in descending priority order are: `IMMEDIATE` > `URGENT`
	// > `HIGH` > `NORMAL` > `LOW` > `LANGUID`.
	Priority string `json:"priority"`
	// Source A general description of the cluster task that may include a reason and
	// origin.
	Source string `json:"source"`
	// TimeInQueue The time since the task is waiting for being performed.
	TimeInQueue Duration `json:"time_in_queue,omitempty"`
	// TimeInQueueMillis The time expressed in milliseconds since the task is waiting for being
	// performed.
	TimeInQueueMillis int64 `json:"time_in_queue_millis"`
}

PendingTask type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/pending_tasks/types.ts#L23-L47

func NewPendingTask ¶

func NewPendingTask() *PendingTask

NewPendingTask returns a PendingTask.

func (*PendingTask) UnmarshalJSON ¶

func (s *PendingTask) UnmarshalJSON(data []byte) error

type PendingTasksRecord ¶

type PendingTasksRecord struct {
	// InsertOrder The task insertion order.
	InsertOrder *string `json:"insertOrder,omitempty"`
	// Priority The task priority.
	Priority *string `json:"priority,omitempty"`
	// Source The task source.
	Source *string `json:"source,omitempty"`
	// TimeInQueue Indicates how long the task has been in queue.
	TimeInQueue *string `json:"timeInQueue,omitempty"`
}

PendingTasksRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/pending_tasks/types.ts#L20-L41

func NewPendingTasksRecord ¶

func NewPendingTasksRecord() *PendingTasksRecord

NewPendingTasksRecord returns a PendingTasksRecord.

func (*PendingTasksRecord) UnmarshalJSON ¶

func (s *PendingTasksRecord) UnmarshalJSON(data []byte) error

type PerPartitionCategorization ¶

type PerPartitionCategorization struct {
	// Enabled To enable this setting, you must also set the `partition_field_name` property
	// to the same value in every detector that uses the keyword `mlcategory`.
	// Otherwise, job creation fails.
	Enabled *bool `json:"enabled,omitempty"`
	// StopOnWarn This setting can be set to true only if per-partition categorization is
	// enabled. If true, both categorization and subsequent anomaly detection stops
	// for partitions where the categorization status changes to warn. This setting
	// makes it viable to have a job where it is expected that categorization works
	// well for some partitions but not others; you do not pay the cost of bad
	// categorization forever in the partitions where it works badly.
	StopOnWarn *bool `json:"stop_on_warn,omitempty"`
}

PerPartitionCategorization type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Analysis.ts#L150-L159

func NewPerPartitionCategorization ¶

func NewPerPartitionCategorization() *PerPartitionCategorization

NewPerPartitionCategorization returns a PerPartitionCategorization.

func (*PerPartitionCategorization) PerPartitionCategorizationCaster ¶

func (s *PerPartitionCategorization) PerPartitionCategorizationCaster() *PerPartitionCategorization

func (*PerPartitionCategorization) UnmarshalJSON ¶

func (s *PerPartitionCategorization) UnmarshalJSON(data []byte) error

type PerPartitionCategorizationVariant ¶

type PerPartitionCategorizationVariant interface {
	PerPartitionCategorizationCaster() *PerPartitionCategorization
}

type PerRepositoryStats ¶ added in v9.0.1

type PerRepositoryStats struct {
	CurrentCounts         RepositoryStatsCurrentCounts `json:"current_counts"`
	OldestStartTime       *string                      `json:"oldest_start_time,omitempty"`
	OldestStartTimeMillis int64                        `json:"oldest_start_time_millis"`
	Type                  string                       `json:"type"`
}

PerRepositoryStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L665-L670

func NewPerRepositoryStats ¶ added in v9.0.1

func NewPerRepositoryStats() *PerRepositoryStats

NewPerRepositoryStats returns a PerRepositoryStats.

func (*PerRepositoryStats) UnmarshalJSON ¶ added in v9.0.1

func (s *PerRepositoryStats) UnmarshalJSON(data []byte) error

type PercentageScoreHeuristic ¶

type PercentageScoreHeuristic struct {
}

PercentageScoreHeuristic type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L811-L811

func NewPercentageScoreHeuristic ¶

func NewPercentageScoreHeuristic() *PercentageScoreHeuristic

NewPercentageScoreHeuristic returns a PercentageScoreHeuristic.

func (*PercentageScoreHeuristic) PercentageScoreHeuristicCaster ¶

func (s *PercentageScoreHeuristic) PercentageScoreHeuristicCaster() *PercentageScoreHeuristic

type PercentageScoreHeuristicVariant ¶

type PercentageScoreHeuristicVariant interface {
	PercentageScoreHeuristicCaster() *PercentageScoreHeuristic
}

type PercentageVariant ¶

type PercentageVariant interface {
	PercentageCaster() *Percentage
}

type PercentileRanksAggregation ¶

type PercentileRanksAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Hdr Uses the alternative High Dynamic Range Histogram algorithm to calculate
	// percentile ranks.
	Hdr *HdrMethod `json:"hdr,omitempty"`
	// Keyed By default, the aggregation associates a unique string key with each bucket
	// and returns the ranges as a hash rather than an array.
	// Set to `false` to disable this behavior.
	Keyed *bool `json:"keyed,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// Tdigest Sets parameters for the default TDigest algorithm used to calculate
	// percentile ranks.
	Tdigest *TDigest `json:"tdigest,omitempty"`
	// Values An array of values for which to calculate the percentile ranks.
	Values *[]Float64 `json:"values,omitempty"`
}

PercentileRanksAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L192-L214

func NewPercentileRanksAggregation ¶

func NewPercentileRanksAggregation() *PercentileRanksAggregation

NewPercentileRanksAggregation returns a PercentileRanksAggregation.

func (*PercentileRanksAggregation) PercentileRanksAggregationCaster ¶

func (s *PercentileRanksAggregation) PercentileRanksAggregationCaster() *PercentileRanksAggregation

func (*PercentileRanksAggregation) UnmarshalJSON ¶

func (s *PercentileRanksAggregation) UnmarshalJSON(data []byte) error

type PercentileRanksAggregationVariant ¶

type PercentileRanksAggregationVariant interface {
	PercentileRanksAggregationCaster() *PercentileRanksAggregation
}

type Percentiles ¶

type Percentiles any

Percentiles holds the union for the following types:

KeyedPercentiles
[]ArrayPercentilesItem

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L152-L153

type PercentilesAggregation ¶

type PercentilesAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Hdr Uses the alternative High Dynamic Range Histogram algorithm to calculate
	// percentiles.
	Hdr *HdrMethod `json:"hdr,omitempty"`
	// Keyed By default, the aggregation associates a unique string key with each bucket
	// and returns the ranges as a hash rather than an array.
	// Set to `false` to disable this behavior.
	Keyed *bool `json:"keyed,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// Percents The percentiles to calculate.
	Percents []Float64 `json:"percents,omitempty"`
	Script   *Script   `json:"script,omitempty"`
	// Tdigest Sets parameters for the default TDigest algorithm used to calculate
	// percentiles.
	Tdigest *TDigest `json:"tdigest,omitempty"`
}

PercentilesAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L216-L235

func NewPercentilesAggregation ¶

func NewPercentilesAggregation() *PercentilesAggregation

NewPercentilesAggregation returns a PercentilesAggregation.

func (*PercentilesAggregation) PercentilesAggregationCaster ¶

func (s *PercentilesAggregation) PercentilesAggregationCaster() *PercentilesAggregation

func (*PercentilesAggregation) UnmarshalJSON ¶

func (s *PercentilesAggregation) UnmarshalJSON(data []byte) error

type PercentilesAggregationVariant ¶

type PercentilesAggregationVariant interface {
	PercentilesAggregationCaster() *PercentilesAggregation
}

type PercentilesBucketAggregate ¶

type PercentilesBucketAggregate struct {
	Meta   Metadata    `json:"meta,omitempty"`
	Values Percentiles `json:"values"`
}

PercentilesBucketAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L180-L181

func NewPercentilesBucketAggregate ¶

func NewPercentilesBucketAggregate() *PercentilesBucketAggregate

NewPercentilesBucketAggregate returns a PercentilesBucketAggregate.

func (*PercentilesBucketAggregate) UnmarshalJSON ¶

func (s *PercentilesBucketAggregate) UnmarshalJSON(data []byte) error

type PercentilesBucketAggregation ¶

type PercentilesBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Percents The list of percentiles to calculate.
	Percents []Float64 `json:"percents,omitempty"`
}

PercentilesBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L389-L397

func NewPercentilesBucketAggregation ¶

func NewPercentilesBucketAggregation() *PercentilesBucketAggregation

NewPercentilesBucketAggregation returns a PercentilesBucketAggregation.

func (*PercentilesBucketAggregation) PercentilesBucketAggregationCaster ¶

func (s *PercentilesBucketAggregation) PercentilesBucketAggregationCaster() *PercentilesBucketAggregation

func (*PercentilesBucketAggregation) UnmarshalJSON ¶

func (s *PercentilesBucketAggregation) UnmarshalJSON(data []byte) error

type PercentilesBucketAggregationVariant ¶

type PercentilesBucketAggregationVariant interface {
	PercentilesBucketAggregationCaster() *PercentilesBucketAggregation
}

type PercolateQuery ¶

type PercolateQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Document The source of the document being percolated.
	Document json.RawMessage `json:"document,omitempty"`
	// Documents An array of sources of the documents being percolated.
	Documents []json.RawMessage `json:"documents,omitempty"`
	// Field Field that holds the indexed queries. The field must use the `percolator`
	// mapping type.
	Field string `json:"field"`
	// Id The ID of a stored document to percolate.
	Id *string `json:"id,omitempty"`
	// Index The index of a stored document to percolate.
	Index *string `json:"index,omitempty"`
	// Name The suffix used for the `_percolator_document_slot` field when multiple
	// `percolate` queries are specified.
	Name *string `json:"name,omitempty"`
	// Preference Preference used to fetch document to percolate.
	Preference *string `json:"preference,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// Routing Routing used to fetch document to percolate.
	Routing *string `json:"routing,omitempty"`
	// Version The expected version of a stored document to percolate.
	Version *int64 `json:"version,omitempty"`
}

PercolateQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L205-L245

func NewPercolateQuery ¶

func NewPercolateQuery() *PercolateQuery

NewPercolateQuery returns a PercolateQuery.

func (*PercolateQuery) PercolateQueryCaster ¶

func (s *PercolateQuery) PercolateQueryCaster() *PercolateQuery

func (*PercolateQuery) UnmarshalJSON ¶

func (s *PercolateQuery) UnmarshalJSON(data []byte) error

type PercolateQueryVariant ¶

type PercolateQueryVariant interface {
	PercolateQueryCaster() *PercolateQuery
}

type PercolatorProperty ¶

type PercolatorProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

PercolatorProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L203-L205

func NewPercolatorProperty ¶

func NewPercolatorProperty() *PercolatorProperty

NewPercolatorProperty returns a PercolatorProperty.

func (PercolatorProperty) MarshalJSON ¶

func (s PercolatorProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PercolatorProperty) PercolatorPropertyCaster ¶

func (s *PercolatorProperty) PercolatorPropertyCaster() *PercolatorProperty

func (*PercolatorProperty) PropertyCaster ¶ added in v9.0.1

func (s *PercolatorProperty) PropertyCaster() *Property

func (*PercolatorProperty) UnmarshalJSON ¶

func (s *PercolatorProperty) UnmarshalJSON(data []byte) error

type PercolatorPropertyVariant ¶

type PercolatorPropertyVariant interface {
	PercolatorPropertyCaster() *PercolatorProperty
}

type PersianAnalyzer ¶

type PersianAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

PersianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L255-L259

func NewPersianAnalyzer ¶

func NewPersianAnalyzer() *PersianAnalyzer

NewPersianAnalyzer returns a PersianAnalyzer.

func (*PersianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *PersianAnalyzer) AnalyzerCaster() *Analyzer

func (PersianAnalyzer) MarshalJSON ¶

func (s PersianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PersianAnalyzer) PersianAnalyzerCaster ¶

func (s *PersianAnalyzer) PersianAnalyzerCaster() *PersianAnalyzer

func (*PersianAnalyzer) UnmarshalJSON ¶

func (s *PersianAnalyzer) UnmarshalJSON(data []byte) error

type PersianAnalyzerVariant ¶

type PersianAnalyzerVariant interface {
	PersianAnalyzerCaster() *PersianAnalyzer
}

type PersianNormalizationTokenFilter ¶ added in v9.0.1

type PersianNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

PersianNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L527-L529

func NewPersianNormalizationTokenFilter ¶ added in v9.0.1

func NewPersianNormalizationTokenFilter() *PersianNormalizationTokenFilter

NewPersianNormalizationTokenFilter returns a PersianNormalizationTokenFilter.

func (PersianNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s PersianNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PersianNormalizationTokenFilter) PersianNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *PersianNormalizationTokenFilter) PersianNormalizationTokenFilterCaster() *PersianNormalizationTokenFilter

func (*PersianNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PersianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PersianNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *PersianNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type PersianNormalizationTokenFilterVariant ¶ added in v9.0.1

type PersianNormalizationTokenFilterVariant interface {
	PersianNormalizationTokenFilterCaster() *PersianNormalizationTokenFilter
}

type PersianStemTokenFilter ¶ added in v9.0.1

type PersianStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

PersianStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L571-L573

func NewPersianStemTokenFilter ¶ added in v9.0.1

func NewPersianStemTokenFilter() *PersianStemTokenFilter

NewPersianStemTokenFilter returns a PersianStemTokenFilter.

func (PersianStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s PersianStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PersianStemTokenFilter) PersianStemTokenFilterCaster ¶ added in v9.0.1

func (s *PersianStemTokenFilter) PersianStemTokenFilterCaster() *PersianStemTokenFilter

func (*PersianStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PersianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PersianStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *PersianStemTokenFilter) UnmarshalJSON(data []byte) error

type PersianStemTokenFilterVariant ¶ added in v9.0.1

type PersianStemTokenFilterVariant interface {
	PersianStemTokenFilterCaster() *PersianStemTokenFilter
}

type PersistentTaskStatus ¶

type PersistentTaskStatus struct {
	Status shutdownstatus.ShutdownStatus `json:"status"`
}

PersistentTaskStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58

func NewPersistentTaskStatus ¶

func NewPersistentTaskStatus() *PersistentTaskStatus

NewPersistentTaskStatus returns a PersistentTaskStatus.

type Phase ¶

type Phase struct {
	Actions *IlmActions `json:"actions,omitempty"`
	MinAge  Duration    `json:"min_age,omitempty"`
}

Phase type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L26-L29

func NewPhase ¶

func NewPhase() *Phase

NewPhase returns a Phase.

func (*Phase) PhaseCaster ¶

func (s *Phase) PhaseCaster() *Phase

func (*Phase) UnmarshalJSON ¶

func (s *Phase) UnmarshalJSON(data []byte) error

type PhaseVariant ¶

type PhaseVariant interface {
	PhaseCaster() *Phase
}

type Phases ¶

type Phases struct {
	Cold   *Phase `json:"cold,omitempty"`
	Delete *Phase `json:"delete,omitempty"`
	Frozen *Phase `json:"frozen,omitempty"`
	Hot    *Phase `json:"hot,omitempty"`
	Warm   *Phase `json:"warm,omitempty"`
}

Phases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L31-L37

func NewPhases ¶

func NewPhases() *Phases

NewPhases returns a Phases.

func (*Phases) PhasesCaster ¶

func (s *Phases) PhasesCaster() *Phases

type PhasesVariant ¶

type PhasesVariant interface {
	PhasesCaster() *Phases
}

type PhoneticTokenFilter ¶

type PhoneticTokenFilter struct {
	Encoder     phoneticencoder.PhoneticEncoder     `json:"encoder"`
	Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"`
	MaxCodeLen  *int                                `json:"max_code_len,omitempty"`
	NameType    *phoneticnametype.PhoneticNameType  `json:"name_type,omitempty"`
	Replace     *bool                               `json:"replace,omitempty"`
	RuleType    *phoneticruletype.PhoneticRuleType  `json:"rule_type,omitempty"`
	Type        string                              `json:"type,omitempty"`
	Version     *string                             `json:"version,omitempty"`
}

PhoneticTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/phonetic-plugin.ts#L64-L72

func NewPhoneticTokenFilter ¶

func NewPhoneticTokenFilter() *PhoneticTokenFilter

NewPhoneticTokenFilter returns a PhoneticTokenFilter.

func (PhoneticTokenFilter) MarshalJSON ¶

func (s PhoneticTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PhoneticTokenFilter) PhoneticTokenFilterCaster ¶

func (s *PhoneticTokenFilter) PhoneticTokenFilterCaster() *PhoneticTokenFilter

func (*PhoneticTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PhoneticTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PhoneticTokenFilter) UnmarshalJSON ¶

func (s *PhoneticTokenFilter) UnmarshalJSON(data []byte) error

type PhoneticTokenFilterVariant ¶

type PhoneticTokenFilterVariant interface {
	PhoneticTokenFilterCaster() *PhoneticTokenFilter
}

type PhraseSuggest ¶

type PhraseSuggest struct {
	Length  int                   `json:"length"`
	Offset  int                   `json:"offset"`
	Options []PhraseSuggestOption `json:"options"`
	Text    string                `json:"text"`
}

PhraseSuggest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L58-L63

func NewPhraseSuggest ¶

func NewPhraseSuggest() *PhraseSuggest

NewPhraseSuggest returns a PhraseSuggest.

func (*PhraseSuggest) UnmarshalJSON ¶

func (s *PhraseSuggest) UnmarshalJSON(data []byte) error

type PhraseSuggestCollate ¶

type PhraseSuggestCollate struct {
	// Params Parameters to use if the query is templated.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// Prune Returns all suggestions with an extra `collate_match` option indicating
	// whether the generated phrase matched any document.
	Prune *bool `json:"prune,omitempty"`
	// Query A collate query that is run once for every suggestion.
	Query PhraseSuggestCollateQuery `json:"query"`
}

PhraseSuggestCollate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L334-L347

func NewPhraseSuggestCollate ¶

func NewPhraseSuggestCollate() *PhraseSuggestCollate

NewPhraseSuggestCollate returns a PhraseSuggestCollate.

func (*PhraseSuggestCollate) PhraseSuggestCollateCaster ¶

func (s *PhraseSuggestCollate) PhraseSuggestCollateCaster() *PhraseSuggestCollate

func (*PhraseSuggestCollate) UnmarshalJSON ¶

func (s *PhraseSuggestCollate) UnmarshalJSON(data []byte) error

type PhraseSuggestCollateQuery ¶

type PhraseSuggestCollateQuery struct {
	// Id The search template ID.
	Id *string `json:"id,omitempty"`
	// Source The query source.
	Source ScriptSource `json:"source,omitempty"`
}

PhraseSuggestCollateQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L349-L358

func NewPhraseSuggestCollateQuery ¶

func NewPhraseSuggestCollateQuery() *PhraseSuggestCollateQuery

NewPhraseSuggestCollateQuery returns a PhraseSuggestCollateQuery.

func (*PhraseSuggestCollateQuery) PhraseSuggestCollateQueryCaster ¶

func (s *PhraseSuggestCollateQuery) PhraseSuggestCollateQueryCaster() *PhraseSuggestCollateQuery

func (*PhraseSuggestCollateQuery) UnmarshalJSON ¶

func (s *PhraseSuggestCollateQuery) UnmarshalJSON(data []byte) error

type PhraseSuggestCollateQueryVariant ¶

type PhraseSuggestCollateQueryVariant interface {
	PhraseSuggestCollateQueryCaster() *PhraseSuggestCollateQuery
}

type PhraseSuggestCollateVariant ¶

type PhraseSuggestCollateVariant interface {
	PhraseSuggestCollateCaster() *PhraseSuggestCollate
}

type PhraseSuggestHighlight ¶

type PhraseSuggestHighlight struct {
	// PostTag Use in conjunction with `pre_tag` to define the HTML tags to use for the
	// highlighted text.
	PostTag string `json:"post_tag"`
	// PreTag Use in conjunction with `post_tag` to define the HTML tags to use for the
	// highlighted text.
	PreTag string `json:"pre_tag"`
}

PhraseSuggestHighlight type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L420-L429

func NewPhraseSuggestHighlight ¶

func NewPhraseSuggestHighlight() *PhraseSuggestHighlight

NewPhraseSuggestHighlight returns a PhraseSuggestHighlight.

func (*PhraseSuggestHighlight) PhraseSuggestHighlightCaster ¶

func (s *PhraseSuggestHighlight) PhraseSuggestHighlightCaster() *PhraseSuggestHighlight

func (*PhraseSuggestHighlight) UnmarshalJSON ¶

func (s *PhraseSuggestHighlight) UnmarshalJSON(data []byte) error

type PhraseSuggestHighlightVariant ¶

type PhraseSuggestHighlightVariant interface {
	PhraseSuggestHighlightCaster() *PhraseSuggestHighlight
}

type PhraseSuggestOption ¶

type PhraseSuggestOption struct {
	CollateMatch *bool   `json:"collate_match,omitempty"`
	Highlighted  *string `json:"highlighted,omitempty"`
	Score        Float64 `json:"score"`
	Text         string  `json:"text"`
}

PhraseSuggestOption type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L87-L92

func NewPhraseSuggestOption ¶

func NewPhraseSuggestOption() *PhraseSuggestOption

NewPhraseSuggestOption returns a PhraseSuggestOption.

func (*PhraseSuggestOption) UnmarshalJSON ¶

func (s *PhraseSuggestOption) UnmarshalJSON(data []byte) error

type PhraseSuggester ¶

type PhraseSuggester struct {
	// Analyzer The analyzer to analyze the suggest text with.
	// Defaults to the search analyzer of the suggest field.
	Analyzer *string `json:"analyzer,omitempty"`
	// Collate Checks each suggestion against the specified query to prune suggestions for
	// which no matching docs exist in the index.
	Collate *PhraseSuggestCollate `json:"collate,omitempty"`
	// Confidence Defines a factor applied to the input phrases score, which is used as a
	// threshold for other suggest candidates.
	// Only candidates that score higher than the threshold will be included in the
	// result.
	Confidence *Float64 `json:"confidence,omitempty"`
	// DirectGenerator A list of candidate generators that produce a list of possible terms per term
	// in the given text.
	DirectGenerator []DirectGenerator `json:"direct_generator,omitempty"`
	// Field The field to fetch the candidate suggestions from.
	// Needs to be set globally or per suggestion.
	Field         string `json:"field"`
	ForceUnigrams *bool  `json:"force_unigrams,omitempty"`
	// GramSize Sets max size of the n-grams (shingles) in the field.
	// If the field doesn’t contain n-grams (shingles), this should be omitted or
	// set to `1`.
	// If the field uses a shingle filter, the `gram_size` is set to the
	// `max_shingle_size` if not explicitly set.
	GramSize *int `json:"gram_size,omitempty"`
	// Highlight Sets up suggestion highlighting.
	// If not provided, no highlighted field is returned.
	Highlight *PhraseSuggestHighlight `json:"highlight,omitempty"`
	// MaxErrors The maximum percentage of the terms considered to be misspellings in order to
	// form a correction.
	// This method accepts a float value in the range `[0..1)` as a fraction of the
	// actual query terms or a number `>=1` as an absolute number of query terms.
	MaxErrors *Float64 `json:"max_errors,omitempty"`
	// RealWordErrorLikelihood The likelihood of a term being misspelled even if the term exists in the
	// dictionary.
	RealWordErrorLikelihood *Float64 `json:"real_word_error_likelihood,omitempty"`
	// Separator The separator that is used to separate terms in the bigram field.
	// If not set, the whitespace character is used as a separator.
	Separator *string `json:"separator,omitempty"`
	// ShardSize Sets the maximum number of suggested terms to be retrieved from each
	// individual shard.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The maximum corrections to be returned per suggest text token.
	Size *int `json:"size,omitempty"`
	// Smoothing The smoothing model used to balance weight between infrequent grams (grams
	// (shingles) are not existing in the index) and frequent grams (appear at least
	// once in the index).
	// The default model is Stupid Backoff.
	Smoothing *SmoothingModelContainer `json:"smoothing,omitempty"`
	// Text The text/query to provide suggestions for.
	Text       *string `json:"text,omitempty"`
	TokenLimit *int    `json:"token_limit,omitempty"`
}

PhraseSuggester type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L360-L418

func NewPhraseSuggester ¶

func NewPhraseSuggester() *PhraseSuggester

NewPhraseSuggester returns a PhraseSuggester.

func (*PhraseSuggester) PhraseSuggesterCaster ¶

func (s *PhraseSuggester) PhraseSuggesterCaster() *PhraseSuggester

func (*PhraseSuggester) UnmarshalJSON ¶

func (s *PhraseSuggester) UnmarshalJSON(data []byte) error

type PhraseSuggesterVariant ¶

type PhraseSuggesterVariant interface {
	PhraseSuggesterCaster() *PhraseSuggester
}

type PinnedDoc ¶

type PinnedDoc struct {
	// Id_ The unique document ID.
	Id_ string `json:"_id"`
	// Index_ The index that contains the document.
	Index_ *string `json:"_index,omitempty"`
}

PinnedDoc type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L269-L278

func NewPinnedDoc ¶

func NewPinnedDoc() *PinnedDoc

NewPinnedDoc returns a PinnedDoc.

func (*PinnedDoc) PinnedDocCaster ¶

func (s *PinnedDoc) PinnedDocCaster() *PinnedDoc

func (*PinnedDoc) UnmarshalJSON ¶

func (s *PinnedDoc) UnmarshalJSON(data []byte) error

type PinnedDocVariant ¶

type PinnedDocVariant interface {
	PinnedDocCaster() *PinnedDoc
}

type PinnedQuery ¶

type PinnedQuery struct {
	AdditionalPinnedQueryProperty map[string]json.RawMessage `json:"-"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Docs Documents listed in the order they are to appear in results.
	// Required if `ids` is not specified.
	Docs []PinnedDoc `json:"docs,omitempty"`
	// Ids Document IDs listed in the order they are to appear in results.
	// Required if `docs` is not specified.
	Ids []string `json:"ids,omitempty"`
	// Organic Any choice of query used to rank documents which will be ranked below the
	// "pinned" documents.
	Organic    Query   `json:"organic"`
	QueryName_ *string `json:"_name,omitempty"`
}

PinnedQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L247-L267

func NewPinnedQuery ¶

func NewPinnedQuery() *PinnedQuery

NewPinnedQuery returns a PinnedQuery.

func (PinnedQuery) MarshalJSON ¶

func (s PinnedQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*PinnedQuery) PinnedQueryCaster ¶

func (s *PinnedQuery) PinnedQueryCaster() *PinnedQuery

func (*PinnedQuery) UnmarshalJSON ¶

func (s *PinnedQuery) UnmarshalJSON(data []byte) error

type PinnedQueryVariant ¶

type PinnedQueryVariant interface {
	PinnedQueryCaster() *PinnedQuery
}

type PinnedRetriever ¶ added in v9.0.1

type PinnedRetriever struct {
	Docs []SpecifiedDocument `json:"docs,omitempty"`
	// Filter Query to filter the documents that can match.
	Filter []Query  `json:"filter,omitempty"`
	Ids    []string `json:"ids,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_          *string `json:"_name,omitempty"`
	RankWindowSize *int    `json:"rank_window_size,omitempty"`
	// Retriever Inner retriever.
	Retriever RetrieverContainer `json:"retriever"`
}

PinnedRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L77-L83

func NewPinnedRetriever ¶ added in v9.0.1

func NewPinnedRetriever() *PinnedRetriever

NewPinnedRetriever returns a PinnedRetriever.

func (*PinnedRetriever) PinnedRetrieverCaster ¶ added in v9.0.1

func (s *PinnedRetriever) PinnedRetrieverCaster() *PinnedRetriever

func (*PinnedRetriever) UnmarshalJSON ¶ added in v9.0.1

func (s *PinnedRetriever) UnmarshalJSON(data []byte) error

type PinnedRetrieverVariant ¶ added in v9.0.1

type PinnedRetrieverVariant interface {
	PinnedRetrieverCaster() *PinnedRetriever
}

type PipeSeparatedFlagsSimpleQueryStringFlag ¶

type PipeSeparatedFlagsSimpleQueryStringFlag any

PipeSeparatedFlagsSimpleQueryStringFlag holds the union for the following types:

simplequerystringflag.SimpleQueryStringFlag
string

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27

type PipeSeparatedFlagsSimpleQueryStringFlagVariant ¶

type PipeSeparatedFlagsSimpleQueryStringFlagVariant interface {
	PipeSeparatedFlagsSimpleQueryStringFlagCaster() *PipeSeparatedFlagsSimpleQueryStringFlag
}

type PipelineConfig ¶

type PipelineConfig struct {
	// Description Description of the ingest pipeline.
	Description *string `json:"description,omitempty"`
	// Processors Processors used to perform transformations on documents before indexing.
	// Processors run sequentially in the order specified.
	Processors []ProcessorContainer `json:"processors"`
	// Version Version number used by external systems to track ingest pipelines.
	Version *int64 `json:"version,omitempty"`
}

PipelineConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Pipeline.ts#L67-L81

func NewPipelineConfig ¶

func NewPipelineConfig() *PipelineConfig

NewPipelineConfig returns a PipelineConfig.

func (*PipelineConfig) UnmarshalJSON ¶

func (s *PipelineConfig) UnmarshalJSON(data []byte) error

type PipelineMetadata ¶

type PipelineMetadata struct {
	Type    string `json:"type"`
	Version string `json:"version"`
}

PipelineMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/logstash/_types/Pipeline.ts#L23-L26

func NewPipelineMetadata ¶

func NewPipelineMetadata() *PipelineMetadata

NewPipelineMetadata returns a PipelineMetadata.

func (*PipelineMetadata) PipelineMetadataCaster ¶

func (s *PipelineMetadata) PipelineMetadataCaster() *PipelineMetadata

func (*PipelineMetadata) UnmarshalJSON ¶

func (s *PipelineMetadata) UnmarshalJSON(data []byte) error

type PipelineMetadataVariant ¶

type PipelineMetadataVariant interface {
	PipelineMetadataCaster() *PipelineMetadata
}

type PipelineProcessor ¶

type PipelineProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissingPipeline Whether to ignore missing pipelines instead of failing.
	IgnoreMissingPipeline *bool `json:"ignore_missing_pipeline,omitempty"`
	// Name The name of the pipeline to execute.
	// Supports template snippets.
	Name string `json:"name"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

PipelineProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1285-L1296

func NewPipelineProcessor ¶

func NewPipelineProcessor() *PipelineProcessor

NewPipelineProcessor returns a PipelineProcessor.

func (*PipelineProcessor) PipelineProcessorCaster ¶

func (s *PipelineProcessor) PipelineProcessorCaster() *PipelineProcessor

func (*PipelineProcessor) UnmarshalJSON ¶

func (s *PipelineProcessor) UnmarshalJSON(data []byte) error

type PipelineProcessorResult ¶ added in v9.0.1

type PipelineProcessorResult struct {
	Description   *string                                                          `json:"description,omitempty"`
	Doc           *DocumentSimulation                                              `json:"doc,omitempty"`
	Error         *ErrorCause                                                      `json:"error,omitempty"`
	IgnoredError  *ErrorCause                                                      `json:"ignored_error,omitempty"`
	ProcessorType *string                                                          `json:"processor_type,omitempty"`
	Status        *pipelinesimulationstatusoptions.PipelineSimulationStatusOptions `json:"status,omitempty"`
	Tag           *string                                                          `json:"tag,omitempty"`
}

PipelineProcessorResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L59-L67

func NewPipelineProcessorResult ¶ added in v9.0.1

func NewPipelineProcessorResult() *PipelineProcessorResult

NewPipelineProcessorResult returns a PipelineProcessorResult.

func (*PipelineProcessorResult) UnmarshalJSON ¶ added in v9.0.1

func (s *PipelineProcessorResult) UnmarshalJSON(data []byte) error

type PipelineProcessorVariant ¶

type PipelineProcessorVariant interface {
	PipelineProcessorCaster() *PipelineProcessor
}

type PipelineSettings ¶

type PipelineSettings struct {
	// PipelineBatchDelay When creating pipeline event batches, how long in milliseconds to wait for
	// each event before dispatching an undersized batch to pipeline workers.
	PipelineBatchDelay int `json:"pipeline.batch.delay"`
	// PipelineBatchSize The maximum number of events an individual worker thread will collect from
	// inputs before attempting to execute its filters and outputs.
	PipelineBatchSize int `json:"pipeline.batch.size"`
	// PipelineWorkers The number of workers that will, in parallel, execute the filter and output
	// stages of the pipeline.
	PipelineWorkers int `json:"pipeline.workers"`
	// QueueCheckpointWrites The maximum number of written events before forcing a checkpoint when
	// persistent queues are enabled (`queue.type: persisted`).
	QueueCheckpointWrites int `json:"queue.checkpoint.writes"`
	// QueueMaxBytes The total capacity of the queue (`queue.type: persisted`) in number of bytes.
	QueueMaxBytes string `json:"queue.max_bytes"`
	// QueueType The internal queuing model to use for event buffering.
	QueueType string `json:"queue.type"`
}

PipelineSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/logstash/_types/Pipeline.ts#L28-L55

func NewPipelineSettings ¶

func NewPipelineSettings() *PipelineSettings

NewPipelineSettings returns a PipelineSettings.

func (*PipelineSettings) PipelineSettingsCaster ¶

func (s *PipelineSettings) PipelineSettingsCaster() *PipelineSettings

func (*PipelineSettings) UnmarshalJSON ¶

func (s *PipelineSettings) UnmarshalJSON(data []byte) error

type PipelineSettingsVariant ¶

type PipelineSettingsVariant interface {
	PipelineSettingsCaster() *PipelineSettings
}

type Pivot ¶

type Pivot struct {
	// Aggregations Defines how to aggregate the grouped data. The following aggregations are
	// currently supported: average, bucket
	// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo
	// line, max, median absolute deviation,
	// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms,
	// top metrics, value count, weighted
	// average.
	Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
	// GroupBy Defines how to group the data. More than one grouping can be defined per
	// pivot. The following groupings are
	// currently supported: date histogram, geotile grid, histogram, terms.
	GroupBy map[string]PivotGroupByContainer `json:"group_by,omitempty"`
}

Pivot type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L54-L68

func NewPivot ¶

func NewPivot() *Pivot

NewPivot returns a Pivot.

func (*Pivot) PivotCaster ¶

func (s *Pivot) PivotCaster() *Pivot

type PivotGroupByContainer ¶

type PivotGroupByContainer struct {
	AdditionalPivotGroupByContainerProperty map[string]json.RawMessage `json:"-"`
	DateHistogram                           *DateHistogramAggregation  `json:"date_histogram,omitempty"`
	GeotileGrid                             *GeoTileGridAggregation    `json:"geotile_grid,omitempty"`
	Histogram                               *HistogramAggregation      `json:"histogram,omitempty"`
	Terms                                   *TermsAggregation          `json:"terms,omitempty"`
}

PivotGroupByContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L70-L78

func NewPivotGroupByContainer ¶

func NewPivotGroupByContainer() *PivotGroupByContainer

NewPivotGroupByContainer returns a PivotGroupByContainer.

func (PivotGroupByContainer) MarshalJSON ¶

func (s PivotGroupByContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*PivotGroupByContainer) PivotGroupByContainerCaster ¶

func (s *PivotGroupByContainer) PivotGroupByContainerCaster() *PivotGroupByContainer

type PivotGroupByContainerVariant ¶

type PivotGroupByContainerVariant interface {
	PivotGroupByContainerCaster() *PivotGroupByContainer
}

type PivotVariant ¶

type PivotVariant interface {
	PivotCaster() *Pivot
}

type PluginStats ¶

type PluginStats struct {
	Classname            string   `json:"classname"`
	Description          string   `json:"description"`
	ElasticsearchVersion string   `json:"elasticsearch_version"`
	ExtendedPlugins      []string `json:"extended_plugins"`
	HasNativeController  bool     `json:"has_native_controller"`
	JavaVersion          string   `json:"java_version"`
	Licensed             bool     `json:"licensed"`
	Name                 string   `json:"name"`
	Version              string   `json:"version"`
}

PluginStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L207-L217

func NewPluginStats ¶

func NewPluginStats() *PluginStats

NewPluginStats returns a PluginStats.

func (*PluginStats) UnmarshalJSON ¶

func (s *PluginStats) UnmarshalJSON(data []byte) error

type PluginsRecord ¶

type PluginsRecord struct {
	// Component The component name.
	Component *string `json:"component,omitempty"`
	// Description The plugin details.
	Description *string `json:"description,omitempty"`
	// Id The unique node identifier.
	Id *string `json:"id,omitempty"`
	// Name The node name.
	Name *string `json:"name,omitempty"`
	// Type The plugin type.
	Type *string `json:"type,omitempty"`
	// Version The component version.
	Version *string `json:"version,omitempty"`
}

PluginsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/plugins/types.ts#L22-L52

func NewPluginsRecord ¶

func NewPluginsRecord() *PluginsRecord

NewPluginsRecord returns a PluginsRecord.

func (*PluginsRecord) UnmarshalJSON ¶

func (s *PluginsRecord) UnmarshalJSON(data []byte) error

type PointInTimeReference ¶

type PointInTimeReference struct {
	Id        string   `json:"id"`
	KeepAlive Duration `json:"keep_alive,omitempty"`
}

PointInTimeReference type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/PointInTimeReference.ts#L23-L26

func NewPointInTimeReference ¶

func NewPointInTimeReference() *PointInTimeReference

NewPointInTimeReference returns a PointInTimeReference.

func (*PointInTimeReference) PointInTimeReferenceCaster ¶

func (s *PointInTimeReference) PointInTimeReferenceCaster() *PointInTimeReference

func (*PointInTimeReference) UnmarshalJSON ¶

func (s *PointInTimeReference) UnmarshalJSON(data []byte) error

type PointInTimeReferenceVariant ¶

type PointInTimeReferenceVariant interface {
	PointInTimeReferenceCaster() *PointInTimeReference
}

type PointProperty ¶

type PointProperty struct {
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	IgnoreZValue    *bool                          `json:"ignore_z_value,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *string                                          `json:"null_value,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

PointProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/geo.ts#L74-L79

func NewPointProperty ¶

func NewPointProperty() *PointProperty

NewPointProperty returns a PointProperty.

func (PointProperty) MarshalJSON ¶

func (s PointProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PointProperty) PointPropertyCaster ¶

func (s *PointProperty) PointPropertyCaster() *PointProperty

func (*PointProperty) PropertyCaster ¶ added in v9.0.1

func (s *PointProperty) PropertyCaster() *Property

func (*PointProperty) UnmarshalJSON ¶

func (s *PointProperty) UnmarshalJSON(data []byte) error

type PointPropertyVariant ¶

type PointPropertyVariant interface {
	PointPropertyCaster() *PointProperty
}

type Pool ¶

type Pool struct {
	// MaxInBytes Maximum amount of memory, in bytes, available for use by the heap.
	MaxInBytes *int64 `json:"max_in_bytes,omitempty"`
	// PeakMaxInBytes Largest amount of memory, in bytes, historically used by the heap.
	PeakMaxInBytes *int64 `json:"peak_max_in_bytes,omitempty"`
	// PeakUsedInBytes Largest amount of memory, in bytes, historically used by the heap.
	PeakUsedInBytes *int64 `json:"peak_used_in_bytes,omitempty"`
	// UsedInBytes Memory, in bytes, used by the heap.
	UsedInBytes *int64 `json:"used_in_bytes,omitempty"`
}

Pool type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L956-L973

func NewPool ¶

func NewPool() *Pool

NewPool returns a Pool.

func (*Pool) UnmarshalJSON ¶

func (s *Pool) UnmarshalJSON(data []byte) error

type PorterStemTokenFilter ¶

type PorterStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

PorterStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L393-L395

func NewPorterStemTokenFilter ¶

func NewPorterStemTokenFilter() *PorterStemTokenFilter

NewPorterStemTokenFilter returns a PorterStemTokenFilter.

func (PorterStemTokenFilter) MarshalJSON ¶

func (s PorterStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PorterStemTokenFilter) PorterStemTokenFilterCaster ¶

func (s *PorterStemTokenFilter) PorterStemTokenFilterCaster() *PorterStemTokenFilter

func (*PorterStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PorterStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PorterStemTokenFilter) UnmarshalJSON ¶

func (s *PorterStemTokenFilter) UnmarshalJSON(data []byte) error

type PorterStemTokenFilterVariant ¶

type PorterStemTokenFilterVariant interface {
	PorterStemTokenFilterCaster() *PorterStemTokenFilter
}

type PortugueseAnalyzer ¶

type PortugueseAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

PortugueseAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L261-L266

func NewPortugueseAnalyzer ¶

func NewPortugueseAnalyzer() *PortugueseAnalyzer

NewPortugueseAnalyzer returns a PortugueseAnalyzer.

func (*PortugueseAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *PortugueseAnalyzer) AnalyzerCaster() *Analyzer

func (PortugueseAnalyzer) MarshalJSON ¶

func (s PortugueseAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PortugueseAnalyzer) PortugueseAnalyzerCaster ¶

func (s *PortugueseAnalyzer) PortugueseAnalyzerCaster() *PortugueseAnalyzer

func (*PortugueseAnalyzer) UnmarshalJSON ¶

func (s *PortugueseAnalyzer) UnmarshalJSON(data []byte) error

type PortugueseAnalyzerVariant ¶

type PortugueseAnalyzerVariant interface {
	PortugueseAnalyzerCaster() *PortugueseAnalyzer
}

type PostMigrationFeature ¶

type PostMigrationFeature struct {
	FeatureName string `json:"feature_name"`
}

PostMigrationFeature type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L28-L30

func NewPostMigrationFeature ¶

func NewPostMigrationFeature() *PostMigrationFeature

NewPostMigrationFeature returns a PostMigrationFeature.

func (*PostMigrationFeature) UnmarshalJSON ¶

func (s *PostMigrationFeature) UnmarshalJSON(data []byte) error

type PredicateTokenFilter ¶

type PredicateTokenFilter struct {
	// Script Script containing a condition used to filter incoming tokens. Only tokens
	// that match this script are included in the output.
	Script  Script  `json:"script"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

PredicateTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L397-L401

func NewPredicateTokenFilter ¶

func NewPredicateTokenFilter() *PredicateTokenFilter

NewPredicateTokenFilter returns a PredicateTokenFilter.

func (PredicateTokenFilter) MarshalJSON ¶

func (s PredicateTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*PredicateTokenFilter) PredicateTokenFilterCaster ¶

func (s *PredicateTokenFilter) PredicateTokenFilterCaster() *PredicateTokenFilter

func (*PredicateTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *PredicateTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*PredicateTokenFilter) UnmarshalJSON ¶

func (s *PredicateTokenFilter) UnmarshalJSON(data []byte) error

type PredicateTokenFilterVariant ¶

type PredicateTokenFilterVariant interface {
	PredicateTokenFilterCaster() *PredicateTokenFilter
}

type PrefixQuery ¶

type PrefixQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// CaseInsensitive Allows ASCII case insensitive matching of the value with the indexed field
	// values when set to `true`.
	// Default is `false` which means the case sensitivity of matching depends on
	// the underlying field’s mapping.
	CaseInsensitive *bool   `json:"case_insensitive,omitempty"`
	QueryName_      *string `json:"_name,omitempty"`
	// Rewrite Method used to rewrite the query.
	Rewrite *string `json:"rewrite,omitempty"`
	// Value Beginning characters of terms you wish to find in the provided field.
	Value string `json:"value"`
}

PrefixQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L98-L120

func NewPrefixQuery ¶

func NewPrefixQuery() *PrefixQuery

NewPrefixQuery returns a PrefixQuery.

func (*PrefixQuery) PrefixQueryCaster ¶

func (s *PrefixQuery) PrefixQueryCaster() *PrefixQuery

func (*PrefixQuery) UnmarshalJSON ¶

func (s *PrefixQuery) UnmarshalJSON(data []byte) error

type PrefixQueryVariant ¶

type PrefixQueryVariant interface {
	PrefixQueryCaster() *PrefixQuery
}

type Preprocessor ¶

type Preprocessor struct {
	AdditionalPreprocessorProperty map[string]json.RawMessage      `json:"-"`
	FrequencyEncoding              *FrequencyEncodingPreprocessor  `json:"frequency_encoding,omitempty"`
	OneHotEncoding                 *OneHotEncodingPreprocessor     `json:"one_hot_encoding,omitempty"`
	TargetMeanEncoding             *TargetMeanEncodingPreprocessor `json:"target_mean_encoding,omitempty"`
}

Preprocessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L31-L36

func NewPreprocessor ¶

func NewPreprocessor() *Preprocessor

NewPreprocessor returns a Preprocessor.

func (Preprocessor) MarshalJSON ¶

func (s Preprocessor) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*Preprocessor) PreprocessorCaster ¶

func (s *Preprocessor) PreprocessorCaster() *Preprocessor

type PreprocessorVariant ¶

type PreprocessorVariant interface {
	PreprocessorCaster() *Preprocessor
}

type PressureMemory ¶

type PressureMemory struct {
	// All Memory consumed by indexing requests in the coordinating, primary, or replica
	// stage.
	All ByteSize `json:"all,omitempty"`
	// AllInBytes Memory consumed, in bytes, by indexing requests in the coordinating, primary,
	// or replica stage.
	AllInBytes *int64 `json:"all_in_bytes,omitempty"`
	// CombinedCoordinatingAndPrimary Memory consumed by indexing requests in the coordinating or primary stage.
	// This value is not the sum of coordinating and primary as a node can reuse the
	// coordinating memory if the primary stage is executed locally.
	CombinedCoordinatingAndPrimary ByteSize `json:"combined_coordinating_and_primary,omitempty"`
	// CombinedCoordinatingAndPrimaryInBytes Memory consumed, in bytes, by indexing requests in the coordinating or
	// primary stage.
	// This value is not the sum of coordinating and primary as a node can reuse the
	// coordinating memory if the primary stage is executed locally.
	CombinedCoordinatingAndPrimaryInBytes *int64 `json:"combined_coordinating_and_primary_in_bytes,omitempty"`
	// Coordinating Memory consumed by indexing requests in the coordinating stage.
	Coordinating ByteSize `json:"coordinating,omitempty"`
	// CoordinatingInBytes Memory consumed, in bytes, by indexing requests in the coordinating stage.
	CoordinatingInBytes *int64 `json:"coordinating_in_bytes,omitempty"`
	// CoordinatingRejections Number of indexing requests rejected in the coordinating stage.
	CoordinatingRejections   *int64 `json:"coordinating_rejections,omitempty"`
	LargeOperationRejections *int64 `json:"large_operation_rejections,omitempty"`
	// Primary Memory consumed by indexing requests in the primary stage.
	Primary                   ByteSize `json:"primary,omitempty"`
	PrimaryDocumentRejections *int64   `json:"primary_document_rejections,omitempty"`
	// PrimaryInBytes Memory consumed, in bytes, by indexing requests in the primary stage.
	PrimaryInBytes *int64 `json:"primary_in_bytes,omitempty"`
	// PrimaryRejections Number of indexing requests rejected in the primary stage.
	PrimaryRejections *int64 `json:"primary_rejections,omitempty"`
	// Replica Memory consumed by indexing requests in the replica stage.
	Replica ByteSize `json:"replica,omitempty"`
	// ReplicaInBytes Memory consumed, in bytes, by indexing requests in the replica stage.
	ReplicaInBytes *int64 `json:"replica_in_bytes,omitempty"`
	// ReplicaRejections Number of indexing requests rejected in the replica stage.
	ReplicaRejections *int64 `json:"replica_rejections,omitempty"`
}

PressureMemory type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L144-L201

func NewPressureMemory ¶

func NewPressureMemory() *PressureMemory

NewPressureMemory returns a PressureMemory.

func (*PressureMemory) UnmarshalJSON ¶

func (s *PressureMemory) UnmarshalJSON(data []byte) error

type PrivilegesActions ¶

type PrivilegesActions struct {
	Actions     []string `json:"actions"`
	Application *string  `json:"application,omitempty"`
	Metadata    Metadata `json:"metadata,omitempty"`
	Name        *string  `json:"name,omitempty"`
}

PrivilegesActions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/put_privileges/types.ts#L22-L27

func NewPrivilegesActions ¶

func NewPrivilegesActions() *PrivilegesActions

NewPrivilegesActions returns a PrivilegesActions.

func (*PrivilegesActions) PrivilegesActionsCaster ¶

func (s *PrivilegesActions) PrivilegesActionsCaster() *PrivilegesActions

func (*PrivilegesActions) UnmarshalJSON ¶

func (s *PrivilegesActions) UnmarshalJSON(data []byte) error

type PrivilegesActionsVariant ¶

type PrivilegesActionsVariant interface {
	PrivilegesActionsCaster() *PrivilegesActions
}

type PrivilegesCheck ¶

type PrivilegesCheck struct {
	Application []ApplicationPrivilegesCheck `json:"application,omitempty"`
	// Cluster A list of the cluster privileges that you want to check.
	Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`
	Index   []IndexPrivilegesCheck              `json:"index,omitempty"`
}

PrivilegesCheck type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/has_privileges_user_profile/types.ts#L30-L37

func NewPrivilegesCheck ¶

func NewPrivilegesCheck() *PrivilegesCheck

NewPrivilegesCheck returns a PrivilegesCheck.

func (*PrivilegesCheck) PrivilegesCheckCaster ¶

func (s *PrivilegesCheck) PrivilegesCheckCaster() *PrivilegesCheck

type PrivilegesCheckVariant ¶

type PrivilegesCheckVariant interface {
	PrivilegesCheckCaster() *PrivilegesCheck
}

type Process ¶

type Process struct {
	// Cpu Contains CPU statistics for the node.
	Cpu *Cpu `json:"cpu,omitempty"`
	// MaxFileDescriptors Maximum number of file descriptors allowed on the system, or `-1` if not
	// supported.
	MaxFileDescriptors *int `json:"max_file_descriptors,omitempty"`
	// Mem Contains virtual memory statistics for the node.
	Mem *MemoryStats `json:"mem,omitempty"`
	// OpenFileDescriptors Number of opened file descriptors associated with the current or `-1` if not
	// supported.
	OpenFileDescriptors *int `json:"open_file_descriptors,omitempty"`
	// Timestamp Last time the statistics were refreshed.
	// Recorded in milliseconds since the Unix Epoch.
	Timestamp *int64 `json:"timestamp,omitempty"`
}

Process type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1031-L1053

func NewProcess ¶

func NewProcess() *Process

NewProcess returns a Process.

func (*Process) UnmarshalJSON ¶

func (s *Process) UnmarshalJSON(data []byte) error

type Processor ¶

type Processor struct {
	// Count Number of documents transformed by the processor.
	Count *int64 `json:"count,omitempty"`
	// Current Number of documents currently being transformed by the processor.
	Current *int64 `json:"current,omitempty"`
	// Failed Number of failed operations for the processor.
	Failed *int64 `json:"failed,omitempty"`
	// TimeInMillis Time, in milliseconds, spent by the processor transforming documents.
	TimeInMillis *int64 `json:"time_in_millis,omitempty"`
}

Processor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L422-L439

func NewProcessor ¶

func NewProcessor() *Processor

NewProcessor returns a Processor.

func (*Processor) UnmarshalJSON ¶

func (s *Processor) UnmarshalJSON(data []byte) error

type ProcessorContainer ¶

type ProcessorContainer struct {
	AdditionalProcessorContainerProperty map[string]json.RawMessage `json:"-"`
	// Append Appends one or more values to an existing array if the field already exists
	// and it is an array.
	// Converts a scalar to an array and appends one or more values to it if the
	// field exists and it is a scalar.
	// Creates an array containing the provided values if the field doesn’t exist.
	// Accepts a single value or an array of values.
	Append *AppendProcessor `json:"append,omitempty"`
	// Attachment The attachment processor lets Elasticsearch extract file attachments in
	// common formats (such as PPT, XLS, and PDF) by using the Apache text
	// extraction library Tika.
	Attachment *AttachmentProcessor `json:"attachment,omitempty"`
	// Bytes Converts a human readable byte value (for example `1kb`) to its value in
	// bytes (for example `1024`).
	// If the field is an array of strings, all members of the array will be
	// converted.
	// Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case
	// insensitive.
	// An error will occur if the field is not a supported format or resultant value
	// exceeds 2^63.
	Bytes *BytesProcessor `json:"bytes,omitempty"`
	// Circle Converts circle definitions of shapes to regular polygons which approximate
	// them.
	Circle *CircleProcessor `json:"circle,omitempty"`
	// CommunityId Computes the Community ID for network flow data as defined in the
	// Community ID Specification. You can use a community ID to correlate network
	// events related to a single flow.
	CommunityId *CommunityIDProcessor `json:"community_id,omitempty"`
	// Convert Converts a field in the currently ingested document to a different type, such
	// as converting a string to an integer.
	// If the field value is an array, all members will be converted.
	Convert *ConvertProcessor `json:"convert,omitempty"`
	// Csv Extracts fields from CSV line out of a single text field within a document.
	// Any empty field in CSV will be skipped.
	Csv *CsvProcessor `json:"csv,omitempty"`
	// Date Parses dates from fields, and then uses the date or timestamp as the
	// timestamp for the document.
	Date *DateProcessor `json:"date,omitempty"`
	// DateIndexName The purpose of this processor is to point documents to the right time based
	// index based on a date or timestamp field in a document by using the date math
	// index name support.
	DateIndexName *DateIndexNameProcessor `json:"date_index_name,omitempty"`
	// Dissect Extracts structured fields out of a single text field by matching the text
	// field against a delimiter-based pattern.
	Dissect *DissectProcessor `json:"dissect,omitempty"`
	// DotExpander Expands a field with dots into an object field.
	// This processor allows fields with dots in the name to be accessible by other
	// processors in the pipeline.
	// Otherwise these fields can’t be accessed by any processor.
	DotExpander *DotExpanderProcessor `json:"dot_expander,omitempty"`
	// Drop Drops the document without raising any errors.
	// This is useful to prevent the document from getting indexed based on some
	// condition.
	Drop *DropProcessor `json:"drop,omitempty"`
	// Enrich The `enrich` processor can enrich documents with data from another index.
	Enrich *EnrichProcessor `json:"enrich,omitempty"`
	// Fail Raises an exception.
	// This is useful for when you expect a pipeline to fail and want to relay a
	// specific message to the requester.
	Fail *FailProcessor `json:"fail,omitempty"`
	// Fingerprint Computes a hash of the document’s content. You can use this hash for
	// content fingerprinting.
	Fingerprint *FingerprintProcessor `json:"fingerprint,omitempty"`
	// Foreach Runs an ingest processor on each element of an array or object.
	Foreach *ForeachProcessor `json:"foreach,omitempty"`
	// GeoGrid Converts geo-grid definitions of grid tiles or cells to regular bounding
	// boxes or polygons which describe their shape.
	// This is useful if there is a need to interact with the tile shapes as
	// spatially indexable fields.
	GeoGrid *GeoGridProcessor `json:"geo_grid,omitempty"`
	// Geoip The `geoip` processor adds information about the geographical location of an
	// IPv4 or IPv6 address.
	Geoip *GeoIpProcessor `json:"geoip,omitempty"`
	// Grok Extracts structured fields out of a single text field within a document.
	// You choose which field to extract matched fields from, as well as the grok
	// pattern you expect will match.
	// A grok pattern is like a regular expression that supports aliased expressions
	// that can be reused.
	Grok *GrokProcessor `json:"grok,omitempty"`
	// Gsub Converts a string field by applying a regular expression and a replacement.
	// If the field is an array of string, all members of the array will be
	// converted.
	// If any non-string values are encountered, the processor will throw an
	// exception.
	Gsub *GsubProcessor `json:"gsub,omitempty"`
	// HtmlStrip Removes HTML tags from the field.
	// If the field is an array of strings, HTML tags will be removed from all
	// members of the array.
	HtmlStrip *HtmlStripProcessor `json:"html_strip,omitempty"`
	// Inference Uses a pre-trained data frame analytics model or a model deployed for natural
	// language processing tasks to infer against the data that is being ingested in
	// the pipeline.
	Inference *InferenceProcessor `json:"inference,omitempty"`
	// IpLocation Currently an undocumented alias for GeoIP Processor.
	IpLocation *IpLocationProcessor `json:"ip_location,omitempty"`
	// Join Joins each element of an array into a single string using a separator
	// character between each element.
	// Throws an error when the field is not an array.
	Join *JoinProcessor `json:"join,omitempty"`
	// Json Converts a JSON string into a structured JSON object.
	Json *JsonProcessor `json:"json,omitempty"`
	// Kv This processor helps automatically parse messages (or specific event fields)
	// which are of the `foo=bar` variety.
	Kv *KeyValueProcessor `json:"kv,omitempty"`
	// Lowercase Converts a string to its lowercase equivalent.
	// If the field is an array of strings, all members of the array will be
	// converted.
	Lowercase *LowercaseProcessor `json:"lowercase,omitempty"`
	// NetworkDirection Calculates the network direction given a source IP address, destination IP
	// address, and a list of internal networks.
	NetworkDirection *NetworkDirectionProcessor `json:"network_direction,omitempty"`
	// Pipeline Executes another pipeline.
	Pipeline *PipelineProcessor `json:"pipeline,omitempty"`
	// Redact The Redact processor uses the Grok rules engine to obscure text in the input
	// document matching the given Grok patterns.
	// The processor can be used to obscure Personal Identifying Information (PII)
	// by configuring it to detect known patterns such as email or IP addresses.
	// Text that matches a Grok pattern is replaced with a configurable string such
	// as `<EMAIL>` where an email address is matched or simply replace all matches
	// with the text `<REDACTED>` if preferred.
	Redact *RedactProcessor `json:"redact,omitempty"`
	// RegisteredDomain Extracts the registered domain (also known as the effective top-level
	// domain or eTLD), sub-domain, and top-level domain from a fully qualified
	// domain name (FQDN). Uses the registered domains defined in the Mozilla
	// Public Suffix List.
	RegisteredDomain *RegisteredDomainProcessor `json:"registered_domain,omitempty"`
	// Remove Removes existing fields.
	// If one field doesn’t exist, an exception will be thrown.
	Remove *RemoveProcessor `json:"remove,omitempty"`
	// Rename Renames an existing field.
	// If the field doesn’t exist or the new name is already used, an exception will
	// be thrown.
	Rename *RenameProcessor `json:"rename,omitempty"`
	// Reroute Routes a document to another target index or data stream.
	// When setting the `destination` option, the target is explicitly specified and
	// the dataset and namespace options can’t be set.
	// When the `destination` option is not set, this processor is in a data stream
	// mode. Note that in this mode, the reroute processor can only be used on data
	// streams that follow the data stream naming scheme.
	Reroute *RerouteProcessor `json:"reroute,omitempty"`
	// Script Runs an inline or stored script on incoming documents.
	// The script runs in the `ingest` context.
	Script *ScriptProcessor `json:"script,omitempty"`
	// Set Adds a field with the specified value.
	// If the field already exists, its value will be replaced with the provided
	// one.
	Set *SetProcessor `json:"set,omitempty"`
	// SetSecurityUser Sets user-related details (such as `username`, `roles`, `email`, `full_name`,
	// `metadata`, `api_key`, `realm` and `authentication_type`) from the current
	// authenticated user to the current document by pre-processing the ingest.
	SetSecurityUser *SetSecurityUserProcessor `json:"set_security_user,omitempty"`
	// Sort Sorts the elements of an array ascending or descending.
	// Homogeneous arrays of numbers will be sorted numerically, while arrays of
	// strings or heterogeneous arrays of strings + numbers will be sorted
	// lexicographically.
	// Throws an error when the field is not an array.
	Sort *SortProcessor `json:"sort,omitempty"`
	// Split Splits a field into an array using a separator character.
	// Only works on string fields.
	Split *SplitProcessor `json:"split,omitempty"`
	// Terminate Terminates the current ingest pipeline, causing no further processors to be
	// run.
	// This will normally be executed conditionally, using the `if` option.
	Terminate *TerminateProcessor `json:"terminate,omitempty"`
	// Trim Trims whitespace from a field.
	// If the field is an array of strings, all members of the array will be
	// trimmed.
	// This only works on leading and trailing whitespace.
	Trim *TrimProcessor `json:"trim,omitempty"`
	// Uppercase Converts a string to its uppercase equivalent.
	// If the field is an array of strings, all members of the array will be
	// converted.
	Uppercase *UppercaseProcessor `json:"uppercase,omitempty"`
	// UriParts Parses a Uniform Resource Identifier (URI) string and extracts its components
	// as an object.
	// This URI object includes properties for the URI’s domain, path, fragment,
	// port, query, scheme, user info, username, and password.
	UriParts *UriPartsProcessor `json:"uri_parts,omitempty"`
	// Urldecode URL-decodes a string.
	// If the field is an array of strings, all members of the array will be
	// decoded.
	Urldecode *UrlDecodeProcessor `json:"urldecode,omitempty"`
	// UserAgent The `user_agent` processor extracts details from the user agent string a
	// browser sends with its web requests.
	// This processor adds this information by default under the `user_agent` field.
	UserAgent *UserAgentProcessor `json:"user_agent,omitempty"`
}

ProcessorContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L28-L302

func NewProcessorContainer ¶

func NewProcessorContainer() *ProcessorContainer

NewProcessorContainer returns a ProcessorContainer.

func (ProcessorContainer) MarshalJSON ¶

func (s ProcessorContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ProcessorContainer) ProcessorContainerCaster ¶

func (s *ProcessorContainer) ProcessorContainerCaster() *ProcessorContainer

type ProcessorContainerVariant ¶

type ProcessorContainerVariant interface {
	ProcessorContainerCaster() *ProcessorContainer
}

type Property ¶

type Property any

Property holds the union for the following types:

BinaryProperty
BooleanProperty
DynamicProperty
JoinProperty
KeywordProperty
MatchOnlyTextProperty
PercolatorProperty
RankFeatureProperty
RankFeaturesProperty
SearchAsYouTypeProperty
TextProperty
VersionProperty
WildcardProperty
DateNanosProperty
DateProperty
AggregateMetricDoubleProperty
DenseVectorProperty
FlattenedProperty
NestedProperty
ObjectProperty
PassthroughObjectProperty
RankVectorProperty
SemanticTextProperty
SparseVectorProperty
CompletionProperty
ConstantKeywordProperty
CountedKeywordProperty
FieldAliasProperty
HistogramProperty
IpProperty
Murmur3HashProperty
TokenCountProperty
GeoPointProperty
GeoShapeProperty
PointProperty
ShapeProperty
ByteNumberProperty
DoubleNumberProperty
FloatNumberProperty
HalfFloatNumberProperty
IntegerNumberProperty
LongNumberProperty
ScaledFloatNumberProperty
ShortNumberProperty
UnsignedLongNumberProperty
DateRangeProperty
DoubleRangeProperty
FloatRangeProperty
IntegerRangeProperty
IpRangeProperty
LongRangeProperty
IcuCollationProperty

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/Property.ts#L120-L191

type PropertyVariant ¶

type PropertyVariant interface {
	PropertyCaster() *Property
}

type PublishedClusterStates ¶

type PublishedClusterStates struct {
	// CompatibleDiffs Number of compatible differences between published cluster states.
	CompatibleDiffs *int64 `json:"compatible_diffs,omitempty"`
	// FullStates Number of published cluster states.
	FullStates *int64 `json:"full_states,omitempty"`
	// IncompatibleDiffs Number of incompatible differences between published cluster states.
	IncompatibleDiffs *int64 `json:"incompatible_diffs,omitempty"`
}

PublishedClusterStates type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L265-L278

func NewPublishedClusterStates ¶

func NewPublishedClusterStates() *PublishedClusterStates

NewPublishedClusterStates returns a PublishedClusterStates.

func (*PublishedClusterStates) UnmarshalJSON ¶

func (s *PublishedClusterStates) UnmarshalJSON(data []byte) error

type Queries ¶

type Queries struct {
	Cache *CacheQueries `json:"cache,omitempty"`
}

Queries type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L430-L432

func NewQueries ¶

func NewQueries() *Queries

NewQueries returns a Queries.

func (*Queries) QueriesCaster ¶

func (s *Queries) QueriesCaster() *Queries

type QueriesVariant ¶

type QueriesVariant interface {
	QueriesCaster() *Queries
}

type Query ¶

type Query struct {
	AdditionalQueryProperty map[string]json.RawMessage `json:"-"`
	// Bool matches documents matching boolean combinations of other queries.
	Bool *BoolQuery `json:"bool,omitempty"`
	// Boosting Returns documents matching a `positive` query while reducing the relevance
	// score of documents that also match a `negative` query.
	Boosting *BoostingQuery `json:"boosting,omitempty"`
	// CombinedFields The `combined_fields` query supports searching multiple text fields as if
	// their contents had been indexed into one combined field.
	CombinedFields *CombinedFieldsQuery        `json:"combined_fields,omitempty"`
	Common         map[string]CommonTermsQuery `json:"common,omitempty"`
	// ConstantScore Wraps a filter query and returns every matching document with a relevance
	// score equal to the `boost` parameter value.
	ConstantScore *ConstantScoreQuery `json:"constant_score,omitempty"`
	// DisMax Returns documents matching one or more wrapped queries, called query clauses
	// or clauses.
	// If a returned document matches multiple query clauses, the `dis_max` query
	// assigns the document the highest relevance score from any matching clause,
	// plus a tie breaking increment for any additional matching subqueries.
	DisMax *DisMaxQuery `json:"dis_max,omitempty"`
	// DistanceFeature Boosts the relevance score of documents closer to a provided origin date or
	// point.
	// For example, you can use this query to give more weight to documents closer
	// to a certain date or location.
	DistanceFeature DistanceFeatureQuery `json:"distance_feature,omitempty"`
	// Exists Returns documents that contain an indexed value for a field.
	Exists *ExistsQuery `json:"exists,omitempty"`
	// FunctionScore The `function_score` enables you to modify the score of documents that are
	// retrieved by a query.
	FunctionScore *FunctionScoreQuery `json:"function_score,omitempty"`
	// Fuzzy Returns documents that contain terms similar to the search term, as measured
	// by a Levenshtein edit distance.
	Fuzzy map[string]FuzzyQuery `json:"fuzzy,omitempty"`
	// GeoBoundingBox Matches geo_point and geo_shape values that intersect a bounding box.
	GeoBoundingBox *GeoBoundingBoxQuery `json:"geo_bounding_box,omitempty"`
	// GeoDistance Matches `geo_point` and `geo_shape` values within a given distance of a
	// geopoint.
	GeoDistance *GeoDistanceQuery `json:"geo_distance,omitempty"`
	// GeoGrid Matches `geo_point` and `geo_shape` values that intersect a grid cell from a
	// GeoGrid aggregation.
	GeoGrid    map[string]GeoGridQuery `json:"geo_grid,omitempty"`
	GeoPolygon *GeoPolygonQuery        `json:"geo_polygon,omitempty"`
	// GeoShape Filter documents indexed using either the `geo_shape` or the `geo_point`
	// type.
	GeoShape *GeoShapeQuery `json:"geo_shape,omitempty"`
	// HasChild Returns parent documents whose joined child documents match a provided query.
	HasChild *HasChildQuery `json:"has_child,omitempty"`
	// HasParent Returns child documents whose joined parent document matches a provided
	// query.
	HasParent *HasParentQuery `json:"has_parent,omitempty"`
	// Ids Returns documents based on their IDs.
	// This query uses document IDs stored in the `_id` field.
	Ids *IdsQuery `json:"ids,omitempty"`
	// Intervals Returns documents based on the order and proximity of matching terms.
	Intervals map[string]IntervalsQuery `json:"intervals,omitempty"`
	// Knn Finds the k nearest vectors to a query vector, as measured by a similarity
	// metric. knn query finds nearest vectors through approximate search on indexed
	// dense_vectors.
	Knn *KnnQuery `json:"knn,omitempty"`
	// Match Returns documents that match a provided text, number, date or boolean value.
	// The provided text is analyzed before matching.
	Match map[string]MatchQuery `json:"match,omitempty"`
	// MatchAll Matches all documents, giving them all a `_score` of 1.0.
	MatchAll *MatchAllQuery `json:"match_all,omitempty"`
	// MatchBoolPrefix Analyzes its input and constructs a `bool` query from the terms.
	// Each term except the last is used in a `term` query.
	// The last term is used in a prefix query.
	MatchBoolPrefix map[string]MatchBoolPrefixQuery `json:"match_bool_prefix,omitempty"`
	// MatchNone Matches no documents.
	MatchNone *MatchNoneQuery `json:"match_none,omitempty"`
	// MatchPhrase Analyzes the text and creates a phrase query out of the analyzed text.
	MatchPhrase map[string]MatchPhraseQuery `json:"match_phrase,omitempty"`
	// MatchPhrasePrefix Returns documents that contain the words of a provided text, in the same
	// order as provided.
	// The last term of the provided text is treated as a prefix, matching any words
	// that begin with that term.
	MatchPhrasePrefix map[string]MatchPhrasePrefixQuery `json:"match_phrase_prefix,omitempty"`
	// MoreLikeThis Returns documents that are "like" a given set of documents.
	MoreLikeThis *MoreLikeThisQuery `json:"more_like_this,omitempty"`
	// MultiMatch Enables you to search for a provided text, number, date or boolean value
	// across multiple fields.
	// The provided text is analyzed before matching.
	MultiMatch *MultiMatchQuery `json:"multi_match,omitempty"`
	// Nested Wraps another query to search nested fields.
	// If an object matches the search, the nested query returns the root parent
	// document.
	Nested *NestedQuery `json:"nested,omitempty"`
	// ParentId Returns child documents joined to a specific parent document.
	ParentId *ParentIdQuery `json:"parent_id,omitempty"`
	// Percolate Matches queries stored in an index.
	Percolate *PercolateQuery `json:"percolate,omitempty"`
	// Pinned Promotes selected documents to rank higher than those matching a given query.
	Pinned *PinnedQuery `json:"pinned,omitempty"`
	// Prefix Returns documents that contain a specific prefix in a provided field.
	Prefix map[string]PrefixQuery `json:"prefix,omitempty"`
	// QueryString Returns documents based on a provided query string, using a parser with a
	// strict syntax.
	QueryString *QueryStringQuery `json:"query_string,omitempty"`
	// Range Returns documents that contain terms within a provided range.
	Range map[string]RangeQuery `json:"range,omitempty"`
	// RankFeature Boosts the relevance score of documents based on the numeric value of a
	// `rank_feature` or `rank_features` field.
	RankFeature *RankFeatureQuery `json:"rank_feature,omitempty"`
	// Regexp Returns documents that contain terms matching a regular expression.
	Regexp map[string]RegexpQuery `json:"regexp,omitempty"`
	Rule   *RuleQuery             `json:"rule,omitempty"`
	// Script Filters documents based on a provided script.
	// The script query is typically used in a filter context.
	Script *ScriptQuery `json:"script,omitempty"`
	// ScriptScore Uses a script to provide a custom score for returned documents.
	ScriptScore *ScriptScoreQuery `json:"script_score,omitempty"`
	// Semantic A semantic query to semantic_text field types
	Semantic *SemanticQuery `json:"semantic,omitempty"`
	// Shape Queries documents that contain fields indexed using the `shape` type.
	Shape *ShapeQuery `json:"shape,omitempty"`
	// SimpleQueryString Returns documents based on a provided query string, using a parser with a
	// limited but fault-tolerant syntax.
	SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`
	// SpanContaining Returns matches which enclose another span query.
	SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`
	// SpanFieldMasking Wrapper to allow span queries to participate in composite single-field span
	// queries by _lying_ about their search field.
	SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`
	// SpanFirst Matches spans near the beginning of a field.
	SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`
	// SpanMulti Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`,
	// `range`, or `regexp` query) as a `span` query, so it can be nested.
	SpanMulti *SpanMultiTermQuery `json:"span_multi,omitempty"`
	// SpanNear Matches spans which are near one another.
	// You can specify `slop`, the maximum number of intervening unmatched
	// positions, as well as whether matches are required to be in-order.
	SpanNear *SpanNearQuery `json:"span_near,omitempty"`
	// SpanNot Removes matches which overlap with another span query or which are within x
	// tokens before (controlled by the parameter `pre`) or y tokens after
	// (controlled by the parameter `post`) another span query.
	SpanNot *SpanNotQuery `json:"span_not,omitempty"`
	// SpanOr Matches the union of its span clauses.
	SpanOr *SpanOrQuery `json:"span_or,omitempty"`
	// SpanTerm Matches spans containing a term.
	SpanTerm map[string]SpanTermQuery `json:"span_term,omitempty"`
	// SpanWithin Returns matches which are enclosed inside another span query.
	SpanWithin *SpanWithinQuery `json:"span_within,omitempty"`
	// SparseVector Using input query vectors or a natural language processing model to convert a
	// query into a list of token-weight pairs, queries against a sparse vector
	// field.
	SparseVector *SparseVectorQuery `json:"sparse_vector,omitempty"`
	// Term Returns documents that contain an exact term in a provided field.
	// To return a document, the query term must exactly match the queried field's
	// value, including whitespace and capitalization.
	Term map[string]TermQuery `json:"term,omitempty"`
	// Terms Returns documents that contain one or more exact terms in a provided field.
	// To return a document, one or more terms must exactly match a field value,
	// including whitespace and capitalization.
	Terms *TermsQuery `json:"terms,omitempty"`
	// TermsSet Returns documents that contain a minimum number of exact terms in a provided
	// field.
	// To return a document, a required number of terms must exactly match the field
	// values, including whitespace and capitalization.
	TermsSet map[string]TermsSetQuery `json:"terms_set,omitempty"`
	// TextExpansion Uses a natural language processing model to convert the query text into a
	// list of token-weight pairs which are then used in a query against a sparse
	// vector or rank features field.
	TextExpansion map[string]TextExpansionQuery `json:"text_expansion,omitempty"`
	Type          *TypeQuery                    `json:"type,omitempty"`
	// WeightedTokens Supports returning text_expansion query results by sending in precomputed
	// tokens with the query.
	WeightedTokens map[string]WeightedTokensQuery `json:"weighted_tokens,omitempty"`
	// Wildcard Returns documents that contain terms matching a wildcard pattern.
	Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`
	// Wrapper A query that accepts any other query as base64 encoded string.
	Wrapper *WrapperQuery `json:"wrapper,omitempty"`
}

Query type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/abstractions.ts#L103-L434

func NewQuery ¶

func NewQuery() *Query

NewQuery returns a Query.

func (*Query) IndicesPrivilegesQueryCaster ¶ added in v9.0.1

func (s *Query) IndicesPrivilegesQueryCaster() *IndicesPrivilegesQuery

func (Query) MarshalJSON ¶

func (s Query) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*Query) QueryCaster ¶

func (s *Query) QueryCaster() *Query

func (*Query) RoleTemplateInlineQueryCaster ¶ added in v9.0.1

func (s *Query) RoleTemplateInlineQueryCaster() *RoleTemplateInlineQuery

func (*Query) UnmarshalJSON ¶

func (s *Query) UnmarshalJSON(data []byte) error

type QueryBreakdown ¶

type QueryBreakdown struct {
	Advance                     int64 `json:"advance"`
	AdvanceCount                int64 `json:"advance_count"`
	BuildScorer                 int64 `json:"build_scorer"`
	BuildScorerCount            int64 `json:"build_scorer_count"`
	ComputeMaxScore             int64 `json:"compute_max_score"`
	ComputeMaxScoreCount        int64 `json:"compute_max_score_count"`
	CountWeight                 int64 `json:"count_weight"`
	CountWeightCount            int64 `json:"count_weight_count"`
	CreateWeight                int64 `json:"create_weight"`
	CreateWeightCount           int64 `json:"create_weight_count"`
	Match                       int64 `json:"match"`
	MatchCount                  int64 `json:"match_count"`
	NextDoc                     int64 `json:"next_doc"`
	NextDocCount                int64 `json:"next_doc_count"`
	Score                       int64 `json:"score"`
	ScoreCount                  int64 `json:"score_count"`
	SetMinCompetitiveScore      int64 `json:"set_min_competitive_score"`
	SetMinCompetitiveScoreCount int64 `json:"set_min_competitive_score_count"`
	ShallowAdvance              int64 `json:"shallow_advance"`
	ShallowAdvanceCount         int64 `json:"shallow_advance_count"`
}

QueryBreakdown type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L105-L126

func NewQueryBreakdown ¶

func NewQueryBreakdown() *QueryBreakdown

NewQueryBreakdown returns a QueryBreakdown.

func (*QueryBreakdown) UnmarshalJSON ¶

func (s *QueryBreakdown) UnmarshalJSON(data []byte) error

type QueryCacheStats ¶

type QueryCacheStats struct {
	// CacheCount Total number of entries added to the query cache across all shards assigned
	// to selected nodes.
	// This number includes current and evicted entries.
	CacheCount int64 `json:"cache_count"`
	// CacheSize Total number of entries currently in the query cache across all shards
	// assigned to selected nodes.
	CacheSize int64 `json:"cache_size"`
	// Evictions Total number of query cache evictions across all shards assigned to selected
	// nodes.
	Evictions int64 `json:"evictions"`
	// HitCount Total count of query cache hits across all shards assigned to selected nodes.
	HitCount int64 `json:"hit_count"`
	// MemorySize Total amount of memory used for the query cache across all shards assigned to
	// selected nodes.
	MemorySize ByteSize `json:"memory_size,omitempty"`
	// MemorySizeInBytes Total amount, in bytes, of memory used for the query cache across all shards
	// assigned to selected nodes.
	MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
	// MissCount Total count of query cache misses across all shards assigned to selected
	// nodes.
	MissCount int64 `json:"miss_count"`
	// TotalCount Total count of hits and misses in the query cache across all shards assigned
	// to selected nodes.
	TotalCount int64 `json:"total_count"`
}

QueryCacheStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L219-L253

func NewQueryCacheStats ¶

func NewQueryCacheStats() *QueryCacheStats

NewQueryCacheStats returns a QueryCacheStats.

func (*QueryCacheStats) UnmarshalJSON ¶

func (s *QueryCacheStats) UnmarshalJSON(data []byte) error

type QueryFeatureExtractor ¶

type QueryFeatureExtractor struct {
	DefaultScore *float32 `json:"default_score,omitempty"`
	FeatureName  string   `json:"feature_name"`
	Query        Query    `json:"query"`
}

QueryFeatureExtractor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L98-L105

func NewQueryFeatureExtractor ¶

func NewQueryFeatureExtractor() *QueryFeatureExtractor

NewQueryFeatureExtractor returns a QueryFeatureExtractor.

func (*QueryFeatureExtractor) QueryFeatureExtractorCaster ¶

func (s *QueryFeatureExtractor) QueryFeatureExtractorCaster() *QueryFeatureExtractor

func (*QueryFeatureExtractor) UnmarshalJSON ¶

func (s *QueryFeatureExtractor) UnmarshalJSON(data []byte) error

type QueryFeatureExtractorVariant ¶

type QueryFeatureExtractorVariant interface {
	QueryFeatureExtractorCaster() *QueryFeatureExtractor
}

type QueryProfile ¶

type QueryProfile struct {
	Breakdown   QueryBreakdown `json:"breakdown"`
	Children    []QueryProfile `json:"children,omitempty"`
	Description string         `json:"description"`
	TimeInNanos int64          `json:"time_in_nanos"`
	Type        string         `json:"type"`
}

QueryProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L128-L134

func NewQueryProfile ¶

func NewQueryProfile() *QueryProfile

NewQueryProfile returns a QueryProfile.

func (*QueryProfile) UnmarshalJSON ¶

func (s *QueryProfile) UnmarshalJSON(data []byte) error

type QueryRole ¶

type QueryRole struct {
	// Applications A list of application privilege entries
	Applications []ApplicationPrivileges `json:"applications,omitempty"`
	// Cluster A list of cluster privileges. These privileges define the cluster level
	// actions that API keys are able to execute.
	Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`
	// Description Optional description of the role descriptor
	Description *string `json:"description,omitempty"`
	// Global An object defining global privileges. A global privilege is a form of cluster
	// privilege that is request-aware. Support for global privileges is currently
	// limited to the management of application privileges.
	Global []GlobalPrivilege `json:"global,omitempty"`
	// Indices A list of indices permissions entries.
	Indices []IndicesPrivileges `json:"indices,omitempty"`
	// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are
	// reserved for system usage.
	Metadata Metadata `json:"metadata,omitempty"`
	// Name Name of the role.
	Name string `json:"name"`
	// RemoteCluster A list of cluster permissions for remote clusters.
	// NOTE: This is limited a subset of the cluster permissions.
	RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`
	// RemoteIndices A list of indices permissions for remote clusters.
	RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`
	// Restriction Restriction for when the role descriptor is allowed to be effective.
	Restriction *Restriction `json:"restriction,omitempty"`
	// RunAs A list of users that the API keys can impersonate.
	// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled.
	// For API compatibility, you can still specify an empty `run_as` field, but a
	// non-empty list will be rejected.
	RunAs             []string                   `json:"run_as,omitempty"`
	Sort_             []FieldValue               `json:"_sort,omitempty"`
	TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`
}

QueryRole type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_role/types.ts#L103-L109

func NewQueryRole ¶

func NewQueryRole() *QueryRole

NewQueryRole returns a QueryRole.

func (*QueryRole) UnmarshalJSON ¶

func (s *QueryRole) UnmarshalJSON(data []byte) error

type QueryRule ¶

type QueryRule struct {
	// Actions The actions to take when the rule is matched.
	// The format of this action depends on the rule type.
	Actions QueryRuleActions `json:"actions"`
	// Criteria The criteria that must be met for the rule to be applied.
	// If multiple criteria are specified for a rule, all criteria must be met for
	// the rule to be applied.
	Criteria []QueryRuleCriteria `json:"criteria"`
	Priority *int                `json:"priority,omitempty"`
	// RuleId A unique identifier for the rule.
	RuleId string `json:"rule_id"`
	// Type The type of rule.
	// `pinned` will identify and pin specific documents to the top of search
	// results.
	// `exclude` will exclude specific documents from search results.
	Type queryruletype.QueryRuleType `json:"type"`
}

QueryRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/query_rules/_types/QueryRuleset.ts#L36-L58

func NewQueryRule ¶

func NewQueryRule() *QueryRule

NewQueryRule returns a QueryRule.

func (*QueryRule) QueryRuleCaster ¶

func (s *QueryRule) QueryRuleCaster() *QueryRule

func (*QueryRule) UnmarshalJSON ¶

func (s *QueryRule) UnmarshalJSON(data []byte) error

type QueryRuleActions ¶

type QueryRuleActions struct {
	// Docs The documents to apply the rule to.
	// Only one of `ids` or `docs` may be specified and at least one must be
	// specified.
	// There is a maximum value of 100 documents in a rule.
	// You can specify the following attributes for each document:
	//
	// * `_index`: The index of the document to pin.
	// * `_id`: The unique document ID.
	Docs []PinnedDoc `json:"docs,omitempty"`
	// Ids The unique document IDs of the documents to apply the rule to.
	// Only one of `ids` or `docs` may be specified and at least one must be
	// specified.
	Ids []string `json:"ids,omitempty"`
}

QueryRuleActions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/query_rules/_types/QueryRuleset.ts#L110-L126

func NewQueryRuleActions ¶

func NewQueryRuleActions() *QueryRuleActions

NewQueryRuleActions returns a QueryRuleActions.

func (*QueryRuleActions) QueryRuleActionsCaster ¶

func (s *QueryRuleActions) QueryRuleActionsCaster() *QueryRuleActions

type QueryRuleActionsVariant ¶

type QueryRuleActionsVariant interface {
	QueryRuleActionsCaster() *QueryRuleActions
}

type QueryRuleCriteria ¶

type QueryRuleCriteria struct {
	// Metadata The metadata field to match against.
	// This metadata will be used to match against `match_criteria` sent in the
	// rule.
	// It is required for all criteria types except `always`.
	Metadata *string `json:"metadata,omitempty"`
	// Type The type of criteria. The following criteria types are supported:
	//
	// * `always`: Matches all queries, regardless of input.
	// * `contains`: Matches that contain this value anywhere in the field meet the
	// criteria defined by the rule. Only applicable for string values.
	// * `exact`: Only exact matches meet the criteria defined by the rule.
	// Applicable for string or numerical values.
	// * `fuzzy`: Exact matches or matches within the allowed Levenshtein Edit
	// Distance meet the criteria defined by the rule. Only applicable for string
	// values.
	// * `gt`: Matches with a value greater than this value meet the criteria
	// defined by the rule. Only applicable for numerical values.
	// * `gte`: Matches with a value greater than or equal to this value meet the
	// criteria defined by the rule. Only applicable for numerical values.
	// * `lt`: Matches with a value less than this value meet the criteria defined
	// by the rule. Only applicable for numerical values.
	// * `lte`: Matches with a value less than or equal to this value meet the
	// criteria defined by the rule. Only applicable for numerical values.
	// * `prefix`: Matches that start with this value meet the criteria defined by
	// the rule. Only applicable for string values.
	// * `suffix`: Matches that end with this value meet the criteria defined by the
	// rule. Only applicable for string values.
	Type queryrulecriteriatype.QueryRuleCriteriaType `json:"type"`
	// Values The values to match against the `metadata` field.
	// Only one value must match for the criteria to be met.
	// It is required for all criteria types except `always`.
	Values []json.RawMessage `json:"values,omitempty"`
}

QueryRuleCriteria type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/query_rules/_types/QueryRuleset.ts#L65-L93

func NewQueryRuleCriteria ¶

func NewQueryRuleCriteria() *QueryRuleCriteria

NewQueryRuleCriteria returns a QueryRuleCriteria.

func (*QueryRuleCriteria) QueryRuleCriteriaCaster ¶

func (s *QueryRuleCriteria) QueryRuleCriteriaCaster() *QueryRuleCriteria

func (*QueryRuleCriteria) UnmarshalJSON ¶

func (s *QueryRuleCriteria) UnmarshalJSON(data []byte) error

type QueryRuleCriteriaVariant ¶

type QueryRuleCriteriaVariant interface {
	QueryRuleCriteriaCaster() *QueryRuleCriteria
}

type QueryRuleVariant ¶

type QueryRuleVariant interface {
	QueryRuleCaster() *QueryRule
}

type QueryRulesetListItem ¶

type QueryRulesetListItem struct {
	// RuleCriteriaTypesCounts A map of criteria type (for example, `exact`) to the number of rules of that
	// type.
	//
	// NOTE: The counts in `rule_criteria_types_counts` may be larger than the value
	// of `rule_total_count` because a rule may have multiple criteria.
	RuleCriteriaTypesCounts map[string]int `json:"rule_criteria_types_counts"`
	// RuleTotalCount The number of rules associated with the ruleset.
	RuleTotalCount int `json:"rule_total_count"`
	// RuleTypeCounts A map of rule type (for example, `pinned`) to the number of rules of that
	// type.
	RuleTypeCounts map[string]int `json:"rule_type_counts"`
	// RulesetId A unique identifier for the ruleset.
	RulesetId string `json:"ruleset_id"`
}

QueryRulesetListItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/query_rules/list_rulesets/types.ts#L23-L44

func NewQueryRulesetListItem ¶

func NewQueryRulesetListItem() *QueryRulesetListItem

NewQueryRulesetListItem returns a QueryRulesetListItem.

func (*QueryRulesetListItem) UnmarshalJSON ¶

func (s *QueryRulesetListItem) UnmarshalJSON(data []byte) error

type QueryRulesetMatchedRule ¶

type QueryRulesetMatchedRule struct {
	// RuleId Rule unique identifier within that ruleset
	RuleId string `json:"rule_id"`
	// RulesetId Ruleset unique identifier
	RulesetId string `json:"ruleset_id"`
}

QueryRulesetMatchedRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39

func NewQueryRulesetMatchedRule ¶

func NewQueryRulesetMatchedRule() *QueryRulesetMatchedRule

NewQueryRulesetMatchedRule returns a QueryRulesetMatchedRule.

func (*QueryRulesetMatchedRule) UnmarshalJSON ¶

func (s *QueryRulesetMatchedRule) UnmarshalJSON(data []byte) error

type QueryStringQuery ¶

type QueryStringQuery struct {
	// AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first
	// character of the query string.
	AllowLeadingWildcard *bool `json:"allow_leading_wildcard,omitempty"`
	// AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string.
	AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"`
	// Analyzer Analyzer used to convert text in the query string into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// AutoGenerateSynonymsPhraseQuery If `true`, match phrase queries are automatically created for multi-term
	// synonyms.
	AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// DefaultField Default field to search if no field is provided in the query string.
	// Supports wildcards (`*`).
	// Defaults to the `index.query.default_field` index setting, which has a
	// default value of `*`.
	DefaultField *string `json:"default_field,omitempty"`
	// DefaultOperator Default boolean logic used to interpret text in the query string if no
	// operators are specified.
	DefaultOperator *operator.Operator `json:"default_operator,omitempty"`
	// EnablePositionIncrements If `true`, enable position increments in queries constructed from a
	// `query_string` search.
	EnablePositionIncrements *bool `json:"enable_position_increments,omitempty"`
	Escape                   *bool `json:"escape,omitempty"`
	// Fields Array of fields to search. Supports wildcards (`*`).
	Fields []string `json:"fields,omitempty"`
	// Fuzziness Maximum edit distance allowed for fuzzy matching.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// FuzzyMaxExpansions Maximum number of terms to which the query expands for fuzzy matching.
	FuzzyMaxExpansions *int `json:"fuzzy_max_expansions,omitempty"`
	// FuzzyPrefixLength Number of beginning characters left unchanged for fuzzy matching.
	FuzzyPrefixLength *int `json:"fuzzy_prefix_length,omitempty"`
	// FuzzyRewrite Method used to rewrite the query.
	FuzzyRewrite *string `json:"fuzzy_rewrite,omitempty"`
	// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent
	// characters (for example, `ab` to `ba`).
	FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`
	// Lenient If `true`, format-based errors, such as providing a text value for a numeric
	// field, are ignored.
	Lenient *bool `json:"lenient,omitempty"`
	// MaxDeterminizedStates Maximum number of automaton states required for the query.
	MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// PhraseSlop Maximum number of positions allowed between matching tokens for phrases.
	PhraseSlop *Float64 `json:"phrase_slop,omitempty"`
	// Query Query string you wish to parse and use for search.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// QuoteAnalyzer Analyzer used to convert quoted text in the query string into tokens.
	// For quoted text, this parameter overrides the analyzer specified in the
	// `analyzer` parameter.
	QuoteAnalyzer *string `json:"quote_analyzer,omitempty"`
	// QuoteFieldSuffix Suffix appended to quoted text in the query string.
	// You can use this suffix to use a different analysis method for exact matches.
	QuoteFieldSuffix *string `json:"quote_field_suffix,omitempty"`
	// Rewrite Method used to rewrite the query.
	Rewrite *string `json:"rewrite,omitempty"`
	// TieBreaker How to combine the queries generated from the individual search terms in the
	// resulting `dis_max` query.
	TieBreaker *Float64 `json:"tie_breaker,omitempty"`
	// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert
	// date values in the query string to UTC.
	TimeZone *string `json:"time_zone,omitempty"`
	// Type Determines how the query matches and scores documents.
	Type *textquerytype.TextQueryType `json:"type,omitempty"`
}

QueryStringQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L649-L772

func NewQueryStringQuery ¶

func NewQueryStringQuery() *QueryStringQuery

NewQueryStringQuery returns a QueryStringQuery.

func (*QueryStringQuery) QueryStringQueryCaster ¶

func (s *QueryStringQuery) QueryStringQueryCaster() *QueryStringQuery

func (*QueryStringQuery) UnmarshalJSON ¶

func (s *QueryStringQuery) UnmarshalJSON(data []byte) error

type QueryStringQueryVariant ¶

type QueryStringQueryVariant interface {
	QueryStringQueryCaster() *QueryStringQuery
}

type QueryUser ¶

type QueryUser struct {
	Email      *string      `json:"email,omitempty"`
	Enabled    bool         `json:"enabled"`
	FullName   *string      `json:"full_name,omitempty"`
	Metadata   Metadata     `json:"metadata"`
	ProfileUid *string      `json:"profile_uid,omitempty"`
	Roles      []string     `json:"roles"`
	Sort_      []FieldValue `json:"_sort,omitempty"`
	Username   string       `json:"username"`
}

QueryUser type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_user/types.ts#L103-L105

func NewQueryUser ¶

func NewQueryUser() *QueryUser

NewQueryUser returns a QueryUser.

func (*QueryUser) UnmarshalJSON ¶

func (s *QueryUser) UnmarshalJSON(data []byte) error

type QueryVariant ¶

type QueryVariant interface {
	QueryCaster() *Query
}

type QueryVectorBuilder ¶

type QueryVectorBuilder struct {
	AdditionalQueryVectorBuilderProperty map[string]json.RawMessage `json:"-"`
	TextEmbedding                        *TextEmbedding             `json:"text_embedding,omitempty"`
}

QueryVectorBuilder type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Knn.ts#L89-L92

func NewQueryVectorBuilder ¶

func NewQueryVectorBuilder() *QueryVectorBuilder

NewQueryVectorBuilder returns a QueryVectorBuilder.

func (QueryVectorBuilder) MarshalJSON ¶

func (s QueryVectorBuilder) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*QueryVectorBuilder) QueryVectorBuilderCaster ¶

func (s *QueryVectorBuilder) QueryVectorBuilderCaster() *QueryVectorBuilder

type QueryVectorBuilderVariant ¶

type QueryVectorBuilderVariant interface {
	QueryVectorBuilderCaster() *QueryVectorBuilder
}

type QueryWatch ¶

type QueryWatch struct {
	Id_          string       `json:"_id"`
	PrimaryTerm_ *int         `json:"_primary_term,omitempty"`
	SeqNo_       *int64       `json:"_seq_no,omitempty"`
	Status       *WatchStatus `json:"status,omitempty"`
	Watch        *Watch       `json:"watch,omitempty"`
}

QueryWatch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Watch.ts#L58-L64

func NewQueryWatch ¶

func NewQueryWatch() *QueryWatch

NewQueryWatch returns a QueryWatch.

func (*QueryWatch) UnmarshalJSON ¶

func (s *QueryWatch) UnmarshalJSON(data []byte) error

type QuestionAnsweringInferenceOptions ¶

type QuestionAnsweringInferenceOptions struct {
	// MaxAnswerLength The maximum answer length to consider
	MaxAnswerLength *int `json:"max_answer_length,omitempty"`
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
}

QuestionAnsweringInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L301-L311

func NewQuestionAnsweringInferenceOptions ¶

func NewQuestionAnsweringInferenceOptions() *QuestionAnsweringInferenceOptions

NewQuestionAnsweringInferenceOptions returns a QuestionAnsweringInferenceOptions.

func (*QuestionAnsweringInferenceOptions) QuestionAnsweringInferenceOptionsCaster ¶

func (s *QuestionAnsweringInferenceOptions) QuestionAnsweringInferenceOptionsCaster() *QuestionAnsweringInferenceOptions

func (*QuestionAnsweringInferenceOptions) UnmarshalJSON ¶

func (s *QuestionAnsweringInferenceOptions) UnmarshalJSON(data []byte) error

type QuestionAnsweringInferenceOptionsVariant ¶

type QuestionAnsweringInferenceOptionsVariant interface {
	QuestionAnsweringInferenceOptionsCaster() *QuestionAnsweringInferenceOptions
}

type QuestionAnsweringInferenceUpdateOptions ¶

type QuestionAnsweringInferenceUpdateOptions struct {
	// MaxAnswerLength The maximum answer length to consider for extraction
	MaxAnswerLength *int `json:"max_answer_length,omitempty"`
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// Question The question to answer given the inference context
	Question string `json:"question"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

QuestionAnsweringInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L439-L450

func NewQuestionAnsweringInferenceUpdateOptions ¶

func NewQuestionAnsweringInferenceUpdateOptions() *QuestionAnsweringInferenceUpdateOptions

NewQuestionAnsweringInferenceUpdateOptions returns a QuestionAnsweringInferenceUpdateOptions.

func (*QuestionAnsweringInferenceUpdateOptions) QuestionAnsweringInferenceUpdateOptionsCaster ¶

func (s *QuestionAnsweringInferenceUpdateOptions) QuestionAnsweringInferenceUpdateOptionsCaster() *QuestionAnsweringInferenceUpdateOptions

func (*QuestionAnsweringInferenceUpdateOptions) UnmarshalJSON ¶

func (s *QuestionAnsweringInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type QuestionAnsweringInferenceUpdateOptionsVariant ¶

type QuestionAnsweringInferenceUpdateOptionsVariant interface {
	QuestionAnsweringInferenceUpdateOptionsCaster() *QuestionAnsweringInferenceUpdateOptions
}

type RRFRetriever ¶

type RRFRetriever struct {
	Fields []string `json:"fields,omitempty"`
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_ *string `json:"_name,omitempty"`
	Query *string `json:"query,omitempty"`
	// RankConstant This value determines how much influence documents in individual result sets
	// per query have over the final ranked result set.
	RankConstant *int `json:"rank_constant,omitempty"`
	// RankWindowSize This value determines the size of the individual result sets per query.
	RankWindowSize *int `json:"rank_window_size,omitempty"`
	// Retrievers A list of child retrievers to specify which sets of returned top documents
	// will have the RRF formula applied to them.
	Retrievers []RetrieverContainer `json:"retrievers"`
}

RRFRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L135-L144

func NewRRFRetriever ¶

func NewRRFRetriever() *RRFRetriever

NewRRFRetriever returns a RRFRetriever.

func (*RRFRetriever) RRFRetrieverCaster ¶

func (s *RRFRetriever) RRFRetrieverCaster() *RRFRetriever

func (*RRFRetriever) UnmarshalJSON ¶

func (s *RRFRetriever) UnmarshalJSON(data []byte) error

type RRFRetrieverVariant ¶

type RRFRetrieverVariant interface {
	RRFRetrieverCaster() *RRFRetriever
}

type RandomSamplerAggregation ¶

type RandomSamplerAggregation struct {
	// Probability The probability that a document will be included in the aggregated data.
	// Must be greater than 0, less than 0.5, or exactly 1.
	// The lower the probability, the fewer documents are matched.
	Probability Float64 `json:"probability"`
	// Seed The seed to generate the random sampling of documents.
	// When a seed is provided, the random subset of documents is the same between
	// calls.
	Seed *int `json:"seed,omitempty"`
	// ShardSeed When combined with seed, setting shard_seed ensures 100% consistent sampling
	// over shards where data is exactly the same.
	ShardSeed *int `json:"shard_seed,omitempty"`
}

RandomSamplerAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L749-L769

func NewRandomSamplerAggregation ¶

func NewRandomSamplerAggregation() *RandomSamplerAggregation

NewRandomSamplerAggregation returns a RandomSamplerAggregation.

func (*RandomSamplerAggregation) RandomSamplerAggregationCaster ¶

func (s *RandomSamplerAggregation) RandomSamplerAggregationCaster() *RandomSamplerAggregation

func (*RandomSamplerAggregation) UnmarshalJSON ¶

func (s *RandomSamplerAggregation) UnmarshalJSON(data []byte) error

type RandomSamplerAggregationVariant ¶

type RandomSamplerAggregationVariant interface {
	RandomSamplerAggregationCaster() *RandomSamplerAggregation
}

type RandomScoreFunction ¶

type RandomScoreFunction struct {
	Field *string `json:"field,omitempty"`
	Seed  *string `json:"seed,omitempty"`
}

RandomScoreFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L144-L147

func NewRandomScoreFunction ¶

func NewRandomScoreFunction() *RandomScoreFunction

NewRandomScoreFunction returns a RandomScoreFunction.

func (*RandomScoreFunction) RandomScoreFunctionCaster ¶

func (s *RandomScoreFunction) RandomScoreFunctionCaster() *RandomScoreFunction

func (*RandomScoreFunction) UnmarshalJSON ¶

func (s *RandomScoreFunction) UnmarshalJSON(data []byte) error

type RandomScoreFunctionVariant ¶

type RandomScoreFunctionVariant interface {
	RandomScoreFunctionCaster() *RandomScoreFunction
}

type RangeAggregate ¶

type RangeAggregate struct {
	Buckets BucketsRangeBucket `json:"buckets"`
	Meta    Metadata           `json:"meta,omitempty"`
}

RangeAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L594-L598

func NewRangeAggregate ¶

func NewRangeAggregate() *RangeAggregate

NewRangeAggregate returns a RangeAggregate.

func (*RangeAggregate) UnmarshalJSON ¶

func (s *RangeAggregate) UnmarshalJSON(data []byte) error

type RangeAggregation ¶

type RangeAggregation struct {
	// Field The date field whose values are use to build ranges.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Keyed Set to `true` to associate a unique string key with each bucket and return
	// the ranges as a hash rather than an array.
	Keyed *bool `json:"keyed,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing *int `json:"missing,omitempty"`
	// Ranges An array of ranges used to bucket documents.
	Ranges []AggregationRange `json:"ranges,omitempty"`
	Script *Script            `json:"script,omitempty"`
}

RangeAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L669-L689

func NewRangeAggregation ¶

func NewRangeAggregation() *RangeAggregation

NewRangeAggregation returns a RangeAggregation.

func (*RangeAggregation) RangeAggregationCaster ¶

func (s *RangeAggregation) RangeAggregationCaster() *RangeAggregation

func (*RangeAggregation) UnmarshalJSON ¶

func (s *RangeAggregation) UnmarshalJSON(data []byte) error

type RangeAggregationVariant ¶

type RangeAggregationVariant interface {
	RangeAggregationCaster() *RangeAggregation
}

type RangeBucket ¶

type RangeBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	From         *Float64             `json:"from,omitempty"`
	FromAsString *string              `json:"from_as_string,omitempty"`
	// Key The bucket key. Present if the aggregation is _not_ keyed
	Key        *string  `json:"key,omitempty"`
	To         *Float64 `json:"to,omitempty"`
	ToAsString *string  `json:"to_as_string,omitempty"`
}

RangeBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L600-L607

func NewRangeBucket ¶

func NewRangeBucket() *RangeBucket

NewRangeBucket returns a RangeBucket.

func (RangeBucket) MarshalJSON ¶

func (s RangeBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RangeBucket) UnmarshalJSON ¶

func (s *RangeBucket) UnmarshalJSON(data []byte) error

type RangeQuery ¶

type RangeQuery any

RangeQuery holds the union for the following types:

UntypedRangeQuery
DateRangeQuery
NumberRangeQuery
TermRangeQuery

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L172-L182

type RangeQueryVariant ¶

type RangeQueryVariant interface {
	RangeQueryCaster() *RangeQuery
}

type RankContainer ¶

type RankContainer struct {
	AdditionalRankContainerProperty map[string]json.RawMessage `json:"-"`
	// Rrf The reciprocal rank fusion parameters
	Rrf *RrfRank `json:"rrf,omitempty"`
}

RankContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Rank.ts#L22-L28

func NewRankContainer ¶

func NewRankContainer() *RankContainer

NewRankContainer returns a RankContainer.

func (RankContainer) MarshalJSON ¶

func (s RankContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RankContainer) RankContainerCaster ¶

func (s *RankContainer) RankContainerCaster() *RankContainer

type RankContainerVariant ¶

type RankContainerVariant interface {
	RankContainerCaster() *RankContainer
}

type RankEvalHit ¶

type RankEvalHit struct {
	Id_    string  `json:"_id"`
	Index_ string  `json:"_index"`
	Score_ Float64 `json:"_score"`
}

RankEvalHit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L144-L148

func NewRankEvalHit ¶

func NewRankEvalHit() *RankEvalHit

NewRankEvalHit returns a RankEvalHit.

func (*RankEvalHit) UnmarshalJSON ¶

func (s *RankEvalHit) UnmarshalJSON(data []byte) error

type RankEvalHitItem ¶

type RankEvalHitItem struct {
	Hit    RankEvalHit `json:"hit"`
	Rating *Float64    `json:"rating,omitempty"`
}

RankEvalHitItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L139-L142

func NewRankEvalHitItem ¶

func NewRankEvalHitItem() *RankEvalHitItem

NewRankEvalHitItem returns a RankEvalHitItem.

func (*RankEvalHitItem) UnmarshalJSON ¶

func (s *RankEvalHitItem) UnmarshalJSON(data []byte) error

type RankEvalMetric ¶

type RankEvalMetric struct {
	Dcg                    *RankEvalMetricDiscountedCumulativeGain `json:"dcg,omitempty"`
	ExpectedReciprocalRank *RankEvalMetricExpectedReciprocalRank   `json:"expected_reciprocal_rank,omitempty"`
	MeanReciprocalRank     *RankEvalMetricMeanReciprocalRank       `json:"mean_reciprocal_rank,omitempty"`
	Precision              *RankEvalMetricPrecision                `json:"precision,omitempty"`
	Recall                 *RankEvalMetricRecall                   `json:"recall,omitempty"`
}

RankEvalMetric type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L90-L96

func NewRankEvalMetric ¶

func NewRankEvalMetric() *RankEvalMetric

NewRankEvalMetric returns a RankEvalMetric.

func (*RankEvalMetric) RankEvalMetricCaster ¶

func (s *RankEvalMetric) RankEvalMetricCaster() *RankEvalMetric

type RankEvalMetricDetail ¶

type RankEvalMetricDetail struct {
	// Hits The hits section shows a grouping of the search results with their supplied
	// ratings
	Hits []RankEvalHitItem `json:"hits"`
	// MetricDetails The metric_details give additional information about the calculated quality
	// metric (e.g. how many of the retrieved documents were relevant). The content
	// varies for each metric but allows for better interpretation of the results
	MetricDetails map[string]map[string]json.RawMessage `json:"metric_details"`
	// MetricScore The metric_score in the details section shows the contribution of this query
	// to the global quality metric score
	MetricScore Float64 `json:"metric_score"`
	// UnratedDocs The unrated_docs section contains an _index and _id entry for each document
	// in the search result for this query that didn’t have a ratings value. This
	// can be used to ask the user to supply ratings for these documents
	UnratedDocs []UnratedDocument `json:"unrated_docs"`
}

RankEvalMetricDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L128-L137

func NewRankEvalMetricDetail ¶

func NewRankEvalMetricDetail() *RankEvalMetricDetail

NewRankEvalMetricDetail returns a RankEvalMetricDetail.

func (*RankEvalMetricDetail) UnmarshalJSON ¶

func (s *RankEvalMetricDetail) UnmarshalJSON(data []byte) error

type RankEvalMetricDiscountedCumulativeGain ¶

type RankEvalMetricDiscountedCumulativeGain struct {
	// K Sets the maximum number of documents retrieved per query. This value will act
	// in place of the usual size parameter in the query.
	K *int `json:"k,omitempty"`
	// Normalize If set to true, this metric will calculate the Normalized DCG.
	Normalize *bool `json:"normalize,omitempty"`
}

RankEvalMetricDiscountedCumulativeGain type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L66-L77

func NewRankEvalMetricDiscountedCumulativeGain ¶

func NewRankEvalMetricDiscountedCumulativeGain() *RankEvalMetricDiscountedCumulativeGain

NewRankEvalMetricDiscountedCumulativeGain returns a RankEvalMetricDiscountedCumulativeGain.

func (*RankEvalMetricDiscountedCumulativeGain) RankEvalMetricDiscountedCumulativeGainCaster ¶

func (s *RankEvalMetricDiscountedCumulativeGain) RankEvalMetricDiscountedCumulativeGainCaster() *RankEvalMetricDiscountedCumulativeGain

func (*RankEvalMetricDiscountedCumulativeGain) UnmarshalJSON ¶

func (s *RankEvalMetricDiscountedCumulativeGain) UnmarshalJSON(data []byte) error

type RankEvalMetricDiscountedCumulativeGainVariant ¶

type RankEvalMetricDiscountedCumulativeGainVariant interface {
	RankEvalMetricDiscountedCumulativeGainCaster() *RankEvalMetricDiscountedCumulativeGain
}

type RankEvalMetricExpectedReciprocalRank ¶

type RankEvalMetricExpectedReciprocalRank struct {
	// K Sets the maximum number of documents retrieved per query. This value will act
	// in place of the usual size parameter in the query.
	K *int `json:"k,omitempty"`
	// MaximumRelevance The highest relevance grade used in the user-supplied relevance judgments.
	MaximumRelevance int `json:"maximum_relevance"`
}

RankEvalMetricExpectedReciprocalRank type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L79-L88

func NewRankEvalMetricExpectedReciprocalRank ¶

func NewRankEvalMetricExpectedReciprocalRank() *RankEvalMetricExpectedReciprocalRank

NewRankEvalMetricExpectedReciprocalRank returns a RankEvalMetricExpectedReciprocalRank.

func (*RankEvalMetricExpectedReciprocalRank) RankEvalMetricExpectedReciprocalRankCaster ¶

func (s *RankEvalMetricExpectedReciprocalRank) RankEvalMetricExpectedReciprocalRankCaster() *RankEvalMetricExpectedReciprocalRank

func (*RankEvalMetricExpectedReciprocalRank) UnmarshalJSON ¶

func (s *RankEvalMetricExpectedReciprocalRank) UnmarshalJSON(data []byte) error

type RankEvalMetricExpectedReciprocalRankVariant ¶

type RankEvalMetricExpectedReciprocalRankVariant interface {
	RankEvalMetricExpectedReciprocalRankCaster() *RankEvalMetricExpectedReciprocalRank
}

type RankEvalMetricMeanReciprocalRank ¶

type RankEvalMetricMeanReciprocalRank struct {
	// K Sets the maximum number of documents retrieved per query. This value will act
	// in place of the usual size parameter in the query.
	K *int `json:"k,omitempty"`
	// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be
	// "relevant".
	RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`
}

RankEvalMetricMeanReciprocalRank type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L60-L64

func NewRankEvalMetricMeanReciprocalRank ¶

func NewRankEvalMetricMeanReciprocalRank() *RankEvalMetricMeanReciprocalRank

NewRankEvalMetricMeanReciprocalRank returns a RankEvalMetricMeanReciprocalRank.

func (*RankEvalMetricMeanReciprocalRank) RankEvalMetricMeanReciprocalRankCaster ¶

func (s *RankEvalMetricMeanReciprocalRank) RankEvalMetricMeanReciprocalRankCaster() *RankEvalMetricMeanReciprocalRank

func (*RankEvalMetricMeanReciprocalRank) UnmarshalJSON ¶

func (s *RankEvalMetricMeanReciprocalRank) UnmarshalJSON(data []byte) error

type RankEvalMetricMeanReciprocalRankVariant ¶

type RankEvalMetricMeanReciprocalRankVariant interface {
	RankEvalMetricMeanReciprocalRankCaster() *RankEvalMetricMeanReciprocalRank
}

type RankEvalMetricPrecision ¶

type RankEvalMetricPrecision struct {
	// IgnoreUnlabeled Controls how unlabeled documents in the search results are counted. If set to
	// true, unlabeled documents are ignored and neither count as relevant or
	// irrelevant. Set to false (the default), they are treated as irrelevant.
	IgnoreUnlabeled *bool `json:"ignore_unlabeled,omitempty"`
	// K Sets the maximum number of documents retrieved per query. This value will act
	// in place of the usual size parameter in the query.
	K *int `json:"k,omitempty"`
	// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be
	// "relevant".
	RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`
}

RankEvalMetricPrecision type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L42-L52

func NewRankEvalMetricPrecision ¶

func NewRankEvalMetricPrecision() *RankEvalMetricPrecision

NewRankEvalMetricPrecision returns a RankEvalMetricPrecision.

func (*RankEvalMetricPrecision) RankEvalMetricPrecisionCaster ¶

func (s *RankEvalMetricPrecision) RankEvalMetricPrecisionCaster() *RankEvalMetricPrecision

func (*RankEvalMetricPrecision) UnmarshalJSON ¶

func (s *RankEvalMetricPrecision) UnmarshalJSON(data []byte) error

type RankEvalMetricPrecisionVariant ¶

type RankEvalMetricPrecisionVariant interface {
	RankEvalMetricPrecisionCaster() *RankEvalMetricPrecision
}

type RankEvalMetricRecall ¶

type RankEvalMetricRecall struct {
	// K Sets the maximum number of documents retrieved per query. This value will act
	// in place of the usual size parameter in the query.
	K *int `json:"k,omitempty"`
	// RelevantRatingThreshold Sets the rating threshold above which documents are considered to be
	// "relevant".
	RelevantRatingThreshold *int `json:"relevant_rating_threshold,omitempty"`
}

RankEvalMetricRecall type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L54-L58

func NewRankEvalMetricRecall ¶

func NewRankEvalMetricRecall() *RankEvalMetricRecall

NewRankEvalMetricRecall returns a RankEvalMetricRecall.

func (*RankEvalMetricRecall) RankEvalMetricRecallCaster ¶

func (s *RankEvalMetricRecall) RankEvalMetricRecallCaster() *RankEvalMetricRecall

func (*RankEvalMetricRecall) UnmarshalJSON ¶

func (s *RankEvalMetricRecall) UnmarshalJSON(data []byte) error

type RankEvalMetricRecallVariant ¶

type RankEvalMetricRecallVariant interface {
	RankEvalMetricRecallCaster() *RankEvalMetricRecall
}

type RankEvalMetricVariant ¶

type RankEvalMetricVariant interface {
	RankEvalMetricCaster() *RankEvalMetric
}

type RankEvalQuery ¶

type RankEvalQuery struct {
	Query Query `json:"query"`
	Size  *int  `json:"size,omitempty"`
}

RankEvalQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L111-L117

func NewRankEvalQuery ¶

func NewRankEvalQuery() *RankEvalQuery

NewRankEvalQuery returns a RankEvalQuery.

func (*RankEvalQuery) RankEvalQueryCaster ¶

func (s *RankEvalQuery) RankEvalQueryCaster() *RankEvalQuery

func (*RankEvalQuery) UnmarshalJSON ¶

func (s *RankEvalQuery) UnmarshalJSON(data []byte) error

type RankEvalQueryVariant ¶

type RankEvalQueryVariant interface {
	RankEvalQueryCaster() *RankEvalQuery
}

type RankEvalRequestItem ¶

type RankEvalRequestItem struct {
	// Id The search request’s ID, used to group result details later.
	Id string `json:"id"`
	// Params The search template parameters.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// Ratings List of document ratings
	Ratings []DocumentRating `json:"ratings"`
	// Request The query being evaluated.
	Request *RankEvalQuery `json:"request,omitempty"`
	// TemplateId The search template Id
	TemplateId *string `json:"template_id,omitempty"`
}

RankEvalRequestItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L98-L109

func NewRankEvalRequestItem ¶

func NewRankEvalRequestItem() *RankEvalRequestItem

NewRankEvalRequestItem returns a RankEvalRequestItem.

func (*RankEvalRequestItem) RankEvalRequestItemCaster ¶

func (s *RankEvalRequestItem) RankEvalRequestItemCaster() *RankEvalRequestItem

func (*RankEvalRequestItem) UnmarshalJSON ¶

func (s *RankEvalRequestItem) UnmarshalJSON(data []byte) error

type RankEvalRequestItemVariant ¶

type RankEvalRequestItemVariant interface {
	RankEvalRequestItemCaster() *RankEvalRequestItem
}

type RankFeatureFunctionLinear ¶

type RankFeatureFunctionLinear struct {
}

RankFeatureFunctionLinear type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L282-L282

func NewRankFeatureFunctionLinear ¶

func NewRankFeatureFunctionLinear() *RankFeatureFunctionLinear

NewRankFeatureFunctionLinear returns a RankFeatureFunctionLinear.

func (*RankFeatureFunctionLinear) RankFeatureFunctionLinearCaster ¶

func (s *RankFeatureFunctionLinear) RankFeatureFunctionLinearCaster() *RankFeatureFunctionLinear

type RankFeatureFunctionLinearVariant ¶

type RankFeatureFunctionLinearVariant interface {
	RankFeatureFunctionLinearCaster() *RankFeatureFunctionLinear
}

type RankFeatureFunctionLogarithm ¶

type RankFeatureFunctionLogarithm struct {
	// ScalingFactor Configurable scaling factor.
	ScalingFactor float32 `json:"scaling_factor"`
}

RankFeatureFunctionLogarithm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L284-L289

func NewRankFeatureFunctionLogarithm ¶

func NewRankFeatureFunctionLogarithm() *RankFeatureFunctionLogarithm

NewRankFeatureFunctionLogarithm returns a RankFeatureFunctionLogarithm.

func (*RankFeatureFunctionLogarithm) RankFeatureFunctionLogarithmCaster ¶

func (s *RankFeatureFunctionLogarithm) RankFeatureFunctionLogarithmCaster() *RankFeatureFunctionLogarithm

func (*RankFeatureFunctionLogarithm) UnmarshalJSON ¶

func (s *RankFeatureFunctionLogarithm) UnmarshalJSON(data []byte) error

type RankFeatureFunctionLogarithmVariant ¶

type RankFeatureFunctionLogarithmVariant interface {
	RankFeatureFunctionLogarithmCaster() *RankFeatureFunctionLogarithm
}

type RankFeatureFunctionSaturation ¶

type RankFeatureFunctionSaturation struct {
	// Pivot Configurable pivot value so that the result will be less than 0.5.
	Pivot *float32 `json:"pivot,omitempty"`
}

RankFeatureFunctionSaturation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L291-L296

func NewRankFeatureFunctionSaturation ¶

func NewRankFeatureFunctionSaturation() *RankFeatureFunctionSaturation

NewRankFeatureFunctionSaturation returns a RankFeatureFunctionSaturation.

func (*RankFeatureFunctionSaturation) RankFeatureFunctionSaturationCaster ¶

func (s *RankFeatureFunctionSaturation) RankFeatureFunctionSaturationCaster() *RankFeatureFunctionSaturation

func (*RankFeatureFunctionSaturation) UnmarshalJSON ¶

func (s *RankFeatureFunctionSaturation) UnmarshalJSON(data []byte) error

type RankFeatureFunctionSaturationVariant ¶

type RankFeatureFunctionSaturationVariant interface {
	RankFeatureFunctionSaturationCaster() *RankFeatureFunctionSaturation
}

type RankFeatureFunctionSigmoid ¶

type RankFeatureFunctionSigmoid struct {
	// Exponent Configurable Exponent.
	Exponent float32 `json:"exponent"`
	// Pivot Configurable pivot value so that the result will be less than 0.5.
	Pivot float32 `json:"pivot"`
}

RankFeatureFunctionSigmoid type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L298-L307

func NewRankFeatureFunctionSigmoid ¶

func NewRankFeatureFunctionSigmoid() *RankFeatureFunctionSigmoid

NewRankFeatureFunctionSigmoid returns a RankFeatureFunctionSigmoid.

func (*RankFeatureFunctionSigmoid) RankFeatureFunctionSigmoidCaster ¶

func (s *RankFeatureFunctionSigmoid) RankFeatureFunctionSigmoidCaster() *RankFeatureFunctionSigmoid

func (*RankFeatureFunctionSigmoid) UnmarshalJSON ¶

func (s *RankFeatureFunctionSigmoid) UnmarshalJSON(data []byte) error

type RankFeatureFunctionSigmoidVariant ¶

type RankFeatureFunctionSigmoidVariant interface {
	RankFeatureFunctionSigmoidCaster() *RankFeatureFunctionSigmoid
}

type RankFeatureProperty ¶

type RankFeatureProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	PositiveScoreImpact *bool                                            `json:"positive_score_impact,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

RankFeatureProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L207-L210

func NewRankFeatureProperty ¶

func NewRankFeatureProperty() *RankFeatureProperty

NewRankFeatureProperty returns a RankFeatureProperty.

func (RankFeatureProperty) MarshalJSON ¶

func (s RankFeatureProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RankFeatureProperty) PropertyCaster ¶ added in v9.0.1

func (s *RankFeatureProperty) PropertyCaster() *Property

func (*RankFeatureProperty) RankFeaturePropertyCaster ¶

func (s *RankFeatureProperty) RankFeaturePropertyCaster() *RankFeatureProperty

func (*RankFeatureProperty) UnmarshalJSON ¶

func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error

type RankFeaturePropertyVariant ¶

type RankFeaturePropertyVariant interface {
	RankFeaturePropertyCaster() *RankFeatureProperty
}

type RankFeatureQuery ¶

type RankFeatureQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field `rank_feature` or `rank_features` field used to boost relevance scores.
	Field string `json:"field"`
	// Linear Linear function used to boost relevance scores based on the value of the rank
	// feature `field`.
	Linear *RankFeatureFunctionLinear `json:"linear,omitempty"`
	// Log Logarithmic function used to boost relevance scores based on the value of the
	// rank feature `field`.
	Log        *RankFeatureFunctionLogarithm `json:"log,omitempty"`
	QueryName_ *string                       `json:"_name,omitempty"`
	// Saturation Saturation function used to boost relevance scores based on the value of the
	// rank feature `field`.
	Saturation *RankFeatureFunctionSaturation `json:"saturation,omitempty"`
	// Sigmoid Sigmoid function used to boost relevance scores based on the value of the
	// rank feature `field`.
	Sigmoid *RankFeatureFunctionSigmoid `json:"sigmoid,omitempty"`
}

RankFeatureQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L309-L335

func NewRankFeatureQuery ¶

func NewRankFeatureQuery() *RankFeatureQuery

NewRankFeatureQuery returns a RankFeatureQuery.

func (*RankFeatureQuery) RankFeatureQueryCaster ¶

func (s *RankFeatureQuery) RankFeatureQueryCaster() *RankFeatureQuery

func (*RankFeatureQuery) UnmarshalJSON ¶

func (s *RankFeatureQuery) UnmarshalJSON(data []byte) error

type RankFeatureQueryVariant ¶

type RankFeatureQueryVariant interface {
	RankFeatureQueryCaster() *RankFeatureQuery
}

type RankFeaturesProperty ¶

type RankFeaturesProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	PositiveScoreImpact *bool                                            `json:"positive_score_impact,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

RankFeaturesProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L212-L215

func NewRankFeaturesProperty ¶

func NewRankFeaturesProperty() *RankFeaturesProperty

NewRankFeaturesProperty returns a RankFeaturesProperty.

func (RankFeaturesProperty) MarshalJSON ¶

func (s RankFeaturesProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RankFeaturesProperty) PropertyCaster ¶ added in v9.0.1

func (s *RankFeaturesProperty) PropertyCaster() *Property

func (*RankFeaturesProperty) RankFeaturesPropertyCaster ¶

func (s *RankFeaturesProperty) RankFeaturesPropertyCaster() *RankFeaturesProperty

func (*RankFeaturesProperty) UnmarshalJSON ¶

func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error

type RankFeaturesPropertyVariant ¶

type RankFeaturesPropertyVariant interface {
	RankFeaturesPropertyCaster() *RankFeaturesProperty
}

type RankVectorProperty ¶ added in v9.0.1

type RankVectorProperty struct {
	Dims        *int                                         `json:"dims,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping               `json:"dynamic,omitempty"`
	ElementType *rankvectorelementtype.RankVectorElementType `json:"element_type,omitempty"`
	Fields      map[string]Property                          `json:"fields,omitempty"`
	IgnoreAbove *int                                         `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

RankVectorProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L217-L224

func NewRankVectorProperty ¶ added in v9.0.1

func NewRankVectorProperty() *RankVectorProperty

NewRankVectorProperty returns a RankVectorProperty.

func (RankVectorProperty) MarshalJSON ¶ added in v9.0.1

func (s RankVectorProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RankVectorProperty) PropertyCaster ¶ added in v9.0.1

func (s *RankVectorProperty) PropertyCaster() *Property

func (*RankVectorProperty) RankVectorPropertyCaster ¶ added in v9.0.1

func (s *RankVectorProperty) RankVectorPropertyCaster() *RankVectorProperty

func (*RankVectorProperty) UnmarshalJSON ¶ added in v9.0.1

func (s *RankVectorProperty) UnmarshalJSON(data []byte) error

type RankVectorPropertyVariant ¶ added in v9.0.1

type RankVectorPropertyVariant interface {
	RankVectorPropertyCaster() *RankVectorProperty
}

type RankedDocument ¶

type RankedDocument struct {
	Index          int     `json:"index"`
	RelevanceScore float32 `json:"relevance_score"`
	Text           *string `json:"text,omitempty"`
}

RankedDocument type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Results.ts#L91-L101

func NewRankedDocument ¶

func NewRankedDocument() *RankedDocument

NewRankedDocument returns a RankedDocument.

func (*RankedDocument) UnmarshalJSON ¶

func (s *RankedDocument) UnmarshalJSON(data []byte) error

type RareTermsAggregation ¶

type RareTermsAggregation struct {
	// Exclude Terms that should be excluded from the aggregation.
	Exclude []string `json:"exclude,omitempty"`
	// Field The field from which to return rare terms.
	Field *string `json:"field,omitempty"`
	// Include Terms that should be included in the aggregation.
	Include TermsInclude `json:"include,omitempty"`
	// MaxDocCount The maximum number of documents a term should appear in.
	MaxDocCount *int64 `json:"max_doc_count,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// Precision The precision of the internal CuckooFilters.
	// Smaller precision leads to better approximation, but higher memory usage.
	Precision *Float64 `json:"precision,omitempty"`
	ValueType *string  `json:"value_type,omitempty"`
}

RareTermsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L706-L739

func NewRareTermsAggregation ¶

func NewRareTermsAggregation() *RareTermsAggregation

NewRareTermsAggregation returns a RareTermsAggregation.

func (*RareTermsAggregation) RareTermsAggregationCaster ¶

func (s *RareTermsAggregation) RareTermsAggregationCaster() *RareTermsAggregation

func (*RareTermsAggregation) UnmarshalJSON ¶

func (s *RareTermsAggregation) UnmarshalJSON(data []byte) error

type RareTermsAggregationVariant ¶

type RareTermsAggregationVariant interface {
	RareTermsAggregationCaster() *RareTermsAggregation
}

type RateAggregate ¶

type RateAggregate struct {
	Meta          Metadata `json:"meta,omitempty"`
	Value         Float64  `json:"value"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

RateAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L849-L856

func NewRateAggregate ¶

func NewRateAggregate() *RateAggregate

NewRateAggregate returns a RateAggregate.

func (*RateAggregate) UnmarshalJSON ¶

func (s *RateAggregate) UnmarshalJSON(data []byte) error

type RateAggregation ¶

type RateAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// Mode How the rate is calculated.
	Mode   *ratemode.RateMode `json:"mode,omitempty"`
	Script *Script            `json:"script,omitempty"`
	// Unit The interval used to calculate the rate.
	// By default, the interval of the `date_histogram` is used.
	Unit *calendarinterval.CalendarInterval `json:"unit,omitempty"`
}

RateAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L262-L273

func NewRateAggregation ¶

func NewRateAggregation() *RateAggregation

NewRateAggregation returns a RateAggregation.

func (*RateAggregation) RateAggregationCaster ¶

func (s *RateAggregation) RateAggregationCaster() *RateAggregation

func (*RateAggregation) UnmarshalJSON ¶

func (s *RateAggregation) UnmarshalJSON(data []byte) error

type RateAggregationVariant ¶

type RateAggregationVariant interface {
	RateAggregationCaster() *RateAggregation
}

type RateLimitSetting ¶

type RateLimitSetting struct {
	// RequestsPerMinute The number of requests allowed per minute.
	// By default, the number of requests allowed per minute is set by each service
	// as follows:
	//
	// * `alibabacloud-ai-search` service: `1000`
	// * `anthropic` service: `50`
	// * `azureaistudio` service: `240`
	// * `azureopenai` service and task type `text_embedding`: `1440`
	// * `azureopenai` service and task type `completion`: `120`
	// * `cohere` service: `10000`
	// * `elastic` service and task type `chat_completion`: `240`
	// * `googleaistudio` service: `360`
	// * `googlevertexai` service: `30000`
	// * `hugging_face` service: `3000`
	// * `jinaai` service: `2000`
	// * `mistral` service: `240`
	// * `openai` service and task type `text_embedding`: `3000`
	// * `openai` service and task type `completion`: `500`
	// * `voyageai` service: `2000`
	// * `watsonxai` service: `120`
	RequestsPerMinute *int `json:"requests_per_minute,omitempty"`
}

RateLimitSetting type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Services.ts#L323-L349

func NewRateLimitSetting ¶

func NewRateLimitSetting() *RateLimitSetting

NewRateLimitSetting returns a RateLimitSetting.

func (*RateLimitSetting) RateLimitSettingCaster ¶

func (s *RateLimitSetting) RateLimitSettingCaster() *RateLimitSetting

func (*RateLimitSetting) UnmarshalJSON ¶

func (s *RateLimitSetting) UnmarshalJSON(data []byte) error

type RateLimitSettingVariant ¶

type RateLimitSettingVariant interface {
	RateLimitSettingCaster() *RateLimitSetting
}

type ReadBlobDetails ¶

type ReadBlobDetails struct {
	// BeforeWriteComplete Indicates whether the read operation may have started before the write
	// operation was complete.
	BeforeWriteComplete *bool `json:"before_write_complete,omitempty"`
	// Elapsed The length of time spent reading the blob.
	// If the blob was not found, this detail is omitted.
	Elapsed Duration `json:"elapsed,omitempty"`
	// ElapsedNanos The length of time spent reading the blob, in nanoseconds.
	// If the blob was not found, this detail is omitted.
	ElapsedNanos *int64 `json:"elapsed_nanos,omitempty"`
	// FirstByteTime The length of time waiting for the first byte of the read operation to be
	// received.
	// If the blob was not found, this detail is omitted.
	FirstByteTime Duration `json:"first_byte_time,omitempty"`
	// FirstByteTimeNanos The length of time waiting for the first byte of the read operation to be
	// received, in nanoseconds.
	// If the blob was not found, this detail is omitted.
	FirstByteTimeNanos int64 `json:"first_byte_time_nanos"`
	// Found Indicates whether the blob was found by the read operation.
	// If the read was started before the write completed or the write was ended
	// before completion, it might be false.
	Found bool `json:"found"`
	// Node The node that performed the read operation.
	Node SnapshotNodeInfo `json:"node"`
	// Throttled The length of time spent waiting due to the `max_restore_bytes_per_sec` or
	// `indices.recovery.max_bytes_per_sec` throttles during the read of the blob.
	// If the blob was not found, this detail is omitted.
	Throttled Duration `json:"throttled,omitempty"`
	// ThrottledNanos The length of time spent waiting due to the `max_restore_bytes_per_sec` or
	// `indices.recovery.max_bytes_per_sec` throttles during the read of the blob,
	// in nanoseconds.
	// If the blob was not found, this detail is omitted.
	ThrottledNanos *int64 `json:"throttled_nanos,omitempty"`
}

ReadBlobDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248

func NewReadBlobDetails ¶

func NewReadBlobDetails() *ReadBlobDetails

NewReadBlobDetails returns a ReadBlobDetails.

func (*ReadBlobDetails) UnmarshalJSON ¶

func (s *ReadBlobDetails) UnmarshalJSON(data []byte) error

type ReadException ¶

type ReadException struct {
	// Exception The exception that caused the read to fail.
	Exception ErrorCause `json:"exception"`
	// FromSeqNo The starting sequence number of the batch requested from the leader.
	FromSeqNo int64 `json:"from_seq_no"`
	// Retries The number of times the batch has been retried.
	Retries int `json:"retries"`
}

ReadException type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ccr/_types/FollowIndexStats.ts#L111-L118

func NewReadException ¶

func NewReadException() *ReadException

NewReadException returns a ReadException.

func (*ReadException) UnmarshalJSON ¶

func (s *ReadException) UnmarshalJSON(data []byte) error

type ReadOnlyUrlRepository ¶

type ReadOnlyUrlRepository struct {
	// Settings The repository settings.
	Settings ReadOnlyUrlRepositorySettings `json:"settings"`
	// Type The read-only URL repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

ReadOnlyUrlRepository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L92-L102

func NewReadOnlyUrlRepository ¶

func NewReadOnlyUrlRepository() *ReadOnlyUrlRepository

NewReadOnlyUrlRepository returns a ReadOnlyUrlRepository.

func (ReadOnlyUrlRepository) MarshalJSON ¶

func (s ReadOnlyUrlRepository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ReadOnlyUrlRepository) ReadOnlyUrlRepositoryCaster ¶

func (s *ReadOnlyUrlRepository) ReadOnlyUrlRepositoryCaster() *ReadOnlyUrlRepository

func (*ReadOnlyUrlRepository) RepositoryCaster ¶ added in v9.0.1

func (s *ReadOnlyUrlRepository) RepositoryCaster() *Repository

func (*ReadOnlyUrlRepository) UnmarshalJSON ¶

func (s *ReadOnlyUrlRepository) UnmarshalJSON(data []byte) error

type ReadOnlyUrlRepositorySettings ¶

type ReadOnlyUrlRepositorySettings struct {
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// HttpMaxRetries The maximum number of retries for HTTP and HTTPS URLs.
	HttpMaxRetries *int `json:"http_max_retries,omitempty"`
	// HttpSocketTimeout The maximum wait time for data transfers over a connection.
	HttpSocketTimeout Duration `json:"http_socket_timeout,omitempty"`
	// MaxNumberOfSnapshots The maximum number of snapshots the repository can contain.
	// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.
	MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// Url The URL location of the root of the shared filesystem repository.
	// The following protocols are supported:
	//
	// * `file`
	// * `ftp`
	// * `http`
	// * `https`
	// * `jar`
	//
	// URLs using the HTTP, HTTPS, or FTP protocols must be explicitly allowed with
	// the `repositories.url.allowed_urls` cluster setting.
	// This setting supports wildcards in the place of a host, path, query, or
	// fragment in the URL.
	//
	// URLs using the file protocol must point to the location of a shared
	// filesystem accessible to all master and data nodes in the cluster.
	// This location must be registered in the `path.repo` setting.
	// You don't need to register URLs using the FTP, HTTP, HTTPS, or JAR protocols
	// in the `path.repo` setting.
	Url string `json:"url"`
}

ReadOnlyUrlRepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L377-L412

func NewReadOnlyUrlRepositorySettings ¶

func NewReadOnlyUrlRepositorySettings() *ReadOnlyUrlRepositorySettings

NewReadOnlyUrlRepositorySettings returns a ReadOnlyUrlRepositorySettings.

func (*ReadOnlyUrlRepositorySettings) ReadOnlyUrlRepositorySettingsCaster ¶

func (s *ReadOnlyUrlRepositorySettings) ReadOnlyUrlRepositorySettingsCaster() *ReadOnlyUrlRepositorySettings

func (*ReadOnlyUrlRepositorySettings) UnmarshalJSON ¶

func (s *ReadOnlyUrlRepositorySettings) UnmarshalJSON(data []byte) error

type ReadOnlyUrlRepositorySettingsVariant ¶

type ReadOnlyUrlRepositorySettingsVariant interface {
	ReadOnlyUrlRepositorySettingsCaster() *ReadOnlyUrlRepositorySettings
}

type ReadOnlyUrlRepositoryVariant ¶

type ReadOnlyUrlRepositoryVariant interface {
	ReadOnlyUrlRepositoryCaster() *ReadOnlyUrlRepository
}

type ReadSummaryInfo ¶

type ReadSummaryInfo struct {
	// Count The number of read operations performed in the test.
	Count int `json:"count"`
	// MaxWait The maximum time spent waiting for the first byte of any read request to be
	// received.
	MaxWait Duration `json:"max_wait"`
	// MaxWaitNanos The maximum time spent waiting for the first byte of any read request to be
	// received, in nanoseconds.
	MaxWaitNanos int64 `json:"max_wait_nanos"`
	// TotalElapsed The total elapsed time spent on reading blobs in the test.
	TotalElapsed Duration `json:"total_elapsed"`
	// TotalElapsedNanos The total elapsed time spent on reading blobs in the test, in nanoseconds.
	TotalElapsedNanos int64 `json:"total_elapsed_nanos"`
	// TotalSize The total size of all the blobs or partial blobs read in the test.
	TotalSize ByteSize `json:"total_size"`
	// TotalSizeBytes The total size of all the blobs or partial blobs read in the test, in bytes.
	TotalSizeBytes int64 `json:"total_size_bytes"`
	// TotalThrottled The total time spent waiting due to the `max_restore_bytes_per_sec` or
	// `indices.recovery.max_bytes_per_sec` throttles.
	TotalThrottled Duration `json:"total_throttled"`
	// TotalThrottledNanos The total time spent waiting due to the `max_restore_bytes_per_sec` or
	// `indices.recovery.max_bytes_per_sec` throttles, in nanoseconds.
	TotalThrottledNanos int64 `json:"total_throttled_nanos"`
	// TotalWait The total time spent waiting for the first byte of each read request to be
	// received.
	TotalWait Duration `json:"total_wait"`
	// TotalWaitNanos The total time spent waiting for the first byte of each read request to be
	// received, in nanoseconds.
	TotalWaitNanos int64 `json:"total_wait_nanos"`
}

ReadSummaryInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160

func NewReadSummaryInfo ¶

func NewReadSummaryInfo() *ReadSummaryInfo

NewReadSummaryInfo returns a ReadSummaryInfo.

func (*ReadSummaryInfo) UnmarshalJSON ¶

func (s *ReadSummaryInfo) UnmarshalJSON(data []byte) error

type RealmCache ¶

type RealmCache struct {
	Size int64 `json:"size"`
}

RealmCache type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L276-L278

func NewRealmCache ¶

func NewRealmCache() *RealmCache

NewRealmCache returns a RealmCache.

func (*RealmCache) UnmarshalJSON ¶

func (s *RealmCache) UnmarshalJSON(data []byte) error

type RealmInfo ¶

type RealmInfo struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

RealmInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RealmInfo.ts#L22-L25

func NewRealmInfo ¶

func NewRealmInfo() *RealmInfo

NewRealmInfo returns a RealmInfo.

func (*RealmInfo) UnmarshalJSON ¶

func (s *RealmInfo) UnmarshalJSON(data []byte) error

type Recording ¶

type Recording struct {
	CumulativeExecutionCount      *int64   `json:"cumulative_execution_count,omitempty"`
	CumulativeExecutionTime       Duration `json:"cumulative_execution_time,omitempty"`
	CumulativeExecutionTimeMillis *int64   `json:"cumulative_execution_time_millis,omitempty"`
	Name                          *string  `json:"name,omitempty"`
}

Recording type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L227-L232

func NewRecording ¶

func NewRecording() *Recording

NewRecording returns a Recording.

func (*Recording) UnmarshalJSON ¶

func (s *Recording) UnmarshalJSON(data []byte) error

type RecoveryBytes ¶

type RecoveryBytes struct {
	Percent                      Percentage `json:"percent"`
	Recovered                    ByteSize   `json:"recovered,omitempty"`
	RecoveredFromSnapshot        ByteSize   `json:"recovered_from_snapshot,omitempty"`
	RecoveredFromSnapshotInBytes ByteSize   `json:"recovered_from_snapshot_in_bytes,omitempty"`
	RecoveredInBytes             ByteSize   `json:"recovered_in_bytes"`
	Reused                       ByteSize   `json:"reused,omitempty"`
	ReusedInBytes                ByteSize   `json:"reused_in_bytes"`
	Total                        ByteSize   `json:"total,omitempty"`
	TotalInBytes                 ByteSize   `json:"total_in_bytes"`
}

RecoveryBytes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L38-L48

func NewRecoveryBytes ¶

func NewRecoveryBytes() *RecoveryBytes

NewRecoveryBytes returns a RecoveryBytes.

func (*RecoveryBytes) UnmarshalJSON ¶

func (s *RecoveryBytes) UnmarshalJSON(data []byte) error

type RecoveryFiles ¶

type RecoveryFiles struct {
	Details   []FileDetails `json:"details,omitempty"`
	Percent   Percentage    `json:"percent"`
	Recovered int64         `json:"recovered"`
	Reused    int64         `json:"reused"`
	Total     int64         `json:"total"`
}

RecoveryFiles type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L56-L62

func NewRecoveryFiles ¶

func NewRecoveryFiles() *RecoveryFiles

NewRecoveryFiles returns a RecoveryFiles.

func (*RecoveryFiles) UnmarshalJSON ¶

func (s *RecoveryFiles) UnmarshalJSON(data []byte) error

type RecoveryIndexStatus ¶

type RecoveryIndexStatus struct {
	Bytes                      *RecoveryBytes `json:"bytes,omitempty"`
	Files                      RecoveryFiles  `json:"files"`
	Size                       RecoveryBytes  `json:"size"`
	SourceThrottleTime         Duration       `json:"source_throttle_time,omitempty"`
	SourceThrottleTimeInMillis int64          `json:"source_throttle_time_in_millis"`
	TargetThrottleTime         Duration       `json:"target_throttle_time,omitempty"`
	TargetThrottleTimeInMillis int64          `json:"target_throttle_time_in_millis"`
	TotalTime                  Duration       `json:"total_time,omitempty"`
	TotalTimeInMillis          int64          `json:"total_time_in_millis"`
}

RecoveryIndexStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L64-L74

func NewRecoveryIndexStatus ¶

func NewRecoveryIndexStatus() *RecoveryIndexStatus

NewRecoveryIndexStatus returns a RecoveryIndexStatus.

func (*RecoveryIndexStatus) UnmarshalJSON ¶

func (s *RecoveryIndexStatus) UnmarshalJSON(data []byte) error

type RecoveryOrigin ¶

type RecoveryOrigin struct {
	BootstrapNewHistoryUuid *bool   `json:"bootstrap_new_history_uuid,omitempty"`
	Host                    *string `json:"host,omitempty"`
	Hostname                *string `json:"hostname,omitempty"`
	Id                      *string `json:"id,omitempty"`
	Index                   *string `json:"index,omitempty"`
	Ip                      *string `json:"ip,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Repository              *string `json:"repository,omitempty"`
	RestoreUUID             *string `json:"restoreUUID,omitempty"`
	Snapshot                *string `json:"snapshot,omitempty"`
	TransportAddress        *string `json:"transport_address,omitempty"`
	Version                 *string `json:"version,omitempty"`
}

RecoveryOrigin type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L76-L89

func NewRecoveryOrigin ¶

func NewRecoveryOrigin() *RecoveryOrigin

NewRecoveryOrigin returns a RecoveryOrigin.

func (*RecoveryOrigin) UnmarshalJSON ¶

func (s *RecoveryOrigin) UnmarshalJSON(data []byte) error

type RecoveryRecord ¶

type RecoveryRecord struct {
	// Bytes The number of bytes to recover.
	Bytes *string `json:"bytes,omitempty"`
	// BytesPercent The ratio of bytes recovered.
	BytesPercent Percentage `json:"bytes_percent,omitempty"`
	// BytesRecovered The bytes recovered.
	BytesRecovered *string `json:"bytes_recovered,omitempty"`
	// BytesTotal The total number of bytes.
	BytesTotal *string `json:"bytes_total,omitempty"`
	// Files The number of files to recover.
	Files *string `json:"files,omitempty"`
	// FilesPercent The ratio of files recovered.
	FilesPercent Percentage `json:"files_percent,omitempty"`
	// FilesRecovered The files recovered.
	FilesRecovered *string `json:"files_recovered,omitempty"`
	// FilesTotal The total number of files.
	FilesTotal *string `json:"files_total,omitempty"`
	// Index The index name.
	Index *string `json:"index,omitempty"`
	// Repository The repository name.
	Repository *string `json:"repository,omitempty"`
	// Shard The shard name.
	Shard *string `json:"shard,omitempty"`
	// Snapshot The snapshot name.
	Snapshot *string `json:"snapshot,omitempty"`
	// SourceHost The source host.
	SourceHost *string `json:"source_host,omitempty"`
	// SourceNode The source node name.
	SourceNode *string `json:"source_node,omitempty"`
	// Stage The recovery stage.
	Stage *string `json:"stage,omitempty"`
	// StartTime The recovery start time.
	StartTime DateTime `json:"start_time,omitempty"`
	// StartTimeMillis The recovery start time in epoch milliseconds.
	StartTimeMillis *int64 `json:"start_time_millis,omitempty"`
	// StopTime The recovery stop time.
	StopTime DateTime `json:"stop_time,omitempty"`
	// StopTimeMillis The recovery stop time in epoch milliseconds.
	StopTimeMillis *int64 `json:"stop_time_millis,omitempty"`
	// TargetHost The target host.
	TargetHost *string `json:"target_host,omitempty"`
	// TargetNode The target node name.
	TargetNode *string `json:"target_node,omitempty"`
	// Time The recovery time.
	Time Duration `json:"time,omitempty"`
	// TranslogOps The number of translog operations to recover.
	TranslogOps *string `json:"translog_ops,omitempty"`
	// TranslogOpsPercent The ratio of translog operations recovered.
	TranslogOpsPercent Percentage `json:"translog_ops_percent,omitempty"`
	// TranslogOpsRecovered The translog operations recovered.
	TranslogOpsRecovered *string `json:"translog_ops_recovered,omitempty"`
	// Type The recovery type.
	Type *string `json:"type,omitempty"`
}

RecoveryRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/recovery/types.ts#L24-L155

func NewRecoveryRecord ¶

func NewRecoveryRecord() *RecoveryRecord

NewRecoveryRecord returns a RecoveryRecord.

func (*RecoveryRecord) UnmarshalJSON ¶

func (s *RecoveryRecord) UnmarshalJSON(data []byte) error

type RecoveryStartStatus ¶

type RecoveryStartStatus struct {
	CheckIndexTime         Duration `json:"check_index_time,omitempty"`
	CheckIndexTimeInMillis int64    `json:"check_index_time_in_millis"`
	TotalTime              Duration `json:"total_time,omitempty"`
	TotalTimeInMillis      int64    `json:"total_time_in_millis"`
}

RecoveryStartStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L91-L96

func NewRecoveryStartStatus ¶

func NewRecoveryStartStatus() *RecoveryStartStatus

NewRecoveryStartStatus returns a RecoveryStartStatus.

func (*RecoveryStartStatus) UnmarshalJSON ¶

func (s *RecoveryStartStatus) UnmarshalJSON(data []byte) error

type RecoveryStats ¶

type RecoveryStats struct {
	CurrentAsSource      int64    `json:"current_as_source"`
	CurrentAsTarget      int64    `json:"current_as_target"`
	ThrottleTime         Duration `json:"throttle_time,omitempty"`
	ThrottleTimeInMillis int64    `json:"throttle_time_in_millis"`
}

RecoveryStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L255-L260

func NewRecoveryStats ¶

func NewRecoveryStats() *RecoveryStats

NewRecoveryStats returns a RecoveryStats.

func (*RecoveryStats) UnmarshalJSON ¶

func (s *RecoveryStats) UnmarshalJSON(data []byte) error

type RecoveryStatus ¶

type RecoveryStatus struct {
	Shards []ShardRecovery `json:"shards"`
}

RecoveryStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L98-L100

func NewRecoveryStatus ¶

func NewRecoveryStatus() *RecoveryStatus

NewRecoveryStatus returns a RecoveryStatus.

type Redact ¶

type Redact struct {
	// IsRedacted_ indicates if document has been redacted
	IsRedacted_ bool `json:"_is_redacted"`
}

Redact type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L38-L43

func NewRedact ¶

func NewRedact() *Redact

NewRedact returns a Redact.

func (*Redact) UnmarshalJSON ¶

func (s *Redact) UnmarshalJSON(data []byte) error

type RedactProcessor ¶

type RedactProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to be redacted
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure          []ProcessorContainer `json:"on_failure,omitempty"`
	PatternDefinitions map[string]string    `json:"pattern_definitions,omitempty"`
	// Patterns A list of grok expressions to match and redact named captures with
	Patterns []string `json:"patterns"`
	// Prefix Start a redacted section with this token
	Prefix *string `json:"prefix,omitempty"`
	// SkipIfUnlicensed If `true` and the current license does not support running redact processors,
	// then the processor quietly exits without modifying the document
	SkipIfUnlicensed *bool `json:"skip_if_unlicensed,omitempty"`
	// Suffix End a redacted section with this token
	Suffix *string `json:"suffix,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TraceRedact If `true` then ingest metadata `_ingest._redact._is_redacted` is set to
	// `true` if the document has been redacted
	TraceRedact *bool `json:"trace_redact,omitempty"`
}

RedactProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1298-L1339

func NewRedactProcessor ¶

func NewRedactProcessor() *RedactProcessor

NewRedactProcessor returns a RedactProcessor.

func (*RedactProcessor) RedactProcessorCaster ¶

func (s *RedactProcessor) RedactProcessorCaster() *RedactProcessor

func (*RedactProcessor) UnmarshalJSON ¶

func (s *RedactProcessor) UnmarshalJSON(data []byte) error

type RedactProcessorVariant ¶

type RedactProcessorVariant interface {
	RedactProcessorCaster() *RedactProcessor
}

type RefreshStats ¶

type RefreshStats struct {
	ExternalTotal             int64    `json:"external_total"`
	ExternalTotalTimeInMillis int64    `json:"external_total_time_in_millis"`
	Listeners                 int64    `json:"listeners"`
	Total                     int64    `json:"total"`
	TotalTime                 Duration `json:"total_time,omitempty"`
	TotalTimeInMillis         int64    `json:"total_time_in_millis"`
}

RefreshStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L262-L269

func NewRefreshStats ¶

func NewRefreshStats() *RefreshStats

NewRefreshStats returns a RefreshStats.

func (*RefreshStats) UnmarshalJSON ¶

func (s *RefreshStats) UnmarshalJSON(data []byte) error

type RegexOptions ¶

type RegexOptions struct {
	// Flags Optional operators for the regular expression.
	Flags *string `json:"flags,omitempty"`
	// MaxDeterminizedStates Maximum number of automaton states required for the query.
	MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"`
}

RegexOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L184-L195

func NewRegexOptions ¶

func NewRegexOptions() *RegexOptions

NewRegexOptions returns a RegexOptions.

func (*RegexOptions) RegexOptionsCaster ¶

func (s *RegexOptions) RegexOptionsCaster() *RegexOptions

func (*RegexOptions) UnmarshalJSON ¶

func (s *RegexOptions) UnmarshalJSON(data []byte) error

type RegexOptionsVariant ¶

type RegexOptionsVariant interface {
	RegexOptionsCaster() *RegexOptions
}

type RegexValidation ¶

type RegexValidation struct {
	Constraint string `json:"constraint"`
	Type       string `json:"type,omitempty"`
}

RegexValidation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L78-L81

func NewRegexValidation ¶

func NewRegexValidation() *RegexValidation

NewRegexValidation returns a RegexValidation.

func (RegexValidation) MarshalJSON ¶

func (s RegexValidation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RegexValidation) RegexValidationCaster ¶

func (s *RegexValidation) RegexValidationCaster() *RegexValidation

func (*RegexValidation) UnmarshalJSON ¶

func (s *RegexValidation) UnmarshalJSON(data []byte) error

func (*RegexValidation) ValidationCaster ¶ added in v9.0.1

func (s *RegexValidation) ValidationCaster() *Validation

type RegexValidationVariant ¶

type RegexValidationVariant interface {
	RegexValidationCaster() *RegexValidation
}

type RegexpQuery ¶

type RegexpQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// CaseInsensitive Allows case insensitive matching of the regular expression value with the
	// indexed field values when set to `true`.
	// When `false`, case sensitivity of matching depends on the underlying field’s
	// mapping.
	CaseInsensitive *bool `json:"case_insensitive,omitempty"`
	// Flags Enables optional operators for the regular expression.
	Flags *string `json:"flags,omitempty"`
	// MaxDeterminizedStates Maximum number of automaton states required for the query.
	MaxDeterminizedStates *int    `json:"max_determinized_states,omitempty"`
	QueryName_            *string `json:"_name,omitempty"`
	// Rewrite Method used to rewrite the query.
	Rewrite *string `json:"rewrite,omitempty"`
	// Value Regular expression for terms you wish to find in the provided field.
	Value string `json:"value"`
}

RegexpQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L199-L232

func NewRegexpQuery ¶

func NewRegexpQuery() *RegexpQuery

NewRegexpQuery returns a RegexpQuery.

func (*RegexpQuery) RegexpQueryCaster ¶

func (s *RegexpQuery) RegexpQueryCaster() *RegexpQuery

func (*RegexpQuery) UnmarshalJSON ¶

func (s *RegexpQuery) UnmarshalJSON(data []byte) error

type RegexpQueryVariant ¶

type RegexpQueryVariant interface {
	RegexpQueryCaster() *RegexpQuery
}

type RegisteredDomainProcessor ¶

type RegisteredDomainProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field Field containing the source FQDN.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If true and any required fields are missing, the processor quietly exits
	// without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Object field containing extracted domain components. If an empty string,
	// the processor adds components to the document’s root.
	TargetField *string `json:"target_field,omitempty"`
}

RegisteredDomainProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1341-L1357

func NewRegisteredDomainProcessor ¶

func NewRegisteredDomainProcessor() *RegisteredDomainProcessor

NewRegisteredDomainProcessor returns a RegisteredDomainProcessor.

func (*RegisteredDomainProcessor) RegisteredDomainProcessorCaster ¶

func (s *RegisteredDomainProcessor) RegisteredDomainProcessorCaster() *RegisteredDomainProcessor

func (*RegisteredDomainProcessor) UnmarshalJSON ¶

func (s *RegisteredDomainProcessor) UnmarshalJSON(data []byte) error

type RegisteredDomainProcessorVariant ¶

type RegisteredDomainProcessorVariant interface {
	RegisteredDomainProcessorCaster() *RegisteredDomainProcessor
}

type RegressionInferenceOptions ¶

type RegressionInferenceOptions struct {
	// NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document.
	NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
}

RegressionInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L107-L116

func NewRegressionInferenceOptions ¶

func NewRegressionInferenceOptions() *RegressionInferenceOptions

NewRegressionInferenceOptions returns a RegressionInferenceOptions.

func (*RegressionInferenceOptions) RegressionInferenceOptionsCaster ¶

func (s *RegressionInferenceOptions) RegressionInferenceOptionsCaster() *RegressionInferenceOptions

func (*RegressionInferenceOptions) UnmarshalJSON ¶

func (s *RegressionInferenceOptions) UnmarshalJSON(data []byte) error

type RegressionInferenceOptionsVariant ¶

type RegressionInferenceOptionsVariant interface {
	RegressionInferenceOptionsCaster() *RegressionInferenceOptions
}

type ReindexDestination ¶

type ReindexDestination struct {
	// Index The name of the data stream, index, or index alias you are copying to.
	Index string `json:"index"`
	// OpType If it is `create`, the operation will only index documents that do not
	// already exist (also known as "put if absent").
	//
	// IMPORTANT: To reindex to a data stream destination, this argument must be
	// `create`.
	OpType *optype.OpType `json:"op_type,omitempty"`
	// Pipeline The name of the pipeline to use.
	Pipeline *string `json:"pipeline,omitempty"`
	// Routing By default, a document's routing is preserved unless it's changed by the
	// script.
	// If it is `keep`, the routing on the bulk request sent for each match is set
	// to the routing on the match.
	// If it is `discard`, the routing on the bulk request sent for each match is
	// set to `null`.
	// If it is `=value`, the routing on the bulk request sent for each match is set
	// to all value specified after the equals sign (`=`).
	Routing *string `json:"routing,omitempty"`
	// VersionType The versioning to use for the indexing operation.
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

ReindexDestination type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex/types.ts#L39-L67

func NewReindexDestination ¶

func NewReindexDestination() *ReindexDestination

NewReindexDestination returns a ReindexDestination.

func (*ReindexDestination) ReindexDestinationCaster ¶

func (s *ReindexDestination) ReindexDestinationCaster() *ReindexDestination

func (*ReindexDestination) UnmarshalJSON ¶

func (s *ReindexDestination) UnmarshalJSON(data []byte) error

type ReindexDestinationVariant ¶

type ReindexDestinationVariant interface {
	ReindexDestinationCaster() *ReindexDestination
}

type ReindexNode ¶

type ReindexNode struct {
	Attributes       map[string]string      `json:"attributes"`
	Host             string                 `json:"host"`
	Ip               string                 `json:"ip"`
	Name             string                 `json:"name"`
	Roles            []noderole.NodeRole    `json:"roles,omitempty"`
	Tasks            map[string]ReindexTask `json:"tasks"`
	TransportAddress string                 `json:"transport_address"`
}

ReindexNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex_rethrottle/types.ts#L33-L35

func NewReindexNode ¶

func NewReindexNode() *ReindexNode

NewReindexNode returns a ReindexNode.

func (*ReindexNode) UnmarshalJSON ¶

func (s *ReindexNode) UnmarshalJSON(data []byte) error

type ReindexSource ¶

type ReindexSource struct {
	// Index The name of the data stream, index, or alias you are copying from.
	// It accepts a comma-separated list to reindex from multiple sources.
	Index []string `json:"index"`
	// Query The documents to reindex, which is defined with Query DSL.
	Query *Query `json:"query,omitempty"`
	// Remote A remote instance of Elasticsearch that you want to index from.
	Remote          *RemoteSource `json:"remote,omitempty"`
	RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"`
	// Size The number of documents to index per batch.
	// Use it when you are indexing from remote to ensure that the batches fit
	// within the on-heap buffer, which defaults to a maximum size of 100 MB.
	Size *int `json:"size,omitempty"`
	// Slice Slice the reindex request manually using the provided slice ID and total
	// number of slices.
	Slice *SlicedScroll `json:"slice,omitempty"`
	// Sort A comma-separated list of `<field>:<direction>` pairs to sort by before
	// indexing.
	// Use it in conjunction with `max_docs` to control what documents are
	// reindexed.
	//
	// WARNING: Sort in reindex is deprecated.
	// Sorting in reindex was never guaranteed to index documents in order and
	// prevents further development of reindex such as resilience and performance
	// improvements.
	// If used in combination with `max_docs`, consider using a query filter
	// instead.
	Sort []SortCombinations `json:"sort,omitempty"`
	// SourceFields_ If `true`, reindex all source fields.
	// Set it to a list to reindex select fields.
	SourceFields_ []string `json:"_source,omitempty"`
}

ReindexSource type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex/types.ts#L69-L110

func NewReindexSource ¶

func NewReindexSource() *ReindexSource

NewReindexSource returns a ReindexSource.

func (*ReindexSource) ReindexSourceCaster ¶

func (s *ReindexSource) ReindexSourceCaster() *ReindexSource

func (*ReindexSource) UnmarshalJSON ¶

func (s *ReindexSource) UnmarshalJSON(data []byte) error

type ReindexSourceVariant ¶

type ReindexSourceVariant interface {
	ReindexSourceCaster() *ReindexSource
}

type ReindexStatus ¶

type ReindexStatus struct {
	// Batches The number of scroll responses pulled back by the reindex.
	Batches int64 `json:"batches"`
	// Created The number of documents that were successfully created.
	Created int64 `json:"created"`
	// Deleted The number of documents that were successfully deleted.
	Deleted int64 `json:"deleted"`
	// Noops The number of documents that were ignored because the script used for the
	// reindex returned a `noop` value for `ctx.op`.
	Noops int64 `json:"noops"`
	// RequestsPerSecond The number of requests per second effectively executed during the reindex.
	RequestsPerSecond float32 `json:"requests_per_second"`
	// Retries The number of retries attempted by reindex. `bulk` is the number of bulk
	// actions retried and `search` is the number of search actions retried.
	Retries   Retries  `json:"retries"`
	Throttled Duration `json:"throttled,omitempty"`
	// ThrottledMillis Number of milliseconds the request slept to conform to `requests_per_second`.
	ThrottledMillis int64    `json:"throttled_millis"`
	ThrottledUntil  Duration `json:"throttled_until,omitempty"`
	// ThrottledUntilMillis This field should always be equal to zero in a `_reindex` response.
	// It only has meaning when using the Task API, where it indicates the next time
	// (in milliseconds since epoch) a throttled request will be executed again in
	// order to conform to `requests_per_second`.
	ThrottledUntilMillis int64 `json:"throttled_until_millis"`
	// Total The number of documents that were successfully processed.
	Total int64 `json:"total"`
	// Updated The number of documents that were successfully updated, for example, a
	// document with same ID already existed prior to reindex updating it.
	Updated int64 `json:"updated"`
	// VersionConflicts The number of version conflicts that reindex hits.
	VersionConflicts int64 `json:"version_conflicts"`
}

ReindexStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex_rethrottle/types.ts#L37-L85

func NewReindexStatus ¶

func NewReindexStatus() *ReindexStatus

NewReindexStatus returns a ReindexStatus.

func (*ReindexStatus) UnmarshalJSON ¶

func (s *ReindexStatus) UnmarshalJSON(data []byte) error

type ReindexTask ¶

type ReindexTask struct {
	Action             string        `json:"action"`
	Cancellable        bool          `json:"cancellable"`
	Description        string        `json:"description"`
	Headers            HttpHeaders   `json:"headers"`
	Id                 int64         `json:"id"`
	Node               string        `json:"node"`
	RunningTimeInNanos int64         `json:"running_time_in_nanos"`
	StartTimeInMillis  int64         `json:"start_time_in_millis"`
	Status             ReindexStatus `json:"status"`
	Type               string        `json:"type"`
}

ReindexTask type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex_rethrottle/types.ts#L87-L98

func NewReindexTask ¶

func NewReindexTask() *ReindexTask

NewReindexTask returns a ReindexTask.

func (*ReindexTask) UnmarshalJSON ¶

func (s *ReindexTask) UnmarshalJSON(data []byte) error

type ReloadDetails ¶

type ReloadDetails struct {
	Index             string   `json:"index"`
	ReloadedAnalyzers []string `json:"reloaded_analyzers"`
	ReloadedNodeIds   []string `json:"reloaded_node_ids"`
}

ReloadDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/reload_search_analyzers/types.ts#L27-L31

func NewReloadDetails ¶

func NewReloadDetails() *ReloadDetails

NewReloadDetails returns a ReloadDetails.

func (*ReloadDetails) UnmarshalJSON ¶

func (s *ReloadDetails) UnmarshalJSON(data []byte) error

type ReloadResult ¶

type ReloadResult struct {
	ReloadDetails []ReloadDetails `json:"reload_details"`
	Shards_       ShardStatistics `json:"_shards"`
}

ReloadResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/reload_search_analyzers/types.ts#L22-L25

func NewReloadResult ¶

func NewReloadResult() *ReloadResult

NewReloadResult returns a ReloadResult.

type RelocationFailureInfo ¶

type RelocationFailureInfo struct {
	FailedAttempts int `json:"failed_attempts"`
}

RelocationFailureInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Node.ts#L67-L69

func NewRelocationFailureInfo ¶

func NewRelocationFailureInfo() *RelocationFailureInfo

NewRelocationFailureInfo returns a RelocationFailureInfo.

func (*RelocationFailureInfo) UnmarshalJSON ¶

func (s *RelocationFailureInfo) UnmarshalJSON(data []byte) error

type RemoteClusterInfo ¶ added in v9.0.1

type RemoteClusterInfo struct {
	// ClusterUuid The UUID of the remote cluster.
	ClusterUuid string `json:"cluster_uuid"`
	// IndicesCount The total number of indices in the remote cluster.
	IndicesCount int `json:"indices_count"`
	// IndicesTotalSize Total data set size of all shards assigned to selected nodes, as a
	// human-readable string.
	IndicesTotalSize *string `json:"indices_total_size,omitempty"`
	// IndicesTotalSizeInBytes Total data set size, in bytes, of all shards assigned to selected nodes.
	IndicesTotalSizeInBytes int64 `json:"indices_total_size_in_bytes"`
	// MaxHeap Maximum amount of memory available for use by the heap across the nodes of
	// the remote cluster, as a human-readable string.
	MaxHeap *string `json:"max_heap,omitempty"`
	// MaxHeapInBytes Maximum amount of memory, in bytes, available for use by the heap across the
	// nodes of the remote cluster.
	MaxHeapInBytes int64 `json:"max_heap_in_bytes"`
	// MemTotal Total amount of physical memory across the nodes of the remote cluster, as a
	// human-readable string.
	MemTotal *string `json:"mem_total,omitempty"`
	// MemTotalInBytes Total amount, in bytes, of physical memory across the nodes of the remote
	// cluster.
	MemTotalInBytes int64 `json:"mem_total_in_bytes"`
	// Mode The connection mode used to communicate with the remote cluster.
	Mode string `json:"mode"`
	// NodesCount The total count of nodes in the remote cluster.
	NodesCount int `json:"nodes_count"`
	// ShardsCount The total number of shards in the remote cluster.
	ShardsCount int `json:"shards_count"`
	// SkipUnavailable The `skip_unavailable` setting used for this remote cluster.
	SkipUnavailable bool `json:"skip_unavailable"`
	// Status Health status of the cluster, based on the state of its primary and replica
	// shards.
	Status healthstatus.HealthStatus `json:"status"`
	// TransportCompress Transport compression setting used for this remote cluster.
	TransportCompress string `json:"transport.compress"`
	// Version The list of Elasticsearch versions used by the nodes on the remote cluster.
	Version []string `json:"version"`
}

RemoteClusterInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L786-L817

func NewRemoteClusterInfo ¶ added in v9.0.1

func NewRemoteClusterInfo() *RemoteClusterInfo

NewRemoteClusterInfo returns a RemoteClusterInfo.

func (*RemoteClusterInfo) UnmarshalJSON ¶ added in v9.0.1

func (s *RemoteClusterInfo) UnmarshalJSON(data []byte) error

type RemoteClusterPrivileges ¶

type RemoteClusterPrivileges struct {
	// Clusters A list of cluster aliases to which the permissions in this entry apply.
	Clusters []string `json:"clusters"`
	// Privileges The cluster level privileges that owners of the role have on the remote
	// cluster.
	Privileges []remoteclusterprivilege.RemoteClusterPrivilege `json:"privileges"`
}

RemoteClusterPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L280-L292

func NewRemoteClusterPrivileges ¶

func NewRemoteClusterPrivileges() *RemoteClusterPrivileges

NewRemoteClusterPrivileges returns a RemoteClusterPrivileges.

func (*RemoteClusterPrivileges) RemoteClusterPrivilegesCaster ¶

func (s *RemoteClusterPrivileges) RemoteClusterPrivilegesCaster() *RemoteClusterPrivileges

func (*RemoteClusterPrivileges) UnmarshalJSON ¶

func (s *RemoteClusterPrivileges) UnmarshalJSON(data []byte) error

type RemoteClusterPrivilegesVariant ¶

type RemoteClusterPrivilegesVariant interface {
	RemoteClusterPrivilegesCaster() *RemoteClusterPrivileges
}

type RemoteIndicesPrivileges ¶

type RemoteIndicesPrivileges struct {
	// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
	// cover restricted indices. Implicitly, restricted indices have limited
	// privileges that can cause pattern tests to fail. If restricted indices are
	// explicitly included in the `names` list, Elasticsearch checks privileges
	// against these indices regardless of the value set for
	// `allow_restricted_indices`.
	AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`
	// Clusters A list of cluster aliases to which the permissions in this entry apply.
	Clusters []string `json:"clusters"`
	// FieldSecurity The document fields that the owners of the role have read access to.
	FieldSecurity *FieldSecurity `json:"field_security,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
	// Privileges The index level privileges that owners of the role have on the specified
	// indices.
	Privileges []indexprivilege.IndexPrivilege `json:"privileges"`
	// Query A search query that defines the documents the owners of the role have access
	// to. A document within the specified indices must match this query for it to
	// be accessible by the owners of the role.
	Query IndicesPrivilegesQuery `json:"query,omitempty"`
}

RemoteIndicesPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L246-L278

func NewRemoteIndicesPrivileges ¶

func NewRemoteIndicesPrivileges() *RemoteIndicesPrivileges

NewRemoteIndicesPrivileges returns a RemoteIndicesPrivileges.

func (*RemoteIndicesPrivileges) RemoteIndicesPrivilegesCaster ¶

func (s *RemoteIndicesPrivileges) RemoteIndicesPrivilegesCaster() *RemoteIndicesPrivileges

func (*RemoteIndicesPrivileges) UnmarshalJSON ¶

func (s *RemoteIndicesPrivileges) UnmarshalJSON(data []byte) error

type RemoteIndicesPrivilegesVariant ¶

type RemoteIndicesPrivilegesVariant interface {
	RemoteIndicesPrivilegesCaster() *RemoteIndicesPrivileges
}

type RemoteSource ¶

type RemoteSource struct {
	// ConnectTimeout The remote connection timeout.
	ConnectTimeout Duration `json:"connect_timeout,omitempty"`
	// Headers An object containing the headers of the request.
	Headers map[string]string `json:"headers,omitempty"`
	// Host The URL for the remote instance of Elasticsearch that you want to index from.
	// This information is required when you're indexing from remote.
	Host string `json:"host"`
	// Password The password to use for authentication with the remote host.
	Password *string `json:"password,omitempty"`
	// SocketTimeout The remote socket read timeout.
	SocketTimeout Duration `json:"socket_timeout,omitempty"`
	// Username The username to use for authentication with the remote host.
	Username *string `json:"username,omitempty"`
}

RemoteSource type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/reindex/types.ts#L112-L140

func NewRemoteSource ¶

func NewRemoteSource() *RemoteSource

NewRemoteSource returns a RemoteSource.

func (*RemoteSource) RemoteSourceCaster ¶

func (s *RemoteSource) RemoteSourceCaster() *RemoteSource

func (*RemoteSource) UnmarshalJSON ¶

func (s *RemoteSource) UnmarshalJSON(data []byte) error

type RemoteSourceVariant ¶

type RemoteSourceVariant interface {
	RemoteSourceCaster() *RemoteSource
}

type RemoteUserIndicesPrivileges ¶

type RemoteUserIndicesPrivileges struct {
	// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
	// cover restricted indices. Implicitly, restricted indices have limited
	// privileges that can cause pattern tests to fail. If restricted indices are
	// explicitly included in the `names` list, Elasticsearch checks privileges
	// against these indices regardless of the value set for
	// `allow_restricted_indices`.
	AllowRestrictedIndices bool     `json:"allow_restricted_indices"`
	Clusters               []string `json:"clusters"`
	// FieldSecurity The document fields that the owners of the role have read access to.
	FieldSecurity []FieldSecurity `json:"field_security,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
	// Privileges The index level privileges that owners of the role have on the specified
	// indices.
	Privileges []indexprivilege.IndexPrivilege `json:"privileges"`
	// Query Search queries that define the documents the user has access to. A document
	// within the specified indices must match these queries for it to be accessible
	// by the owners of the role.
	Query []IndicesPrivilegesQuery `json:"query,omitempty"`
}

RemoteUserIndicesPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L318-L341

func NewRemoteUserIndicesPrivileges ¶

func NewRemoteUserIndicesPrivileges() *RemoteUserIndicesPrivileges

NewRemoteUserIndicesPrivileges returns a RemoteUserIndicesPrivileges.

func (*RemoteUserIndicesPrivileges) UnmarshalJSON ¶

func (s *RemoteUserIndicesPrivileges) UnmarshalJSON(data []byte) error

type RemoveAction ¶

type RemoveAction struct {
	// Alias Alias for the action.
	// Index alias names support date math.
	Alias *string `json:"alias,omitempty"`
	// Aliases Aliases for the action.
	// Index alias names support date math.
	Aliases []string `json:"aliases,omitempty"`
	// Index Data stream or index for the action.
	// Supports wildcards (`*`).
	Index *string `json:"index,omitempty"`
	// Indices Data streams or indices for the action.
	// Supports wildcards (`*`).
	Indices []string `json:"indices,omitempty"`
	// MustExist If `true`, the alias must exist to perform the action.
	MustExist *bool `json:"must_exist,omitempty"`
}

RemoveAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/update_aliases/types.ts#L97-L122

func NewRemoveAction ¶

func NewRemoveAction() *RemoveAction

NewRemoveAction returns a RemoveAction.

func (*RemoveAction) RemoveActionCaster ¶

func (s *RemoveAction) RemoveActionCaster() *RemoveAction

func (*RemoveAction) UnmarshalJSON ¶

func (s *RemoveAction) UnmarshalJSON(data []byte) error

type RemoveActionVariant ¶

type RemoveActionVariant interface {
	RemoveActionCaster() *RemoveAction
}

type RemoveClusterServer ¶ added in v9.0.1

type RemoveClusterServer struct {
	BoundAddress   []string `json:"bound_address"`
	PublishAddress string   `json:"publish_address"`
}

RemoveClusterServer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/info/types.ts#L74-L77

func NewRemoveClusterServer ¶ added in v9.0.1

func NewRemoveClusterServer() *RemoveClusterServer

NewRemoveClusterServer returns a RemoveClusterServer.

func (*RemoveClusterServer) UnmarshalJSON ¶ added in v9.0.1

func (s *RemoveClusterServer) UnmarshalJSON(data []byte) error

type RemoveDuplicatesTokenFilter ¶

type RemoveDuplicatesTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

RemoveDuplicatesTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L403-L405

func NewRemoveDuplicatesTokenFilter ¶

func NewRemoveDuplicatesTokenFilter() *RemoveDuplicatesTokenFilter

NewRemoveDuplicatesTokenFilter returns a RemoveDuplicatesTokenFilter.

func (RemoveDuplicatesTokenFilter) MarshalJSON ¶

func (s RemoveDuplicatesTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RemoveDuplicatesTokenFilter) RemoveDuplicatesTokenFilterCaster ¶

func (s *RemoveDuplicatesTokenFilter) RemoveDuplicatesTokenFilterCaster() *RemoveDuplicatesTokenFilter

func (*RemoveDuplicatesTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *RemoveDuplicatesTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*RemoveDuplicatesTokenFilter) UnmarshalJSON ¶

func (s *RemoveDuplicatesTokenFilter) UnmarshalJSON(data []byte) error

type RemoveDuplicatesTokenFilterVariant ¶

type RemoveDuplicatesTokenFilterVariant interface {
	RemoveDuplicatesTokenFilterCaster() *RemoveDuplicatesTokenFilter
}

type RemoveIndexAction ¶

type RemoveIndexAction struct {
	// Index Data stream or index for the action.
	// Supports wildcards (`*`).
	Index *string `json:"index,omitempty"`
	// Indices Data streams or indices for the action.
	// Supports wildcards (`*`).
	Indices []string `json:"indices,omitempty"`
	// MustExist If `true`, the alias must exist to perform the action.
	MustExist *bool `json:"must_exist,omitempty"`
}

RemoveIndexAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/update_aliases/types.ts#L124-L139

func NewRemoveIndexAction ¶

func NewRemoveIndexAction() *RemoveIndexAction

NewRemoveIndexAction returns a RemoveIndexAction.

func (*RemoveIndexAction) RemoveIndexActionCaster ¶

func (s *RemoveIndexAction) RemoveIndexActionCaster() *RemoveIndexAction

func (*RemoveIndexAction) UnmarshalJSON ¶

func (s *RemoveIndexAction) UnmarshalJSON(data []byte) error

type RemoveIndexActionVariant ¶

type RemoveIndexActionVariant interface {
	RemoveIndexActionCaster() *RemoveIndexAction
}

type RemoveIndicesBlockStatus ¶ added in v9.1.0

type RemoveIndicesBlockStatus struct {
	Exception *ErrorCause `json:"exception,omitempty"`
	Name      string      `json:"name"`
	Unblocked *bool       `json:"unblocked,omitempty"`
}

RemoveIndicesBlockStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/remove_block/IndicesRemoveBlockResponse.ts#L30-L34

func NewRemoveIndicesBlockStatus ¶ added in v9.1.0

func NewRemoveIndicesBlockStatus() *RemoveIndicesBlockStatus

NewRemoveIndicesBlockStatus returns a RemoveIndicesBlockStatus.

func (*RemoveIndicesBlockStatus) UnmarshalJSON ¶ added in v9.1.0

func (s *RemoveIndicesBlockStatus) UnmarshalJSON(data []byte) error

type RemoveProcessor ¶

type RemoveProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field Fields to be removed. Supports template snippets.
	Field []string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// Keep Fields to be kept. When set, all fields other than those specified are
	// removed.
	Keep []string `json:"keep,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

RemoveProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1359-L1373

func NewRemoveProcessor ¶

func NewRemoveProcessor() *RemoveProcessor

NewRemoveProcessor returns a RemoveProcessor.

func (*RemoveProcessor) RemoveProcessorCaster ¶

func (s *RemoveProcessor) RemoveProcessorCaster() *RemoveProcessor

func (*RemoveProcessor) UnmarshalJSON ¶

func (s *RemoveProcessor) UnmarshalJSON(data []byte) error

type RemoveProcessorVariant ¶

type RemoveProcessorVariant interface {
	RemoveProcessorCaster() *RemoveProcessor
}

type RenameProcessor ¶

type RenameProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to be renamed.
	// Supports template snippets.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The new name of the field.
	// Supports template snippets.
	TargetField string `json:"target_field"`
}

RenameProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1375-L1391

func NewRenameProcessor ¶

func NewRenameProcessor() *RenameProcessor

NewRenameProcessor returns a RenameProcessor.

func (*RenameProcessor) RenameProcessorCaster ¶

func (s *RenameProcessor) RenameProcessorCaster() *RenameProcessor

func (*RenameProcessor) UnmarshalJSON ¶

func (s *RenameProcessor) UnmarshalJSON(data []byte) error

type RenameProcessorVariant ¶

type RenameProcessorVariant interface {
	RenameProcessorCaster() *RenameProcessor
}

type ReplicationAccess ¶

type ReplicationAccess struct {
	// AllowRestrictedIndices This needs to be set to true if the patterns in the names field should cover
	// system indices.
	AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
}

ReplicationAccess type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L444-L454

func NewReplicationAccess ¶

func NewReplicationAccess() *ReplicationAccess

NewReplicationAccess returns a ReplicationAccess.

func (*ReplicationAccess) ReplicationAccessCaster ¶

func (s *ReplicationAccess) ReplicationAccessCaster() *ReplicationAccess

func (*ReplicationAccess) UnmarshalJSON ¶

func (s *ReplicationAccess) UnmarshalJSON(data []byte) error

type ReplicationAccessVariant ¶

type ReplicationAccessVariant interface {
	ReplicationAccessCaster() *ReplicationAccess
}

type ReportingEmailAttachment ¶

type ReportingEmailAttachment struct {
	Inline   *bool                       `json:"inline,omitempty"`
	Interval Duration                    `json:"interval,omitempty"`
	Request  *HttpInputRequestDefinition `json:"request,omitempty"`
	Retries  *int                        `json:"retries,omitempty"`
	Url      string                      `json:"url"`
}

ReportingEmailAttachment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L224-L232

func NewReportingEmailAttachment ¶

func NewReportingEmailAttachment() *ReportingEmailAttachment

NewReportingEmailAttachment returns a ReportingEmailAttachment.

func (*ReportingEmailAttachment) ReportingEmailAttachmentCaster ¶

func (s *ReportingEmailAttachment) ReportingEmailAttachmentCaster() *ReportingEmailAttachment

func (*ReportingEmailAttachment) UnmarshalJSON ¶

func (s *ReportingEmailAttachment) UnmarshalJSON(data []byte) error

type ReportingEmailAttachmentVariant ¶

type ReportingEmailAttachmentVariant interface {
	ReportingEmailAttachmentCaster() *ReportingEmailAttachment
}

type RepositoriesRecord ¶

type RepositoriesRecord struct {
	// Id The unique repository identifier.
	Id *string `json:"id,omitempty"`
	// Type The repository type.
	Type *string `json:"type,omitempty"`
}

RepositoriesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/repositories/types.ts#L20-L31

func NewRepositoriesRecord ¶

func NewRepositoriesRecord() *RepositoriesRecord

NewRepositoriesRecord returns a RepositoriesRecord.

func (*RepositoriesRecord) UnmarshalJSON ¶

func (s *RepositoriesRecord) UnmarshalJSON(data []byte) error

type Repository ¶

type Repository any

Repository holds the union for the following types:

AzureRepository
GcsRepository
S3Repository
SharedFileSystemRepository
ReadOnlyUrlRepository
SourceOnlyRepository

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L24-L34

type RepositoryIntegrityIndicator ¶

type RepositoryIntegrityIndicator struct {
	Details   *RepositoryIntegrityIndicatorDetails        `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

RepositoryIntegrityIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L138-L142

func NewRepositoryIntegrityIndicator ¶

func NewRepositoryIntegrityIndicator() *RepositoryIntegrityIndicator

NewRepositoryIntegrityIndicator returns a RepositoryIntegrityIndicator.

func (*RepositoryIntegrityIndicator) UnmarshalJSON ¶

func (s *RepositoryIntegrityIndicator) UnmarshalJSON(data []byte) error

type RepositoryIntegrityIndicatorDetails ¶

type RepositoryIntegrityIndicatorDetails struct {
	Corrupted             []string `json:"corrupted,omitempty"`
	CorruptedRepositories *int64   `json:"corrupted_repositories,omitempty"`
	TotalRepositories     *int64   `json:"total_repositories,omitempty"`
}

RepositoryIntegrityIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L143-L147

func NewRepositoryIntegrityIndicatorDetails ¶

func NewRepositoryIntegrityIndicatorDetails() *RepositoryIntegrityIndicatorDetails

NewRepositoryIntegrityIndicatorDetails returns a RepositoryIntegrityIndicatorDetails.

func (*RepositoryIntegrityIndicatorDetails) UnmarshalJSON ¶

func (s *RepositoryIntegrityIndicatorDetails) UnmarshalJSON(data []byte) error

type RepositoryLocation ¶

type RepositoryLocation struct {
	BasePath string `json:"base_path"`
	// Bucket Bucket name (GCP, S3)
	Bucket *string `json:"bucket,omitempty"`
	// Container Container name (Azure)
	Container *string `json:"container,omitempty"`
}

RepositoryLocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74

func NewRepositoryLocation ¶

func NewRepositoryLocation() *RepositoryLocation

NewRepositoryLocation returns a RepositoryLocation.

func (*RepositoryLocation) UnmarshalJSON ¶

func (s *RepositoryLocation) UnmarshalJSON(data []byte) error

type RepositoryMeteringInformation ¶

type RepositoryMeteringInformation struct {
	// Archived A flag that tells whether or not this object has been archived. When a
	// repository is closed or updated the
	// repository metering information is archived and kept for a certain period of
	// time. This allows retrieving the
	// repository metering information of previous repository instantiations.
	Archived bool `json:"archived"`
	// ClusterVersion The cluster state version when this object was archived, this field can be
	// used as a logical timestamp to delete
	// all the archived metrics up to an observed version. This field is only
	// present for archived repository metering
	// information objects. The main purpose of this field is to avoid possible race
	// conditions during repository metering
	// information deletions, i.e. deleting archived repositories metering
	// information that we haven’t observed yet.
	ClusterVersion *int64 `json:"cluster_version,omitempty"`
	// RepositoryEphemeralId An identifier that changes every time the repository is updated.
	RepositoryEphemeralId string `json:"repository_ephemeral_id"`
	// RepositoryLocation Represents an unique location within the repository.
	RepositoryLocation RepositoryLocation `json:"repository_location"`
	// RepositoryName Repository name.
	RepositoryName string `json:"repository_name"`
	// RepositoryStartedAt Time the repository was created or updated. Recorded in milliseconds since
	// the Unix Epoch.
	RepositoryStartedAt int64 `json:"repository_started_at"`
	// RepositoryStoppedAt Time the repository was deleted or updated. Recorded in milliseconds since
	// the Unix Epoch.
	RepositoryStoppedAt *int64 `json:"repository_stopped_at,omitempty"`
	// RepositoryType Repository type.
	RepositoryType string `json:"repository_type"`
	// RequestCounts An object with the number of request performed against the repository grouped
	// by request type.
	RequestCounts RequestCounts `json:"request_counts"`
}

RepositoryMeteringInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66

func NewRepositoryMeteringInformation ¶

func NewRepositoryMeteringInformation() *RepositoryMeteringInformation

NewRepositoryMeteringInformation returns a RepositoryMeteringInformation.

func (*RepositoryMeteringInformation) UnmarshalJSON ¶

func (s *RepositoryMeteringInformation) UnmarshalJSON(data []byte) error

type RepositoryStatsCurrentCounts ¶ added in v9.0.1

type RepositoryStatsCurrentCounts struct {
	ActiveDeletions   int                   `json:"active_deletions"`
	Clones            int                   `json:"clones"`
	Deletions         int                   `json:"deletions"`
	Finalizations     int                   `json:"finalizations"`
	Shards            RepositoryStatsShards `json:"shards"`
	SnapshotDeletions int                   `json:"snapshot_deletions"`
	Snapshots         int                   `json:"snapshots"`
}

RepositoryStatsCurrentCounts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L672-L680

func NewRepositoryStatsCurrentCounts ¶ added in v9.0.1

func NewRepositoryStatsCurrentCounts() *RepositoryStatsCurrentCounts

NewRepositoryStatsCurrentCounts returns a RepositoryStatsCurrentCounts.

func (*RepositoryStatsCurrentCounts) UnmarshalJSON ¶ added in v9.0.1

func (s *RepositoryStatsCurrentCounts) UnmarshalJSON(data []byte) error

type RepositoryStatsShards ¶ added in v9.0.1

type RepositoryStatsShards struct {
	Complete   int                           `json:"complete"`
	Incomplete int                           `json:"incomplete"`
	States     map[shardstate.ShardState]int `json:"states"`
	Total      int                           `json:"total"`
}

RepositoryStatsShards type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L682-L687

func NewRepositoryStatsShards ¶ added in v9.0.1

func NewRepositoryStatsShards() *RepositoryStatsShards

NewRepositoryStatsShards returns a RepositoryStatsShards.

func (*RepositoryStatsShards) UnmarshalJSON ¶ added in v9.0.1

func (s *RepositoryStatsShards) UnmarshalJSON(data []byte) error

type RepositoryVariant ¶

type RepositoryVariant interface {
	RepositoryCaster() *Repository
}

type RequestCacheStats ¶

type RequestCacheStats struct {
	Evictions         int64   `json:"evictions"`
	HitCount          int64   `json:"hit_count"`
	MemorySize        *string `json:"memory_size,omitempty"`
	MemorySizeInBytes int64   `json:"memory_size_in_bytes"`
	MissCount         int64   `json:"miss_count"`
}

RequestCacheStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L271-L277

func NewRequestCacheStats ¶

func NewRequestCacheStats() *RequestCacheStats

NewRequestCacheStats returns a RequestCacheStats.

func (*RequestCacheStats) UnmarshalJSON ¶

func (s *RequestCacheStats) UnmarshalJSON(data []byte) error

type RequestChatCompletion ¶

type RequestChatCompletion struct {
	// MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a
	// completion request.
	MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"`
	// Messages A list of objects representing the conversation.
	// Requests should generally only add new messages from the user (role `user`).
	// The other message roles (`assistant`, `system`, or `tool`) should generally
	// only be copied from the response to a previous completion request, such that
	// the messages array is built up throughout a conversation.
	Messages []Message `json:"messages"`
	// Model The ID of the model to use.
	Model *string `json:"model,omitempty"`
	// Stop A sequence of strings to control when the model should stop generating
	// additional tokens.
	Stop []string `json:"stop,omitempty"`
	// Temperature The sampling temperature to use.
	Temperature *float32 `json:"temperature,omitempty"`
	// ToolChoice Controls which tool is called by the model.
	// String representation: One of `auto`, `none`, or `requrired`. `auto` allows
	// the model to choose between calling tools and generating a message. `none`
	// causes the model to not call any tools. `required` forces the model to call
	// one or more tools.
	// Example (object representation):
	// “`
	//
	//	{
	//	  "tool_choice": {
	//	      "type": "function",
	//	      "function": {
	//	          "name": "get_current_weather"
	//	      }
	//	  }
	//	}
	//
	// “`
	ToolChoice CompletionToolType `json:"tool_choice,omitempty"`
	// Tools A list of tools that the model can call.
	// Example:
	// “`
	//
	//	{
	//	  "tools": [
	//	      {
	//	          "type": "function",
	//	          "function": {
	//	              "name": "get_price_of_item",
	//	              "description": "Get the current price of an item",
	//	              "parameters": {
	//	                  "type": "object",
	//	                  "properties": {
	//	                      "item": {
	//	                          "id": "12345"
	//	                      },
	//	                      "unit": {
	//	                          "type": "currency"
	//	                      }
	//	                  }
	//	              }
	//	          }
	//	      }
	//	  ]
	//	}
	//
	// “`
	Tools []CompletionTool `json:"tools,omitempty"`
	// TopP Nucleus sampling, an alternative to sampling with temperature.
	TopP *float32 `json:"top_p,omitempty"`
}

RequestChatCompletion type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L25-L97

func NewRequestChatCompletion ¶

func NewRequestChatCompletion() *RequestChatCompletion

NewRequestChatCompletion returns a RequestChatCompletion.

func (*RequestChatCompletion) RequestChatCompletionCaster ¶

func (s *RequestChatCompletion) RequestChatCompletionCaster() *RequestChatCompletion

func (*RequestChatCompletion) UnmarshalJSON ¶

func (s *RequestChatCompletion) UnmarshalJSON(data []byte) error

type RequestChatCompletionVariant ¶

type RequestChatCompletionVariant interface {
	RequestChatCompletionCaster() *RequestChatCompletion
}

type RequestCounts ¶

type RequestCounts struct {
	// GetBlob Number of Get Blob requests (Azure)
	GetBlob *int64 `json:"GetBlob,omitempty"`
	// GetBlobProperties Number of Get Blob Properties requests (Azure)
	GetBlobProperties *int64 `json:"GetBlobProperties,omitempty"`
	// GetObject Number of get object requests (GCP, S3)
	GetObject *int64 `json:"GetObject,omitempty"`
	// InsertObject Number of insert object requests, including simple, multipart and resumable
	// uploads. Resumable uploads
	// can perform multiple http requests to insert a single object but they are
	// considered as a single request
	// since they are billed as an individual operation. (GCP)
	InsertObject *int64 `json:"InsertObject,omitempty"`
	// ListBlobs Number of List Blobs requests (Azure)
	ListBlobs *int64 `json:"ListBlobs,omitempty"`
	// ListObjects Number of list objects requests (GCP, S3)
	ListObjects *int64 `json:"ListObjects,omitempty"`
	// PutBlob Number of Put Blob requests (Azure)
	PutBlob *int64 `json:"PutBlob,omitempty"`
	// PutBlock Number of Put Block (Azure)
	PutBlock *int64 `json:"PutBlock,omitempty"`
	// PutBlockList Number of Put Block List requests
	PutBlockList *int64 `json:"PutBlockList,omitempty"`
	// PutMultipartObject Number of Multipart requests, including CreateMultipartUpload, UploadPart and
	// CompleteMultipartUpload requests (S3)
	PutMultipartObject *int64 `json:"PutMultipartObject,omitempty"`
	// PutObject Number of PutObject requests (S3)
	PutObject *int64 `json:"PutObject,omitempty"`
}

RequestCounts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103

func NewRequestCounts ¶

func NewRequestCounts() *RequestCounts

NewRequestCounts returns a RequestCounts.

func (*RequestCounts) UnmarshalJSON ¶

func (s *RequestCounts) UnmarshalJSON(data []byte) error

type RequestItemVariant ¶

type RequestItemVariant interface {
	RequestItemCaster() *RequestItem
}

type RerouteDecision ¶

type RerouteDecision struct {
	Decider     string `json:"decider"`
	Decision    string `json:"decision"`
	Explanation string `json:"explanation"`
}

RerouteDecision type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L86-L90

func NewRerouteDecision ¶

func NewRerouteDecision() *RerouteDecision

NewRerouteDecision returns a RerouteDecision.

func (*RerouteDecision) UnmarshalJSON ¶

func (s *RerouteDecision) UnmarshalJSON(data []byte) error

type RerouteExplanation ¶

type RerouteExplanation struct {
	Command    string            `json:"command"`
	Decisions  []RerouteDecision `json:"decisions"`
	Parameters RerouteParameters `json:"parameters"`
}

RerouteExplanation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L92-L96

func NewRerouteExplanation ¶

func NewRerouteExplanation() *RerouteExplanation

NewRerouteExplanation returns a RerouteExplanation.

func (*RerouteExplanation) UnmarshalJSON ¶

func (s *RerouteExplanation) UnmarshalJSON(data []byte) error

type RerouteParameters ¶

type RerouteParameters struct {
	AllowPrimary bool    `json:"allow_primary"`
	FromNode     *string `json:"from_node,omitempty"`
	Index        string  `json:"index"`
	Node         string  `json:"node"`
	Shard        int     `json:"shard"`
	ToNode       *string `json:"to_node,omitempty"`
}

RerouteParameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/reroute/types.ts#L98-L105

func NewRerouteParameters ¶

func NewRerouteParameters() *RerouteParameters

NewRerouteParameters returns a RerouteParameters.

func (*RerouteParameters) UnmarshalJSON ¶

func (s *RerouteParameters) UnmarshalJSON(data []byte) error

type RerouteProcessor ¶

type RerouteProcessor struct {
	// Dataset Field references or a static value for the dataset part of the data stream
	// name.
	// In addition to the criteria for index names, cannot contain - and must be no
	// longer than 100 characters.
	// Example values are nginx.access and nginx.error.
	//
	// Supports field references with a mustache-like syntax (denoted as {{double}}
	// or {{{triple}}} curly braces).
	// When resolving field references, the processor replaces invalid characters
	// with _. Uses the <dataset> part
	// of the index name as a fallback if all field references resolve to a null,
	// missing, or non-string value.
	//
	// default {{data_stream.dataset}}
	Dataset []string `json:"dataset,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Destination A static value for the target. Can’t be set when the dataset or namespace
	// option is set.
	Destination *string `json:"destination,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// Namespace Field references or a static value for the namespace part of the data stream
	// name. See the criteria for
	// index names for allowed characters. Must be no longer than 100 characters.
	//
	// Supports field references with a mustache-like syntax (denoted as {{double}}
	// or {{{triple}}} curly braces).
	// When resolving field references, the processor replaces invalid characters
	// with _. Uses the <namespace> part
	// of the index name as a fallback if all field references resolve to a null,
	// missing, or non-string value.
	//
	// default {{data_stream.namespace}}
	Namespace []string `json:"namespace,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

RerouteProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1393-L1421

func NewRerouteProcessor ¶

func NewRerouteProcessor() *RerouteProcessor

NewRerouteProcessor returns a RerouteProcessor.

func (*RerouteProcessor) RerouteProcessorCaster ¶

func (s *RerouteProcessor) RerouteProcessorCaster() *RerouteProcessor

func (*RerouteProcessor) UnmarshalJSON ¶

func (s *RerouteProcessor) UnmarshalJSON(data []byte) error

type RerouteProcessorVariant ¶

type RerouteProcessorVariant interface {
	RerouteProcessorCaster() *RerouteProcessor
}

type Rescore ¶

type Rescore struct {
	AdditionalRescoreProperty map[string]json.RawMessage `json:"-"`
	LearningToRank            *LearningToRank            `json:"learning_to_rank,omitempty"`
	Query                     *RescoreQuery              `json:"query,omitempty"`
	WindowSize                *int                       `json:"window_size,omitempty"`
}

Rescore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/rescoring.ts#L25-L38

func NewRescore ¶

func NewRescore() *Rescore

NewRescore returns a Rescore.

func (Rescore) MarshalJSON ¶

func (s Rescore) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*Rescore) RescoreCaster ¶

func (s *Rescore) RescoreCaster() *Rescore

func (*Rescore) UnmarshalJSON ¶

func (s *Rescore) UnmarshalJSON(data []byte) error

type RescoreQuery ¶

type RescoreQuery struct {
	// Query The query to use for rescoring.
	// This query is only run on the Top-K results returned by the `query` and
	// `post_filter` phases.
	Query Query `json:"rescore_query"`
	// QueryWeight Relative importance of the original query versus the rescore query.
	QueryWeight *Float64 `json:"query_weight,omitempty"`
	// RescoreQueryWeight Relative importance of the rescore query versus the original query.
	RescoreQueryWeight *Float64 `json:"rescore_query_weight,omitempty"`
	// ScoreMode Determines how scores are combined.
	ScoreMode *scoremode.ScoreMode `json:"score_mode,omitempty"`
}

RescoreQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/rescoring.ts#L40-L62

func NewRescoreQuery ¶

func NewRescoreQuery() *RescoreQuery

NewRescoreQuery returns a RescoreQuery.

func (*RescoreQuery) RescoreQueryCaster ¶

func (s *RescoreQuery) RescoreQueryCaster() *RescoreQuery

func (*RescoreQuery) UnmarshalJSON ¶

func (s *RescoreQuery) UnmarshalJSON(data []byte) error

type RescoreQueryVariant ¶

type RescoreQueryVariant interface {
	RescoreQueryCaster() *RescoreQuery
}

type RescoreVariant ¶

type RescoreVariant interface {
	RescoreCaster() *Rescore
}

type RescoreVector ¶

type RescoreVector struct {
	// Oversample Applies the specified oversample factor to k on the approximate kNN search
	Oversample float32 `json:"oversample"`
}

RescoreVector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Knn.ts#L30-L33

func NewRescoreVector ¶

func NewRescoreVector() *RescoreVector

NewRescoreVector returns a RescoreVector.

func (*RescoreVector) RescoreVectorCaster ¶

func (s *RescoreVector) RescoreVectorCaster() *RescoreVector

func (*RescoreVector) UnmarshalJSON ¶

func (s *RescoreVector) UnmarshalJSON(data []byte) error

type RescoreVectorVariant ¶

type RescoreVectorVariant interface {
	RescoreVectorCaster() *RescoreVector
}

type RescorerRetriever ¶ added in v9.0.1

type RescorerRetriever struct {
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_   *string   `json:"_name,omitempty"`
	Rescore []Rescore `json:"rescore"`
	// Retriever Inner retriever.
	Retriever RetrieverContainer `json:"retriever"`
}

RescorerRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L62-L66

func NewRescorerRetriever ¶ added in v9.0.1

func NewRescorerRetriever() *RescorerRetriever

NewRescorerRetriever returns a RescorerRetriever.

func (*RescorerRetriever) RescorerRetrieverCaster ¶ added in v9.0.1

func (s *RescorerRetriever) RescorerRetrieverCaster() *RescorerRetriever

func (*RescorerRetriever) UnmarshalJSON ¶ added in v9.0.1

func (s *RescorerRetriever) UnmarshalJSON(data []byte) error

type RescorerRetrieverVariant ¶ added in v9.0.1

type RescorerRetrieverVariant interface {
	RescorerRetrieverCaster() *RescorerRetriever
}

type ReservedSize ¶

type ReservedSize struct {
	NodeId string   `json:"node_id"`
	Path   string   `json:"path"`
	Shards []string `json:"shards"`
	Total  int64    `json:"total"`
}

ReservedSize type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L72-L77

func NewReservedSize ¶

func NewReservedSize() *ReservedSize

NewReservedSize returns a ReservedSize.

func (*ReservedSize) UnmarshalJSON ¶

func (s *ReservedSize) UnmarshalJSON(data []byte) error

type ResolveClusterInfo ¶

type ResolveClusterInfo struct {
	// Connected Whether the remote cluster is connected to the local (querying) cluster.
	Connected bool `json:"connected"`
	// Error Provides error messages that are likely to occur if you do a search with this
	// index expression
	// on the specified cluster (for example, lack of security privileges to query
	// an index).
	Error *string `json:"error,omitempty"`
	// MatchingIndices Whether the index expression provided in the request matches any indices,
	// aliases or data streams
	// on the cluster.
	MatchingIndices *bool `json:"matching_indices,omitempty"`
	// SkipUnavailable The `skip_unavailable` setting for a remote cluster.
	SkipUnavailable bool `json:"skip_unavailable"`
	// Version Provides version information about the cluster.
	Version *ElasticsearchVersionMinInfo `json:"version,omitempty"`
}

ResolveClusterInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55

func NewResolveClusterInfo ¶

func NewResolveClusterInfo() *ResolveClusterInfo

NewResolveClusterInfo returns a ResolveClusterInfo.

func (*ResolveClusterInfo) UnmarshalJSON ¶

func (s *ResolveClusterInfo) UnmarshalJSON(data []byte) error

type ResolveIndexAliasItem ¶

type ResolveIndexAliasItem struct {
	Indices []string `json:"indices"`
	Name    string   `json:"name"`
}

ResolveIndexAliasItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40

func NewResolveIndexAliasItem ¶

func NewResolveIndexAliasItem() *ResolveIndexAliasItem

NewResolveIndexAliasItem returns a ResolveIndexAliasItem.

func (*ResolveIndexAliasItem) UnmarshalJSON ¶

func (s *ResolveIndexAliasItem) UnmarshalJSON(data []byte) error

type ResolveIndexDataStreamsItem ¶

type ResolveIndexDataStreamsItem struct {
	BackingIndices []string `json:"backing_indices"`
	Name           string   `json:"name"`
	TimestampField string   `json:"timestamp_field"`
}

ResolveIndexDataStreamsItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46

func NewResolveIndexDataStreamsItem ¶

func NewResolveIndexDataStreamsItem() *ResolveIndexDataStreamsItem

NewResolveIndexDataStreamsItem returns a ResolveIndexDataStreamsItem.

func (*ResolveIndexDataStreamsItem) UnmarshalJSON ¶

func (s *ResolveIndexDataStreamsItem) UnmarshalJSON(data []byte) error

type ResolveIndexItem ¶

type ResolveIndexItem struct {
	Aliases    []string `json:"aliases,omitempty"`
	Attributes []string `json:"attributes"`
	DataStream *string  `json:"data_stream,omitempty"`
	Name       string   `json:"name"`
}

ResolveIndexItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35

func NewResolveIndexItem ¶

func NewResolveIndexItem() *ResolveIndexItem

NewResolveIndexItem returns a ResolveIndexItem.

func (*ResolveIndexItem) UnmarshalJSON ¶

func (s *ResolveIndexItem) UnmarshalJSON(data []byte) error

type ResponseItem ¶

type ResponseItem struct {
	// Error Additional information about the failed operation.
	// The property is returned only for failed operations.
	Error         *ErrorCause                            `json:"error,omitempty"`
	FailureStore  *failurestorestatus.FailureStoreStatus `json:"failure_store,omitempty"`
	ForcedRefresh *bool                                  `json:"forced_refresh,omitempty"`
	Get           *InlineGetDictUserDefined              `json:"get,omitempty"`
	// Id_ The document ID associated with the operation.
	Id_ *string `json:"_id,omitempty"`
	// Index_ The name of the index associated with the operation.
	// If the operation targeted a data stream, this is the backing index into which
	// the document was written.
	Index_ string `json:"_index"`
	// PrimaryTerm_ The primary term assigned to the document for the operation.
	// This property is returned only for successful operations.
	PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
	// Result The result of the operation.
	// Successful values are `created`, `deleted`, and `updated`.
	Result *string `json:"result,omitempty"`
	// SeqNo_ The sequence number assigned to the document for the operation.
	// Sequence numbers are used to ensure an older version of a document doesn't
	// overwrite a newer version.
	SeqNo_ *int64 `json:"_seq_no,omitempty"`
	// Shards_ Shard information for the operation.
	Shards_ *ShardStatistics `json:"_shards,omitempty"`
	// Status The HTTP status code returned for the operation.
	Status int `json:"status"`
	// Version_ The document version associated with the operation.
	// The document version is incremented each time the document is updated.
	// This property is returned only for successful actions.
	Version_ *int64 `json:"_version,omitempty"`
}

ResponseItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L37-L84

func NewResponseItem ¶

func NewResponseItem() *ResponseItem

NewResponseItem returns a ResponseItem.

func (*ResponseItem) UnmarshalJSON ¶

func (s *ResponseItem) UnmarshalJSON(data []byte) error

type Restriction ¶

type Restriction struct {
	// Workflows A list of workflows to which the API key is restricted.
	// NOTE: In order to use a role restriction, an API key must be created with a
	// single role descriptor.
	Workflows []restrictionworkflow.RestrictionWorkflow `json:"workflows"`
}

Restriction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleDescriptor.ts#L135-L141

func NewRestriction ¶

func NewRestriction() *Restriction

NewRestriction returns a Restriction.

func (*Restriction) RestrictionCaster ¶

func (s *Restriction) RestrictionCaster() *Restriction

type RestrictionVariant ¶

type RestrictionVariant interface {
	RestrictionCaster() *Restriction
}

type Retention ¶

type Retention struct {
	// ExpireAfter Time period after which a snapshot is considered expired and eligible for
	// deletion. SLM deletes expired snapshots based on the slm.retention_schedule.
	ExpireAfter Duration `json:"expire_after"`
	// MaxCount Maximum number of snapshots to retain, even if the snapshots have not yet
	// expired. If the number of snapshots in the repository exceeds this limit, the
	// policy retains the most recent snapshots and deletes older snapshots.
	MaxCount int `json:"max_count"`
	// MinCount Minimum number of snapshots to retain, even if the snapshots have expired.
	MinCount int `json:"min_count"`
}

Retention type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L94-L107

func NewRetention ¶

func NewRetention() *Retention

NewRetention returns a Retention.

func (*Retention) RetentionCaster ¶

func (s *Retention) RetentionCaster() *Retention

func (*Retention) UnmarshalJSON ¶

func (s *Retention) UnmarshalJSON(data []byte) error

type RetentionLease ¶

type RetentionLease struct {
	Period Duration `json:"period"`
}

RetentionLease type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L66-L68

func NewRetentionLease ¶

func NewRetentionLease() *RetentionLease

NewRetentionLease returns a RetentionLease.

func (*RetentionLease) RetentionLeaseCaster ¶

func (s *RetentionLease) RetentionLeaseCaster() *RetentionLease

func (*RetentionLease) UnmarshalJSON ¶

func (s *RetentionLease) UnmarshalJSON(data []byte) error

type RetentionLeaseVariant ¶

type RetentionLeaseVariant interface {
	RetentionLeaseCaster() *RetentionLease
}

type RetentionPolicy ¶

type RetentionPolicy struct {
	// Field The date field that is used to calculate the age of the document.
	Field string `json:"field"`
	// MaxAge Specifies the maximum age of a document in the destination index. Documents
	// that are older than the configured
	// value are removed from the destination index.
	MaxAge Duration `json:"max_age"`
}

RetentionPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L88-L96

func NewRetentionPolicy ¶

func NewRetentionPolicy() *RetentionPolicy

NewRetentionPolicy returns a RetentionPolicy.

func (*RetentionPolicy) RetentionPolicyCaster ¶

func (s *RetentionPolicy) RetentionPolicyCaster() *RetentionPolicy

func (*RetentionPolicy) UnmarshalJSON ¶

func (s *RetentionPolicy) UnmarshalJSON(data []byte) error

type RetentionPolicyContainer ¶

type RetentionPolicyContainer struct {
	AdditionalRetentionPolicyContainerProperty map[string]json.RawMessage `json:"-"`
	// Time Specifies that the transform uses a time field to set the retention policy.
	Time *RetentionPolicy `json:"time,omitempty"`
}

RetentionPolicyContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L80-L86

func NewRetentionPolicyContainer ¶

func NewRetentionPolicyContainer() *RetentionPolicyContainer

NewRetentionPolicyContainer returns a RetentionPolicyContainer.

func (RetentionPolicyContainer) MarshalJSON ¶

func (s RetentionPolicyContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RetentionPolicyContainer) RetentionPolicyContainerCaster ¶

func (s *RetentionPolicyContainer) RetentionPolicyContainerCaster() *RetentionPolicyContainer

type RetentionPolicyContainerVariant ¶

type RetentionPolicyContainerVariant interface {
	RetentionPolicyContainerCaster() *RetentionPolicyContainer
}

type RetentionPolicyVariant ¶

type RetentionPolicyVariant interface {
	RetentionPolicyCaster() *RetentionPolicy
}

type RetentionVariant ¶

type RetentionVariant interface {
	RetentionCaster() *Retention
}

type Retries ¶

type Retries struct {
	// Bulk The number of bulk actions retried.
	Bulk int64 `json:"bulk"`
	// Search The number of search actions retried.
	Search int64 `json:"search"`
}

Retries type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retries.ts#L22-L31

func NewRetries ¶

func NewRetries() *Retries

NewRetries returns a Retries.

func (*Retries) UnmarshalJSON ¶

func (s *Retries) UnmarshalJSON(data []byte) error

type RetrieverContainer ¶

type RetrieverContainer struct {
	AdditionalRetrieverContainerProperty map[string]json.RawMessage `json:"-"`
	// Knn A retriever that replaces the functionality  of a knn search.
	Knn *KnnRetriever `json:"knn,omitempty"`
	// Linear A retriever that supports the combination of different retrievers through a
	// weighted linear combination.
	Linear *LinearRetriever `json:"linear,omitempty"`
	// Pinned A pinned retriever applies pinned documents to the underlying retriever.
	// This retriever will rewrite to a PinnedQueryBuilder.
	Pinned *PinnedRetriever `json:"pinned,omitempty"`
	// Rescorer A retriever that re-scores only the results produced by its child retriever.
	Rescorer *RescorerRetriever `json:"rescorer,omitempty"`
	// Rrf A retriever that produces top documents from reciprocal rank fusion (RRF).
	Rrf *RRFRetriever `json:"rrf,omitempty"`
	// Rule A retriever that replaces the functionality of a rule query.
	Rule *RuleRetriever `json:"rule,omitempty"`
	// Standard A retriever that replaces the functionality of a traditional query.
	Standard *StandardRetriever `json:"standard,omitempty"`
	// TextSimilarityReranker A retriever that reranks the top documents based on a reranking model using
	// the InferenceAPI
	TextSimilarityReranker *TextSimilarityReranker `json:"text_similarity_reranker,omitempty"`
}

RetrieverContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L28-L51

func NewRetrieverContainer ¶

func NewRetrieverContainer() *RetrieverContainer

NewRetrieverContainer returns a RetrieverContainer.

func (RetrieverContainer) MarshalJSON ¶

func (s RetrieverContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RetrieverContainer) RetrieverContainerCaster ¶

func (s *RetrieverContainer) RetrieverContainerCaster() *RetrieverContainer

type RetrieverContainerVariant ¶

type RetrieverContainerVariant interface {
	RetrieverContainerCaster() *RetrieverContainer
}

type ReverseNestedAggregate ¶

type ReverseNestedAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

ReverseNestedAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L540-L544

func NewReverseNestedAggregate ¶

func NewReverseNestedAggregate() *ReverseNestedAggregate

NewReverseNestedAggregate returns a ReverseNestedAggregate.

func (ReverseNestedAggregate) MarshalJSON ¶

func (s ReverseNestedAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ReverseNestedAggregate) UnmarshalJSON ¶

func (s *ReverseNestedAggregate) UnmarshalJSON(data []byte) error

type ReverseNestedAggregation ¶

type ReverseNestedAggregation struct {
	// Path Defines the nested object field that should be joined back to.
	// The default is empty, which means that it joins back to the root/main
	// document level.
	Path *string `json:"path,omitempty"`
}

ReverseNestedAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L741-L747

func NewReverseNestedAggregation ¶

func NewReverseNestedAggregation() *ReverseNestedAggregation

NewReverseNestedAggregation returns a ReverseNestedAggregation.

func (*ReverseNestedAggregation) ReverseNestedAggregationCaster ¶

func (s *ReverseNestedAggregation) ReverseNestedAggregationCaster() *ReverseNestedAggregation

func (*ReverseNestedAggregation) UnmarshalJSON ¶

func (s *ReverseNestedAggregation) UnmarshalJSON(data []byte) error

type ReverseNestedAggregationVariant ¶

type ReverseNestedAggregationVariant interface {
	ReverseNestedAggregationCaster() *ReverseNestedAggregation
}

type ReverseTokenFilter ¶

type ReverseTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ReverseTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L407-L409

func NewReverseTokenFilter ¶

func NewReverseTokenFilter() *ReverseTokenFilter

NewReverseTokenFilter returns a ReverseTokenFilter.

func (ReverseTokenFilter) MarshalJSON ¶

func (s ReverseTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ReverseTokenFilter) ReverseTokenFilterCaster ¶

func (s *ReverseTokenFilter) ReverseTokenFilterCaster() *ReverseTokenFilter

func (*ReverseTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ReverseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ReverseTokenFilter) UnmarshalJSON ¶

func (s *ReverseTokenFilter) UnmarshalJSON(data []byte) error

type ReverseTokenFilterVariant ¶

type ReverseTokenFilterVariant interface {
	ReverseTokenFilterCaster() *ReverseTokenFilter
}

type Role ¶

type Role struct {
	Applications      []ApplicationPrivileges                   `json:"applications"`
	Cluster           []clusterprivilege.ClusterPrivilege       `json:"cluster"`
	Description       *string                                   `json:"description,omitempty"`
	Global            map[string]map[string]map[string][]string `json:"global,omitempty"`
	Indices           []IndicesPrivileges                       `json:"indices"`
	Metadata          Metadata                                  `json:"metadata"`
	RemoteCluster     []RemoteClusterPrivileges                 `json:"remote_cluster,omitempty"`
	RemoteIndices     []RemoteIndicesPrivileges                 `json:"remote_indices,omitempty"`
	RoleTemplates     []RoleTemplate                            `json:"role_templates,omitempty"`
	RunAs             []string                                  `json:"run_as,omitempty"`
	TransientMetadata map[string]json.RawMessage                `json:"transient_metadata,omitempty"`
}

Role type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_role/types.ts#L32-L54

func NewRole ¶

func NewRole() *Role

NewRole returns a Role.

func (*Role) UnmarshalJSON ¶

func (s *Role) UnmarshalJSON(data []byte) error

type RoleDescriptor ¶

type RoleDescriptor struct {
	// Applications A list of application privilege entries
	Applications []ApplicationPrivileges `json:"applications,omitempty"`
	// Cluster A list of cluster privileges. These privileges define the cluster level
	// actions that API keys are able to execute.
	Cluster []clusterprivilege.ClusterPrivilege `json:"cluster,omitempty"`
	// Description Optional description of the role descriptor
	Description *string `json:"description,omitempty"`
	// Global An object defining global privileges. A global privilege is a form of cluster
	// privilege that is request-aware. Support for global privileges is currently
	// limited to the management of application privileges.
	Global []GlobalPrivilege `json:"global,omitempty"`
	// Indices A list of indices permissions entries.
	Indices []IndicesPrivileges `json:"indices,omitempty"`
	// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are
	// reserved for system usage.
	Metadata Metadata `json:"metadata,omitempty"`
	// RemoteCluster A list of cluster permissions for remote clusters.
	// NOTE: This is limited a subset of the cluster permissions.
	RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`
	// RemoteIndices A list of indices permissions for remote clusters.
	RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`
	// Restriction Restriction for when the role descriptor is allowed to be effective.
	Restriction *Restriction `json:"restriction,omitempty"`
	// RunAs A list of users that the API keys can impersonate.
	// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled.
	// For API compatibility, you can still specify an empty `run_as` field, but a
	// non-empty list will be rejected.
	RunAs             []string                   `json:"run_as,omitempty"`
	TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`
}

RoleDescriptor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleDescriptor.ts#L33-L83

func NewRoleDescriptor ¶

func NewRoleDescriptor() *RoleDescriptor

NewRoleDescriptor returns a RoleDescriptor.

func (*RoleDescriptor) RoleDescriptorCaster ¶

func (s *RoleDescriptor) RoleDescriptorCaster() *RoleDescriptor

func (*RoleDescriptor) UnmarshalJSON ¶

func (s *RoleDescriptor) UnmarshalJSON(data []byte) error

type RoleDescriptorRead ¶

type RoleDescriptorRead struct {
	// Applications A list of application privilege entries
	Applications []ApplicationPrivileges `json:"applications,omitempty"`
	// Cluster A list of cluster privileges. These privileges define the cluster level
	// actions that API keys are able to execute.
	Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"`
	// Description An optional description of the role descriptor.
	Description *string `json:"description,omitempty"`
	// Global An object defining global privileges. A global privilege is a form of cluster
	// privilege that is request-aware. Support for global privileges is currently
	// limited to the management of application privileges.
	Global []GlobalPrivilege `json:"global,omitempty"`
	// Indices A list of indices permissions entries.
	Indices []IndicesPrivileges `json:"indices"`
	// Metadata Optional meta-data. Within the metadata object, keys that begin with `_` are
	// reserved for system usage.
	Metadata Metadata `json:"metadata,omitempty"`
	// RemoteCluster A list of cluster permissions for remote clusters.
	// NOTE: This is limited a subset of the cluster permissions.
	RemoteCluster []RemoteClusterPrivileges `json:"remote_cluster,omitempty"`
	// RemoteIndices A list of indices permissions for remote clusters.
	RemoteIndices []RemoteIndicesPrivileges `json:"remote_indices,omitempty"`
	// Restriction A restriction for when the role descriptor is allowed to be effective.
	Restriction *Restriction `json:"restriction,omitempty"`
	// RunAs A list of users that the API keys can impersonate.
	RunAs             []string                   `json:"run_as,omitempty"`
	TransientMetadata map[string]json.RawMessage `json:"transient_metadata,omitempty"`
}

RoleDescriptorRead type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleDescriptor.ts#L85-L133

func NewRoleDescriptorRead ¶

func NewRoleDescriptorRead() *RoleDescriptorRead

NewRoleDescriptorRead returns a RoleDescriptorRead.

func (*RoleDescriptorRead) UnmarshalJSON ¶

func (s *RoleDescriptorRead) UnmarshalJSON(data []byte) error

type RoleDescriptorVariant ¶

type RoleDescriptorVariant interface {
	RoleDescriptorCaster() *RoleDescriptor
}

type RoleDescriptorWrapper ¶

type RoleDescriptorWrapper struct {
	RoleDescriptor RoleDescriptorRead `json:"role_descriptor"`
}

RoleDescriptorWrapper type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_service_accounts/types.ts#L22-L24

func NewRoleDescriptorWrapper ¶

func NewRoleDescriptorWrapper() *RoleDescriptorWrapper

NewRoleDescriptorWrapper returns a RoleDescriptorWrapper.

type RoleMappingRule ¶

type RoleMappingRule struct {
	AdditionalRoleMappingRuleProperty map[string]json.RawMessage `json:"-"`
	All                               []RoleMappingRule          `json:"all,omitempty"`
	Any                               []RoleMappingRule          `json:"any,omitempty"`
	Except                            *RoleMappingRule           `json:"except,omitempty"`
	Field                             map[string][]FieldValue    `json:"field,omitempty"`
}

RoleMappingRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleMappingRule.ts#L23-L31

func NewRoleMappingRule ¶

func NewRoleMappingRule() *RoleMappingRule

NewRoleMappingRule returns a RoleMappingRule.

func (RoleMappingRule) MarshalJSON ¶

func (s RoleMappingRule) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RoleMappingRule) RoleMappingRuleCaster ¶

func (s *RoleMappingRule) RoleMappingRuleCaster() *RoleMappingRule

type RoleMappingRuleVariant ¶

type RoleMappingRuleVariant interface {
	RoleMappingRuleCaster() *RoleMappingRule
}

type RoleQueryContainer ¶

type RoleQueryContainer struct {
	AdditionalRoleQueryContainerProperty map[string]json.RawMessage `json:"-"`
	// Bool matches roles matching boolean combinations of other queries.
	Bool *BoolQuery `json:"bool,omitempty"`
	// Exists Returns roles that contain an indexed value for a field.
	Exists *ExistsQuery `json:"exists,omitempty"`
	// Ids Returns roles based on their IDs.
	// This query uses role document IDs stored in the `_id` field.
	Ids *IdsQuery `json:"ids,omitempty"`
	// Match Returns roles that match a provided text, number, date or boolean value.
	// The provided text is analyzed before matching.
	Match map[string]MatchQuery `json:"match,omitempty"`
	// MatchAll Matches all roles, giving them all a `_score` of 1.0.
	MatchAll *MatchAllQuery `json:"match_all,omitempty"`
	// Prefix Returns roles that contain a specific prefix in a provided field.
	Prefix map[string]PrefixQuery `json:"prefix,omitempty"`
	// Range Returns roles that contain terms within a provided range.
	Range map[string]RangeQuery `json:"range,omitempty"`
	// SimpleQueryString Returns roles based on a provided query string, using a parser with a limited
	// but fault-tolerant syntax.
	SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`
	// Term Returns roles that contain an exact term in a provided field.
	// To return a document, the query term must exactly match the queried field's
	// value, including whitespace and capitalization.
	Term map[string]TermQuery `json:"term,omitempty"`
	// Terms Returns roles that contain one or more exact terms in a provided field.
	// To return a document, one or more terms must exactly match a field value,
	// including whitespace and capitalization.
	Terms *TermsQuery `json:"terms,omitempty"`
	// Wildcard Returns roles that contain terms matching a wildcard pattern.
	Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`
}

RoleQueryContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_role/types.ts#L37-L101

func NewRoleQueryContainer ¶

func NewRoleQueryContainer() *RoleQueryContainer

NewRoleQueryContainer returns a RoleQueryContainer.

func (RoleQueryContainer) MarshalJSON ¶

func (s RoleQueryContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*RoleQueryContainer) RoleQueryContainerCaster ¶

func (s *RoleQueryContainer) RoleQueryContainerCaster() *RoleQueryContainer

func (*RoleQueryContainer) UnmarshalJSON ¶

func (s *RoleQueryContainer) UnmarshalJSON(data []byte) error

type RoleQueryContainerVariant ¶

type RoleQueryContainerVariant interface {
	RoleQueryContainerCaster() *RoleQueryContainer
}

type RoleTemplate ¶

type RoleTemplate struct {
	Format   *templateformat.TemplateFormat `json:"format,omitempty"`
	Template Script                         `json:"template"`
}

RoleTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleTemplate.ts#L28-L31

func NewRoleTemplate ¶

func NewRoleTemplate() *RoleTemplate

NewRoleTemplate returns a RoleTemplate.

func (*RoleTemplate) RoleTemplateCaster ¶

func (s *RoleTemplate) RoleTemplateCaster() *RoleTemplate

type RoleTemplateInlineQueryVariant ¶

type RoleTemplateInlineQueryVariant interface {
	RoleTemplateInlineQueryCaster() *RoleTemplateInlineQuery
}

type RoleTemplateQuery ¶

type RoleTemplateQuery struct {
	// Template When you create a role, you can specify a query that defines the document
	// level security permissions. You can optionally
	// use Mustache templates in the role query to insert the username of the
	// current authenticated user into the role.
	// Like other places in Elasticsearch that support templating or scripting, you
	// can specify inline, stored, or file-based
	// templates and define custom parameters. You access the details for the
	// current authenticated user through the _user parameter.
	Template *RoleTemplateScript `json:"template,omitempty"`
}

RoleTemplateQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L353-L363

func NewRoleTemplateQuery ¶

func NewRoleTemplateQuery() *RoleTemplateQuery

NewRoleTemplateQuery returns a RoleTemplateQuery.

func (*RoleTemplateQuery) IndicesPrivilegesQueryCaster ¶ added in v9.0.1

func (s *RoleTemplateQuery) IndicesPrivilegesQueryCaster() *IndicesPrivilegesQuery

func (*RoleTemplateQuery) RoleTemplateQueryCaster ¶

func (s *RoleTemplateQuery) RoleTemplateQueryCaster() *RoleTemplateQuery

type RoleTemplateQueryVariant ¶

type RoleTemplateQueryVariant interface {
	RoleTemplateQueryCaster() *RoleTemplateQuery
}

type RoleTemplateScript ¶

type RoleTemplateScript struct {
	// Id The `id` for a stored script.
	Id *string `json:"id,omitempty"`
	// Lang Specifies the language the script is written in.
	Lang    *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
	Options map[string]string              `json:"options,omitempty"`
	// Params Specifies any named parameters that are passed into the script as variables.
	// Use parameters instead of hard-coded values to decrease compile time.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	Source RoleTemplateInlineQuery    `json:"source,omitempty"`
}

RoleTemplateScript type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L365-L383

func NewRoleTemplateScript ¶

func NewRoleTemplateScript() *RoleTemplateScript

NewRoleTemplateScript returns a RoleTemplateScript.

func (*RoleTemplateScript) RoleTemplateScriptCaster ¶

func (s *RoleTemplateScript) RoleTemplateScriptCaster() *RoleTemplateScript

func (*RoleTemplateScript) UnmarshalJSON ¶

func (s *RoleTemplateScript) UnmarshalJSON(data []byte) error

type RoleTemplateScriptVariant ¶

type RoleTemplateScriptVariant interface {
	RoleTemplateScriptCaster() *RoleTemplateScript
}

type RoleTemplateVariant ¶

type RoleTemplateVariant interface {
	RoleTemplateCaster() *RoleTemplate
}

type RolloverAction ¶

type RolloverAction struct {
	MaxAge              Duration `json:"max_age,omitempty"`
	MaxDocs             *int64   `json:"max_docs,omitempty"`
	MaxPrimaryShardDocs *int64   `json:"max_primary_shard_docs,omitempty"`
	MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"`
	MaxSize             ByteSize `json:"max_size,omitempty"`
	MinAge              Duration `json:"min_age,omitempty"`
	MinDocs             *int64   `json:"min_docs,omitempty"`
	MinPrimaryShardDocs *int64   `json:"min_primary_shard_docs,omitempty"`
	MinPrimaryShardSize ByteSize `json:"min_primary_shard_size,omitempty"`
	MinSize             ByteSize `json:"min_size,omitempty"`
}

RolloverAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L99-L110

func NewRolloverAction ¶

func NewRolloverAction() *RolloverAction

NewRolloverAction returns a RolloverAction.

func (*RolloverAction) RolloverActionCaster ¶

func (s *RolloverAction) RolloverActionCaster() *RolloverAction

func (*RolloverAction) UnmarshalJSON ¶

func (s *RolloverAction) UnmarshalJSON(data []byte) error

type RolloverActionVariant ¶

type RolloverActionVariant interface {
	RolloverActionCaster() *RolloverAction
}

type RolloverConditions ¶

type RolloverConditions struct {
	MaxAge                   Duration `json:"max_age,omitempty"`
	MaxAgeMillis             *int64   `json:"max_age_millis,omitempty"`
	MaxDocs                  *int64   `json:"max_docs,omitempty"`
	MaxPrimaryShardDocs      *int64   `json:"max_primary_shard_docs,omitempty"`
	MaxPrimaryShardSize      ByteSize `json:"max_primary_shard_size,omitempty"`
	MaxPrimaryShardSizeBytes *int64   `json:"max_primary_shard_size_bytes,omitempty"`
	MaxSize                  ByteSize `json:"max_size,omitempty"`
	MaxSizeBytes             *int64   `json:"max_size_bytes,omitempty"`
	MinAge                   Duration `json:"min_age,omitempty"`
	MinDocs                  *int64   `json:"min_docs,omitempty"`
	MinPrimaryShardDocs      *int64   `json:"min_primary_shard_docs,omitempty"`
	MinPrimaryShardSize      ByteSize `json:"min_primary_shard_size,omitempty"`
	MinPrimaryShardSizeBytes *int64   `json:"min_primary_shard_size_bytes,omitempty"`
	MinSize                  ByteSize `json:"min_size,omitempty"`
	MinSizeBytes             *int64   `json:"min_size_bytes,omitempty"`
}

RolloverConditions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/rollover/types.ts#L24-L40

func NewRolloverConditions ¶

func NewRolloverConditions() *RolloverConditions

NewRolloverConditions returns a RolloverConditions.

func (*RolloverConditions) RolloverConditionsCaster ¶

func (s *RolloverConditions) RolloverConditionsCaster() *RolloverConditions

func (*RolloverConditions) UnmarshalJSON ¶

func (s *RolloverConditions) UnmarshalJSON(data []byte) error

type RolloverConditionsVariant ¶

type RolloverConditionsVariant interface {
	RolloverConditionsCaster() *RolloverConditions
}

type RollupCapabilities ¶

type RollupCapabilities struct {
	// RollupJobs There can be multiple, independent jobs configured for a single index or
	// index pattern. Each of these jobs may have different configurations, so the
	// API returns a list of all the various configurations available.
	RollupJobs []RollupCapabilitySummary `json:"rollup_jobs"`
}

RollupCapabilities type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_caps/types.ts#L24-L29

func NewRollupCapabilities ¶

func NewRollupCapabilities() *RollupCapabilities

NewRollupCapabilities returns a RollupCapabilities.

type RollupCapabilitySummary ¶

type RollupCapabilitySummary struct {
	Fields       map[string][]RollupFieldSummary `json:"fields"`
	IndexPattern string                          `json:"index_pattern"`
	JobId        string                          `json:"job_id"`
	RollupIndex  string                          `json:"rollup_index"`
}

RollupCapabilitySummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_caps/types.ts#L31-L36

func NewRollupCapabilitySummary ¶

func NewRollupCapabilitySummary() *RollupCapabilitySummary

NewRollupCapabilitySummary returns a RollupCapabilitySummary.

func (*RollupCapabilitySummary) UnmarshalJSON ¶

func (s *RollupCapabilitySummary) UnmarshalJSON(data []byte) error

type RollupFieldSummary ¶

type RollupFieldSummary struct {
	Agg              string   `json:"agg"`
	CalendarInterval Duration `json:"calendar_interval,omitempty"`
	TimeZone         *string  `json:"time_zone,omitempty"`
}

RollupFieldSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_caps/types.ts#L38-L42

func NewRollupFieldSummary ¶

func NewRollupFieldSummary() *RollupFieldSummary

NewRollupFieldSummary returns a RollupFieldSummary.

func (*RollupFieldSummary) UnmarshalJSON ¶

func (s *RollupFieldSummary) UnmarshalJSON(data []byte) error

type RollupJob ¶

type RollupJob struct {
	// Config The rollup job configuration.
	Config RollupJobConfiguration `json:"config"`
	// Stats Transient statistics about the rollup job, such as how many documents have
	// been processed and how many rollup summary docs have been indexed.
	// These stats are not persisted.
	// If a node is restarted, these stats are reset.
	Stats RollupJobStats `json:"stats"`
	// Status The current status of the indexer for the rollup job.
	Status RollupJobStatus `json:"status"`
}

RollupJob type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_jobs/types.ts#L28-L43

func NewRollupJob ¶

func NewRollupJob() *RollupJob

NewRollupJob returns a RollupJob.

type RollupJobConfiguration ¶

type RollupJobConfiguration struct {
	Cron         string        `json:"cron"`
	Groups       Groupings     `json:"groups"`
	Id           string        `json:"id"`
	IndexPattern string        `json:"index_pattern"`
	Metrics      []FieldMetric `json:"metrics"`
	PageSize     int64         `json:"page_size"`
	RollupIndex  string        `json:"rollup_index"`
	Timeout      Duration      `json:"timeout"`
}

RollupJobConfiguration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_jobs/types.ts#L45-L54

func NewRollupJobConfiguration ¶

func NewRollupJobConfiguration() *RollupJobConfiguration

NewRollupJobConfiguration returns a RollupJobConfiguration.

func (*RollupJobConfiguration) UnmarshalJSON ¶

func (s *RollupJobConfiguration) UnmarshalJSON(data []byte) error

type RollupJobStats ¶

type RollupJobStats struct {
	DocumentsProcessed int64 `json:"documents_processed"`
	IndexFailures      int64 `json:"index_failures"`
	IndexTimeInMs      int64 `json:"index_time_in_ms"`
	IndexTotal         int64 `json:"index_total"`
	PagesProcessed     int64 `json:"pages_processed"`
	ProcessingTimeInMs int64 `json:"processing_time_in_ms"`
	ProcessingTotal    int64 `json:"processing_total"`
	RollupsIndexed     int64 `json:"rollups_indexed"`
	SearchFailures     int64 `json:"search_failures"`
	SearchTimeInMs     int64 `json:"search_time_in_ms"`
	SearchTotal        int64 `json:"search_total"`
	TriggerCount       int64 `json:"trigger_count"`
}

RollupJobStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_jobs/types.ts#L56-L69

func NewRollupJobStats ¶

func NewRollupJobStats() *RollupJobStats

NewRollupJobStats returns a RollupJobStats.

func (*RollupJobStats) UnmarshalJSON ¶

func (s *RollupJobStats) UnmarshalJSON(data []byte) error

type RollupJobStatus ¶

type RollupJobStatus struct {
	CurrentPosition map[string]json.RawMessage        `json:"current_position,omitempty"`
	JobState        indexingjobstate.IndexingJobState `json:"job_state"`
	UpgradedDocId   *bool                             `json:"upgraded_doc_id,omitempty"`
}

RollupJobStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_jobs/types.ts#L71-L75

func NewRollupJobStatus ¶

func NewRollupJobStatus() *RollupJobStatus

NewRollupJobStatus returns a RollupJobStatus.

func (*RollupJobStatus) UnmarshalJSON ¶

func (s *RollupJobStatus) UnmarshalJSON(data []byte) error

type RollupJobSummary ¶

type RollupJobSummary struct {
	Fields       map[string][]RollupJobSummaryField `json:"fields"`
	IndexPattern string                             `json:"index_pattern"`
	JobId        string                             `json:"job_id"`
	RollupIndex  string                             `json:"rollup_index"`
}

RollupJobSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_index_caps/types.ts#L28-L33

func NewRollupJobSummary ¶

func NewRollupJobSummary() *RollupJobSummary

NewRollupJobSummary returns a RollupJobSummary.

func (*RollupJobSummary) UnmarshalJSON ¶

func (s *RollupJobSummary) UnmarshalJSON(data []byte) error

type RollupJobSummaryField ¶

type RollupJobSummaryField struct {
	Agg              string   `json:"agg"`
	CalendarInterval Duration `json:"calendar_interval,omitempty"`
	TimeZone         *string  `json:"time_zone,omitempty"`
}

RollupJobSummaryField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/get_rollup_index_caps/types.ts#L35-L39

func NewRollupJobSummaryField ¶

func NewRollupJobSummaryField() *RollupJobSummaryField

NewRollupJobSummaryField returns a RollupJobSummaryField.

func (*RollupJobSummaryField) UnmarshalJSON ¶

func (s *RollupJobSummaryField) UnmarshalJSON(data []byte) error

type RomanianAnalyzer ¶

type RomanianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

RomanianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L268-L273

func NewRomanianAnalyzer ¶

func NewRomanianAnalyzer() *RomanianAnalyzer

NewRomanianAnalyzer returns a RomanianAnalyzer.

func (*RomanianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *RomanianAnalyzer) AnalyzerCaster() *Analyzer

func (RomanianAnalyzer) MarshalJSON ¶

func (s RomanianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RomanianAnalyzer) RomanianAnalyzerCaster ¶

func (s *RomanianAnalyzer) RomanianAnalyzerCaster() *RomanianAnalyzer

func (*RomanianAnalyzer) UnmarshalJSON ¶

func (s *RomanianAnalyzer) UnmarshalJSON(data []byte) error

type RomanianAnalyzerVariant ¶

type RomanianAnalyzerVariant interface {
	RomanianAnalyzerCaster() *RomanianAnalyzer
}

type RoutingField ¶

type RoutingField struct {
	Required bool `json:"required"`
}

RoutingField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L50-L52

func NewRoutingField ¶

func NewRoutingField() *RoutingField

NewRoutingField returns a RoutingField.

func (*RoutingField) RoutingFieldCaster ¶

func (s *RoutingField) RoutingFieldCaster() *RoutingField

func (*RoutingField) UnmarshalJSON ¶

func (s *RoutingField) UnmarshalJSON(data []byte) error

type RoutingFieldVariant ¶

type RoutingFieldVariant interface {
	RoutingFieldCaster() *RoutingField
}

type RrfRank ¶

type RrfRank struct {
	// RankConstant How much influence documents in individual result sets per query have over
	// the final ranked result set
	RankConstant *int64 `json:"rank_constant,omitempty"`
	// RankWindowSize Size of the individual result sets per query
	RankWindowSize *int64 `json:"rank_window_size,omitempty"`
}

RrfRank type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Rank.ts#L32-L37

func NewRrfRank ¶

func NewRrfRank() *RrfRank

NewRrfRank returns a RrfRank.

func (*RrfRank) RrfRankCaster ¶

func (s *RrfRank) RrfRankCaster() *RrfRank

func (*RrfRank) UnmarshalJSON ¶

func (s *RrfRank) UnmarshalJSON(data []byte) error

type RrfRankVariant ¶

type RrfRankVariant interface {
	RrfRankCaster() *RrfRank
}

type RuleCondition ¶

type RuleCondition struct {
	// AppliesTo Specifies the result property to which the condition applies. If your
	// detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can
	// only specify conditions that apply to time.
	AppliesTo appliesto.AppliesTo `json:"applies_to"`
	// Operator Specifies the condition operator. The available options are greater than,
	// greater than or equals, less than, and less than or equals.
	Operator conditionoperator.ConditionOperator `json:"operator"`
	// Value The value that is compared against the `applies_to` field using the operator.
	Value Float64 `json:"value"`
}

RuleCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Rule.ts#L52-L65

func NewRuleCondition ¶

func NewRuleCondition() *RuleCondition

NewRuleCondition returns a RuleCondition.

func (*RuleCondition) RuleConditionCaster ¶

func (s *RuleCondition) RuleConditionCaster() *RuleCondition

func (*RuleCondition) UnmarshalJSON ¶

func (s *RuleCondition) UnmarshalJSON(data []byte) error

type RuleConditionVariant ¶

type RuleConditionVariant interface {
	RuleConditionCaster() *RuleCondition
}

type RuleQuery ¶

type RuleQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost         *float32        `json:"boost,omitempty"`
	MatchCriteria json.RawMessage `json:"match_criteria,omitempty"`
	Organic       Query           `json:"organic"`
	QueryName_    *string         `json:"_name,omitempty"`
	RulesetId     *string         `json:"ruleset_id,omitempty"`
	RulesetIds    []string        `json:"ruleset_ids,omitempty"`
}

RuleQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L398-L406

func NewRuleQuery ¶

func NewRuleQuery() *RuleQuery

NewRuleQuery returns a RuleQuery.

func (*RuleQuery) RuleQueryCaster ¶

func (s *RuleQuery) RuleQueryCaster() *RuleQuery

func (*RuleQuery) UnmarshalJSON ¶

func (s *RuleQuery) UnmarshalJSON(data []byte) error

type RuleQueryVariant ¶

type RuleQueryVariant interface {
	RuleQueryCaster() *RuleQuery
}

type RuleRetriever ¶

type RuleRetriever struct {
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// MatchCriteria The match criteria that will determine if a rule in the provided rulesets
	// should be applied.
	MatchCriteria json.RawMessage `json:"match_criteria,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_ *string `json:"_name,omitempty"`
	// RankWindowSize This value determines the size of the individual result set.
	RankWindowSize *int `json:"rank_window_size,omitempty"`
	// Retriever The retriever whose results rules should be applied to.
	Retriever RetrieverContainer `json:"retriever"`
	// RulesetIds The ruleset IDs containing the rules this retriever is evaluating against.
	RulesetIds []string `json:"ruleset_ids"`
}

RuleRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L159-L168

func NewRuleRetriever ¶

func NewRuleRetriever() *RuleRetriever

NewRuleRetriever returns a RuleRetriever.

func (*RuleRetriever) RuleRetrieverCaster ¶

func (s *RuleRetriever) RuleRetrieverCaster() *RuleRetriever

func (*RuleRetriever) UnmarshalJSON ¶

func (s *RuleRetriever) UnmarshalJSON(data []byte) error

type RuleRetrieverVariant ¶

type RuleRetrieverVariant interface {
	RuleRetrieverCaster() *RuleRetriever
}

type RunningStateSearchInterval ¶

type RunningStateSearchInterval struct {
	// End The end time.
	End Duration `json:"end,omitempty"`
	// EndMs The end time as an epoch in milliseconds.
	EndMs int64 `json:"end_ms"`
	// Start The start time.
	Start Duration `json:"start,omitempty"`
	// StartMs The start time as an epoch in milliseconds.
	StartMs int64 `json:"start_ms"`
}

RunningStateSearchInterval type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Datafeed.ts#L226-L243

func NewRunningStateSearchInterval ¶

func NewRunningStateSearchInterval() *RunningStateSearchInterval

NewRunningStateSearchInterval returns a RunningStateSearchInterval.

func (*RunningStateSearchInterval) UnmarshalJSON ¶

func (s *RunningStateSearchInterval) UnmarshalJSON(data []byte) error

type RuntimeField ¶

type RuntimeField struct {
	// FetchFields For type `lookup`
	FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"`
	// Fields For type `composite`
	Fields map[string]CompositeSubField `json:"fields,omitempty"`
	// Format A custom format for `date` type runtime fields.
	Format *string `json:"format,omitempty"`
	// InputField For type `lookup`
	InputField *string `json:"input_field,omitempty"`
	// Script Painless script executed at query time.
	Script *Script `json:"script,omitempty"`
	// TargetField For type `lookup`
	TargetField *string `json:"target_field,omitempty"`
	// TargetIndex For type `lookup`
	TargetIndex *string `json:"target_index,omitempty"`
	// Type Field type, which can be: `boolean`, `composite`, `date`, `double`,
	// `geo_point`, `ip`,`keyword`, `long`, or `lookup`.
	Type runtimefieldtype.RuntimeFieldType `json:"type"`
}

RuntimeField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/RuntimeFields.ts#L26-L50

func NewRuntimeField ¶

func NewRuntimeField() *RuntimeField

NewRuntimeField returns a RuntimeField.

func (*RuntimeField) RuntimeFieldCaster ¶

func (s *RuntimeField) RuntimeFieldCaster() *RuntimeField

func (*RuntimeField) UnmarshalJSON ¶

func (s *RuntimeField) UnmarshalJSON(data []byte) error

type RuntimeFieldFetchFields ¶

type RuntimeFieldFetchFields struct {
	Field  string  `json:"field"`
	Format *string `json:"format,omitempty"`
}

RuntimeFieldFetchFields type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/RuntimeFields.ts#L56-L60

func NewRuntimeFieldFetchFields ¶

func NewRuntimeFieldFetchFields() *RuntimeFieldFetchFields

NewRuntimeFieldFetchFields returns a RuntimeFieldFetchFields.

func (*RuntimeFieldFetchFields) RuntimeFieldFetchFieldsCaster ¶

func (s *RuntimeFieldFetchFields) RuntimeFieldFetchFieldsCaster() *RuntimeFieldFetchFields

func (*RuntimeFieldFetchFields) UnmarshalJSON ¶

func (s *RuntimeFieldFetchFields) UnmarshalJSON(data []byte) error

type RuntimeFieldFetchFieldsVariant ¶

type RuntimeFieldFetchFieldsVariant interface {
	RuntimeFieldFetchFieldsCaster() *RuntimeFieldFetchFields
}

type RuntimeFieldVariant ¶

type RuntimeFieldVariant interface {
	RuntimeFieldCaster() *RuntimeField
}

type RuntimeFieldsType ¶

type RuntimeFieldsType struct {
	CharsMax        int64    `json:"chars_max"`
	CharsTotal      int64    `json:"chars_total"`
	Count           int64    `json:"count"`
	DocMax          int64    `json:"doc_max"`
	DocTotal        int64    `json:"doc_total"`
	IndexCount      int64    `json:"index_count"`
	Lang            []string `json:"lang"`
	LinesMax        int64    `json:"lines_max"`
	LinesTotal      int64    `json:"lines_total"`
	Name            string   `json:"name"`
	ScriptlessCount int64    `json:"scriptless_count"`
	ShadowedCount   int64    `json:"shadowed_count"`
	SourceMax       int64    `json:"source_max"`
	SourceTotal     int64    `json:"source_total"`
}

RuntimeFieldsType type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L289-L304

func NewRuntimeFieldsType ¶

func NewRuntimeFieldsType() *RuntimeFieldsType

NewRuntimeFieldsType returns a RuntimeFieldsType.

func (*RuntimeFieldsType) UnmarshalJSON ¶

func (s *RuntimeFieldsType) UnmarshalJSON(data []byte) error

type RuntimeFieldsVariant ¶

type RuntimeFieldsVariant interface {
	RuntimeFieldsCaster() *RuntimeFields
}

type RussianAnalyzer ¶

type RussianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

RussianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L275-L280

func NewRussianAnalyzer ¶

func NewRussianAnalyzer() *RussianAnalyzer

NewRussianAnalyzer returns a RussianAnalyzer.

func (*RussianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *RussianAnalyzer) AnalyzerCaster() *Analyzer

func (RussianAnalyzer) MarshalJSON ¶

func (s RussianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RussianAnalyzer) RussianAnalyzerCaster ¶

func (s *RussianAnalyzer) RussianAnalyzerCaster() *RussianAnalyzer

func (*RussianAnalyzer) UnmarshalJSON ¶

func (s *RussianAnalyzer) UnmarshalJSON(data []byte) error

type RussianAnalyzerVariant ¶

type RussianAnalyzerVariant interface {
	RussianAnalyzerCaster() *RussianAnalyzer
}

type RussianStemTokenFilter ¶ added in v9.0.1

type RussianStemTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

RussianStemTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L567-L569

func NewRussianStemTokenFilter ¶ added in v9.0.1

func NewRussianStemTokenFilter() *RussianStemTokenFilter

NewRussianStemTokenFilter returns a RussianStemTokenFilter.

func (RussianStemTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s RussianStemTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*RussianStemTokenFilter) RussianStemTokenFilterCaster ¶ added in v9.0.1

func (s *RussianStemTokenFilter) RussianStemTokenFilterCaster() *RussianStemTokenFilter

func (*RussianStemTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *RussianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*RussianStemTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *RussianStemTokenFilter) UnmarshalJSON(data []byte) error

type RussianStemTokenFilterVariant ¶ added in v9.0.1

type RussianStemTokenFilterVariant interface {
	RussianStemTokenFilterCaster() *RussianStemTokenFilter
}

type S3Repository ¶

type S3Repository struct {
	// Settings The repository settings.
	//
	// NOTE: In addition to the specified settings, you can also use all non-secure
	// client settings in the repository settings.
	// In this case, the client settings found in the repository settings will be
	// merged with those of the named client used by the repository.
	// Conflicts between client and repository settings are resolved by the
	// repository settings taking precedence over client settings.
	Settings S3RepositorySettings `json:"settings"`
	// Type The S3 repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

S3Repository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L64-L78

func NewS3Repository ¶

func NewS3Repository() *S3Repository

NewS3Repository returns a S3Repository.

func (S3Repository) MarshalJSON ¶

func (s S3Repository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*S3Repository) RepositoryCaster ¶ added in v9.0.1

func (s *S3Repository) RepositoryCaster() *Repository

func (*S3Repository) S3RepositoryCaster ¶

func (s *S3Repository) S3RepositoryCaster() *S3Repository

func (*S3Repository) UnmarshalJSON ¶

func (s *S3Repository) UnmarshalJSON(data []byte) error

type S3RepositorySettings ¶

type S3RepositorySettings struct {
	// BasePath The path to the repository data within its bucket.
	// It defaults to an empty string, meaning that the repository is at the root of
	// the bucket.
	// The value of this setting should not start or end with a forward slash (`/`).
	//
	// NOTE: Don't set base_path when configuring a snapshot repository for Elastic
	// Cloud Enterprise.
	// Elastic Cloud Enterprise automatically generates the `base_path` for each
	// deployment so that multiple deployments may share the same bucket.
	BasePath *string `json:"base_path,omitempty"`
	// Bucket The name of the S3 bucket to use for snapshots.
	// The bucket name must adhere to Amazon's S3 bucket naming rules.
	Bucket string `json:"bucket"`
	// BufferSize The minimum threshold below which the chunk is uploaded using a single
	// request.
	// Beyond this threshold, the S3 repository will use the AWS Multipart Upload
	// API to split the chunk into several parts, each of `buffer_size` length, and
	// to upload each part in its own request.
	// Note that setting a buffer size lower than 5mb is not allowed since it will
	// prevent the use of the Multipart API and may result in upload errors.
	// It is also not possible to set a buffer size greater than 5gb as it is the
	// maximum upload size allowed by S3.
	// Defaults to `100mb` or 5% of JVM heap, whichever is smaller.
	BufferSize ByteSize `json:"buffer_size,omitempty"`
	// CannedAcl The S3 repository supports all S3 canned ACLs: `private`, `public-read`,
	// `public-read-write`, `authenticated-read`, `log-delivery-write`,
	// `bucket-owner-read`, `bucket-owner-full-control`.
	// You could specify a canned ACL using the `canned_acl` setting.
	// When the S3 repository creates buckets and objects, it adds the canned ACL
	// into the buckets and objects.
	CannedAcl *string `json:"canned_acl,omitempty"`
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Client The name of the S3 client to use to connect to S3.
	Client *string `json:"client,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// DeleteObjectsMaxSize The maxmimum batch size, between 1 and 1000, used for `DeleteObjects`
	// requests.
	// Defaults to 1000 which is the maximum number supported by the  AWS
	// DeleteObjects API.
	DeleteObjectsMaxSize *int `json:"delete_objects_max_size,omitempty"`
	// GetRegisterRetryDelay The time to wait before trying again if an attempt to read a linearizable
	// register fails.
	GetRegisterRetryDelay Duration `json:"get_register_retry_delay,omitempty"`
	// MaxMultipartParts The maximum number of parts that Elasticsearch will write during a multipart
	// upload of a single object.
	// Files which are larger than `buffer_size Ă— max_multipart_parts` will be
	// chunked into several smaller objects.
	// Elasticsearch may also split a file across multiple objects to satisfy other
	// constraints such as the `chunk_size` limit.
	// Defaults to `10000` which is the maximum number of parts in a multipart
	// upload in AWS S3.
	MaxMultipartParts *int `json:"max_multipart_parts,omitempty"`
	// MaxMultipartUploadCleanupSize The maximum number of possibly-dangling multipart uploads to clean up in each
	// batch of snapshot deletions.
	// Defaults to 1000 which is the maximum number supported by the AWS
	// ListMultipartUploads API.
	// If set to `0`, Elasticsearch will not attempt to clean up dangling multipart
	// uploads.
	MaxMultipartUploadCleanupSize *int `json:"max_multipart_upload_cleanup_size,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// Readonly If true, the repository is read-only.
	// The cluster can retrieve and restore snapshots from the repository but not
	// write to the repository or create snapshots in it.
	//
	// Only a cluster with write access can create snapshots in the repository.
	// All other clusters connected to the repository should have the `readonly`
	// parameter set to `true`.
	//
	// If `false`, the cluster can write to the repository and create snapshots in
	// it.
	//
	// IMPORTANT: If you register the same snapshot repository with multiple
	// clusters, only one cluster should have write access to the repository.
	// Having multiple clusters write to the repository at the same time risks
	// corrupting the contents of the repository.
	Readonly *bool `json:"readonly,omitempty"`
	// ServerSideEncryption When set to `true`, files are encrypted on server side using an AES256
	// algorithm.
	ServerSideEncryption *bool `json:"server_side_encryption,omitempty"`
	// StorageClass The S3 storage class for objects written to the repository.
	// Values may be `standard`, `reduced_redundancy`, `standard_ia`, `onezone_ia`,
	// and `intelligent_tiering`.
	StorageClass *string `json:"storage_class,omitempty"`
	// ThrottledDeleteRetryDelayIncrement The delay before the first retry and the amount the delay is incremented by
	// on each subsequent retry.
	// The default is 50ms and the minimum is 0ms.
	ThrottledDeleteRetryDelayIncrement Duration `json:"throttled_delete_retry.delay_increment,omitempty"`
	// ThrottledDeleteRetryMaximumDelay The upper bound on how long the delays between retries will grow to.
	// The default is 5s and the minimum is 0ms.
	ThrottledDeleteRetryMaximumDelay Duration `json:"throttled_delete_retry.maximum_delay,omitempty"`
	// ThrottledDeleteRetryMaximumNumberOfRetries The number times to retry a throttled snapshot deletion.
	// The default is 10 and the minimum value is 0 which will disable retries
	// altogether.
	// Note that if retries are enabled in the Azure client, each of these retries
	// comprises that many client-level retries.
	ThrottledDeleteRetryMaximumNumberOfRetries *int `json:"throttled_delete_retry.maximum_number_of_retries,omitempty"`
}

S3RepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L237-L346

func NewS3RepositorySettings ¶

func NewS3RepositorySettings() *S3RepositorySettings

NewS3RepositorySettings returns a S3RepositorySettings.

func (*S3RepositorySettings) S3RepositorySettingsCaster ¶

func (s *S3RepositorySettings) S3RepositorySettingsCaster() *S3RepositorySettings

func (*S3RepositorySettings) UnmarshalJSON ¶

func (s *S3RepositorySettings) UnmarshalJSON(data []byte) error

type S3RepositorySettingsVariant ¶

type S3RepositorySettingsVariant interface {
	S3RepositorySettingsCaster() *S3RepositorySettings
}

type S3RepositoryVariant ¶

type S3RepositoryVariant interface {
	S3RepositoryCaster() *S3Repository
}

type SLMPolicy ¶

type SLMPolicy struct {
	Config     *Configuration `json:"config,omitempty"`
	Name       string         `json:"name"`
	Repository string         `json:"repository"`
	Retention  *Retention     `json:"retention,omitempty"`
	Schedule   string         `json:"schedule"`
}

SLMPolicy type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L86-L92

func NewSLMPolicy ¶

func NewSLMPolicy() *SLMPolicy

NewSLMPolicy returns a SLMPolicy.

func (*SLMPolicy) UnmarshalJSON ¶

func (s *SLMPolicy) UnmarshalJSON(data []byte) error

type SampleDiversity ¶

type SampleDiversity struct {
	Field           string `json:"field"`
	MaxDocsPerValue int    `json:"max_docs_per_value"`
}

SampleDiversity type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/ExploreControls.ts#L51-L54

func NewSampleDiversity ¶

func NewSampleDiversity() *SampleDiversity

NewSampleDiversity returns a SampleDiversity.

func (*SampleDiversity) SampleDiversityCaster ¶

func (s *SampleDiversity) SampleDiversityCaster() *SampleDiversity

func (*SampleDiversity) UnmarshalJSON ¶

func (s *SampleDiversity) UnmarshalJSON(data []byte) error

type SampleDiversityVariant ¶

type SampleDiversityVariant interface {
	SampleDiversityCaster() *SampleDiversity
}

type SamplerAggregate ¶

type SamplerAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

SamplerAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L558-L559

func NewSamplerAggregate ¶

func NewSamplerAggregate() *SamplerAggregate

NewSamplerAggregate returns a SamplerAggregate.

func (SamplerAggregate) MarshalJSON ¶

func (s SamplerAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SamplerAggregate) UnmarshalJSON ¶

func (s *SamplerAggregate) UnmarshalJSON(data []byte) error

type SamplerAggregation ¶

type SamplerAggregation struct {
	// ShardSize Limits how many top-scoring documents are collected in the sample processed
	// on each shard.
	ShardSize *int `json:"shard_size,omitempty"`
}

SamplerAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L771-L780

func NewSamplerAggregation ¶

func NewSamplerAggregation() *SamplerAggregation

NewSamplerAggregation returns a SamplerAggregation.

func (*SamplerAggregation) SamplerAggregationCaster ¶

func (s *SamplerAggregation) SamplerAggregationCaster() *SamplerAggregation

func (*SamplerAggregation) UnmarshalJSON ¶

func (s *SamplerAggregation) UnmarshalJSON(data []byte) error

type SamplerAggregationVariant ¶

type SamplerAggregationVariant interface {
	SamplerAggregationCaster() *SamplerAggregation
}

type ScalarValue ¶

type ScalarValue any

ScalarValue holds the union for the following types:

int64
Float64
string
bool
nil

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L33-L37

type ScalarValueVariant ¶

type ScalarValueVariant interface {
	ScalarValueCaster() *ScalarValue
}

type ScaledFloatNumberProperty ¶

type ScaledFloatNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *Float64                                         `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	ScalingFactor       *Float64                                         `json:"scaling_factor,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

ScaledFloatNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L197-L201

func NewScaledFloatNumberProperty ¶

func NewScaledFloatNumberProperty() *ScaledFloatNumberProperty

NewScaledFloatNumberProperty returns a ScaledFloatNumberProperty.

func (ScaledFloatNumberProperty) MarshalJSON ¶

func (s ScaledFloatNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ScaledFloatNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *ScaledFloatNumberProperty) PropertyCaster() *Property

func (*ScaledFloatNumberProperty) ScaledFloatNumberPropertyCaster ¶

func (s *ScaledFloatNumberProperty) ScaledFloatNumberPropertyCaster() *ScaledFloatNumberProperty

func (*ScaledFloatNumberProperty) UnmarshalJSON ¶

func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error

type ScaledFloatNumberPropertyVariant ¶

type ScaledFloatNumberPropertyVariant interface {
	ScaledFloatNumberPropertyCaster() *ScaledFloatNumberProperty
}

type ScandinavianFoldingTokenFilter ¶ added in v9.0.1

type ScandinavianFoldingTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ScandinavianFoldingTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L531-L533

func NewScandinavianFoldingTokenFilter ¶ added in v9.0.1

func NewScandinavianFoldingTokenFilter() *ScandinavianFoldingTokenFilter

NewScandinavianFoldingTokenFilter returns a ScandinavianFoldingTokenFilter.

func (ScandinavianFoldingTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ScandinavianFoldingTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ScandinavianFoldingTokenFilter) ScandinavianFoldingTokenFilterCaster ¶ added in v9.0.1

func (s *ScandinavianFoldingTokenFilter) ScandinavianFoldingTokenFilterCaster() *ScandinavianFoldingTokenFilter

func (*ScandinavianFoldingTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ScandinavianFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ScandinavianFoldingTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ScandinavianFoldingTokenFilter) UnmarshalJSON(data []byte) error

type ScandinavianFoldingTokenFilterVariant ¶ added in v9.0.1

type ScandinavianFoldingTokenFilterVariant interface {
	ScandinavianFoldingTokenFilterCaster() *ScandinavianFoldingTokenFilter
}

type ScandinavianNormalizationTokenFilter ¶ added in v9.0.1

type ScandinavianNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ScandinavianNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L535-L537

func NewScandinavianNormalizationTokenFilter ¶ added in v9.0.1

func NewScandinavianNormalizationTokenFilter() *ScandinavianNormalizationTokenFilter

NewScandinavianNormalizationTokenFilter returns a ScandinavianNormalizationTokenFilter.

func (ScandinavianNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s ScandinavianNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ScandinavianNormalizationTokenFilter) ScandinavianNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *ScandinavianNormalizationTokenFilter) ScandinavianNormalizationTokenFilterCaster() *ScandinavianNormalizationTokenFilter

func (*ScandinavianNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ScandinavianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ScandinavianNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *ScandinavianNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type ScandinavianNormalizationTokenFilterVariant ¶ added in v9.0.1

type ScandinavianNormalizationTokenFilterVariant interface {
	ScandinavianNormalizationTokenFilterCaster() *ScandinavianNormalizationTokenFilter
}

type ScheduleContainer ¶

type ScheduleContainer struct {
	AdditionalScheduleContainerProperty map[string]json.RawMessage `json:"-"`
	Cron                                *string                    `json:"cron,omitempty"`
	Daily                               *DailySchedule             `json:"daily,omitempty"`
	Hourly                              *HourlySchedule            `json:"hourly,omitempty"`
	Interval                            Duration                   `json:"interval,omitempty"`
	Monthly                             []TimeOfMonth              `json:"monthly,omitempty"`
	Timezone                            *string                    `json:"timezone,omitempty"`
	Weekly                              []TimeOfWeek               `json:"weekly,omitempty"`
	Yearly                              []TimeOfYear               `json:"yearly,omitempty"`
}

ScheduleContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L80-L92

func NewScheduleContainer ¶

func NewScheduleContainer() *ScheduleContainer

NewScheduleContainer returns a ScheduleContainer.

func (ScheduleContainer) MarshalJSON ¶

func (s ScheduleContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ScheduleContainer) ScheduleContainerCaster ¶

func (s *ScheduleContainer) ScheduleContainerCaster() *ScheduleContainer

func (*ScheduleContainer) UnmarshalJSON ¶

func (s *ScheduleContainer) UnmarshalJSON(data []byte) error

type ScheduleContainerVariant ¶

type ScheduleContainerVariant interface {
	ScheduleContainerCaster() *ScheduleContainer
}

type ScheduleTimeOfDayVariant ¶

type ScheduleTimeOfDayVariant interface {
	ScheduleTimeOfDayCaster() *ScheduleTimeOfDay
}

type ScheduleTriggerEvent ¶

type ScheduleTriggerEvent struct {
	ScheduledTime DateTime `json:"scheduled_time"`
	TriggeredTime DateTime `json:"triggered_time,omitempty"`
}

ScheduleTriggerEvent type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L94-L97

func NewScheduleTriggerEvent ¶

func NewScheduleTriggerEvent() *ScheduleTriggerEvent

NewScheduleTriggerEvent returns a ScheduleTriggerEvent.

func (*ScheduleTriggerEvent) ScheduleTriggerEventCaster ¶

func (s *ScheduleTriggerEvent) ScheduleTriggerEventCaster() *ScheduleTriggerEvent

func (*ScheduleTriggerEvent) UnmarshalJSON ¶

func (s *ScheduleTriggerEvent) UnmarshalJSON(data []byte) error

type ScheduleTriggerEventVariant ¶

type ScheduleTriggerEventVariant interface {
	ScheduleTriggerEventCaster() *ScheduleTriggerEvent
}

type SchedulingConfiguration ¶

type SchedulingConfiguration struct {
	AccessControl *ConnectorScheduling `json:"access_control,omitempty"`
	Full          *ConnectorScheduling `json:"full,omitempty"`
	Incremental   *ConnectorScheduling `json:"incremental,omitempty"`
}

SchedulingConfiguration type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L246-L250

func NewSchedulingConfiguration ¶

func NewSchedulingConfiguration() *SchedulingConfiguration

NewSchedulingConfiguration returns a SchedulingConfiguration.

func (*SchedulingConfiguration) SchedulingConfigurationCaster ¶

func (s *SchedulingConfiguration) SchedulingConfigurationCaster() *SchedulingConfiguration

type SchedulingConfigurationVariant ¶

type SchedulingConfigurationVariant interface {
	SchedulingConfigurationCaster() *SchedulingConfiguration
}

type ScoreSort ¶

type ScoreSort struct {
	Order *sortorder.SortOrder `json:"order,omitempty"`
}

ScoreSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L54-L56

func NewScoreSort ¶

func NewScoreSort() *ScoreSort

NewScoreSort returns a ScoreSort.

func (*ScoreSort) ScoreSortCaster ¶

func (s *ScoreSort) ScoreSortCaster() *ScoreSort

type ScoreSortVariant ¶

type ScoreSortVariant interface {
	ScoreSortCaster() *ScoreSort
}

type Script ¶

type Script struct {
	// Id The `id` for a stored script.
	Id *string `json:"id,omitempty"`
	// Lang Specifies the language the script is written in.
	Lang    *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
	Options map[string]string              `json:"options,omitempty"`
	// Params Specifies any named parameters that are passed into the script as variables.
	// Use parameters instead of hard-coded values to decrease compile time.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// Source The script source.
	Source ScriptSource `json:"source,omitempty"`
}

Script type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Scripting.ts#L65-L89

func NewScript ¶

func NewScript() *Script

NewScript returns a Script.

func (*Script) ScriptCaster ¶

func (s *Script) ScriptCaster() *Script

func (*Script) UnmarshalJSON ¶

func (s *Script) UnmarshalJSON(data []byte) error

type ScriptCache ¶

type ScriptCache struct {
	// CacheEvictions Total number of times the script cache has evicted old data.
	CacheEvictions *int64 `json:"cache_evictions,omitempty"`
	// CompilationLimitTriggered Total number of times the script compilation circuit breaker has limited
	// inline script compilations.
	CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`
	// Compilations Total number of inline script compilations performed by the node.
	Compilations *int64  `json:"compilations,omitempty"`
	Context      *string `json:"context,omitempty"`
}

ScriptCache type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1109-L1123

func NewScriptCache ¶

func NewScriptCache() *ScriptCache

NewScriptCache returns a ScriptCache.

func (*ScriptCache) UnmarshalJSON ¶

func (s *ScriptCache) UnmarshalJSON(data []byte) error

type ScriptCondition ¶

type ScriptCondition struct {
	Id     *string                        `json:"id,omitempty"`
	Lang   *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
	Params map[string]json.RawMessage     `json:"params,omitempty"`
	Source ScriptSource                   `json:"source,omitempty"`
}

ScriptCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L80-L88

func NewScriptCondition ¶

func NewScriptCondition() *ScriptCondition

NewScriptCondition returns a ScriptCondition.

func (*ScriptCondition) ScriptConditionCaster ¶

func (s *ScriptCondition) ScriptConditionCaster() *ScriptCondition

func (*ScriptCondition) UnmarshalJSON ¶

func (s *ScriptCondition) UnmarshalJSON(data []byte) error

type ScriptConditionVariant ¶

type ScriptConditionVariant interface {
	ScriptConditionCaster() *ScriptCondition
}

type ScriptField ¶

type ScriptField struct {
	IgnoreFailure *bool  `json:"ignore_failure,omitempty"`
	Script        Script `json:"script"`
}

ScriptField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Scripting.ts#L91-L94

func NewScriptField ¶

func NewScriptField() *ScriptField

NewScriptField returns a ScriptField.

func (*ScriptField) ScriptFieldCaster ¶

func (s *ScriptField) ScriptFieldCaster() *ScriptField

func (*ScriptField) UnmarshalJSON ¶

func (s *ScriptField) UnmarshalJSON(data []byte) error

type ScriptFieldVariant ¶

type ScriptFieldVariant interface {
	ScriptFieldCaster() *ScriptField
}

type ScriptProcessor ¶

type ScriptProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Id ID of a stored script.
	// If no `source` is specified, this parameter is required.
	Id *string `json:"id,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// Lang Script language.
	Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Params Object containing parameters for the script.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// Source Inline script.
	// If no `id` is specified, this parameter is required.
	Source ScriptSource `json:"source,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

ScriptProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1423-L1443

func NewScriptProcessor ¶

func NewScriptProcessor() *ScriptProcessor

NewScriptProcessor returns a ScriptProcessor.

func (*ScriptProcessor) ScriptProcessorCaster ¶

func (s *ScriptProcessor) ScriptProcessorCaster() *ScriptProcessor

func (*ScriptProcessor) UnmarshalJSON ¶

func (s *ScriptProcessor) UnmarshalJSON(data []byte) error

type ScriptProcessorVariant ¶

type ScriptProcessorVariant interface {
	ScriptProcessorCaster() *ScriptProcessor
}

type ScriptQuery ¶

type ScriptQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
	// Script Contains a script to run as a query.
	// This script must return a boolean value, `true` or `false`.
	Script Script `json:"script"`
}

ScriptQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L337-L346

func NewScriptQuery ¶

func NewScriptQuery() *ScriptQuery

NewScriptQuery returns a ScriptQuery.

func (*ScriptQuery) ScriptQueryCaster ¶

func (s *ScriptQuery) ScriptQueryCaster() *ScriptQuery

func (*ScriptQuery) UnmarshalJSON ¶

func (s *ScriptQuery) UnmarshalJSON(data []byte) error

type ScriptQueryVariant ¶

type ScriptQueryVariant interface {
	ScriptQueryCaster() *ScriptQuery
}

type ScriptScoreFunction ¶

type ScriptScoreFunction struct {
	// Script A script that computes a score.
	Script Script `json:"script"`
}

ScriptScoreFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L137-L142

func NewScriptScoreFunction ¶

func NewScriptScoreFunction() *ScriptScoreFunction

NewScriptScoreFunction returns a ScriptScoreFunction.

func (*ScriptScoreFunction) ScriptScoreFunctionCaster ¶

func (s *ScriptScoreFunction) ScriptScoreFunctionCaster() *ScriptScoreFunction

type ScriptScoreFunctionVariant ¶

type ScriptScoreFunctionVariant interface {
	ScriptScoreFunctionCaster() *ScriptScoreFunction
}

type ScriptScoreQuery ¶

type ScriptScoreQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// MinScore Documents with a score lower than this floating point number are excluded
	// from the search results.
	MinScore *float32 `json:"min_score,omitempty"`
	// Query Query used to return documents.
	Query      Query   `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// Script Script used to compute the score of documents returned by the query.
	// Important: final relevance scores from the `script_score` query cannot be
	// negative.
	Script Script `json:"script"`
}

ScriptScoreQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L348-L365

func NewScriptScoreQuery ¶

func NewScriptScoreQuery() *ScriptScoreQuery

NewScriptScoreQuery returns a ScriptScoreQuery.

func (*ScriptScoreQuery) ScriptScoreQueryCaster ¶

func (s *ScriptScoreQuery) ScriptScoreQueryCaster() *ScriptScoreQuery

func (*ScriptScoreQuery) UnmarshalJSON ¶

func (s *ScriptScoreQuery) UnmarshalJSON(data []byte) error

type ScriptScoreQueryVariant ¶

type ScriptScoreQueryVariant interface {
	ScriptScoreQueryCaster() *ScriptScoreQuery
}

type ScriptSort ¶

type ScriptSort struct {
	Mode   *sortmode.SortMode             `json:"mode,omitempty"`
	Nested *NestedSortValue               `json:"nested,omitempty"`
	Order  *sortorder.SortOrder           `json:"order,omitempty"`
	Script Script                         `json:"script"`
	Type   *scriptsorttype.ScriptSortType `json:"type,omitempty"`
}

ScriptSort type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L72-L78

func NewScriptSort ¶

func NewScriptSort() *ScriptSort

NewScriptSort returns a ScriptSort.

func (*ScriptSort) ScriptSortCaster ¶

func (s *ScriptSort) ScriptSortCaster() *ScriptSort

type ScriptSortVariant ¶

type ScriptSortVariant interface {
	ScriptSortCaster() *ScriptSort
}

type ScriptSourceVariant ¶

type ScriptSourceVariant interface {
	ScriptSourceCaster() *ScriptSource
}

type ScriptTransform ¶

type ScriptTransform struct {
	Id     *string                    `json:"id,omitempty"`
	Lang   *string                    `json:"lang,omitempty"`
	Params map[string]json.RawMessage `json:"params,omitempty"`
	Source ScriptSource               `json:"source,omitempty"`
}

ScriptTransform type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Transform.ts#L37-L45

func NewScriptTransform ¶

func NewScriptTransform() *ScriptTransform

NewScriptTransform returns a ScriptTransform.

func (*ScriptTransform) ScriptTransformCaster ¶

func (s *ScriptTransform) ScriptTransformCaster() *ScriptTransform

func (*ScriptTransform) UnmarshalJSON ¶

func (s *ScriptTransform) UnmarshalJSON(data []byte) error

type ScriptTransformVariant ¶

type ScriptTransformVariant interface {
	ScriptTransformCaster() *ScriptTransform
}

type ScriptVariant ¶

type ScriptVariant interface {
	ScriptCaster() *Script
}

type ScriptedHeuristic ¶

type ScriptedHeuristic struct {
	Script Script `json:"script"`
}

ScriptedHeuristic type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L813-L815

func NewScriptedHeuristic ¶

func NewScriptedHeuristic() *ScriptedHeuristic

NewScriptedHeuristic returns a ScriptedHeuristic.

func (*ScriptedHeuristic) ScriptedHeuristicCaster ¶

func (s *ScriptedHeuristic) ScriptedHeuristicCaster() *ScriptedHeuristic

type ScriptedHeuristicVariant ¶

type ScriptedHeuristicVariant interface {
	ScriptedHeuristicCaster() *ScriptedHeuristic
}

type ScriptedMetricAggregate ¶

type ScriptedMetricAggregate struct {
	Meta  Metadata        `json:"meta,omitempty"`
	Value json.RawMessage `json:"value,omitempty"`
}

ScriptedMetricAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L741-L747

func NewScriptedMetricAggregate ¶

func NewScriptedMetricAggregate() *ScriptedMetricAggregate

NewScriptedMetricAggregate returns a ScriptedMetricAggregate.

func (*ScriptedMetricAggregate) UnmarshalJSON ¶

func (s *ScriptedMetricAggregate) UnmarshalJSON(data []byte) error

type ScriptedMetricAggregation ¶

type ScriptedMetricAggregation struct {
	// CombineScript Runs once on each shard after document collection is complete.
	// Allows the aggregation to consolidate the state returned from each shard.
	CombineScript *Script `json:"combine_script,omitempty"`
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// InitScript Runs prior to any collection of documents.
	// Allows the aggregation to set up any initial state.
	InitScript *Script `json:"init_script,omitempty"`
	// MapScript Run once per document collected.
	// If no `combine_script` is specified, the resulting state needs to be stored
	// in the `state` object.
	MapScript *Script `json:"map_script,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	// Params A global object with script parameters for `init`, `map` and `combine`
	// scripts.
	// It is shared between the scripts.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// ReduceScript Runs once on the coordinating node after all shards have returned their
	// results.
	// The script is provided with access to a variable `states`, which is an array
	// of the result of the `combine_script` on each shard.
	ReduceScript *Script `json:"reduce_script,omitempty"`
	Script       *Script `json:"script,omitempty"`
}

ScriptedMetricAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L286-L312

func NewScriptedMetricAggregation ¶

func NewScriptedMetricAggregation() *ScriptedMetricAggregation

NewScriptedMetricAggregation returns a ScriptedMetricAggregation.

func (*ScriptedMetricAggregation) ScriptedMetricAggregationCaster ¶

func (s *ScriptedMetricAggregation) ScriptedMetricAggregationCaster() *ScriptedMetricAggregation

func (*ScriptedMetricAggregation) UnmarshalJSON ¶

func (s *ScriptedMetricAggregation) UnmarshalJSON(data []byte) error

type ScriptedMetricAggregationVariant ¶

type ScriptedMetricAggregationVariant interface {
	ScriptedMetricAggregationCaster() *ScriptedMetricAggregation
}

type Scripting ¶

type Scripting struct {
	// CacheEvictions Total number of times the script cache has evicted old data.
	CacheEvictions *int64 `json:"cache_evictions,omitempty"`
	// CompilationLimitTriggered Total number of times the script compilation circuit breaker has limited
	// inline script compilations.
	CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"`
	// Compilations Total number of inline script compilations performed by the node.
	Compilations *int64 `json:"compilations,omitempty"`
	// CompilationsHistory Contains this recent history of script compilations.
	CompilationsHistory map[string]int64 `json:"compilations_history,omitempty"`
	Contexts            []NodesContext   `json:"contexts,omitempty"`
}

Scripting type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1055-L1073

func NewScripting ¶

func NewScripting() *Scripting

NewScripting returns a Scripting.

func (*Scripting) UnmarshalJSON ¶

func (s *Scripting) UnmarshalJSON(data []byte) error

type ScrollIdsVariant ¶

type ScrollIdsVariant interface {
	ScrollIdsCaster() *ScrollIds
}

type SearchAccess ¶

type SearchAccess struct {
	// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
	// cover restricted indices. Implicitly, restricted indices have limited
	// privileges that can cause pattern tests to fail. If restricted indices are
	// explicitly included in the `names` list, Elasticsearch checks privileges
	// against these indices regardless of the value set for
	// `allow_restricted_indices`.
	AllowRestrictedIndices *bool `json:"allow_restricted_indices,omitempty"`
	// FieldSecurity The document fields that the owners of the role have read access to.
	FieldSecurity *FieldSecurity `json:"field_security,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
	// Query A search query that defines the documents the owners of the role have access
	// to. A document within the specified indices must match this query for it to
	// be accessible by the owners of the role.
	Query IndicesPrivilegesQuery `json:"query,omitempty"`
}

SearchAccess type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L456-L476

func NewSearchAccess ¶

func NewSearchAccess() *SearchAccess

NewSearchAccess returns a SearchAccess.

func (*SearchAccess) SearchAccessCaster ¶

func (s *SearchAccess) SearchAccessCaster() *SearchAccess

func (*SearchAccess) UnmarshalJSON ¶

func (s *SearchAccess) UnmarshalJSON(data []byte) error

type SearchAccessVariant ¶

type SearchAccessVariant interface {
	SearchAccessCaster() *SearchAccess
}

type SearchApplication ¶

type SearchApplication struct {
	// AnalyticsCollectionName Analytics collection associated to the Search Application.
	AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`
	// Indices Indices that are part of the Search Application.
	Indices []string `json:"indices"`
	// Name Search Application name
	Name string `json:"name"`
	// Template Search template to use on search operations.
	Template *SearchApplicationTemplate `json:"template,omitempty"`
	// UpdatedAtMillis Last time the Search Application was updated.
	UpdatedAtMillis int64 `json:"updated_at_millis"`
}

SearchApplication type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/search_application/_types/SearchApplication.ts#L24-L33

func NewSearchApplication ¶

func NewSearchApplication() *SearchApplication

NewSearchApplication returns a SearchApplication.

func (*SearchApplication) UnmarshalJSON ¶

func (s *SearchApplication) UnmarshalJSON(data []byte) error

type SearchApplicationParameters ¶

type SearchApplicationParameters struct {
	// AnalyticsCollectionName Analytics collection associated to the Search Application.
	AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"`
	// Indices Indices that are part of the Search Application.
	Indices []string `json:"indices"`
	// Template Search template to use on search operations.
	Template *SearchApplicationTemplate `json:"template,omitempty"`
}

SearchApplicationParameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36

func NewSearchApplicationParameters ¶

func NewSearchApplicationParameters() *SearchApplicationParameters

NewSearchApplicationParameters returns a SearchApplicationParameters.

func (*SearchApplicationParameters) SearchApplicationParametersCaster ¶

func (s *SearchApplicationParameters) SearchApplicationParametersCaster() *SearchApplicationParameters

func (*SearchApplicationParameters) UnmarshalJSON ¶

func (s *SearchApplicationParameters) UnmarshalJSON(data []byte) error

type SearchApplicationParametersVariant ¶

type SearchApplicationParametersVariant interface {
	SearchApplicationParametersCaster() *SearchApplicationParameters
}

type SearchApplicationTemplate ¶

type SearchApplicationTemplate struct {
	// Script The associated mustache template.
	Script Script `json:"script"`
}

SearchApplicationTemplate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27

func NewSearchApplicationTemplate ¶

func NewSearchApplicationTemplate() *SearchApplicationTemplate

NewSearchApplicationTemplate returns a SearchApplicationTemplate.

func (*SearchApplicationTemplate) SearchApplicationTemplateCaster ¶

func (s *SearchApplicationTemplate) SearchApplicationTemplateCaster() *SearchApplicationTemplate

type SearchApplicationTemplateVariant ¶

type SearchApplicationTemplateVariant interface {
	SearchApplicationTemplateCaster() *SearchApplicationTemplate
}

type SearchAsYouTypeProperty ¶

type SearchAsYouTypeProperty struct {
	Analyzer       *string                        `json:"analyzer,omitempty"`
	CopyTo         []string                       `json:"copy_to,omitempty"`
	Dynamic        *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields         map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove    *int                           `json:"ignore_above,omitempty"`
	Index          *bool                          `json:"index,omitempty"`
	IndexOptions   *indexoptions.IndexOptions     `json:"index_options,omitempty"`
	MaxShingleSize *int                           `json:"max_shingle_size,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Norms               *bool                                            `json:"norms,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	SearchAnalyzer      *string                                          `json:"search_analyzer,omitempty"`
	SearchQuoteAnalyzer *string                                          `json:"search_quote_analyzer,omitempty"`
	Similarity          *string                                          `json:"similarity,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TermVector          *termvectoroption.TermVectorOption               `json:"term_vector,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

SearchAsYouTypeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L263-L274

func NewSearchAsYouTypeProperty ¶

func NewSearchAsYouTypeProperty() *SearchAsYouTypeProperty

NewSearchAsYouTypeProperty returns a SearchAsYouTypeProperty.

func (SearchAsYouTypeProperty) MarshalJSON ¶

func (s SearchAsYouTypeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SearchAsYouTypeProperty) PropertyCaster ¶ added in v9.0.1

func (s *SearchAsYouTypeProperty) PropertyCaster() *Property

func (*SearchAsYouTypeProperty) SearchAsYouTypePropertyCaster ¶

func (s *SearchAsYouTypeProperty) SearchAsYouTypePropertyCaster() *SearchAsYouTypeProperty

func (*SearchAsYouTypeProperty) UnmarshalJSON ¶

func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error

type SearchAsYouTypePropertyVariant ¶

type SearchAsYouTypePropertyVariant interface {
	SearchAsYouTypePropertyCaster() *SearchAsYouTypeProperty
}

type SearchIdle ¶

type SearchIdle struct {
	After Duration `json:"after,omitempty"`
}

SearchIdle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L255-L258

func NewSearchIdle ¶

func NewSearchIdle() *SearchIdle

NewSearchIdle returns a SearchIdle.

func (*SearchIdle) SearchIdleCaster ¶

func (s *SearchIdle) SearchIdleCaster() *SearchIdle

func (*SearchIdle) UnmarshalJSON ¶

func (s *SearchIdle) UnmarshalJSON(data []byte) error

type SearchIdleVariant ¶

type SearchIdleVariant interface {
	SearchIdleCaster() *SearchIdle
}

type SearchInput ¶

type SearchInput struct {
	Extract []string                     `json:"extract,omitempty"`
	Request SearchInputRequestDefinition `json:"request"`
	Timeout Duration                     `json:"timeout,omitempty"`
}

SearchInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L109-L113

func NewSearchInput ¶

func NewSearchInput() *SearchInput

NewSearchInput returns a SearchInput.

func (*SearchInput) SearchInputCaster ¶

func (s *SearchInput) SearchInputCaster() *SearchInput

func (*SearchInput) UnmarshalJSON ¶

func (s *SearchInput) UnmarshalJSON(data []byte) error

type SearchInputRequestBody ¶

type SearchInputRequestBody struct {
	Query Query `json:"query"`
}

SearchInputRequestBody type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L144-L146

func NewSearchInputRequestBody ¶

func NewSearchInputRequestBody() *SearchInputRequestBody

NewSearchInputRequestBody returns a SearchInputRequestBody.

func (*SearchInputRequestBody) SearchInputRequestBodyCaster ¶

func (s *SearchInputRequestBody) SearchInputRequestBodyCaster() *SearchInputRequestBody

type SearchInputRequestBodyVariant ¶

type SearchInputRequestBodyVariant interface {
	SearchInputRequestBodyCaster() *SearchInputRequestBody
}

type SearchInputRequestDefinition ¶

type SearchInputRequestDefinition struct {
	Body               *SearchInputRequestBody    `json:"body,omitempty"`
	Indices            []string                   `json:"indices,omitempty"`
	IndicesOptions     *IndicesOptions            `json:"indices_options,omitempty"`
	RestTotalHitsAsInt *bool                      `json:"rest_total_hits_as_int,omitempty"`
	SearchType         *searchtype.SearchType     `json:"search_type,omitempty"`
	Template           *SearchTemplateRequestBody `json:"template,omitempty"`
}

SearchInputRequestDefinition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L115-L122

func NewSearchInputRequestDefinition ¶

func NewSearchInputRequestDefinition() *SearchInputRequestDefinition

NewSearchInputRequestDefinition returns a SearchInputRequestDefinition.

func (*SearchInputRequestDefinition) SearchInputRequestDefinitionCaster ¶

func (s *SearchInputRequestDefinition) SearchInputRequestDefinitionCaster() *SearchInputRequestDefinition

func (*SearchInputRequestDefinition) UnmarshalJSON ¶

func (s *SearchInputRequestDefinition) UnmarshalJSON(data []byte) error

type SearchInputRequestDefinitionVariant ¶

type SearchInputRequestDefinitionVariant interface {
	SearchInputRequestDefinitionCaster() *SearchInputRequestDefinition
}

type SearchInputVariant ¶

type SearchInputVariant interface {
	SearchInputCaster() *SearchInput
}

type SearchProfile ¶

type SearchProfile struct {
	Collector   []Collector    `json:"collector"`
	Query       []QueryProfile `json:"query"`
	RewriteTime int64          `json:"rewrite_time"`
}

SearchProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L136-L140

func NewSearchProfile ¶

func NewSearchProfile() *SearchProfile

NewSearchProfile returns a SearchProfile.

func (*SearchProfile) UnmarshalJSON ¶

func (s *SearchProfile) UnmarshalJSON(data []byte) error

type SearchRequestBody ¶

type SearchRequestBody struct {
	// Aggregations Defines the aggregations that are run as part of the search request.
	Aggregations map[string]Aggregations `json:"aggregations,omitempty"`
	// Collapse Collapses search results the values of the specified field.
	Collapse *FieldCollapse `json:"collapse,omitempty"`
	// DocvalueFields An array of wildcard (`*`) field patterns.
	// The request returns doc values for field names matching these patterns in the
	// `hits.fields` property of the response.
	DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`
	// Explain If `true`, the request returns detailed information about score computation
	// as part of a hit.
	Explain *bool `json:"explain,omitempty"`
	// Ext Configuration of search extensions defined by Elasticsearch plugins.
	Ext map[string]json.RawMessage `json:"ext,omitempty"`
	// Fields An array of wildcard (`*`) field patterns.
	// The request returns values for field names matching these patterns in the
	// `hits.fields` property of the response.
	Fields []FieldAndFormat `json:"fields,omitempty"`
	// From The starting document offset, which must be non-negative.
	// By default, you cannot page through more than 10,000 hits using the `from`
	// and `size` parameters.
	// To page through more hits, use the `search_after` parameter.
	From *int `json:"from,omitempty"`
	// Highlight Specifies the highlighter to use for retrieving highlighted snippets from one
	// or more fields in your search results.
	Highlight *Highlight `json:"highlight,omitempty"`
	// IndicesBoost Boost the `_score` of documents from specified indices.
	// The boost value is the factor by which scores are multiplied.
	// A boost value greater than `1.0` increases the score.
	// A boost value between `0` and `1.0` decreases the score.
	IndicesBoost []map[string]Float64 `json:"indices_boost,omitempty"`
	// Knn The approximate kNN search to run.
	Knn []KnnSearch `json:"knn,omitempty"`
	// MinScore The minimum `_score` for matching documents.
	// Documents with a lower `_score` are not included in search results or results
	// collected by aggregations.
	MinScore *Float64 `json:"min_score,omitempty"`
	// Pit Limit the search to a point in time (PIT).
	// If you provide a PIT, you cannot specify an `<index>` in the request path.
	Pit *PointInTimeReference `json:"pit,omitempty"`
	// PostFilter Use the `post_filter` parameter to filter search results.
	// The search hits are filtered after the aggregations are calculated.
	// A post filter has no impact on the aggregation results.
	PostFilter *Query `json:"post_filter,omitempty"`
	// Profile Set to `true` to return detailed timing information about the execution of
	// individual components in a search request.
	// NOTE: This is a debugging tool and adds significant overhead to search
	// execution.
	Profile *bool `json:"profile,omitempty"`
	// Query The search definition using the Query DSL.
	Query *Query `json:"query,omitempty"`
	// Rank The Reciprocal Rank Fusion (RRF) to use.
	Rank *RankContainer `json:"rank,omitempty"`
	// Rescore Can be used to improve precision by reordering just the top (for example 100
	// - 500) documents returned by the `query` and `post_filter` phases.
	Rescore []Rescore `json:"rescore,omitempty"`
	// Retriever A retriever is a specification to describe top documents returned from a
	// search.
	// A retriever replaces other elements of the search API that also return top
	// documents such as `query` and `knn`.
	Retriever *RetrieverContainer `json:"retriever,omitempty"`
	// RuntimeMappings One or more runtime fields in the search request.
	// These fields take precedence over mapped fields with the same name.
	RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"`
	// ScriptFields Retrieve a script evaluation (based on different fields) for each hit.
	ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`
	// SearchAfter Used to retrieve the next page of hits using a set of sort values from the
	// previous page.
	SearchAfter []FieldValue `json:"search_after,omitempty"`
	// SeqNoPrimaryTerm If `true`, the request returns sequence number and primary term of the last
	// modification of each hit.
	SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"`
	// Size The number of hits to return, which must not be negative.
	// By default, you cannot page through more than 10,000 hits using the `from`
	// and `size` parameters.
	// To page through more hits, use the `search_after` property.
	Size *int `json:"size,omitempty"`
	// Slice Split a scrolled search into multiple slices that can be consumed
	// independently.
	Slice *SlicedScroll `json:"slice,omitempty"`
	// Sort A comma-separated list of <field>:<direction> pairs.
	Sort []SortCombinations `json:"sort,omitempty"`
	// Source_ The source fields that are returned for matching documents.
	// These fields are returned in the `hits._source` property of the search
	// response.
	// If the `stored_fields` property is specified, the `_source` property defaults
	// to `false`.
	// Otherwise, it defaults to `true`.
	Source_ SourceConfig `json:"_source,omitempty"`
	// Stats The stats groups to associate with the search.
	// Each group maintains a statistics aggregation for its associated searches.
	// You can retrieve these stats using the indices stats API.
	Stats []string `json:"stats,omitempty"`
	// StoredFields A comma-separated list of stored fields to return as part of a hit.
	// If no fields are specified, no stored fields are included in the response.
	// If this field is specified, the `_source` property defaults to `false`.
	// You can pass `_source: true` to return both source fields and stored fields
	// in the search response.
	StoredFields []string `json:"stored_fields,omitempty"`
	// Suggest Defines a suggester that provides similar looking terms based on a provided
	// text.
	Suggest *Suggester `json:"suggest,omitempty"`
	// TerminateAfter The maximum number of documents to collect for each shard.
	// If a query reaches this limit, Elasticsearch terminates the query early.
	// Elasticsearch collects documents before sorting.
	//
	// IMPORTANT: Use with caution.
	// Elasticsearch applies this property to each shard handling the request.
	// When possible, let Elasticsearch perform early termination automatically.
	// Avoid specifying this property for requests that target data streams with
	// backing indices across multiple data tiers.
	//
	// If set to `0` (default), the query does not terminate early.
	TerminateAfter *int64 `json:"terminate_after,omitempty"`
	// Timeout The period of time to wait for a response from each shard.
	// If no response is received before the timeout expires, the request fails and
	// returns an error.
	// Defaults to no timeout.
	Timeout *string `json:"timeout,omitempty"`
	// TrackScores If `true`, calculate and return document scores, even if the scores are not
	// used for sorting.
	TrackScores *bool `json:"track_scores,omitempty"`
	// TrackTotalHits Number of hits matching the query to count accurately.
	// If `true`, the exact number of hits is returned at the cost of some
	// performance.
	// If `false`, the  response does not include the total number of hits matching
	// the query.
	TrackTotalHits TrackHits `json:"track_total_hits,omitempty"`
	// Version If `true`, the request returns the document version as part of a hit.
	Version *bool `json:"version,omitempty"`
}

SearchRequestBody type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/SearchRequestBody.ts#L42-L242

func NewSearchRequestBody ¶

func NewSearchRequestBody() *SearchRequestBody

NewSearchRequestBody returns a SearchRequestBody.

func (*SearchRequestBody) MsearchRequestItemCaster ¶ added in v9.0.1

func (s *SearchRequestBody) MsearchRequestItemCaster() *MsearchRequestItem

func (*SearchRequestBody) ScriptSourceCaster ¶ added in v9.0.1

func (s *SearchRequestBody) ScriptSourceCaster() *ScriptSource

func (*SearchRequestBody) SearchRequestBodyCaster ¶

func (s *SearchRequestBody) SearchRequestBodyCaster() *SearchRequestBody

func (*SearchRequestBody) UnmarshalJSON ¶

func (s *SearchRequestBody) UnmarshalJSON(data []byte) error

type SearchRequestBodyVariant ¶

type SearchRequestBodyVariant interface {
	SearchRequestBodyCaster() *SearchRequestBody
}

type SearchShardsNodeAttributes ¶

type SearchShardsNodeAttributes struct {
	// Attributes Lists node attributes.
	Attributes map[string]string `json:"attributes"`
	// EphemeralId The ephemeral ID of the node.
	EphemeralId     string `json:"ephemeral_id"`
	ExternalId      string `json:"external_id"`
	MaxIndexVersion int    `json:"max_index_version"`
	MinIndexVersion int    `json:"min_index_version"`
	// Name The human-readable identifier of the node.
	Name  string              `json:"name"`
	Roles []noderole.NodeRole `json:"roles"`
	// TransportAddress The host and port where transport HTTP connections are accepted.
	TransportAddress string `json:"transport_address"`
	Version          string `json:"version"`
}

SearchShardsNodeAttributes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60

func NewSearchShardsNodeAttributes ¶

func NewSearchShardsNodeAttributes() *SearchShardsNodeAttributes

NewSearchShardsNodeAttributes returns a SearchShardsNodeAttributes.

func (*SearchShardsNodeAttributes) UnmarshalJSON ¶

func (s *SearchShardsNodeAttributes) UnmarshalJSON(data []byte) error

type SearchStats ¶

type SearchStats struct {
	FetchCurrent        int64                  `json:"fetch_current"`
	FetchTime           Duration               `json:"fetch_time,omitempty"`
	FetchTimeInMillis   int64                  `json:"fetch_time_in_millis"`
	FetchTotal          int64                  `json:"fetch_total"`
	Groups              map[string]SearchStats `json:"groups,omitempty"`
	OpenContexts        *int64                 `json:"open_contexts,omitempty"`
	QueryCurrent        int64                  `json:"query_current"`
	QueryTime           Duration               `json:"query_time,omitempty"`
	QueryTimeInMillis   int64                  `json:"query_time_in_millis"`
	QueryTotal          int64                  `json:"query_total"`
	RecentSearchLoad    *Float64               `json:"recent_search_load,omitempty"`
	ScrollCurrent       int64                  `json:"scroll_current"`
	ScrollTime          Duration               `json:"scroll_time,omitempty"`
	ScrollTimeInMillis  int64                  `json:"scroll_time_in_millis"`
	ScrollTotal         int64                  `json:"scroll_total"`
	SuggestCurrent      int64                  `json:"suggest_current"`
	SuggestTime         Duration               `json:"suggest_time,omitempty"`
	SuggestTimeInMillis int64                  `json:"suggest_time_in_millis"`
	SuggestTotal        int64                  `json:"suggest_total"`
}

SearchStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L279-L299

func NewSearchStats ¶

func NewSearchStats() *SearchStats

NewSearchStats returns a SearchStats.

func (*SearchStats) UnmarshalJSON ¶

func (s *SearchStats) UnmarshalJSON(data []byte) error

type SearchTemplateRequestBody ¶

type SearchTemplateRequestBody struct {
	Explain *bool `json:"explain,omitempty"`
	// Id ID of the search template to use. If no source is specified,
	// this parameter is required.
	Id      *string                    `json:"id,omitempty"`
	Params  map[string]json.RawMessage `json:"params,omitempty"`
	Profile *bool                      `json:"profile,omitempty"`
	// Source An inline search template. Supports the same parameters as the search API's
	// request body. Also supports Mustache variables. If no id is specified, this
	// parameter is required.
	Source *string `json:"source,omitempty"`
}

SearchTemplateRequestBody type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L125-L142

func NewSearchTemplateRequestBody ¶

func NewSearchTemplateRequestBody() *SearchTemplateRequestBody

NewSearchTemplateRequestBody returns a SearchTemplateRequestBody.

func (*SearchTemplateRequestBody) SearchTemplateRequestBodyCaster ¶

func (s *SearchTemplateRequestBody) SearchTemplateRequestBodyCaster() *SearchTemplateRequestBody

func (*SearchTemplateRequestBody) UnmarshalJSON ¶

func (s *SearchTemplateRequestBody) UnmarshalJSON(data []byte) error

type SearchTemplateRequestBodyVariant ¶

type SearchTemplateRequestBodyVariant interface {
	SearchTemplateRequestBodyCaster() *SearchTemplateRequestBody
}

type SearchTransform ¶

type SearchTransform struct {
	Request SearchInputRequestDefinition `json:"request"`
	Timeout Duration                     `json:"timeout"`
}

SearchTransform type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Transform.ts#L47-L50

func NewSearchTransform ¶

func NewSearchTransform() *SearchTransform

NewSearchTransform returns a SearchTransform.

func (*SearchTransform) SearchTransformCaster ¶

func (s *SearchTransform) SearchTransformCaster() *SearchTransform

func (*SearchTransform) UnmarshalJSON ¶

func (s *SearchTransform) UnmarshalJSON(data []byte) error

type SearchTransformVariant ¶

type SearchTransformVariant interface {
	SearchTransformCaster() *SearchTransform
}

type SearchUsageStats ¶ added in v9.0.1

type SearchUsageStats struct {
	Queries    map[string]int64 `json:"queries"`
	Rescorers  map[string]int64 `json:"rescorers"`
	Retrievers map[string]int64 `json:"retrievers"`
	Sections   map[string]int64 `json:"sections"`
	Total      int64            `json:"total"`
}

SearchUsageStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L149-L155

func NewSearchUsageStats ¶ added in v9.0.1

func NewSearchUsageStats() *SearchUsageStats

NewSearchUsageStats returns a SearchUsageStats.

func (*SearchUsageStats) UnmarshalJSON ¶ added in v9.0.1

func (s *SearchUsageStats) UnmarshalJSON(data []byte) error

type SearchableSnapshotAction ¶

type SearchableSnapshotAction struct {
	ForceMergeIndex    *bool  `json:"force_merge_index,omitempty"`
	SnapshotRepository string `json:"snapshot_repository"`
}

SearchableSnapshotAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L128-L131

func NewSearchableSnapshotAction ¶

func NewSearchableSnapshotAction() *SearchableSnapshotAction

NewSearchableSnapshotAction returns a SearchableSnapshotAction.

func (*SearchableSnapshotAction) SearchableSnapshotActionCaster ¶

func (s *SearchableSnapshotAction) SearchableSnapshotActionCaster() *SearchableSnapshotAction

func (*SearchableSnapshotAction) UnmarshalJSON ¶

func (s *SearchableSnapshotAction) UnmarshalJSON(data []byte) error

type SearchableSnapshotActionVariant ¶

type SearchableSnapshotActionVariant interface {
	SearchableSnapshotActionCaster() *SearchableSnapshotAction
}

type SearchableSnapshots ¶

type SearchableSnapshots struct {
	Available               bool `json:"available"`
	Enabled                 bool `json:"enabled"`
	FullCopyIndicesCount    *int `json:"full_copy_indices_count,omitempty"`
	IndicesCount            int  `json:"indices_count"`
	SharedCacheIndicesCount *int `json:"shared_cache_indices_count,omitempty"`
}

SearchableSnapshots type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L434-L438

func NewSearchableSnapshots ¶

func NewSearchableSnapshots() *SearchableSnapshots

NewSearchableSnapshots returns a SearchableSnapshots.

func (*SearchableSnapshots) UnmarshalJSON ¶

func (s *SearchableSnapshots) UnmarshalJSON(data []byte) error

type Security ¶

type Security struct {
	Anonymous          FeatureToggle               `json:"anonymous"`
	ApiKeyService      FeatureToggle               `json:"api_key_service"`
	Audit              Audit                       `json:"audit"`
	Available          bool                        `json:"available"`
	Enabled            bool                        `json:"enabled"`
	Fips140            FeatureToggle               `json:"fips_140"`
	Ipfilter           IpFilter                    `json:"ipfilter"`
	OperatorPrivileges Base                        `json:"operator_privileges"`
	Realms             map[string]XpackRealm       `json:"realms"`
	RoleMapping        map[string]XpackRoleMapping `json:"role_mapping"`
	Roles              SecurityRoles               `json:"roles"`
	Ssl                Ssl                         `json:"ssl"`
	SystemKey          *FeatureToggle              `json:"system_key,omitempty"`
	TokenService       FeatureToggle               `json:"token_service"`
}

Security type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L440-L453

func NewSecurity ¶

func NewSecurity() *Security

NewSecurity returns a Security.

func (*Security) UnmarshalJSON ¶

func (s *Security) UnmarshalJSON(data []byte) error

type SecurityRoleMapping ¶

type SecurityRoleMapping struct {
	Enabled       bool            `json:"enabled"`
	Metadata      Metadata        `json:"metadata"`
	RoleTemplates []RoleTemplate  `json:"role_templates,omitempty"`
	Roles         []string        `json:"roles,omitempty"`
	Rules         RoleMappingRule `json:"rules"`
}

SecurityRoleMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/RoleMapping.ts#L25-L33

func NewSecurityRoleMapping ¶

func NewSecurityRoleMapping() *SecurityRoleMapping

NewSecurityRoleMapping returns a SecurityRoleMapping.

func (*SecurityRoleMapping) UnmarshalJSON ¶

func (s *SecurityRoleMapping) UnmarshalJSON(data []byte) error

type SecurityRoles ¶

type SecurityRoles struct {
	Dls    SecurityRolesDls    `json:"dls"`
	File   SecurityRolesFile   `json:"file"`
	Native SecurityRolesNative `json:"native"`
}

SecurityRoles type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L306-L310

func NewSecurityRoles ¶

func NewSecurityRoles() *SecurityRoles

NewSecurityRoles returns a SecurityRoles.

type SecurityRolesDls ¶

type SecurityRolesDls struct {
	BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"`
}

SecurityRolesDls type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L318-L320

func NewSecurityRolesDls ¶

func NewSecurityRolesDls() *SecurityRolesDls

NewSecurityRolesDls returns a SecurityRolesDls.

type SecurityRolesDlsBitSetCache ¶

type SecurityRolesDlsBitSetCache struct {
	Count         int      `json:"count"`
	Memory        ByteSize `json:"memory,omitempty"`
	MemoryInBytes uint64   `json:"memory_in_bytes"`
}

SecurityRolesDlsBitSetCache type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L322-L326

func NewSecurityRolesDlsBitSetCache ¶

func NewSecurityRolesDlsBitSetCache() *SecurityRolesDlsBitSetCache

NewSecurityRolesDlsBitSetCache returns a SecurityRolesDlsBitSetCache.

func (*SecurityRolesDlsBitSetCache) UnmarshalJSON ¶

func (s *SecurityRolesDlsBitSetCache) UnmarshalJSON(data []byte) error

type SecurityRolesFile ¶

type SecurityRolesFile struct {
	Dls  bool  `json:"dls"`
	Fls  bool  `json:"fls"`
	Size int64 `json:"size"`
}

SecurityRolesFile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L328-L332

func NewSecurityRolesFile ¶

func NewSecurityRolesFile() *SecurityRolesFile

NewSecurityRolesFile returns a SecurityRolesFile.

func (*SecurityRolesFile) UnmarshalJSON ¶

func (s *SecurityRolesFile) UnmarshalJSON(data []byte) error

type SecurityRolesNative ¶

type SecurityRolesNative struct {
	Dls  bool  `json:"dls"`
	Fls  bool  `json:"fls"`
	Size int64 `json:"size"`
}

SecurityRolesNative type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L312-L316

func NewSecurityRolesNative ¶

func NewSecurityRolesNative() *SecurityRolesNative

NewSecurityRolesNative returns a SecurityRolesNative.

func (*SecurityRolesNative) UnmarshalJSON ¶

func (s *SecurityRolesNative) UnmarshalJSON(data []byte) error

type SecuritySettings ¶

type SecuritySettings struct {
	Index *IndexSettings `json:"index,omitempty"`
}

SecuritySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/SecuritySettings.ts#L22-L24

func NewSecuritySettings ¶

func NewSecuritySettings() *SecuritySettings

NewSecuritySettings returns a SecuritySettings.

func (*SecuritySettings) SecuritySettingsCaster ¶

func (s *SecuritySettings) SecuritySettingsCaster() *SecuritySettings

type SecuritySettingsVariant ¶

type SecuritySettingsVariant interface {
	SecuritySettingsCaster() *SecuritySettings
}

type Segment ¶

type Segment struct {
	Attributes  map[string]string `json:"attributes"`
	Committed   bool              `json:"committed"`
	Compound    bool              `json:"compound"`
	DeletedDocs int64             `json:"deleted_docs"`
	Generation  int               `json:"generation"`
	NumDocs     int64             `json:"num_docs"`
	Search      bool              `json:"search"`
	SizeInBytes Float64           `json:"size_in_bytes"`
	Version     string            `json:"version"`
}

Segment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/segments/types.ts#L28-L38

func NewSegment ¶

func NewSegment() *Segment

NewSegment returns a Segment.

func (*Segment) UnmarshalJSON ¶

func (s *Segment) UnmarshalJSON(data []byte) error

type SegmentsRecord ¶

type SegmentsRecord struct {
	// Committed If `true`, the segment is synced to disk.
	// Segments that are synced can survive a hard reboot.
	// If `false`, the data from uncommitted segments is also stored in the
	// transaction log so that Elasticsearch is able to replay changes on the next
	// start.
	Committed *string `json:"committed,omitempty"`
	// Compound If `true`, the segment is stored in a compound file.
	// This means Lucene merged all files from the segment in a single file to save
	// file descriptors.
	Compound *string `json:"compound,omitempty"`
	// DocsCount The number of documents in the segment.
	// This excludes deleted documents and counts any nested documents separately
	// from their parents.
	// It also excludes documents which were indexed recently and do not yet belong
	// to a segment.
	DocsCount *string `json:"docs.count,omitempty"`
	// DocsDeleted The number of deleted documents in the segment, which might be higher or
	// lower than the number of delete operations you have performed.
	// This number excludes deletes that were performed recently and do not yet
	// belong to a segment.
	// Deleted documents are cleaned up by the automatic merge process if it makes
	// sense to do so.
	// Also, Elasticsearch creates extra deleted documents to internally track the
	// recent history of operations on a shard.
	DocsDeleted *string `json:"docs.deleted,omitempty"`
	// Generation The segment generation number.
	// Elasticsearch increments this generation number for each segment written then
	// uses this number to derive the segment name.
	Generation *string `json:"generation,omitempty"`
	// Id The unique identifier of the node where it lives.
	Id *string `json:"id,omitempty"`
	// Index The index name.
	Index *string `json:"index,omitempty"`
	// Ip The IP address of the node where it lives.
	Ip *string `json:"ip,omitempty"`
	// Prirep The shard type: `primary` or `replica`.
	Prirep *string `json:"prirep,omitempty"`
	// Searchable If `true`, the segment is searchable.
	// If `false`, the segment has most likely been written to disk but needs a
	// refresh to be searchable.
	Searchable *string `json:"searchable,omitempty"`
	// Segment The segment name, which is derived from the segment generation and used
	// internally to create file names in the directory of the shard.
	Segment *string `json:"segment,omitempty"`
	// Shard The shard name.
	Shard *string `json:"shard,omitempty"`
	// Size The segment size in bytes.
	Size ByteSize `json:"size,omitempty"`
	// SizeMemory The segment memory in bytes.
	// A value of `-1` indicates Elasticsearch was unable to compute this number.
	SizeMemory ByteSize `json:"size.memory,omitempty"`
	// Version The version of Lucene used to write the segment.
	Version *string `json:"version,omitempty"`
}

SegmentsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/segments/types.ts#L22-L107

func NewSegmentsRecord ¶

func NewSegmentsRecord() *SegmentsRecord

NewSegmentsRecord returns a SegmentsRecord.

func (*SegmentsRecord) UnmarshalJSON ¶

func (s *SegmentsRecord) UnmarshalJSON(data []byte) error

type SegmentsStats ¶

type SegmentsStats struct {
	// Count Total number of segments across all shards assigned to selected nodes.
	Count int `json:"count"`
	// DocValuesMemory Total amount of memory used for doc values across all shards assigned to
	// selected nodes.
	DocValuesMemory ByteSize `json:"doc_values_memory,omitempty"`
	// DocValuesMemoryInBytes Total amount, in bytes, of memory used for doc values across all shards
	// assigned to selected nodes.
	DocValuesMemoryInBytes int64 `json:"doc_values_memory_in_bytes"`
	// FileSizes This object is not populated by the cluster stats API.
	// To get information on segment files, use the node stats API.
	FileSizes map[string]ShardFileSizeInfo `json:"file_sizes"`
	// FixedBitSet Total amount of memory used by fixed bit sets across all shards assigned to
	// selected nodes.
	// Fixed bit sets are used for nested object field types and type filters for
	// join fields.
	FixedBitSet ByteSize `json:"fixed_bit_set,omitempty"`
	// FixedBitSetMemoryInBytes Total amount of memory, in bytes, used by fixed bit sets across all shards
	// assigned to selected nodes.
	FixedBitSetMemoryInBytes int64 `json:"fixed_bit_set_memory_in_bytes"`
	// IndexWriterMemory Total amount of memory used by all index writers across all shards assigned
	// to selected nodes.
	IndexWriterMemory ByteSize `json:"index_writer_memory,omitempty"`
	// IndexWriterMemoryInBytes Total amount, in bytes, of memory used by all index writers across all shards
	// assigned to selected nodes.
	IndexWriterMemoryInBytes int64 `json:"index_writer_memory_in_bytes"`
	// MaxUnsafeAutoIdTimestamp Unix timestamp, in milliseconds, of the most recently retried indexing
	// request.
	MaxUnsafeAutoIdTimestamp int64 `json:"max_unsafe_auto_id_timestamp"`
	// Memory Total amount of memory used for segments across all shards assigned to
	// selected nodes.
	Memory ByteSize `json:"memory,omitempty"`
	// MemoryInBytes Total amount, in bytes, of memory used for segments across all shards
	// assigned to selected nodes.
	MemoryInBytes int64 `json:"memory_in_bytes"`
	// NormsMemory Total amount of memory used for normalization factors across all shards
	// assigned to selected nodes.
	NormsMemory ByteSize `json:"norms_memory,omitempty"`
	// NormsMemoryInBytes Total amount, in bytes, of memory used for normalization factors across all
	// shards assigned to selected nodes.
	NormsMemoryInBytes int64 `json:"norms_memory_in_bytes"`
	// PointsMemory Total amount of memory used for points across all shards assigned to selected
	// nodes.
	PointsMemory ByteSize `json:"points_memory,omitempty"`
	// PointsMemoryInBytes Total amount, in bytes, of memory used for points across all shards assigned
	// to selected nodes.
	PointsMemoryInBytes int64 `json:"points_memory_in_bytes"`
	// StoredFieldsMemory Total amount of memory used for stored fields across all shards assigned to
	// selected nodes.
	StoredFieldsMemory ByteSize `json:"stored_fields_memory,omitempty"`
	// StoredFieldsMemoryInBytes Total amount, in bytes, of memory used for stored fields across all shards
	// assigned to selected nodes.
	StoredFieldsMemoryInBytes int64 `json:"stored_fields_memory_in_bytes"`
	// TermVectorsMemory Total amount of memory used for term vectors across all shards assigned to
	// selected nodes.
	TermVectorsMemory ByteSize `json:"term_vectors_memory,omitempty"`
	// TermVectorsMemoryInBytes Total amount, in bytes, of memory used for term vectors across all shards
	// assigned to selected nodes.
	TermVectorsMemoryInBytes int64 `json:"term_vectors_memory_in_bytes"`
	// TermsMemory Total amount of memory used for terms across all shards assigned to selected
	// nodes.
	TermsMemory ByteSize `json:"terms_memory,omitempty"`
	// TermsMemoryInBytes Total amount, in bytes, of memory used for terms across all shards assigned
	// to selected nodes.
	TermsMemoryInBytes int64 `json:"terms_memory_in_bytes"`
	// VersionMapMemory Total amount of memory used by all version maps across all shards assigned to
	// selected nodes.
	VersionMapMemory ByteSize `json:"version_map_memory,omitempty"`
	// VersionMapMemoryInBytes Total amount, in bytes, of memory used by all version maps across all shards
	// assigned to selected nodes.
	VersionMapMemoryInBytes int64 `json:"version_map_memory_in_bytes"`
}

SegmentsStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L301-L396

func NewSegmentsStats ¶

func NewSegmentsStats() *SegmentsStats

NewSegmentsStats returns a SegmentsStats.

func (*SegmentsStats) UnmarshalJSON ¶

func (s *SegmentsStats) UnmarshalJSON(data []byte) error

type SelectOption ¶

type SelectOption struct {
	Label string      `json:"label"`
	Value ScalarValue `json:"value"`
}

SelectOption type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L25-L28

func NewSelectOption ¶

func NewSelectOption() *SelectOption

NewSelectOption returns a SelectOption.

func (*SelectOption) SelectOptionCaster ¶

func (s *SelectOption) SelectOptionCaster() *SelectOption

func (*SelectOption) UnmarshalJSON ¶

func (s *SelectOption) UnmarshalJSON(data []byte) error

type SelectOptionVariant ¶

type SelectOptionVariant interface {
	SelectOptionCaster() *SelectOption
}

type SemanticQuery ¶

type SemanticQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field The field to query, which must be a semantic_text field type
	Field string `json:"field"`
	// Query The query text
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
}

SemanticQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/SemanticQuery.ts#L22-L30

func NewSemanticQuery ¶

func NewSemanticQuery() *SemanticQuery

NewSemanticQuery returns a SemanticQuery.

func (*SemanticQuery) SemanticQueryCaster ¶

func (s *SemanticQuery) SemanticQueryCaster() *SemanticQuery

func (*SemanticQuery) UnmarshalJSON ¶

func (s *SemanticQuery) UnmarshalJSON(data []byte) error

type SemanticQueryVariant ¶

type SemanticQueryVariant interface {
	SemanticQueryCaster() *SemanticQuery
}

type SemanticTextProperty ¶

type SemanticTextProperty struct {
	// ChunkingSettings Settings for chunking text into smaller passages. If specified, these will
	// override the
	// chunking settings sent in the inference endpoint associated with
	// inference_id. If chunking settings are updated,
	// they will not be applied to existing documents until they are reindexed.
	ChunkingSettings *ChunkingSettings `json:"chunking_settings,omitempty"`
	// InferenceId Inference endpoint that will be used to generate embeddings for the field.
	// This parameter cannot be updated. Use the Create inference API to create the
	// endpoint.
	// If `search_inference_id` is specified, the inference endpoint will only be
	// used at index time.
	InferenceId *string           `json:"inference_id,omitempty"`
	Meta        map[string]string `json:"meta,omitempty"`
	// SearchInferenceId Inference endpoint that will be used to generate embeddings at query time.
	// You can update this parameter by using the Update mapping API. Use the Create
	// inference API to create the endpoint.
	// If not specified, the inference endpoint defined by inference_id will be used
	// at both index and query time.
	SearchInferenceId *string `json:"search_inference_id,omitempty"`
	Type              string  `json:"type,omitempty"`
}

SemanticTextProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L238-L261

func NewSemanticTextProperty ¶

func NewSemanticTextProperty() *SemanticTextProperty

NewSemanticTextProperty returns a SemanticTextProperty.

func (SemanticTextProperty) MarshalJSON ¶

func (s SemanticTextProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SemanticTextProperty) PropertyCaster ¶ added in v9.0.1

func (s *SemanticTextProperty) PropertyCaster() *Property

func (*SemanticTextProperty) SemanticTextPropertyCaster ¶

func (s *SemanticTextProperty) SemanticTextPropertyCaster() *SemanticTextProperty

func (*SemanticTextProperty) UnmarshalJSON ¶

func (s *SemanticTextProperty) UnmarshalJSON(data []byte) error

type SemanticTextPropertyVariant ¶

type SemanticTextPropertyVariant interface {
	SemanticTextPropertyCaster() *SemanticTextProperty
}

type SerbianAnalyzer ¶

type SerbianAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

SerbianAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L282-L287

func NewSerbianAnalyzer ¶

func NewSerbianAnalyzer() *SerbianAnalyzer

NewSerbianAnalyzer returns a SerbianAnalyzer.

func (*SerbianAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SerbianAnalyzer) AnalyzerCaster() *Analyzer

func (SerbianAnalyzer) MarshalJSON ¶

func (s SerbianAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SerbianAnalyzer) SerbianAnalyzerCaster ¶

func (s *SerbianAnalyzer) SerbianAnalyzerCaster() *SerbianAnalyzer

func (*SerbianAnalyzer) UnmarshalJSON ¶

func (s *SerbianAnalyzer) UnmarshalJSON(data []byte) error

type SerbianAnalyzerVariant ¶

type SerbianAnalyzerVariant interface {
	SerbianAnalyzerCaster() *SerbianAnalyzer
}

type SerbianNormalizationTokenFilter ¶ added in v9.0.1

type SerbianNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

SerbianNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L539-L541

func NewSerbianNormalizationTokenFilter ¶ added in v9.0.1

func NewSerbianNormalizationTokenFilter() *SerbianNormalizationTokenFilter

NewSerbianNormalizationTokenFilter returns a SerbianNormalizationTokenFilter.

func (SerbianNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s SerbianNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SerbianNormalizationTokenFilter) SerbianNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *SerbianNormalizationTokenFilter) SerbianNormalizationTokenFilterCaster() *SerbianNormalizationTokenFilter

func (*SerbianNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *SerbianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*SerbianNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *SerbianNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type SerbianNormalizationTokenFilterVariant ¶ added in v9.0.1

type SerbianNormalizationTokenFilterVariant interface {
	SerbianNormalizationTokenFilterCaster() *SerbianNormalizationTokenFilter
}

type SerialDifferencingAggregation ¶

type SerialDifferencingAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	// Lag The historical bucket to subtract from the current value.
	// Must be a positive, non-zero integer.
	Lag *int `json:"lag,omitempty"`
}

SerialDifferencingAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L399-L408

func NewSerialDifferencingAggregation ¶

func NewSerialDifferencingAggregation() *SerialDifferencingAggregation

NewSerialDifferencingAggregation returns a SerialDifferencingAggregation.

func (*SerialDifferencingAggregation) SerialDifferencingAggregationCaster ¶

func (s *SerialDifferencingAggregation) SerialDifferencingAggregationCaster() *SerialDifferencingAggregation

func (*SerialDifferencingAggregation) UnmarshalJSON ¶

func (s *SerialDifferencingAggregation) UnmarshalJSON(data []byte) error

type SerialDifferencingAggregationVariant ¶

type SerialDifferencingAggregationVariant interface {
	SerialDifferencingAggregationCaster() *SerialDifferencingAggregation
}

type SerializedClusterState ¶

type SerializedClusterState struct {
	Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"`
	// FullStates Number of published cluster states.
	FullStates *SerializedClusterStateDetail `json:"full_states,omitempty"`
}

SerializedClusterState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L234-L240

func NewSerializedClusterState ¶

func NewSerializedClusterState() *SerializedClusterState

NewSerializedClusterState returns a SerializedClusterState.

type SerializedClusterStateDetail ¶

type SerializedClusterStateDetail struct {
	CompressedSize          *string `json:"compressed_size,omitempty"`
	CompressedSizeInBytes   *int64  `json:"compressed_size_in_bytes,omitempty"`
	Count                   *int64  `json:"count,omitempty"`
	UncompressedSize        *string `json:"uncompressed_size,omitempty"`
	UncompressedSizeInBytes *int64  `json:"uncompressed_size_in_bytes,omitempty"`
}

SerializedClusterStateDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L242-L248

func NewSerializedClusterStateDetail ¶

func NewSerializedClusterStateDetail() *SerializedClusterStateDetail

NewSerializedClusterStateDetail returns a SerializedClusterStateDetail.

func (*SerializedClusterStateDetail) UnmarshalJSON ¶

func (s *SerializedClusterStateDetail) UnmarshalJSON(data []byte) error

type ServiceToken ¶

type ServiceToken struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

ServiceToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/create_service_token/types.ts#L22-L25

func NewServiceToken ¶

func NewServiceToken() *ServiceToken

NewServiceToken returns a ServiceToken.

func (*ServiceToken) UnmarshalJSON ¶

func (s *ServiceToken) UnmarshalJSON(data []byte) error

type SetPriorityAction ¶

type SetPriorityAction struct {
	Priority *int `json:"priority,omitempty"`
}

SetPriorityAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L95-L97

func NewSetPriorityAction ¶

func NewSetPriorityAction() *SetPriorityAction

NewSetPriorityAction returns a SetPriorityAction.

func (*SetPriorityAction) SetPriorityActionCaster ¶

func (s *SetPriorityAction) SetPriorityActionCaster() *SetPriorityAction

func (*SetPriorityAction) UnmarshalJSON ¶

func (s *SetPriorityAction) UnmarshalJSON(data []byte) error

type SetPriorityActionVariant ¶

type SetPriorityActionVariant interface {
	SetPriorityActionCaster() *SetPriorityAction
}

type SetProcessor ¶

type SetProcessor struct {
	// CopyFrom The origin field which will be copied to `field`, cannot set `value`
	// simultaneously.
	// Supported data types are `boolean`, `number`, `array`, `object`, `string`,
	// `date`, etc.
	CopyFrom *string `json:"copy_from,omitempty"`
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to insert, upsert, or update.
	// Supports template snippets.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreEmptyValue If `true` and `value` is a template snippet that evaluates to `null` or the
	// empty string, the processor quietly exits without modifying the document.
	IgnoreEmptyValue *bool `json:"ignore_empty_value,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// MediaType The media type for encoding `value`.
	// Applies only when value is a template snippet.
	// Must be one of `application/json`, `text/plain`, or
	// `application/x-www-form-urlencoded`.
	MediaType *string `json:"media_type,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Override If `true` processor will update fields with pre-existing non-null-valued
	// field.
	// When set to `false`, such fields will not be touched.
	Override *bool `json:"override,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// Value The value to be set for the field.
	// Supports template snippets.
	// May specify only one of `value` or `copy_from`.
	Value json.RawMessage `json:"value,omitempty"`
}

SetProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1445-L1479

func NewSetProcessor ¶

func NewSetProcessor() *SetProcessor

NewSetProcessor returns a SetProcessor.

func (*SetProcessor) SetProcessorCaster ¶

func (s *SetProcessor) SetProcessorCaster() *SetProcessor

func (*SetProcessor) UnmarshalJSON ¶

func (s *SetProcessor) UnmarshalJSON(data []byte) error

type SetProcessorVariant ¶

type SetProcessorVariant interface {
	SetProcessorCaster() *SetProcessor
}

type SetSecurityUserProcessor ¶

type SetSecurityUserProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to store the user information into.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Properties Controls what user related properties are added to the field.
	Properties []string `json:"properties,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

SetSecurityUserProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1481-L1490

func NewSetSecurityUserProcessor ¶

func NewSetSecurityUserProcessor() *SetSecurityUserProcessor

NewSetSecurityUserProcessor returns a SetSecurityUserProcessor.

func (*SetSecurityUserProcessor) SetSecurityUserProcessorCaster ¶

func (s *SetSecurityUserProcessor) SetSecurityUserProcessorCaster() *SetSecurityUserProcessor

func (*SetSecurityUserProcessor) UnmarshalJSON ¶

func (s *SetSecurityUserProcessor) UnmarshalJSON(data []byte) error

type SetSecurityUserProcessorVariant ¶

type SetSecurityUserProcessorVariant interface {
	SetSecurityUserProcessorCaster() *SetSecurityUserProcessor
}

type Settings ¶

type Settings struct {
	// AlignCheckpoints Specifies whether the transform checkpoint ranges should be optimized for
	// performance. Such optimization can align
	// checkpoint ranges with the date histogram interval when date histogram is
	// specified as a group source in the
	// transform config. As a result, less document updates in the destination index
	// will be performed thus improving
	// overall performance.
	AlignCheckpoints *bool `json:"align_checkpoints,omitempty"`
	// DatesAsEpochMillis Defines if dates in the ouput should be written as ISO formatted string or as
	// millis since epoch. epoch_millis was
	// the default for transforms created before version 7.11. For compatible output
	// set this value to `true`.
	DatesAsEpochMillis *bool `json:"dates_as_epoch_millis,omitempty"`
	// DeduceMappings Specifies whether the transform should deduce the destination index mappings
	// from the transform configuration.
	DeduceMappings *bool `json:"deduce_mappings,omitempty"`
	// DocsPerSecond Specifies a limit on the number of input documents per second. This setting
	// throttles the transform by adding a
	// wait time between search requests. The default value is null, which disables
	// throttling.
	DocsPerSecond *float32 `json:"docs_per_second,omitempty"`
	// MaxPageSearchSize Defines the initial page size to use for the composite aggregation for each
	// checkpoint. If circuit breaker
	// exceptions occur, the page size is dynamically adjusted to a lower value. The
	// minimum value is `10` and the
	// maximum is `65,536`.
	MaxPageSearchSize *int `json:"max_page_search_size,omitempty"`
	// Unattended If `true`, the transform runs in unattended mode. In unattended mode, the
	// transform retries indefinitely in case
	// of an error which means the transform never fails. Setting the number of
	// retries other than infinite fails in
	// validation.
	Unattended *bool `json:"unattended,omitempty"`
}

Settings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L98-L144

func NewSettings ¶

func NewSettings() *Settings

NewSettings returns a Settings.

func (*Settings) SettingsCaster ¶

func (s *Settings) SettingsCaster() *Settings

func (*Settings) UnmarshalJSON ¶

func (s *Settings) UnmarshalJSON(data []byte) error

type SettingsAnalyze ¶

type SettingsAnalyze struct {
	MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"`
}

SettingsAnalyze type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L245-L248

func NewSettingsAnalyze ¶

func NewSettingsAnalyze() *SettingsAnalyze

NewSettingsAnalyze returns a SettingsAnalyze.

func (*SettingsAnalyze) SettingsAnalyzeCaster ¶

func (s *SettingsAnalyze) SettingsAnalyzeCaster() *SettingsAnalyze

func (*SettingsAnalyze) UnmarshalJSON ¶

func (s *SettingsAnalyze) UnmarshalJSON(data []byte) error

type SettingsAnalyzeVariant ¶

type SettingsAnalyzeVariant interface {
	SettingsAnalyzeCaster() *SettingsAnalyze
}

type SettingsHighlight ¶

type SettingsHighlight struct {
	MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"`
}

SettingsHighlight type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L240-L243

func NewSettingsHighlight ¶

func NewSettingsHighlight() *SettingsHighlight

NewSettingsHighlight returns a SettingsHighlight.

func (*SettingsHighlight) SettingsHighlightCaster ¶

func (s *SettingsHighlight) SettingsHighlightCaster() *SettingsHighlight

func (*SettingsHighlight) UnmarshalJSON ¶

func (s *SettingsHighlight) UnmarshalJSON(data []byte) error

type SettingsHighlightVariant ¶

type SettingsHighlightVariant interface {
	SettingsHighlightCaster() *SettingsHighlight
}

type SettingsQueryString ¶

type SettingsQueryString struct {
	Lenient Stringifiedboolean `json:"lenient"`
}

SettingsQueryString type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L260-L262

func NewSettingsQueryString ¶

func NewSettingsQueryString() *SettingsQueryString

NewSettingsQueryString returns a SettingsQueryString.

func (*SettingsQueryString) SettingsQueryStringCaster ¶

func (s *SettingsQueryString) SettingsQueryStringCaster() *SettingsQueryString

func (*SettingsQueryString) UnmarshalJSON ¶

func (s *SettingsQueryString) UnmarshalJSON(data []byte) error

type SettingsQueryStringVariant ¶

type SettingsQueryStringVariant interface {
	SettingsQueryStringCaster() *SettingsQueryString
}

type SettingsSearch ¶

type SettingsSearch struct {
	Idle    *SearchIdle      `json:"idle,omitempty"`
	Slowlog *SlowlogSettings `json:"slowlog,omitempty"`
}

SettingsSearch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L250-L253

func NewSettingsSearch ¶

func NewSettingsSearch() *SettingsSearch

NewSettingsSearch returns a SettingsSearch.

func (*SettingsSearch) SettingsSearchCaster ¶

func (s *SettingsSearch) SettingsSearchCaster() *SettingsSearch

type SettingsSearchVariant ¶

type SettingsSearchVariant interface {
	SettingsSearchCaster() *SettingsSearch
}

type SettingsSimilarity ¶

type SettingsSimilarity any

SettingsSimilarity holds the union for the following types:

SettingsSimilarityBm25
SettingsSimilarityBoolean
SettingsSimilarityDfi
SettingsSimilarityDfr
SettingsSimilarityIb
SettingsSimilarityLmd
SettingsSimilarityLmj
SettingsSimilarityScripted

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L180-L192

type SettingsSimilarityBm25 ¶

type SettingsSimilarityBm25 struct {
	B                *Float64 `json:"b,omitempty"`
	DiscountOverlaps *bool    `json:"discount_overlaps,omitempty"`
	K1               *Float64 `json:"k1,omitempty"`
	Type             string   `json:"type,omitempty"`
}

SettingsSimilarityBm25 type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L198-L203

func NewSettingsSimilarityBm25 ¶

func NewSettingsSimilarityBm25() *SettingsSimilarityBm25

NewSettingsSimilarityBm25 returns a SettingsSimilarityBm25.

func (SettingsSimilarityBm25) MarshalJSON ¶

func (s SettingsSimilarityBm25) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityBm25) SettingsSimilarityBm25Caster ¶

func (s *SettingsSimilarityBm25) SettingsSimilarityBm25Caster() *SettingsSimilarityBm25

func (*SettingsSimilarityBm25) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityBm25) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityBm25) UnmarshalJSON ¶

func (s *SettingsSimilarityBm25) UnmarshalJSON(data []byte) error

type SettingsSimilarityBm25Variant ¶

type SettingsSimilarityBm25Variant interface {
	SettingsSimilarityBm25Caster() *SettingsSimilarityBm25
}

type SettingsSimilarityBoolean ¶

type SettingsSimilarityBoolean struct {
	Type string `json:"type,omitempty"`
}

SettingsSimilarityBoolean type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L194-L196

func NewSettingsSimilarityBoolean ¶

func NewSettingsSimilarityBoolean() *SettingsSimilarityBoolean

NewSettingsSimilarityBoolean returns a SettingsSimilarityBoolean.

func (SettingsSimilarityBoolean) MarshalJSON ¶

func (s SettingsSimilarityBoolean) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityBoolean) SettingsSimilarityBooleanCaster ¶

func (s *SettingsSimilarityBoolean) SettingsSimilarityBooleanCaster() *SettingsSimilarityBoolean

func (*SettingsSimilarityBoolean) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityBoolean) SettingsSimilarityCaster() *SettingsSimilarity

type SettingsSimilarityBooleanVariant ¶

type SettingsSimilarityBooleanVariant interface {
	SettingsSimilarityBooleanCaster() *SettingsSimilarityBoolean
}

type SettingsSimilarityDfi ¶

type SettingsSimilarityDfi struct {
	IndependenceMeasure dfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"`
	Type                string                                        `json:"type,omitempty"`
}

SettingsSimilarityDfi type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L205-L208

func NewSettingsSimilarityDfi ¶

func NewSettingsSimilarityDfi() *SettingsSimilarityDfi

NewSettingsSimilarityDfi returns a SettingsSimilarityDfi.

func (SettingsSimilarityDfi) MarshalJSON ¶

func (s SettingsSimilarityDfi) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityDfi) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityDfi) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityDfi) SettingsSimilarityDfiCaster ¶

func (s *SettingsSimilarityDfi) SettingsSimilarityDfiCaster() *SettingsSimilarityDfi

type SettingsSimilarityDfiVariant ¶

type SettingsSimilarityDfiVariant interface {
	SettingsSimilarityDfiCaster() *SettingsSimilarityDfi
}

type SettingsSimilarityDfr ¶

type SettingsSimilarityDfr struct {
	AfterEffect   dfraftereffect.DFRAfterEffect `json:"after_effect"`
	BasicModel    dfrbasicmodel.DFRBasicModel   `json:"basic_model"`
	Normalization normalization.Normalization   `json:"normalization"`
	Type          string                        `json:"type,omitempty"`
}

SettingsSimilarityDfr type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L210-L215

func NewSettingsSimilarityDfr ¶

func NewSettingsSimilarityDfr() *SettingsSimilarityDfr

NewSettingsSimilarityDfr returns a SettingsSimilarityDfr.

func (SettingsSimilarityDfr) MarshalJSON ¶

func (s SettingsSimilarityDfr) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityDfr) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityDfr) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityDfr) SettingsSimilarityDfrCaster ¶

func (s *SettingsSimilarityDfr) SettingsSimilarityDfrCaster() *SettingsSimilarityDfr

type SettingsSimilarityDfrVariant ¶

type SettingsSimilarityDfrVariant interface {
	SettingsSimilarityDfrCaster() *SettingsSimilarityDfr
}

type SettingsSimilarityIb ¶

type SettingsSimilarityIb struct {
	Distribution  ibdistribution.IBDistribution `json:"distribution"`
	Lambda        iblambda.IBLambda             `json:"lambda"`
	Normalization normalization.Normalization   `json:"normalization"`
	Type          string                        `json:"type,omitempty"`
}

SettingsSimilarityIb type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L217-L222

func NewSettingsSimilarityIb ¶

func NewSettingsSimilarityIb() *SettingsSimilarityIb

NewSettingsSimilarityIb returns a SettingsSimilarityIb.

func (SettingsSimilarityIb) MarshalJSON ¶

func (s SettingsSimilarityIb) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityIb) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityIb) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityIb) SettingsSimilarityIbCaster ¶

func (s *SettingsSimilarityIb) SettingsSimilarityIbCaster() *SettingsSimilarityIb

type SettingsSimilarityIbVariant ¶

type SettingsSimilarityIbVariant interface {
	SettingsSimilarityIbCaster() *SettingsSimilarityIb
}

type SettingsSimilarityLmd ¶

type SettingsSimilarityLmd struct {
	Mu   *Float64 `json:"mu,omitempty"`
	Type string   `json:"type,omitempty"`
}

SettingsSimilarityLmd type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L224-L227

func NewSettingsSimilarityLmd ¶

func NewSettingsSimilarityLmd() *SettingsSimilarityLmd

NewSettingsSimilarityLmd returns a SettingsSimilarityLmd.

func (SettingsSimilarityLmd) MarshalJSON ¶

func (s SettingsSimilarityLmd) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityLmd) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityLmd) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityLmd) SettingsSimilarityLmdCaster ¶

func (s *SettingsSimilarityLmd) SettingsSimilarityLmdCaster() *SettingsSimilarityLmd

func (*SettingsSimilarityLmd) UnmarshalJSON ¶

func (s *SettingsSimilarityLmd) UnmarshalJSON(data []byte) error

type SettingsSimilarityLmdVariant ¶

type SettingsSimilarityLmdVariant interface {
	SettingsSimilarityLmdCaster() *SettingsSimilarityLmd
}

type SettingsSimilarityLmj ¶

type SettingsSimilarityLmj struct {
	Lambda *Float64 `json:"lambda,omitempty"`
	Type   string   `json:"type,omitempty"`
}

SettingsSimilarityLmj type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L229-L232

func NewSettingsSimilarityLmj ¶

func NewSettingsSimilarityLmj() *SettingsSimilarityLmj

NewSettingsSimilarityLmj returns a SettingsSimilarityLmj.

func (SettingsSimilarityLmj) MarshalJSON ¶

func (s SettingsSimilarityLmj) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityLmj) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityLmj) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityLmj) SettingsSimilarityLmjCaster ¶

func (s *SettingsSimilarityLmj) SettingsSimilarityLmjCaster() *SettingsSimilarityLmj

func (*SettingsSimilarityLmj) UnmarshalJSON ¶

func (s *SettingsSimilarityLmj) UnmarshalJSON(data []byte) error

type SettingsSimilarityLmjVariant ¶

type SettingsSimilarityLmjVariant interface {
	SettingsSimilarityLmjCaster() *SettingsSimilarityLmj
}

type SettingsSimilarityScripted ¶

type SettingsSimilarityScripted struct {
	Script       Script  `json:"script"`
	Type         string  `json:"type,omitempty"`
	WeightScript *Script `json:"weight_script,omitempty"`
}

SettingsSimilarityScripted type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L234-L238

func NewSettingsSimilarityScripted ¶

func NewSettingsSimilarityScripted() *SettingsSimilarityScripted

NewSettingsSimilarityScripted returns a SettingsSimilarityScripted.

func (SettingsSimilarityScripted) MarshalJSON ¶

func (s SettingsSimilarityScripted) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SettingsSimilarityScripted) SettingsSimilarityCaster ¶ added in v9.0.1

func (s *SettingsSimilarityScripted) SettingsSimilarityCaster() *SettingsSimilarity

func (*SettingsSimilarityScripted) SettingsSimilarityScriptedCaster ¶

func (s *SettingsSimilarityScripted) SettingsSimilarityScriptedCaster() *SettingsSimilarityScripted

type SettingsSimilarityScriptedVariant ¶

type SettingsSimilarityScriptedVariant interface {
	SettingsSimilarityScriptedCaster() *SettingsSimilarityScripted
}

type SettingsSimilarityVariant ¶

type SettingsSimilarityVariant interface {
	SettingsSimilarityCaster() *SettingsSimilarity
}

type SettingsVariant ¶

type SettingsVariant interface {
	SettingsCaster() *Settings
}

type ShapeFieldQuery ¶

type ShapeFieldQuery struct {
	// IndexedShape Queries using a pre-indexed shape.
	IndexedShape *FieldLookup `json:"indexed_shape,omitempty"`
	// Relation Spatial relation between the query shape and the document shape.
	Relation *geoshaperelation.GeoShapeRelation `json:"relation,omitempty"`
	// Shape Queries using an inline shape definition in GeoJSON or Well Known Text (WKT)
	// format.
	Shape json.RawMessage `json:"shape,omitempty"`
}

ShapeFieldQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L383-L396

func NewShapeFieldQuery ¶

func NewShapeFieldQuery() *ShapeFieldQuery

NewShapeFieldQuery returns a ShapeFieldQuery.

func (*ShapeFieldQuery) ShapeFieldQueryCaster ¶

func (s *ShapeFieldQuery) ShapeFieldQueryCaster() *ShapeFieldQuery

func (*ShapeFieldQuery) UnmarshalJSON ¶

func (s *ShapeFieldQuery) UnmarshalJSON(data []byte) error

type ShapeFieldQueryVariant ¶

type ShapeFieldQueryVariant interface {
	ShapeFieldQueryCaster() *ShapeFieldQuery
}

type ShapeProperty ¶

type ShapeProperty struct {
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	IgnoreZValue    *bool                          `json:"ignore_z_value,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Orientation         *geoorientation.GeoOrientation                   `json:"orientation,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

ShapeProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/geo.ts#L81-L93

func NewShapeProperty ¶

func NewShapeProperty() *ShapeProperty

NewShapeProperty returns a ShapeProperty.

func (ShapeProperty) MarshalJSON ¶

func (s ShapeProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ShapeProperty) PropertyCaster ¶ added in v9.0.1

func (s *ShapeProperty) PropertyCaster() *Property

func (*ShapeProperty) ShapePropertyCaster ¶

func (s *ShapeProperty) ShapePropertyCaster() *ShapeProperty

func (*ShapeProperty) UnmarshalJSON ¶

func (s *ShapeProperty) UnmarshalJSON(data []byte) error

type ShapePropertyVariant ¶

type ShapePropertyVariant interface {
	ShapePropertyCaster() *ShapeProperty
}

type ShapeQuery ¶

type ShapeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// IgnoreUnmapped When set to `true` the query ignores an unmapped field and will not match any
	// documents.
	IgnoreUnmapped *bool                      `json:"ignore_unmapped,omitempty"`
	QueryName_     *string                    `json:"_name,omitempty"`
	ShapeQuery     map[string]ShapeFieldQuery `json:"-"`
}

ShapeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L367-L381

func NewShapeQuery ¶

func NewShapeQuery() *ShapeQuery

NewShapeQuery returns a ShapeQuery.

func (ShapeQuery) MarshalJSON ¶

func (s ShapeQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ShapeQuery) ShapeQueryCaster ¶

func (s *ShapeQuery) ShapeQueryCaster() *ShapeQuery

func (*ShapeQuery) UnmarshalJSON ¶

func (s *ShapeQuery) UnmarshalJSON(data []byte) error

type ShapeQueryVariant ¶

type ShapeQueryVariant interface {
	ShapeQueryCaster() *ShapeQuery
}

type ShardCommit ¶

type ShardCommit struct {
	Generation int               `json:"generation"`
	Id         string            `json:"id"`
	NumDocs    int64             `json:"num_docs"`
	UserData   map[string]string `json:"user_data"`
}

ShardCommit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L112-L117

func NewShardCommit ¶

func NewShardCommit() *ShardCommit

NewShardCommit returns a ShardCommit.

func (*ShardCommit) UnmarshalJSON ¶

func (s *ShardCommit) UnmarshalJSON(data []byte) error

type ShardFailure ¶

type ShardFailure struct {
	Index  *string    `json:"index,omitempty"`
	Node   *string    `json:"node,omitempty"`
	Reason ErrorCause `json:"reason"`
	Shard  int        `json:"shard"`
	Status *string    `json:"status,omitempty"`
}

ShardFailure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Errors.ts#L52-L58

func NewShardFailure ¶

func NewShardFailure() *ShardFailure

NewShardFailure returns a ShardFailure.

func (*ShardFailure) UnmarshalJSON ¶

func (s *ShardFailure) UnmarshalJSON(data []byte) error

type ShardFileSizeInfo ¶

type ShardFileSizeInfo struct {
	AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"`
	Count              *int64 `json:"count,omitempty"`
	Description        string `json:"description"`
	MaxSizeInBytes     *int64 `json:"max_size_in_bytes,omitempty"`
	MinSizeInBytes     *int64 `json:"min_size_in_bytes,omitempty"`
	SizeInBytes        int64  `json:"size_in_bytes"`
}

ShardFileSizeInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L124-L131

func NewShardFileSizeInfo ¶

func NewShardFileSizeInfo() *ShardFileSizeInfo

NewShardFileSizeInfo returns a ShardFileSizeInfo.

func (*ShardFileSizeInfo) UnmarshalJSON ¶

func (s *ShardFileSizeInfo) UnmarshalJSON(data []byte) error

type ShardHealthStats ¶

type ShardHealthStats struct {
	ActiveShards            int                       `json:"active_shards"`
	InitializingShards      int                       `json:"initializing_shards"`
	PrimaryActive           bool                      `json:"primary_active"`
	RelocatingShards        int                       `json:"relocating_shards"`
	Status                  healthstatus.HealthStatus `json:"status"`
	UnassignedPrimaryShards int                       `json:"unassigned_primary_shards"`
	UnassignedShards        int                       `json:"unassigned_shards"`
}

ShardHealthStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/health/types.ts#L37-L45

func NewShardHealthStats ¶

func NewShardHealthStats() *ShardHealthStats

NewShardHealthStats returns a ShardHealthStats.

func (*ShardHealthStats) UnmarshalJSON ¶

func (s *ShardHealthStats) UnmarshalJSON(data []byte) error

type ShardLease ¶

type ShardLease struct {
	Id             string `json:"id"`
	RetainingSeqNo int64  `json:"retaining_seq_no"`
	Source         string `json:"source"`
	Timestamp      int64  `json:"timestamp"`
}

ShardLease type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L133-L138

func NewShardLease ¶

func NewShardLease() *ShardLease

NewShardLease returns a ShardLease.

func (*ShardLease) UnmarshalJSON ¶

func (s *ShardLease) UnmarshalJSON(data []byte) error

type ShardMigrationStatus ¶

type ShardMigrationStatus struct {
	Status shutdownstatus.ShutdownStatus `json:"status"`
}

ShardMigrationStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54

func NewShardMigrationStatus ¶

func NewShardMigrationStatus() *ShardMigrationStatus

NewShardMigrationStatus returns a ShardMigrationStatus.

type ShardPath ¶

type ShardPath struct {
	DataPath         string `json:"data_path"`
	IsCustomDataPath bool   `json:"is_custom_data_path"`
	StatePath        string `json:"state_path"`
}

ShardPath type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L140-L144

func NewShardPath ¶

func NewShardPath() *ShardPath

NewShardPath returns a ShardPath.

func (*ShardPath) UnmarshalJSON ¶

func (s *ShardPath) UnmarshalJSON(data []byte) error

type ShardProfile ¶

type ShardProfile struct {
	Aggregations []AggregationProfile `json:"aggregations"`
	Cluster      string               `json:"cluster"`
	Dfs          *DfsProfile          `json:"dfs,omitempty"`
	Fetch        *FetchProfile        `json:"fetch,omitempty"`
	Id           string               `json:"id"`
	Index        string               `json:"index"`
	NodeId       string               `json:"node_id"`
	Searches     []SearchProfile      `json:"searches"`
	ShardId      int                  `json:"shard_id"`
}

ShardProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/profile.ts#L142-L152

func NewShardProfile ¶

func NewShardProfile() *ShardProfile

NewShardProfile returns a ShardProfile.

func (*ShardProfile) UnmarshalJSON ¶

func (s *ShardProfile) UnmarshalJSON(data []byte) error

type ShardQueryCache ¶

type ShardQueryCache struct {
	CacheCount        int64 `json:"cache_count"`
	CacheSize         int64 `json:"cache_size"`
	Evictions         int64 `json:"evictions"`
	HitCount          int64 `json:"hit_count"`
	MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
	MissCount         int64 `json:"miss_count"`
	TotalCount        int64 `json:"total_count"`
}

ShardQueryCache type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L146-L154

func NewShardQueryCache ¶

func NewShardQueryCache() *ShardQueryCache

NewShardQueryCache returns a ShardQueryCache.

func (*ShardQueryCache) UnmarshalJSON ¶

func (s *ShardQueryCache) UnmarshalJSON(data []byte) error

type ShardRecovery ¶

type ShardRecovery struct {
	Id                int64                `json:"id"`
	Index             RecoveryIndexStatus  `json:"index"`
	Primary           bool                 `json:"primary"`
	Source            RecoveryOrigin       `json:"source"`
	Stage             string               `json:"stage"`
	Start             *RecoveryStartStatus `json:"start,omitempty"`
	StartTime         DateTime             `json:"start_time,omitempty"`
	StartTimeInMillis int64                `json:"start_time_in_millis"`
	StopTime          DateTime             `json:"stop_time,omitempty"`
	StopTimeInMillis  *int64               `json:"stop_time_in_millis,omitempty"`
	Target            RecoveryOrigin       `json:"target"`
	TotalTime         Duration             `json:"total_time,omitempty"`
	TotalTimeInMillis int64                `json:"total_time_in_millis"`
	Translog          TranslogStatus       `json:"translog"`
	Type              string               `json:"type"`
	VerifyIndex       VerifyIndex          `json:"verify_index"`
}

ShardRecovery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L118-L135

func NewShardRecovery ¶

func NewShardRecovery() *ShardRecovery

NewShardRecovery returns a ShardRecovery.

func (*ShardRecovery) UnmarshalJSON ¶

func (s *ShardRecovery) UnmarshalJSON(data []byte) error

type ShardRetentionLeases ¶

type ShardRetentionLeases struct {
	Leases      []ShardLease `json:"leases"`
	PrimaryTerm int64        `json:"primary_term"`
	Version     int64        `json:"version"`
}

ShardRetentionLeases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L156-L160

func NewShardRetentionLeases ¶

func NewShardRetentionLeases() *ShardRetentionLeases

NewShardRetentionLeases returns a ShardRetentionLeases.

func (*ShardRetentionLeases) UnmarshalJSON ¶

func (s *ShardRetentionLeases) UnmarshalJSON(data []byte) error

type ShardRouting ¶

type ShardRouting struct {
	Node           string                              `json:"node"`
	Primary        bool                                `json:"primary"`
	RelocatingNode *string                             `json:"relocating_node,omitempty"`
	State          shardroutingstate.ShardRoutingState `json:"state"`
}

ShardRouting type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L162-L167

func NewShardRouting ¶

func NewShardRouting() *ShardRouting

NewShardRouting returns a ShardRouting.

func (*ShardRouting) UnmarshalJSON ¶

func (s *ShardRouting) UnmarshalJSON(data []byte) error

type ShardSegmentRouting ¶

type ShardSegmentRouting struct {
	Node    string `json:"node"`
	Primary bool   `json:"primary"`
	State   string `json:"state"`
}

ShardSegmentRouting type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/segments/types.ts#L40-L44

func NewShardSegmentRouting ¶

func NewShardSegmentRouting() *ShardSegmentRouting

NewShardSegmentRouting returns a ShardSegmentRouting.

func (*ShardSegmentRouting) UnmarshalJSON ¶

func (s *ShardSegmentRouting) UnmarshalJSON(data []byte) error

type ShardSequenceNumber ¶

type ShardSequenceNumber struct {
	GlobalCheckpoint int64 `json:"global_checkpoint"`
	LocalCheckpoint  int64 `json:"local_checkpoint"`
	MaxSeqNo         int64 `json:"max_seq_no"`
}

ShardSequenceNumber type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L176-L180

func NewShardSequenceNumber ¶

func NewShardSequenceNumber() *ShardSequenceNumber

NewShardSequenceNumber returns a ShardSequenceNumber.

func (*ShardSequenceNumber) UnmarshalJSON ¶

func (s *ShardSequenceNumber) UnmarshalJSON(data []byte) error

type ShardStatistics ¶

type ShardStatistics struct {
	// Failed The number of shards the operation or search attempted to run on but failed.
	Failed   uint           `json:"failed"`
	Failures []ShardFailure `json:"failures,omitempty"`
	Skipped  *uint          `json:"skipped,omitempty"`
	// Successful The number of shards the operation or search succeeded on.
	Successful uint `json:"successful"`
	// Total The number of shards the operation or search will run on overall.
	Total uint `json:"total"`
}

ShardStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L54-L69

func NewShardStatistics ¶

func NewShardStatistics() *ShardStatistics

NewShardStatistics returns a ShardStatistics.

type ShardStore ¶

type ShardStore struct {
	Allocation     shardstoreallocation.ShardStoreAllocation `json:"allocation"`
	AllocationId   *string                                   `json:"allocation_id,omitempty"`
	ShardStore     map[string]ShardStoreNode                 `json:"-"`
	StoreException *ShardStoreException                      `json:"store_exception,omitempty"`
}

ShardStore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/shard_stores/types.ts#L29-L36

func NewShardStore ¶

func NewShardStore() *ShardStore

NewShardStore returns a ShardStore.

func (ShardStore) MarshalJSON ¶

func (s ShardStore) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*ShardStore) UnmarshalJSON ¶

func (s *ShardStore) UnmarshalJSON(data []byte) error

type ShardStoreException ¶

type ShardStoreException struct {
	Reason string `json:"reason"`
	Type   string `json:"type"`
}

ShardStoreException type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/shard_stores/types.ts#L53-L56

func NewShardStoreException ¶

func NewShardStoreException() *ShardStoreException

NewShardStoreException returns a ShardStoreException.

func (*ShardStoreException) UnmarshalJSON ¶

func (s *ShardStoreException) UnmarshalJSON(data []byte) error

type ShardStoreIndex ¶

type ShardStoreIndex struct {
	Aliases []string `json:"aliases,omitempty"`
	Filter  *Query   `json:"filter,omitempty"`
}

ShardStoreIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65

func NewShardStoreIndex ¶

func NewShardStoreIndex() *ShardStoreIndex

NewShardStoreIndex returns a ShardStoreIndex.

type ShardStoreNode ¶

type ShardStoreNode struct {
	Attributes       map[string]string `json:"attributes"`
	EphemeralId      *string           `json:"ephemeral_id,omitempty"`
	ExternalId       *string           `json:"external_id,omitempty"`
	Name             string            `json:"name"`
	Roles            []string          `json:"roles"`
	TransportAddress string            `json:"transport_address"`
}

ShardStoreNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/shard_stores/types.ts#L38-L45

func NewShardStoreNode ¶

func NewShardStoreNode() *ShardStoreNode

NewShardStoreNode returns a ShardStoreNode.

func (*ShardStoreNode) UnmarshalJSON ¶

func (s *ShardStoreNode) UnmarshalJSON(data []byte) error

type ShardStoreWrapper ¶

type ShardStoreWrapper struct {
	Stores []ShardStore `json:"stores"`
}

ShardStoreWrapper type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/shard_stores/types.ts#L58-L60

func NewShardStoreWrapper ¶

func NewShardStoreWrapper() *ShardStoreWrapper

NewShardStoreWrapper returns a ShardStoreWrapper.

type ShardsAvailabilityIndicator ¶

type ShardsAvailabilityIndicator struct {
	Details   *ShardsAvailabilityIndicatorDetails         `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

ShardsAvailabilityIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L107-L111

func NewShardsAvailabilityIndicator ¶

func NewShardsAvailabilityIndicator() *ShardsAvailabilityIndicator

NewShardsAvailabilityIndicator returns a ShardsAvailabilityIndicator.

func (*ShardsAvailabilityIndicator) UnmarshalJSON ¶

func (s *ShardsAvailabilityIndicator) UnmarshalJSON(data []byte) error

type ShardsAvailabilityIndicatorDetails ¶

type ShardsAvailabilityIndicatorDetails struct {
	CreatingPrimaries     int64 `json:"creating_primaries"`
	CreatingReplicas      int64 `json:"creating_replicas"`
	InitializingPrimaries int64 `json:"initializing_primaries"`
	InitializingReplicas  int64 `json:"initializing_replicas"`
	RestartingPrimaries   int64 `json:"restarting_primaries"`
	RestartingReplicas    int64 `json:"restarting_replicas"`
	StartedPrimaries      int64 `json:"started_primaries"`
	StartedReplicas       int64 `json:"started_replicas"`
	UnassignedPrimaries   int64 `json:"unassigned_primaries"`
	UnassignedReplicas    int64 `json:"unassigned_replicas"`
}

ShardsAvailabilityIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L112-L123

func NewShardsAvailabilityIndicatorDetails ¶

func NewShardsAvailabilityIndicatorDetails() *ShardsAvailabilityIndicatorDetails

NewShardsAvailabilityIndicatorDetails returns a ShardsAvailabilityIndicatorDetails.

func (*ShardsAvailabilityIndicatorDetails) UnmarshalJSON ¶

func (s *ShardsAvailabilityIndicatorDetails) UnmarshalJSON(data []byte) error

type ShardsCapacityIndicator ¶

type ShardsCapacityIndicator struct {
	Details   *ShardsCapacityIndicatorDetails             `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

ShardsCapacityIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L192-L196

func NewShardsCapacityIndicator ¶

func NewShardsCapacityIndicator() *ShardsCapacityIndicator

NewShardsCapacityIndicator returns a ShardsCapacityIndicator.

func (*ShardsCapacityIndicator) UnmarshalJSON ¶

func (s *ShardsCapacityIndicator) UnmarshalJSON(data []byte) error

type ShardsCapacityIndicatorDetails ¶

type ShardsCapacityIndicatorDetails struct {
	Data   ShardsCapacityIndicatorTierDetail `json:"data"`
	Frozen ShardsCapacityIndicatorTierDetail `json:"frozen"`
}

ShardsCapacityIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L198-L201

func NewShardsCapacityIndicatorDetails ¶

func NewShardsCapacityIndicatorDetails() *ShardsCapacityIndicatorDetails

NewShardsCapacityIndicatorDetails returns a ShardsCapacityIndicatorDetails.

type ShardsCapacityIndicatorTierDetail ¶

type ShardsCapacityIndicatorTierDetail struct {
	CurrentUsedShards  *int `json:"current_used_shards,omitempty"`
	MaxShardsInCluster int  `json:"max_shards_in_cluster"`
}

ShardsCapacityIndicatorTierDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L203-L206

func NewShardsCapacityIndicatorTierDetail ¶

func NewShardsCapacityIndicatorTierDetail() *ShardsCapacityIndicatorTierDetail

NewShardsCapacityIndicatorTierDetail returns a ShardsCapacityIndicatorTierDetail.

func (*ShardsCapacityIndicatorTierDetail) UnmarshalJSON ¶

func (s *ShardsCapacityIndicatorTierDetail) UnmarshalJSON(data []byte) error

type ShardsRecord ¶

type ShardsRecord struct {
	// BulkAvgSizeInBytes The average size in bytes of shard bulk operations.
	BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"`
	// BulkAvgTime The average time spent in shard bulk operations.
	BulkAvgTime *string `json:"bulk.avg_time,omitempty"`
	// BulkTotalOperations The number of bulk shard operations.
	BulkTotalOperations *string `json:"bulk.total_operations,omitempty"`
	// BulkTotalSizeInBytes The total size in bytes of shard bulk operations.
	BulkTotalSizeInBytes *string `json:"bulk.total_size_in_bytes,omitempty"`
	// BulkTotalTime The time spent in shard bulk operations.
	BulkTotalTime *string `json:"bulk.total_time,omitempty"`
	// CompletionSize The size of completion.
	CompletionSize *string `json:"completion.size,omitempty"`
	// Dataset total size of dataset (including the cache for partially mounted indices)
	Dataset *string `json:"dataset,omitempty"`
	// Docs The number of documents in the shard.
	Docs *string `json:"docs,omitempty"`
	// FielddataEvictions The fielddata cache evictions.
	FielddataEvictions *string `json:"fielddata.evictions,omitempty"`
	// FielddataMemorySize The used fielddata cache memory.
	FielddataMemorySize *string `json:"fielddata.memory_size,omitempty"`
	// FlushTotal The number of flushes.
	FlushTotal *string `json:"flush.total,omitempty"`
	// FlushTotalTime The time spent in flush.
	FlushTotalTime *string `json:"flush.total_time,omitempty"`
	// GetCurrent The number of current get operations.
	GetCurrent *string `json:"get.current,omitempty"`
	// GetExistsTime The time spent in successful get operations.
	GetExistsTime *string `json:"get.exists_time,omitempty"`
	// GetExistsTotal The number of successful get operations.
	GetExistsTotal *string `json:"get.exists_total,omitempty"`
	// GetMissingTime The time spent in failed get operations.
	GetMissingTime *string `json:"get.missing_time,omitempty"`
	// GetMissingTotal The number of failed get operations.
	GetMissingTotal *string `json:"get.missing_total,omitempty"`
	// GetTime The time spent in get operations.
	GetTime *string `json:"get.time,omitempty"`
	// GetTotal The number of get operations.
	GetTotal *string `json:"get.total,omitempty"`
	// Id The unique identifier for the node.
	Id *string `json:"id,omitempty"`
	// Index The index name.
	Index *string `json:"index,omitempty"`
	// IndexingDeleteCurrent The number of current deletion operations.
	IndexingDeleteCurrent *string `json:"indexing.delete_current,omitempty"`
	// IndexingDeleteTime The time spent in deletion operations.
	IndexingDeleteTime *string `json:"indexing.delete_time,omitempty"`
	// IndexingDeleteTotal The number of delete operations.
	IndexingDeleteTotal *string `json:"indexing.delete_total,omitempty"`
	// IndexingIndexCurrent The number of current indexing operations.
	IndexingIndexCurrent *string `json:"indexing.index_current,omitempty"`
	// IndexingIndexFailed The number of failed indexing operations.
	IndexingIndexFailed *string `json:"indexing.index_failed,omitempty"`
	// IndexingIndexTime The time spent in indexing operations.
	IndexingIndexTime *string `json:"indexing.index_time,omitempty"`
	// IndexingIndexTotal The number of indexing operations.
	IndexingIndexTotal *string `json:"indexing.index_total,omitempty"`
	// Ip The IP address of the node.
	Ip *string `json:"ip,omitempty"`
	// MergesCurrent The number of current merge operations.
	MergesCurrent *string `json:"merges.current,omitempty"`
	// MergesCurrentDocs The number of current merging documents.
	MergesCurrentDocs *string `json:"merges.current_docs,omitempty"`
	// MergesCurrentSize The size of current merge operations.
	MergesCurrentSize *string `json:"merges.current_size,omitempty"`
	// MergesTotal The number of completed merge operations.
	MergesTotal *string `json:"merges.total,omitempty"`
	// MergesTotalDocs The nuber of merged documents.
	MergesTotalDocs *string `json:"merges.total_docs,omitempty"`
	// MergesTotalSize The size of current merges.
	MergesTotalSize *string `json:"merges.total_size,omitempty"`
	// MergesTotalTime The time spent merging documents.
	MergesTotalTime *string `json:"merges.total_time,omitempty"`
	// Node The name of node.
	Node *string `json:"node,omitempty"`
	// PathData The shard data path.
	PathData *string `json:"path.data,omitempty"`
	// PathState The shard state path.
	PathState *string `json:"path.state,omitempty"`
	// Prirep The shard type: `primary` or `replica`.
	Prirep *string `json:"prirep,omitempty"`
	// QueryCacheEvictions The query cache evictions.
	QueryCacheEvictions *string `json:"query_cache.evictions,omitempty"`
	// QueryCacheMemorySize The used query cache memory.
	QueryCacheMemorySize *string `json:"query_cache.memory_size,omitempty"`
	// RecoverysourceType The type of recovery source.
	RecoverysourceType *string `json:"recoverysource.type,omitempty"`
	// RefreshExternalTime The time spent in external refreshes.
	RefreshExternalTime *string `json:"refresh.external_time,omitempty"`
	// RefreshExternalTotal The total nunber of external refreshes.
	RefreshExternalTotal *string `json:"refresh.external_total,omitempty"`
	// RefreshListeners The number of pending refresh listeners.
	RefreshListeners *string `json:"refresh.listeners,omitempty"`
	// RefreshTime The time spent in refreshes.
	RefreshTime *string `json:"refresh.time,omitempty"`
	// RefreshTotal The total number of refreshes.
	RefreshTotal *string `json:"refresh.total,omitempty"`
	// SearchFetchCurrent The current fetch phase operations.
	SearchFetchCurrent *string `json:"search.fetch_current,omitempty"`
	// SearchFetchTime The time spent in fetch phase.
	SearchFetchTime *string `json:"search.fetch_time,omitempty"`
	// SearchFetchTotal The total number of fetch operations.
	SearchFetchTotal *string `json:"search.fetch_total,omitempty"`
	// SearchOpenContexts The number of open search contexts.
	SearchOpenContexts *string `json:"search.open_contexts,omitempty"`
	// SearchQueryCurrent The current query phase operations.
	SearchQueryCurrent *string `json:"search.query_current,omitempty"`
	// SearchQueryTime The time spent in query phase.
	SearchQueryTime *string `json:"search.query_time,omitempty"`
	// SearchQueryTotal The total number of query phase operations.
	SearchQueryTotal *string `json:"search.query_total,omitempty"`
	// SearchScrollCurrent The open scroll contexts.
	SearchScrollCurrent *string `json:"search.scroll_current,omitempty"`
	// SearchScrollTime The time scroll contexts were held open.
	SearchScrollTime *string `json:"search.scroll_time,omitempty"`
	// SearchScrollTotal The number of completed scroll contexts.
	SearchScrollTotal *string `json:"search.scroll_total,omitempty"`
	// SegmentsCount The number of segments.
	SegmentsCount *string `json:"segments.count,omitempty"`
	// SegmentsFixedBitsetMemory The memory used by fixed bit sets for nested object field types and export
	// type filters for types referred in `_parent` fields.
	SegmentsFixedBitsetMemory *string `json:"segments.fixed_bitset_memory,omitempty"`
	// SegmentsIndexWriterMemory The memory used by the index writer.
	SegmentsIndexWriterMemory *string `json:"segments.index_writer_memory,omitempty"`
	// SegmentsMemory The memory used by segments.
	SegmentsMemory *string `json:"segments.memory,omitempty"`
	// SegmentsVersionMapMemory The memory used by the version map.
	SegmentsVersionMapMemory *string `json:"segments.version_map_memory,omitempty"`
	// SeqNoGlobalCheckpoint The global checkpoint.
	SeqNoGlobalCheckpoint *string `json:"seq_no.global_checkpoint,omitempty"`
	// SeqNoLocalCheckpoint The local checkpoint.
	SeqNoLocalCheckpoint *string `json:"seq_no.local_checkpoint,omitempty"`
	// SeqNoMax The maximum sequence number.
	SeqNoMax *string `json:"seq_no.max,omitempty"`
	// Shard The shard name.
	Shard *string `json:"shard,omitempty"`
	// State The shard state.
	// Returned values include:
	// `INITIALIZING`: The shard is recovering from a peer shard or gateway.
	// `RELOCATING`: The shard is relocating.
	// `STARTED`: The shard has started.
	// `UNASSIGNED`: The shard is not assigned to any node.
	State *string `json:"state,omitempty"`
	// Store The disk space used by the shard.
	Store *string `json:"store,omitempty"`
	// SyncId The sync identifier.
	SyncId *string `json:"sync_id,omitempty"`
	// UnassignedAt The time at which the shard became unassigned in Coordinated Universal Time
	// (UTC).
	UnassignedAt *string `json:"unassigned.at,omitempty"`
	// UnassignedDetails Additional details as to why the shard became unassigned.
	// It does not explain why the shard is not assigned; use the cluster allocation
	// explain API for that information.
	UnassignedDetails *string `json:"unassigned.details,omitempty"`
	// UnassignedFor The time at which the shard was requested to be unassigned in Coordinated
	// Universal Time (UTC).
	UnassignedFor *string `json:"unassigned.for,omitempty"`
	// UnassignedReason The reason for the last change to the state of an unassigned shard.
	// It does not explain why the shard is currently unassigned; use the cluster
	// allocation explain API for that information.
	// Returned values include:
	// `ALLOCATION_FAILED`: Unassigned as a result of a failed allocation of the
	// shard.
	// `CLUSTER_RECOVERED`: Unassigned as a result of a full cluster recovery.
	// `DANGLING_INDEX_IMPORTED`: Unassigned as a result of importing a dangling
	// index.
	// `EXISTING_INDEX_RESTORED`: Unassigned as a result of restoring into a closed
	// index.
	// `FORCED_EMPTY_PRIMARY`: The shard’s allocation was last modified by forcing
	// an empty primary using the cluster reroute API.
	// `INDEX_CLOSED`: Unassigned because the index was closed.
	// `INDEX_CREATED`: Unassigned as a result of an API creation of an index.
	// `INDEX_REOPENED`: Unassigned as a result of opening a closed index.
	// `MANUAL_ALLOCATION`: The shard’s allocation was last modified by the cluster
	// reroute API.
	// `NEW_INDEX_RESTORED`: Unassigned as a result of restoring into a new index.
	// `NODE_LEFT`: Unassigned as a result of the node hosting it leaving the
	// cluster.
	// `NODE_RESTARTING`: Similar to `NODE_LEFT`, except that the node was
	// registered as restarting using the node shutdown API.
	// `PRIMARY_FAILED`: The shard was initializing as a replica, but the primary
	// shard failed before the initialization completed.
	// `REALLOCATED_REPLICA`: A better replica location is identified and causes the
	// existing replica allocation to be cancelled.
	// `REINITIALIZED`: When a shard moves from started back to initializing.
	// `REPLICA_ADDED`: Unassigned as a result of explicit addition of a replica.
	// `REROUTE_CANCELLED`: Unassigned as a result of explicit cancel reroute
	// command.
	UnassignedReason *string `json:"unassigned.reason,omitempty"`
	// WarmerCurrent The number of current warmer operations.
	WarmerCurrent *string `json:"warmer.current,omitempty"`
	// WarmerTotal The total number of warmer operations.
	WarmerTotal *string `json:"warmer.total,omitempty"`
	// WarmerTotalTime The time spent in warmer operations.
	WarmerTotalTime *string `json:"warmer.total_time,omitempty"`
}

ShardsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/shards/types.ts#L20-L427

func NewShardsRecord ¶

func NewShardsRecord() *ShardsRecord

NewShardsRecord returns a ShardsRecord.

func (*ShardsRecord) UnmarshalJSON ¶

func (s *ShardsRecord) UnmarshalJSON(data []byte) error

type ShardsSegment ¶

type ShardsSegment struct {
	NumCommittedSegments int                 `json:"num_committed_segments"`
	NumSearchSegments    int                 `json:"num_search_segments"`
	Routing              ShardSegmentRouting `json:"routing"`
	Segments             map[string]Segment  `json:"segments"`
}

ShardsSegment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/segments/types.ts#L46-L51

func NewShardsSegment ¶

func NewShardsSegment() *ShardsSegment

NewShardsSegment returns a ShardsSegment.

func (*ShardsSegment) UnmarshalJSON ¶

func (s *ShardsSegment) UnmarshalJSON(data []byte) error

type ShardsStatsSummary ¶

type ShardsStatsSummary struct {
	Incremental       ShardsStatsSummaryItem `json:"incremental"`
	StartTimeInMillis int64                  `json:"start_time_in_millis"`
	Time              Duration               `json:"time,omitempty"`
	TimeInMillis      int64                  `json:"time_in_millis"`
	Total             ShardsStatsSummaryItem `json:"total"`
}

ShardsStatsSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35

func NewShardsStatsSummary ¶

func NewShardsStatsSummary() *ShardsStatsSummary

NewShardsStatsSummary returns a ShardsStatsSummary.

func (*ShardsStatsSummary) UnmarshalJSON ¶

func (s *ShardsStatsSummary) UnmarshalJSON(data []byte) error

type ShardsStatsSummaryItem ¶

type ShardsStatsSummaryItem struct {
	FileCount   int64 `json:"file_count"`
	SizeInBytes int64 `json:"size_in_bytes"`
}

ShardsStatsSummaryItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40

func NewShardsStatsSummaryItem ¶

func NewShardsStatsSummaryItem() *ShardsStatsSummaryItem

NewShardsStatsSummaryItem returns a ShardsStatsSummaryItem.

func (*ShardsStatsSummaryItem) UnmarshalJSON ¶

func (s *ShardsStatsSummaryItem) UnmarshalJSON(data []byte) error

type ShardsTotalStats ¶

type ShardsTotalStats struct {
	TotalCount int64 `json:"total_count"`
}

ShardsTotalStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/stats/types.ts#L182-L184

func NewShardsTotalStats ¶

func NewShardsTotalStats() *ShardsTotalStats

NewShardsTotalStats returns a ShardsTotalStats.

func (*ShardsTotalStats) UnmarshalJSON ¶

func (s *ShardsTotalStats) UnmarshalJSON(data []byte) error

type Shared ¶

type Shared struct {
	BytesReadInBytes    ByteSize `json:"bytes_read_in_bytes"`
	BytesWrittenInBytes ByteSize `json:"bytes_written_in_bytes"`
	Evictions           int64    `json:"evictions"`
	NumRegions          int      `json:"num_regions"`
	Reads               int64    `json:"reads"`
	RegionSizeInBytes   ByteSize `json:"region_size_in_bytes"`
	SizeInBytes         ByteSize `json:"size_in_bytes"`
	Writes              int64    `json:"writes"`
}

Shared type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43

func NewShared ¶

func NewShared() *Shared

NewShared returns a Shared.

func (*Shared) UnmarshalJSON ¶

func (s *Shared) UnmarshalJSON(data []byte) error

type SharedFileSystemRepository ¶

type SharedFileSystemRepository struct {
	// Settings The repository settings.
	Settings SharedFileSystemRepositorySettings `json:"settings"`
	// Type The shared file system repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

SharedFileSystemRepository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L80-L90

func NewSharedFileSystemRepository ¶

func NewSharedFileSystemRepository() *SharedFileSystemRepository

NewSharedFileSystemRepository returns a SharedFileSystemRepository.

func (SharedFileSystemRepository) MarshalJSON ¶

func (s SharedFileSystemRepository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SharedFileSystemRepository) RepositoryCaster ¶ added in v9.0.1

func (s *SharedFileSystemRepository) RepositoryCaster() *Repository

func (*SharedFileSystemRepository) SharedFileSystemRepositoryCaster ¶

func (s *SharedFileSystemRepository) SharedFileSystemRepositoryCaster() *SharedFileSystemRepository

func (*SharedFileSystemRepository) UnmarshalJSON ¶

func (s *SharedFileSystemRepository) UnmarshalJSON(data []byte) error

type SharedFileSystemRepositorySettings ¶

type SharedFileSystemRepositorySettings struct {
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// Location The location of the shared filesystem used to store and retrieve snapshots.
	// This location must be registered in the `path.repo` setting on all master and
	// data nodes in the cluster.
	// Unlike `path.repo`, this setting supports only a single file path.
	Location string `json:"location"`
	// MaxNumberOfSnapshots The maximum number of snapshots the repository can contain.
	// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.
	MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// Readonly If `true`, the repository is read-only.
	// The cluster can retrieve and restore snapshots from the repository but not
	// write to the repository or create snapshots in it.
	//
	// Only a cluster with write access can create snapshots in the repository.
	// All other clusters connected to the repository should have the `readonly`
	// parameter set to `true`.
	//
	// If `false`, the cluster can write to the repository and create snapshots in
	// it.
	//
	// IMPORTANT: If you register the same snapshot repository with multiple
	// clusters, only one cluster should have write access to the repository.
	// Having multiple clusters write to the repository at the same time risks
	// corrupting the contents of the repository.
	Readonly *bool `json:"readonly,omitempty"`
}

SharedFileSystemRepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L348-L375

func NewSharedFileSystemRepositorySettings ¶

func NewSharedFileSystemRepositorySettings() *SharedFileSystemRepositorySettings

NewSharedFileSystemRepositorySettings returns a SharedFileSystemRepositorySettings.

func (*SharedFileSystemRepositorySettings) SharedFileSystemRepositorySettingsCaster ¶

func (s *SharedFileSystemRepositorySettings) SharedFileSystemRepositorySettingsCaster() *SharedFileSystemRepositorySettings

func (*SharedFileSystemRepositorySettings) UnmarshalJSON ¶

func (s *SharedFileSystemRepositorySettings) UnmarshalJSON(data []byte) error

type SharedFileSystemRepositorySettingsVariant ¶

type SharedFileSystemRepositorySettingsVariant interface {
	SharedFileSystemRepositorySettingsCaster() *SharedFileSystemRepositorySettings
}

type SharedFileSystemRepositoryVariant ¶

type SharedFileSystemRepositoryVariant interface {
	SharedFileSystemRepositoryCaster() *SharedFileSystemRepository
}

type ShingleTokenFilter ¶

type ShingleTokenFilter struct {
	// FillerToken String used in shingles as a replacement for empty positions that do not
	// contain a token. This filler token is only used in shingles, not original
	// unigrams. Defaults to an underscore (`_`).
	FillerToken *string `json:"filler_token,omitempty"`
	// MaxShingleSize Maximum number of tokens to concatenate when creating shingles. Defaults to
	// `2`.
	MaxShingleSize Stringifiedinteger `json:"max_shingle_size,omitempty"`
	// MinShingleSize Minimum number of tokens to concatenate when creating shingles. Defaults to
	// `2`.
	MinShingleSize Stringifiedinteger `json:"min_shingle_size,omitempty"`
	// OutputUnigrams If `true`, the output includes the original input tokens. If `false`, the
	// output only includes shingles; the original input tokens are removed.
	// Defaults to `true`.
	OutputUnigrams *bool `json:"output_unigrams,omitempty"`
	// OutputUnigramsIfNoShingles If `true`, the output includes the original input tokens only if no shingles
	// are produced; if shingles are produced, the output only includes shingles.
	// Defaults to `false`.
	OutputUnigramsIfNoShingles *bool `json:"output_unigrams_if_no_shingles,omitempty"`
	// TokenSeparator Separator used to concatenate adjacent tokens to form a shingle. Defaults to
	// a space (`" "`).
	TokenSeparator *string `json:"token_separator,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

ShingleTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L109-L123

func NewShingleTokenFilter ¶

func NewShingleTokenFilter() *ShingleTokenFilter

NewShingleTokenFilter returns a ShingleTokenFilter.

func (ShingleTokenFilter) MarshalJSON ¶

func (s ShingleTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ShingleTokenFilter) ShingleTokenFilterCaster ¶

func (s *ShingleTokenFilter) ShingleTokenFilterCaster() *ShingleTokenFilter

func (*ShingleTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *ShingleTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*ShingleTokenFilter) UnmarshalJSON ¶

func (s *ShingleTokenFilter) UnmarshalJSON(data []byte) error

type ShingleTokenFilterVariant ¶

type ShingleTokenFilterVariant interface {
	ShingleTokenFilterCaster() *ShingleTokenFilter
}

type ShortNumberProperty ¶

type ShortNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *int                                             `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

ShortNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L182-L185

func NewShortNumberProperty ¶

func NewShortNumberProperty() *ShortNumberProperty

NewShortNumberProperty returns a ShortNumberProperty.

func (ShortNumberProperty) MarshalJSON ¶

func (s ShortNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ShortNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *ShortNumberProperty) PropertyCaster() *Property

func (*ShortNumberProperty) ShortNumberPropertyCaster ¶

func (s *ShortNumberProperty) ShortNumberPropertyCaster() *ShortNumberProperty

func (*ShortNumberProperty) UnmarshalJSON ¶

func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error

type ShortNumberPropertyVariant ¶

type ShortNumberPropertyVariant interface {
	ShortNumberPropertyCaster() *ShortNumberProperty
}

type ShrinkAction ¶

type ShrinkAction struct {
	AllowWriteAfterShrink *bool    `json:"allow_write_after_shrink,omitempty"`
	MaxPrimaryShardSize   ByteSize `json:"max_primary_shard_size,omitempty"`
	NumberOfShards        *int     `json:"number_of_shards,omitempty"`
}

ShrinkAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L117-L121

func NewShrinkAction ¶

func NewShrinkAction() *ShrinkAction

NewShrinkAction returns a ShrinkAction.

func (*ShrinkAction) ShrinkActionCaster ¶

func (s *ShrinkAction) ShrinkActionCaster() *ShrinkAction

func (*ShrinkAction) UnmarshalJSON ¶

func (s *ShrinkAction) UnmarshalJSON(data []byte) error

type ShrinkActionVariant ¶

type ShrinkActionVariant interface {
	ShrinkActionCaster() *ShrinkAction
}

type SignificantLongTermsAggregate ¶

type SignificantLongTermsAggregate struct {
	BgCount  *int64                            `json:"bg_count,omitempty"`
	Buckets  BucketsSignificantLongTermsBucket `json:"buckets"`
	DocCount *int64                            `json:"doc_count,omitempty"`
	Meta     Metadata                          `json:"meta,omitempty"`
}

SignificantLongTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L670-L672

func NewSignificantLongTermsAggregate ¶

func NewSignificantLongTermsAggregate() *SignificantLongTermsAggregate

NewSignificantLongTermsAggregate returns a SignificantLongTermsAggregate.

func (*SignificantLongTermsAggregate) UnmarshalJSON ¶

func (s *SignificantLongTermsAggregate) UnmarshalJSON(data []byte) error

type SignificantLongTermsBucket ¶

type SignificantLongTermsBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	BgCount      int64                `json:"bg_count"`
	DocCount     int64                `json:"doc_count"`
	Key          int64                `json:"key"`
	KeyAsString  *string              `json:"key_as_string,omitempty"`
	Score        Float64              `json:"score"`
}

SignificantLongTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L679-L682

func NewSignificantLongTermsBucket ¶

func NewSignificantLongTermsBucket() *SignificantLongTermsBucket

NewSignificantLongTermsBucket returns a SignificantLongTermsBucket.

func (SignificantLongTermsBucket) MarshalJSON ¶

func (s SignificantLongTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SignificantLongTermsBucket) UnmarshalJSON ¶

func (s *SignificantLongTermsBucket) UnmarshalJSON(data []byte) error

type SignificantStringTermsAggregate ¶

type SignificantStringTermsAggregate struct {
	BgCount  *int64                              `json:"bg_count,omitempty"`
	Buckets  BucketsSignificantStringTermsBucket `json:"buckets"`
	DocCount *int64                              `json:"doc_count,omitempty"`
	Meta     Metadata                            `json:"meta,omitempty"`
}

SignificantStringTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L684-L686

func NewSignificantStringTermsAggregate ¶

func NewSignificantStringTermsAggregate() *SignificantStringTermsAggregate

NewSignificantStringTermsAggregate returns a SignificantStringTermsAggregate.

func (*SignificantStringTermsAggregate) UnmarshalJSON ¶

func (s *SignificantStringTermsAggregate) UnmarshalJSON(data []byte) error

type SignificantStringTermsBucket ¶

type SignificantStringTermsBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	BgCount      int64                `json:"bg_count"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
	Score        Float64              `json:"score"`
}

SignificantStringTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L688-L690

func NewSignificantStringTermsBucket ¶

func NewSignificantStringTermsBucket() *SignificantStringTermsBucket

NewSignificantStringTermsBucket returns a SignificantStringTermsBucket.

func (SignificantStringTermsBucket) MarshalJSON ¶

func (s SignificantStringTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SignificantStringTermsBucket) UnmarshalJSON ¶

func (s *SignificantStringTermsBucket) UnmarshalJSON(data []byte) error

type SignificantTermsAggregation ¶

type SignificantTermsAggregation struct {
	// BackgroundFilter A background filter that can be used to focus in on significant terms within
	// a narrower context, instead of the entire index.
	BackgroundFilter *Query `json:"background_filter,omitempty"`
	// ChiSquare Use Chi square, as described in "Information Retrieval", Manning et al.,
	// Chapter 13.5.2, as the significance score.
	ChiSquare *ChiSquareHeuristic `json:"chi_square,omitempty"`
	// Exclude Terms to exclude.
	Exclude []string `json:"exclude,omitempty"`
	// ExecutionHint Mechanism by which the aggregation should be executed: using field values
	// directly or using global ordinals.
	ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`
	// Field The field from which to return significant terms.
	Field *string `json:"field,omitempty"`
	// Gnd Use Google normalized distance as described in "The Google Similarity
	// Distance", Cilibrasi and Vitanyi, 2007, as the significance score.
	Gnd *GoogleNormalizedDistanceHeuristic `json:"gnd,omitempty"`
	// Include Terms to include.
	Include TermsInclude `json:"include,omitempty"`
	// Jlh Use JLH score as the significance score.
	Jlh *EmptyObject `json:"jlh,omitempty"`
	// MinDocCount Only return terms that are found in more than `min_doc_count` hits.
	MinDocCount *int64 `json:"min_doc_count,omitempty"`
	// MutualInformation Use mutual information as described in "Information Retrieval", Manning et
	// al., Chapter 13.5.1, as the significance score.
	MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`
	// Percentage A simple calculation of the number of documents in the foreground sample with
	// a term divided by the number of documents in the background with the term.
	Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`
	// ScriptHeuristic Customized score, implemented via a script.
	ScriptHeuristic *ScriptedHeuristic `json:"script_heuristic,omitempty"`
	// ShardMinDocCount Regulates the certainty a shard has if the term should actually be added to
	// the candidate list or not with respect to the `min_doc_count`.
	// Terms will only be considered if their local shard frequency within the set
	// is higher than the `shard_min_doc_count`.
	ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`
	// ShardSize Can be used to control the volumes of candidate terms produced by each shard.
	// By default, `shard_size` will be automatically estimated based on the number
	// of shards and the `size` parameter.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The number of buckets returned out of the overall terms list.
	Size *int `json:"size,omitempty"`
}

SignificantTermsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L817-L884

func NewSignificantTermsAggregation ¶

func NewSignificantTermsAggregation() *SignificantTermsAggregation

NewSignificantTermsAggregation returns a SignificantTermsAggregation.

func (*SignificantTermsAggregation) SignificantTermsAggregationCaster ¶

func (s *SignificantTermsAggregation) SignificantTermsAggregationCaster() *SignificantTermsAggregation

func (*SignificantTermsAggregation) UnmarshalJSON ¶

func (s *SignificantTermsAggregation) UnmarshalJSON(data []byte) error

type SignificantTermsAggregationVariant ¶

type SignificantTermsAggregationVariant interface {
	SignificantTermsAggregationCaster() *SignificantTermsAggregation
}

type SignificantTextAggregation ¶

type SignificantTextAggregation struct {
	// BackgroundFilter A background filter that can be used to focus in on significant terms within
	// a narrower context, instead of the entire index.
	BackgroundFilter *Query `json:"background_filter,omitempty"`
	// ChiSquare Use Chi square, as described in "Information Retrieval", Manning et al.,
	// Chapter 13.5.2, as the significance score.
	ChiSquare *ChiSquareHeuristic `json:"chi_square,omitempty"`
	// Exclude Values to exclude.
	Exclude []string `json:"exclude,omitempty"`
	// ExecutionHint Determines whether the aggregation will use field values directly or global
	// ordinals.
	ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`
	// Field The field from which to return significant text.
	Field *string `json:"field,omitempty"`
	// FilterDuplicateText Whether to out duplicate text to deal with noisy data.
	FilterDuplicateText *bool `json:"filter_duplicate_text,omitempty"`
	// Gnd Use Google normalized distance as described in "The Google Similarity
	// Distance", Cilibrasi and Vitanyi, 2007, as the significance score.
	Gnd *GoogleNormalizedDistanceHeuristic `json:"gnd,omitempty"`
	// Include Values to include.
	Include TermsInclude `json:"include,omitempty"`
	// Jlh Use JLH score as the significance score.
	Jlh *EmptyObject `json:"jlh,omitempty"`
	// MinDocCount Only return values that are found in more than `min_doc_count` hits.
	MinDocCount *int64 `json:"min_doc_count,omitempty"`
	// MutualInformation Use mutual information as described in "Information Retrieval", Manning et
	// al., Chapter 13.5.1, as the significance score.
	MutualInformation *MutualInformationHeuristic `json:"mutual_information,omitempty"`
	// Percentage A simple calculation of the number of documents in the foreground sample with
	// a term divided by the number of documents in the background with the term.
	Percentage *PercentageScoreHeuristic `json:"percentage,omitempty"`
	// ScriptHeuristic Customized score, implemented via a script.
	ScriptHeuristic *ScriptedHeuristic `json:"script_heuristic,omitempty"`
	// ShardMinDocCount Regulates the certainty a shard has if the values should actually be added to
	// the candidate list or not with respect to the min_doc_count.
	// Values will only be considered if their local shard frequency within the set
	// is higher than the `shard_min_doc_count`.
	ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`
	// ShardSize The number of candidate terms produced by each shard.
	// By default, `shard_size` will be automatically estimated based on the number
	// of shards and the `size` parameter.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The number of buckets returned out of the overall terms list.
	Size *int `json:"size,omitempty"`
	// SourceFields Overrides the JSON `_source` fields from which text will be analyzed.
	SourceFields []string `json:"source_fields,omitempty"`
}

SignificantTextAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L886-L961

func NewSignificantTextAggregation ¶

func NewSignificantTextAggregation() *SignificantTextAggregation

NewSignificantTextAggregation returns a SignificantTextAggregation.

func (*SignificantTextAggregation) SignificantTextAggregationCaster ¶

func (s *SignificantTextAggregation) SignificantTextAggregationCaster() *SignificantTextAggregation

func (*SignificantTextAggregation) UnmarshalJSON ¶

func (s *SignificantTextAggregation) UnmarshalJSON(data []byte) error

type SignificantTextAggregationVariant ¶

type SignificantTextAggregationVariant interface {
	SignificantTextAggregationCaster() *SignificantTextAggregation
}

type SimpleAnalyzer ¶

type SimpleAnalyzer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

SimpleAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L367-L371

func NewSimpleAnalyzer ¶

func NewSimpleAnalyzer() *SimpleAnalyzer

NewSimpleAnalyzer returns a SimpleAnalyzer.

func (*SimpleAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SimpleAnalyzer) AnalyzerCaster() *Analyzer

func (SimpleAnalyzer) MarshalJSON ¶

func (s SimpleAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SimpleAnalyzer) SimpleAnalyzerCaster ¶

func (s *SimpleAnalyzer) SimpleAnalyzerCaster() *SimpleAnalyzer

func (*SimpleAnalyzer) UnmarshalJSON ¶

func (s *SimpleAnalyzer) UnmarshalJSON(data []byte) error

type SimpleAnalyzerVariant ¶

type SimpleAnalyzerVariant interface {
	SimpleAnalyzerCaster() *SimpleAnalyzer
}

type SimpleMovingAverageAggregation ¶

type SimpleMovingAverageAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
	Minimize  *bool                `json:"minimize,omitempty"`
	Model     string               `json:"model,omitempty"`
	Predict   *int                 `json:"predict,omitempty"`
	Settings  EmptyObject          `json:"settings"`
	Window    *int                 `json:"window,omitempty"`
}

SimpleMovingAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L273-L276

func NewSimpleMovingAverageAggregation ¶

func NewSimpleMovingAverageAggregation() *SimpleMovingAverageAggregation

NewSimpleMovingAverageAggregation returns a SimpleMovingAverageAggregation.

func (SimpleMovingAverageAggregation) MarshalJSON ¶

func (s SimpleMovingAverageAggregation) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SimpleMovingAverageAggregation) MovingAverageAggregationCaster ¶ added in v9.0.1

func (s *SimpleMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation

func (*SimpleMovingAverageAggregation) SimpleMovingAverageAggregationCaster ¶

func (s *SimpleMovingAverageAggregation) SimpleMovingAverageAggregationCaster() *SimpleMovingAverageAggregation

func (*SimpleMovingAverageAggregation) UnmarshalJSON ¶

func (s *SimpleMovingAverageAggregation) UnmarshalJSON(data []byte) error

type SimpleMovingAverageAggregationVariant ¶

type SimpleMovingAverageAggregationVariant interface {
	SimpleMovingAverageAggregationCaster() *SimpleMovingAverageAggregation
}

type SimplePatternSplitTokenizer ¶

type SimplePatternSplitTokenizer struct {
	Pattern *string `json:"pattern,omitempty"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

SimplePatternSplitTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L118-L121

func NewSimplePatternSplitTokenizer ¶

func NewSimplePatternSplitTokenizer() *SimplePatternSplitTokenizer

NewSimplePatternSplitTokenizer returns a SimplePatternSplitTokenizer.

func (SimplePatternSplitTokenizer) MarshalJSON ¶

func (s SimplePatternSplitTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SimplePatternSplitTokenizer) SimplePatternSplitTokenizerCaster ¶

func (s *SimplePatternSplitTokenizer) SimplePatternSplitTokenizerCaster() *SimplePatternSplitTokenizer

func (*SimplePatternSplitTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *SimplePatternSplitTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*SimplePatternSplitTokenizer) UnmarshalJSON ¶

func (s *SimplePatternSplitTokenizer) UnmarshalJSON(data []byte) error

type SimplePatternSplitTokenizerVariant ¶

type SimplePatternSplitTokenizerVariant interface {
	SimplePatternSplitTokenizerCaster() *SimplePatternSplitTokenizer
}

type SimplePatternTokenizer ¶

type SimplePatternTokenizer struct {
	Pattern *string `json:"pattern,omitempty"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

SimplePatternTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L113-L116

func NewSimplePatternTokenizer ¶

func NewSimplePatternTokenizer() *SimplePatternTokenizer

NewSimplePatternTokenizer returns a SimplePatternTokenizer.

func (SimplePatternTokenizer) MarshalJSON ¶

func (s SimplePatternTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SimplePatternTokenizer) SimplePatternTokenizerCaster ¶

func (s *SimplePatternTokenizer) SimplePatternTokenizerCaster() *SimplePatternTokenizer

func (*SimplePatternTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *SimplePatternTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*SimplePatternTokenizer) UnmarshalJSON ¶

func (s *SimplePatternTokenizer) UnmarshalJSON(data []byte) error

type SimplePatternTokenizerVariant ¶

type SimplePatternTokenizerVariant interface {
	SimplePatternTokenizerCaster() *SimplePatternTokenizer
}

type SimpleQueryStringFlagsVariant ¶

type SimpleQueryStringFlagsVariant interface {
	SimpleQueryStringFlagsCaster() *SimpleQueryStringFlags
}

type SimpleQueryStringQuery ¶

type SimpleQueryStringQuery struct {
	// AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string.
	AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"`
	// Analyzer Analyzer used to convert text in the query string into tokens.
	Analyzer *string `json:"analyzer,omitempty"`
	// AutoGenerateSynonymsPhraseQuery If `true`, the parser creates a match_phrase query for each multi-position
	// token.
	AutoGenerateSynonymsPhraseQuery *bool `json:"auto_generate_synonyms_phrase_query,omitempty"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// DefaultOperator Default boolean logic used to interpret text in the query string if no
	// operators are specified.
	DefaultOperator *operator.Operator `json:"default_operator,omitempty"`
	// Fields Array of fields you wish to search.
	// Accepts wildcard expressions.
	// You also can boost relevance scores for matches to particular fields using a
	// caret (`^`) notation.
	// Defaults to the `index.query.default_field index` setting, which has a
	// default value of `*`.
	Fields []string `json:"fields,omitempty"`
	// Flags List of enabled operators for the simple query string syntax.
	Flags PipeSeparatedFlagsSimpleQueryStringFlag `json:"flags,omitempty"`
	// FuzzyMaxExpansions Maximum number of terms to which the query expands for fuzzy matching.
	FuzzyMaxExpansions *int `json:"fuzzy_max_expansions,omitempty"`
	// FuzzyPrefixLength Number of beginning characters left unchanged for fuzzy matching.
	FuzzyPrefixLength *int `json:"fuzzy_prefix_length,omitempty"`
	// FuzzyTranspositions If `true`, edits for fuzzy matching include transpositions of two adjacent
	// characters (for example, `ab` to `ba`).
	FuzzyTranspositions *bool `json:"fuzzy_transpositions,omitempty"`
	// Lenient If `true`, format-based errors, such as providing a text value for a numeric
	// field, are ignored.
	Lenient *bool `json:"lenient,omitempty"`
	// MinimumShouldMatch Minimum number of clauses that must match for a document to be returned.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// Query Query string in the simple query string syntax you wish to parse and use for
	// search.
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
	// QuoteFieldSuffix Suffix appended to quoted text in the query string.
	QuoteFieldSuffix *string `json:"quote_field_suffix,omitempty"`
}

SimpleQueryStringQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/fulltext.ts#L837-L905

func NewSimpleQueryStringQuery ¶

func NewSimpleQueryStringQuery() *SimpleQueryStringQuery

NewSimpleQueryStringQuery returns a SimpleQueryStringQuery.

func (*SimpleQueryStringQuery) SimpleQueryStringQueryCaster ¶

func (s *SimpleQueryStringQuery) SimpleQueryStringQueryCaster() *SimpleQueryStringQuery

func (*SimpleQueryStringQuery) UnmarshalJSON ¶

func (s *SimpleQueryStringQuery) UnmarshalJSON(data []byte) error

type SimpleQueryStringQueryVariant ¶

type SimpleQueryStringQueryVariant interface {
	SimpleQueryStringQueryCaster() *SimpleQueryStringQuery
}

type SimpleValueAggregate ¶

type SimpleValueAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

SimpleValueAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L238-L239

func NewSimpleValueAggregate ¶

func NewSimpleValueAggregate() *SimpleValueAggregate

NewSimpleValueAggregate returns a SimpleValueAggregate.

func (*SimpleValueAggregate) UnmarshalJSON ¶

func (s *SimpleValueAggregate) UnmarshalJSON(data []byte) error

type SimulateDocumentResult ¶

type SimulateDocumentResult struct {
	Doc              *DocumentSimulation       `json:"doc,omitempty"`
	Error            *ErrorCause               `json:"error,omitempty"`
	ProcessorResults []PipelineProcessorResult `json:"processor_results,omitempty"`
}

SimulateDocumentResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Simulation.ts#L45-L49

func NewSimulateDocumentResult ¶

func NewSimulateDocumentResult() *SimulateDocumentResult

NewSimulateDocumentResult returns a SimulateDocumentResult.

type SimulateIngestDocumentResult ¶

type SimulateIngestDocumentResult struct {
	Doc *IngestDocumentSimulation `json:"doc,omitempty"`
}

SimulateIngestDocumentResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33

func NewSimulateIngestDocumentResult ¶

func NewSimulateIngestDocumentResult() *SimulateIngestDocumentResult

NewSimulateIngestDocumentResult returns a SimulateIngestDocumentResult.

type SimulatedActions ¶

type SimulatedActions struct {
	Actions []string          `json:"actions"`
	All     *SimulatedActions `json:"all,omitempty"`
	UseAll  bool              `json:"use_all"`
}

SimulatedActions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L90-L94

func NewSimulatedActions ¶

func NewSimulatedActions() *SimulatedActions

NewSimulatedActions returns a SimulatedActions.

func (*SimulatedActions) SimulatedActionsCaster ¶

func (s *SimulatedActions) SimulatedActionsCaster() *SimulatedActions

func (*SimulatedActions) UnmarshalJSON ¶

func (s *SimulatedActions) UnmarshalJSON(data []byte) error

type SimulatedActionsVariant ¶

type SimulatedActionsVariant interface {
	SimulatedActionsCaster() *SimulatedActions
}

type SizeField ¶

type SizeField struct {
	Enabled bool `json:"enabled"`
}

SizeField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L54-L56

func NewSizeField ¶

func NewSizeField() *SizeField

NewSizeField returns a SizeField.

func (*SizeField) SizeFieldCaster ¶

func (s *SizeField) SizeFieldCaster() *SizeField

func (*SizeField) UnmarshalJSON ¶

func (s *SizeField) UnmarshalJSON(data []byte) error

type SizeFieldVariant ¶

type SizeFieldVariant interface {
	SizeFieldCaster() *SizeField
}

type SizeHttpHistogram ¶

type SizeHttpHistogram struct {
	Count   int64  `json:"count"`
	GeBytes *int64 `json:"ge_bytes,omitempty"`
	LtBytes *int64 `json:"lt_bytes,omitempty"`
}

SizeHttpHistogram type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L716-L720

func NewSizeHttpHistogram ¶

func NewSizeHttpHistogram() *SizeHttpHistogram

NewSizeHttpHistogram returns a SizeHttpHistogram.

func (*SizeHttpHistogram) UnmarshalJSON ¶

func (s *SizeHttpHistogram) UnmarshalJSON(data []byte) error

type SlackAction ¶

type SlackAction struct {
	Account *string      `json:"account,omitempty"`
	Message SlackMessage `json:"message"`
}

SlackAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L91-L94

func NewSlackAction ¶

func NewSlackAction() *SlackAction

NewSlackAction returns a SlackAction.

func (*SlackAction) SlackActionCaster ¶

func (s *SlackAction) SlackActionCaster() *SlackAction

func (*SlackAction) UnmarshalJSON ¶

func (s *SlackAction) UnmarshalJSON(data []byte) error

type SlackActionVariant ¶

type SlackActionVariant interface {
	SlackActionCaster() *SlackAction
}

type SlackAttachment ¶

type SlackAttachment struct {
	AuthorIcon *string                `json:"author_icon,omitempty"`
	AuthorLink *string                `json:"author_link,omitempty"`
	AuthorName string                 `json:"author_name"`
	Color      *string                `json:"color,omitempty"`
	Fallback   *string                `json:"fallback,omitempty"`
	Fields     []SlackAttachmentField `json:"fields,omitempty"`
	Footer     *string                `json:"footer,omitempty"`
	FooterIcon *string                `json:"footer_icon,omitempty"`
	ImageUrl   *string                `json:"image_url,omitempty"`
	Pretext    *string                `json:"pretext,omitempty"`
	Text       *string                `json:"text,omitempty"`
	ThumbUrl   *string                `json:"thumb_url,omitempty"`
	Title      string                 `json:"title"`
	TitleLink  *string                `json:"title_link,omitempty"`
	Ts         *int64                 `json:"ts,omitempty"`
}

SlackAttachment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L101-L117

func NewSlackAttachment ¶

func NewSlackAttachment() *SlackAttachment

NewSlackAttachment returns a SlackAttachment.

func (*SlackAttachment) SlackAttachmentCaster ¶

func (s *SlackAttachment) SlackAttachmentCaster() *SlackAttachment

func (*SlackAttachment) UnmarshalJSON ¶

func (s *SlackAttachment) UnmarshalJSON(data []byte) error

type SlackAttachmentField ¶

type SlackAttachmentField struct {
	Int   bool   `json:"short"`
	Title string `json:"title"`
	Value string `json:"value"`
}

SlackAttachmentField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L119-L123

func NewSlackAttachmentField ¶

func NewSlackAttachmentField() *SlackAttachmentField

NewSlackAttachmentField returns a SlackAttachmentField.

func (*SlackAttachmentField) SlackAttachmentFieldCaster ¶

func (s *SlackAttachmentField) SlackAttachmentFieldCaster() *SlackAttachmentField

func (*SlackAttachmentField) UnmarshalJSON ¶

func (s *SlackAttachmentField) UnmarshalJSON(data []byte) error

type SlackAttachmentFieldVariant ¶

type SlackAttachmentFieldVariant interface {
	SlackAttachmentFieldCaster() *SlackAttachmentField
}

type SlackAttachmentVariant ¶

type SlackAttachmentVariant interface {
	SlackAttachmentCaster() *SlackAttachment
}

type SlackDynamicAttachment ¶

type SlackDynamicAttachment struct {
	AttachmentTemplate SlackAttachment `json:"attachment_template"`
	ListPath           string          `json:"list_path"`
}

SlackDynamicAttachment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L125-L128

func NewSlackDynamicAttachment ¶

func NewSlackDynamicAttachment() *SlackDynamicAttachment

NewSlackDynamicAttachment returns a SlackDynamicAttachment.

func (*SlackDynamicAttachment) SlackDynamicAttachmentCaster ¶

func (s *SlackDynamicAttachment) SlackDynamicAttachmentCaster() *SlackDynamicAttachment

func (*SlackDynamicAttachment) UnmarshalJSON ¶

func (s *SlackDynamicAttachment) UnmarshalJSON(data []byte) error

type SlackDynamicAttachmentVariant ¶

type SlackDynamicAttachmentVariant interface {
	SlackDynamicAttachmentCaster() *SlackDynamicAttachment
}

type SlackMessage ¶

type SlackMessage struct {
	Attachments        []SlackAttachment       `json:"attachments"`
	DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"`
	From               string                  `json:"from"`
	Icon               *string                 `json:"icon,omitempty"`
	Text               string                  `json:"text"`
	To                 []string                `json:"to"`
}

SlackMessage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L130-L137

func NewSlackMessage ¶

func NewSlackMessage() *SlackMessage

NewSlackMessage returns a SlackMessage.

func (*SlackMessage) SlackMessageCaster ¶

func (s *SlackMessage) SlackMessageCaster() *SlackMessage

func (*SlackMessage) UnmarshalJSON ¶

func (s *SlackMessage) UnmarshalJSON(data []byte) error

type SlackMessageVariant ¶

type SlackMessageVariant interface {
	SlackMessageCaster() *SlackMessage
}

type SlackResult ¶

type SlackResult struct {
	Account *string      `json:"account,omitempty"`
	Message SlackMessage `json:"message"`
}

SlackResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L96-L99

func NewSlackResult ¶

func NewSlackResult() *SlackResult

NewSlackResult returns a SlackResult.

func (*SlackResult) UnmarshalJSON ¶

func (s *SlackResult) UnmarshalJSON(data []byte) error

type SlicedScroll ¶

type SlicedScroll struct {
	Field *string `json:"field,omitempty"`
	Id    string  `json:"id"`
	Max   int     `json:"max"`
}

SlicedScroll type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/SlicedScroll.ts#L23-L27

func NewSlicedScroll ¶

func NewSlicedScroll() *SlicedScroll

NewSlicedScroll returns a SlicedScroll.

func (*SlicedScroll) SlicedScrollCaster ¶

func (s *SlicedScroll) SlicedScrollCaster() *SlicedScroll

func (*SlicedScroll) UnmarshalJSON ¶

func (s *SlicedScroll) UnmarshalJSON(data []byte) error

type SlicedScrollVariant ¶

type SlicedScrollVariant interface {
	SlicedScrollCaster() *SlicedScroll
}

type Slices ¶

type Slices any

Slices holds the union for the following types:

int
slicescalculation.SlicesCalculation

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L363-L368

type Slm ¶

type Slm struct {
	Available   bool        `json:"available"`
	Enabled     bool        `json:"enabled"`
	PolicyCount *int        `json:"policy_count,omitempty"`
	PolicyStats *Statistics `json:"policy_stats,omitempty"`
}

Slm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L455-L458

func NewSlm ¶

func NewSlm() *Slm

NewSlm returns a Slm.

func (*Slm) UnmarshalJSON ¶

func (s *Slm) UnmarshalJSON(data []byte) error

type SlmIndicator ¶

type SlmIndicator struct {
	Details   *SlmIndicatorDetails                        `json:"details,omitempty"`
	Diagnosis []Diagnosis                                 `json:"diagnosis,omitempty"`
	Impacts   []Impact                                    `json:"impacts,omitempty"`
	Status    indicatorhealthstatus.IndicatorHealthStatus `json:"status"`
	Symptom   string                                      `json:"symptom"`
}

SlmIndicator type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L176-L180

func NewSlmIndicator ¶

func NewSlmIndicator() *SlmIndicator

NewSlmIndicator returns a SlmIndicator.

func (*SlmIndicator) UnmarshalJSON ¶

func (s *SlmIndicator) UnmarshalJSON(data []byte) error

type SlmIndicatorDetails ¶

type SlmIndicatorDetails struct {
	Policies          int64                                         `json:"policies"`
	SlmStatus         lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"`
	UnhealthyPolicies *SlmIndicatorUnhealthyPolicies                `json:"unhealthy_policies,omitempty"`
}

SlmIndicatorDetails type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L181-L185

func NewSlmIndicatorDetails ¶

func NewSlmIndicatorDetails() *SlmIndicatorDetails

NewSlmIndicatorDetails returns a SlmIndicatorDetails.

func (*SlmIndicatorDetails) UnmarshalJSON ¶

func (s *SlmIndicatorDetails) UnmarshalJSON(data []byte) error

type SlmIndicatorUnhealthyPolicies ¶

type SlmIndicatorUnhealthyPolicies struct {
	Count                       int64            `json:"count"`
	InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"`
}

SlmIndicatorUnhealthyPolicies type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L187-L190

func NewSlmIndicatorUnhealthyPolicies ¶

func NewSlmIndicatorUnhealthyPolicies() *SlmIndicatorUnhealthyPolicies

NewSlmIndicatorUnhealthyPolicies returns a SlmIndicatorUnhealthyPolicies.

func (*SlmIndicatorUnhealthyPolicies) UnmarshalJSON ¶

func (s *SlmIndicatorUnhealthyPolicies) UnmarshalJSON(data []byte) error

type SlowlogSettings ¶

type SlowlogSettings struct {
	Level     *string           `json:"level,omitempty"`
	Reformat  *bool             `json:"reformat,omitempty"`
	Source    *int              `json:"source,omitempty"`
	Threshold *SlowlogTresholds `json:"threshold,omitempty"`
}

SlowlogSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L528-L533

func NewSlowlogSettings ¶

func NewSlowlogSettings() *SlowlogSettings

NewSlowlogSettings returns a SlowlogSettings.

func (*SlowlogSettings) SlowlogSettingsCaster ¶

func (s *SlowlogSettings) SlowlogSettingsCaster() *SlowlogSettings

func (*SlowlogSettings) UnmarshalJSON ¶

func (s *SlowlogSettings) UnmarshalJSON(data []byte) error

type SlowlogSettingsVariant ¶

type SlowlogSettingsVariant interface {
	SlowlogSettingsCaster() *SlowlogSettings
}

type SlowlogTresholdLevels ¶

type SlowlogTresholdLevels struct {
	Debug Duration `json:"debug,omitempty"`
	Info  Duration `json:"info,omitempty"`
	Trace Duration `json:"trace,omitempty"`
	Warn  Duration `json:"warn,omitempty"`
}

SlowlogTresholdLevels type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L540-L545

func NewSlowlogTresholdLevels ¶

func NewSlowlogTresholdLevels() *SlowlogTresholdLevels

NewSlowlogTresholdLevels returns a SlowlogTresholdLevels.

func (*SlowlogTresholdLevels) SlowlogTresholdLevelsCaster ¶

func (s *SlowlogTresholdLevels) SlowlogTresholdLevelsCaster() *SlowlogTresholdLevels

func (*SlowlogTresholdLevels) UnmarshalJSON ¶

func (s *SlowlogTresholdLevels) UnmarshalJSON(data []byte) error

type SlowlogTresholdLevelsVariant ¶

type SlowlogTresholdLevelsVariant interface {
	SlowlogTresholdLevelsCaster() *SlowlogTresholdLevels
}

type SlowlogTresholds ¶

type SlowlogTresholds struct {
	Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"`
	Query *SlowlogTresholdLevels `json:"query,omitempty"`
}

SlowlogTresholds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L535-L538

func NewSlowlogTresholds ¶

func NewSlowlogTresholds() *SlowlogTresholds

NewSlowlogTresholds returns a SlowlogTresholds.

func (*SlowlogTresholds) SlowlogTresholdsCaster ¶

func (s *SlowlogTresholds) SlowlogTresholdsCaster() *SlowlogTresholds

type SlowlogTresholdsVariant ¶

type SlowlogTresholdsVariant interface {
	SlowlogTresholdsCaster() *SlowlogTresholds
}

type SmoothingModelContainer ¶

type SmoothingModelContainer struct {
	AdditionalSmoothingModelContainerProperty map[string]json.RawMessage `json:"-"`
	// Laplace A smoothing model that uses an additive smoothing where a constant (typically
	// `1.0` or smaller) is added to all counts to balance weights.
	Laplace *LaplaceSmoothingModel `json:"laplace,omitempty"`
	// LinearInterpolation A smoothing model that takes the weighted mean of the unigrams, bigrams, and
	// trigrams based on user supplied weights (lambdas).
	LinearInterpolation *LinearInterpolationSmoothingModel `json:"linear_interpolation,omitempty"`
	// StupidBackoff A simple backoff model that backs off to lower order n-gram models if the
	// higher order count is `0` and discounts the lower order n-gram model by a
	// constant factor.
	StupidBackoff *StupidBackoffSmoothingModel `json:"stupid_backoff,omitempty"`
}

SmoothingModelContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L446-L462

func NewSmoothingModelContainer ¶

func NewSmoothingModelContainer() *SmoothingModelContainer

NewSmoothingModelContainer returns a SmoothingModelContainer.

func (SmoothingModelContainer) MarshalJSON ¶

func (s SmoothingModelContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SmoothingModelContainer) SmoothingModelContainerCaster ¶

func (s *SmoothingModelContainer) SmoothingModelContainerCaster() *SmoothingModelContainer

type SmoothingModelContainerVariant ¶

type SmoothingModelContainerVariant interface {
	SmoothingModelContainerCaster() *SmoothingModelContainer
}

type SnapshotCurrentCounts ¶ added in v9.0.1

type SnapshotCurrentCounts struct {
	// Cleanups Cleanups in progress, not counted in concurrent_operations as they are not
	// concurrent
	Cleanups int `json:"cleanups"`
	// ConcurrentOperations Sum of snapshots and snapshot_deletions
	ConcurrentOperations int `json:"concurrent_operations"`
	// ShardSnapshots Incomplete shard snapshots
	ShardSnapshots int `json:"shard_snapshots"`
	// SnapshotDeletions Snapshots deletions in progress
	SnapshotDeletions int `json:"snapshot_deletions"`
	// Snapshots Snapshots currently in progress
	Snapshots int `json:"snapshots"`
}

SnapshotCurrentCounts type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L642-L663

func NewSnapshotCurrentCounts ¶ added in v9.0.1

func NewSnapshotCurrentCounts() *SnapshotCurrentCounts

NewSnapshotCurrentCounts returns a SnapshotCurrentCounts.

func (*SnapshotCurrentCounts) UnmarshalJSON ¶ added in v9.0.1

func (s *SnapshotCurrentCounts) UnmarshalJSON(data []byte) error

type SnapshotIndexStats ¶

type SnapshotIndexStats struct {
	Shards      map[string]SnapshotShardsStatus `json:"shards"`
	ShardsStats SnapshotShardsStats             `json:"shards_stats"`
	Stats       SnapshotStats                   `json:"stats"`
}

SnapshotIndexStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29

func NewSnapshotIndexStats ¶

func NewSnapshotIndexStats() *SnapshotIndexStats

NewSnapshotIndexStats returns a SnapshotIndexStats.

type SnapshotInfo ¶

type SnapshotInfo struct {
	DataStreams        []string                `json:"data_streams"`
	Duration           Duration                `json:"duration,omitempty"`
	DurationInMillis   *int64                  `json:"duration_in_millis,omitempty"`
	EndTime            DateTime                `json:"end_time,omitempty"`
	EndTimeInMillis    *int64                  `json:"end_time_in_millis,omitempty"`
	Failures           []SnapshotShardFailure  `json:"failures,omitempty"`
	FeatureStates      []InfoFeatureState      `json:"feature_states,omitempty"`
	IncludeGlobalState *bool                   `json:"include_global_state,omitempty"`
	IndexDetails       map[string]IndexDetails `json:"index_details,omitempty"`
	Indices            []string                `json:"indices,omitempty"`
	Metadata           Metadata                `json:"metadata,omitempty"`
	Reason             *string                 `json:"reason,omitempty"`
	Repository         *string                 `json:"repository,omitempty"`
	Shards             *ShardStatistics        `json:"shards,omitempty"`
	Snapshot           string                  `json:"snapshot"`
	StartTime          DateTime                `json:"start_time,omitempty"`
	StartTimeInMillis  *int64                  `json:"start_time_in_millis,omitempty"`
	State              *string                 `json:"state,omitempty"`
	Uuid               string                  `json:"uuid"`
	Version            *string                 `json:"version,omitempty"`
	VersionId          *int64                  `json:"version_id,omitempty"`
}

SnapshotInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotInfo.ts#L41-L71

func NewSnapshotInfo ¶

func NewSnapshotInfo() *SnapshotInfo

NewSnapshotInfo returns a SnapshotInfo.

func (*SnapshotInfo) UnmarshalJSON ¶

func (s *SnapshotInfo) UnmarshalJSON(data []byte) error

type SnapshotLifecycle ¶

type SnapshotLifecycle struct {
	InProgress  *InProgress `json:"in_progress,omitempty"`
	LastFailure *Invocation `json:"last_failure,omitempty"`
	LastSuccess *Invocation `json:"last_success,omitempty"`
	// ModifiedDate The last time the policy was modified.
	ModifiedDate       DateTime `json:"modified_date,omitempty"`
	ModifiedDateMillis int64    `json:"modified_date_millis"`
	// NextExecution The next time the policy will run.
	NextExecution       DateTime   `json:"next_execution,omitempty"`
	NextExecutionMillis int64      `json:"next_execution_millis"`
	Policy              SLMPolicy  `json:"policy"`
	Stats               Statistics `json:"stats"`
	// Version The version of the snapshot policy.
	// Only the latest version is stored and incremented when the policy is updated.
	Version int64 `json:"version"`
}

SnapshotLifecycle type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L38-L59

func NewSnapshotLifecycle ¶

func NewSnapshotLifecycle() *SnapshotLifecycle

NewSnapshotLifecycle returns a SnapshotLifecycle.

func (*SnapshotLifecycle) UnmarshalJSON ¶

func (s *SnapshotLifecycle) UnmarshalJSON(data []byte) error

type SnapshotNodeInfo ¶

type SnapshotNodeInfo struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

SnapshotNodeInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113

func NewSnapshotNodeInfo ¶

func NewSnapshotNodeInfo() *SnapshotNodeInfo

NewSnapshotNodeInfo returns a SnapshotNodeInfo.

func (*SnapshotNodeInfo) UnmarshalJSON ¶

func (s *SnapshotNodeInfo) UnmarshalJSON(data []byte) error

type SnapshotPolicyStats ¶ added in v9.0.1

type SnapshotPolicyStats struct {
	Policy                   string `json:"policy"`
	SnapshotDeletionFailures int64  `json:"snapshot_deletion_failures"`
	SnapshotsDeleted         int64  `json:"snapshots_deleted"`
	SnapshotsFailed          int64  `json:"snapshots_failed"`
	SnapshotsTaken           int64  `json:"snapshots_taken"`
}

SnapshotPolicyStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L153-L159

func NewSnapshotPolicyStats ¶ added in v9.0.1

func NewSnapshotPolicyStats() *SnapshotPolicyStats

NewSnapshotPolicyStats returns a SnapshotPolicyStats.

func (*SnapshotPolicyStats) UnmarshalJSON ¶ added in v9.0.1

func (s *SnapshotPolicyStats) UnmarshalJSON(data []byte) error

type SnapshotResponseItem ¶

type SnapshotResponseItem struct {
	Error      *ErrorCause    `json:"error,omitempty"`
	Repository string         `json:"repository"`
	Snapshots  []SnapshotInfo `json:"snapshots,omitempty"`
}

SnapshotResponseItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/get/SnapshotGetResponse.ts#L49-L53

func NewSnapshotResponseItem ¶

func NewSnapshotResponseItem() *SnapshotResponseItem

NewSnapshotResponseItem returns a SnapshotResponseItem.

func (*SnapshotResponseItem) UnmarshalJSON ¶

func (s *SnapshotResponseItem) UnmarshalJSON(data []byte) error

type SnapshotRestore ¶

type SnapshotRestore struct {
	Indices  []string        `json:"indices"`
	Shards   ShardStatistics `json:"shards"`
	Snapshot string          `json:"snapshot"`
}

SnapshotRestore type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34

func NewSnapshotRestore ¶

func NewSnapshotRestore() *SnapshotRestore

NewSnapshotRestore returns a SnapshotRestore.

func (*SnapshotRestore) UnmarshalJSON ¶

func (s *SnapshotRestore) UnmarshalJSON(data []byte) error

type SnapshotShardFailure ¶

type SnapshotShardFailure struct {
	Index     string  `json:"index"`
	IndexUuid string  `json:"index_uuid"`
	NodeId    *string `json:"node_id,omitempty"`
	Reason    string  `json:"reason"`
	ShardId   int     `json:"shard_id"`
	Status    string  `json:"status"`
}

SnapshotShardFailure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotShardFailure.ts#L23-L30

func NewSnapshotShardFailure ¶

func NewSnapshotShardFailure() *SnapshotShardFailure

NewSnapshotShardFailure returns a SnapshotShardFailure.

func (*SnapshotShardFailure) UnmarshalJSON ¶

func (s *SnapshotShardFailure) UnmarshalJSON(data []byte) error

type SnapshotShardsStats ¶

type SnapshotShardsStats struct {
	// Done The number of shards that initialized, started, and finalized successfully.
	Done int64 `json:"done"`
	// Failed The number of shards that failed to be included in the snapshot.
	Failed int64 `json:"failed"`
	// Finalizing The number of shards that are finalizing but are not done.
	Finalizing int64 `json:"finalizing"`
	// Initializing The number of shards that are still initializing.
	Initializing int64 `json:"initializing"`
	// Started The number of shards that have started but are not finalized.
	Started int64 `json:"started"`
	// Total The total number of shards included in the snapshot.
	Total int64 `json:"total"`
}

SnapshotShardsStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L47

func NewSnapshotShardsStats ¶

func NewSnapshotShardsStats() *SnapshotShardsStats

NewSnapshotShardsStats returns a SnapshotShardsStats.

func (*SnapshotShardsStats) UnmarshalJSON ¶

func (s *SnapshotShardsStats) UnmarshalJSON(data []byte) error

type SnapshotShardsStatus ¶

type SnapshotShardsStatus struct {
	Stage shardsstatsstage.ShardsStatsStage `json:"stage"`
	Stats ShardsStatsSummary                `json:"stats"`
}

SnapshotShardsStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27

func NewSnapshotShardsStatus ¶

func NewSnapshotShardsStatus() *SnapshotShardsStatus

NewSnapshotShardsStatus returns a SnapshotShardsStatus.

type SnapshotStats ¶

type SnapshotStats struct {
	// Incremental The number and size of files that still need to be copied as part of the
	// incremental snapshot.
	// For completed snapshots, this property indicates the number and size of files
	// that were not already in the repository and were copied as part of the
	// incremental snapshot.
	Incremental FileCountSnapshotStats `json:"incremental"`
	// StartTimeInMillis The time, in milliseconds, when the snapshot creation process started.
	StartTimeInMillis int64    `json:"start_time_in_millis"`
	Time              Duration `json:"time,omitempty"`
	// TimeInMillis The total time, in milliseconds, that it took for the snapshot process to
	// complete.
	TimeInMillis int64 `json:"time_in_millis"`
	// Total The total number and size of files that are referenced by the snapshot.
	Total FileCountSnapshotStats `json:"total"`
}

SnapshotStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotStats.ts#L23-L42

func NewSnapshotStats ¶

func NewSnapshotStats() *SnapshotStats

NewSnapshotStats returns a SnapshotStats.

func (*SnapshotStats) UnmarshalJSON ¶

func (s *SnapshotStats) UnmarshalJSON(data []byte) error

type SnapshotsRecord ¶

type SnapshotsRecord struct {
	// Duration The time it took the snapshot process to complete, in time units.
	Duration Duration `json:"duration,omitempty"`
	// EndEpoch The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot
	// process ended.
	EndEpoch StringifiedEpochTimeUnitSeconds `json:"end_epoch,omitempty"`
	// EndTime The time (HH:MM:SS) at which the snapshot process ended.
	EndTime *string `json:"end_time,omitempty"`
	// FailedShards The number of failed shards in the snapshot.
	FailedShards *string `json:"failed_shards,omitempty"`
	// Id The unique identifier for the snapshot.
	Id *string `json:"id,omitempty"`
	// Indices The number of indices in the snapshot.
	Indices *string `json:"indices,omitempty"`
	// Reason The reason for any snapshot failures.
	Reason *string `json:"reason,omitempty"`
	// Repository The repository name.
	Repository *string `json:"repository,omitempty"`
	// StartEpoch The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot
	// process started.
	StartEpoch StringifiedEpochTimeUnitSeconds `json:"start_epoch,omitempty"`
	// StartTime The time (HH:MM:SS) at which the snapshot process started.
	StartTime ScheduleTimeOfDay `json:"start_time,omitempty"`
	// Status The state of the snapshot process.
	// Returned values include:
	// `FAILED`: The snapshot process failed.
	// `INCOMPATIBLE`: The snapshot process is incompatible with the current cluster
	// version.
	// `IN_PROGRESS`: The snapshot process started but has not completed.
	// `PARTIAL`: The snapshot process completed with a partial success.
	// `SUCCESS`: The snapshot process completed with a full success.
	Status *string `json:"status,omitempty"`
	// SuccessfulShards The number of successful shards in the snapshot.
	SuccessfulShards *string `json:"successful_shards,omitempty"`
	// TotalShards The total number of shards in the snapshot.
	TotalShards *string `json:"total_shards,omitempty"`
}

SnapshotsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/snapshots/types.ts#L24-L96

func NewSnapshotsRecord ¶

func NewSnapshotsRecord() *SnapshotsRecord

NewSnapshotsRecord returns a SnapshotsRecord.

func (*SnapshotsRecord) UnmarshalJSON ¶

func (s *SnapshotsRecord) UnmarshalJSON(data []byte) error

type SnowballAnalyzer ¶

type SnowballAnalyzer struct {
	Language  snowballlanguage.SnowballLanguage `json:"language"`
	Stopwords StopWords                         `json:"stopwords,omitempty"`
	Type      string                            `json:"type,omitempty"`
	Version   *string                           `json:"version,omitempty"`
}

SnowballAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L374-L380

func NewSnowballAnalyzer ¶

func NewSnowballAnalyzer() *SnowballAnalyzer

NewSnowballAnalyzer returns a SnowballAnalyzer.

func (*SnowballAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SnowballAnalyzer) AnalyzerCaster() *Analyzer

func (SnowballAnalyzer) MarshalJSON ¶

func (s SnowballAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SnowballAnalyzer) SnowballAnalyzerCaster ¶

func (s *SnowballAnalyzer) SnowballAnalyzerCaster() *SnowballAnalyzer

func (*SnowballAnalyzer) UnmarshalJSON ¶

func (s *SnowballAnalyzer) UnmarshalJSON(data []byte) error

type SnowballAnalyzerVariant ¶

type SnowballAnalyzerVariant interface {
	SnowballAnalyzerCaster() *SnowballAnalyzer
}

type SnowballTokenFilter ¶

type SnowballTokenFilter struct {
	// Language Controls the language used by the stemmer.
	Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"`
	Type     string                             `json:"type,omitempty"`
	Version  *string                            `json:"version,omitempty"`
}

SnowballTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L411-L415

func NewSnowballTokenFilter ¶

func NewSnowballTokenFilter() *SnowballTokenFilter

NewSnowballTokenFilter returns a SnowballTokenFilter.

func (SnowballTokenFilter) MarshalJSON ¶

func (s SnowballTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SnowballTokenFilter) SnowballTokenFilterCaster ¶

func (s *SnowballTokenFilter) SnowballTokenFilterCaster() *SnowballTokenFilter

func (*SnowballTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *SnowballTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*SnowballTokenFilter) UnmarshalJSON ¶

func (s *SnowballTokenFilter) UnmarshalJSON(data []byte) error

type SnowballTokenFilterVariant ¶

type SnowballTokenFilterVariant interface {
	SnowballTokenFilterCaster() *SnowballTokenFilter
}

type SoftDeletes ¶

type SoftDeletes struct {
	// Enabled Indicates whether soft deletes are enabled on the index.
	Enabled *bool `json:"enabled,omitempty"`
	// RetentionLease The maximum period to retain a shard history retention lease before it is
	// considered expired.
	// Shard history retention leases ensure that soft deletes are retained during
	// merges on the Lucene
	// index. If a soft delete is merged away before it can be replicated to a
	// follower the following
	// process will fail due to incomplete history on the leader.
	RetentionLease *RetentionLease `json:"retention_lease,omitempty"`
}

SoftDeletes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L51-L64

func NewSoftDeletes ¶

func NewSoftDeletes() *SoftDeletes

NewSoftDeletes returns a SoftDeletes.

func (*SoftDeletes) SoftDeletesCaster ¶

func (s *SoftDeletes) SoftDeletesCaster() *SoftDeletes

func (*SoftDeletes) UnmarshalJSON ¶

func (s *SoftDeletes) UnmarshalJSON(data []byte) error

type SoftDeletesVariant ¶

type SoftDeletesVariant interface {
	SoftDeletesCaster() *SoftDeletes
}

type SoraniAnalyzer ¶

type SoraniAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

SoraniAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L289-L294

func NewSoraniAnalyzer ¶

func NewSoraniAnalyzer() *SoraniAnalyzer

NewSoraniAnalyzer returns a SoraniAnalyzer.

func (*SoraniAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SoraniAnalyzer) AnalyzerCaster() *Analyzer

func (SoraniAnalyzer) MarshalJSON ¶

func (s SoraniAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SoraniAnalyzer) SoraniAnalyzerCaster ¶

func (s *SoraniAnalyzer) SoraniAnalyzerCaster() *SoraniAnalyzer

func (*SoraniAnalyzer) UnmarshalJSON ¶

func (s *SoraniAnalyzer) UnmarshalJSON(data []byte) error

type SoraniAnalyzerVariant ¶

type SoraniAnalyzerVariant interface {
	SoraniAnalyzerCaster() *SoraniAnalyzer
}

type SoraniNormalizationTokenFilter ¶ added in v9.0.1

type SoraniNormalizationTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

SoraniNormalizationTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L543-L545

func NewSoraniNormalizationTokenFilter ¶ added in v9.0.1

func NewSoraniNormalizationTokenFilter() *SoraniNormalizationTokenFilter

NewSoraniNormalizationTokenFilter returns a SoraniNormalizationTokenFilter.

func (SoraniNormalizationTokenFilter) MarshalJSON ¶ added in v9.0.1

func (s SoraniNormalizationTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SoraniNormalizationTokenFilter) SoraniNormalizationTokenFilterCaster ¶ added in v9.0.1

func (s *SoraniNormalizationTokenFilter) SoraniNormalizationTokenFilterCaster() *SoraniNormalizationTokenFilter

func (*SoraniNormalizationTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *SoraniNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*SoraniNormalizationTokenFilter) UnmarshalJSON ¶ added in v9.0.1

func (s *SoraniNormalizationTokenFilter) UnmarshalJSON(data []byte) error

type SoraniNormalizationTokenFilterVariant ¶ added in v9.0.1

type SoraniNormalizationTokenFilterVariant interface {
	SoraniNormalizationTokenFilterCaster() *SoraniNormalizationTokenFilter
}

type SortCombinations ¶

type SortCombinations any

SortCombinations holds the union for the following types:

string
SortOptions

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L98-L102

type SortCombinationsVariant ¶

type SortCombinationsVariant interface {
	SortCombinationsCaster() *SortCombinations
}

type SortOptions ¶

type SortOptions struct {
	Doc_         *ScoreSort           `json:"_doc,omitempty"`
	GeoDistance_ *GeoDistanceSort     `json:"_geo_distance,omitempty"`
	Score_       *ScoreSort           `json:"_score,omitempty"`
	Script_      *ScriptSort          `json:"_script,omitempty"`
	SortOptions  map[string]FieldSort `json:"-"`
}

SortOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/sort.ts#L86-L96

func NewSortOptions ¶

func NewSortOptions() *SortOptions

NewSortOptions returns a SortOptions.

func (SortOptions) MarshalJSON ¶

func (s SortOptions) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SortOptions) SortCombinationsCaster ¶ added in v9.0.1

func (s *SortOptions) SortCombinationsCaster() *SortCombinations

func (*SortOptions) SortOptionsCaster ¶

func (s *SortOptions) SortOptionsCaster() *SortOptions

type SortOptionsVariant ¶

type SortOptionsVariant interface {
	SortOptionsCaster() *SortOptions
}

type SortProcessor ¶

type SortProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to be sorted.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Order The sort order to use.
	// Accepts `"asc"` or `"desc"`.
	Order *sortorder.SortOrder `json:"order,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the sorted value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

SortProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1497-L1513

func NewSortProcessor ¶

func NewSortProcessor() *SortProcessor

NewSortProcessor returns a SortProcessor.

func (*SortProcessor) SortProcessorCaster ¶

func (s *SortProcessor) SortProcessorCaster() *SortProcessor

func (*SortProcessor) UnmarshalJSON ¶

func (s *SortProcessor) UnmarshalJSON(data []byte) error

type SortProcessorVariant ¶

type SortProcessorVariant interface {
	SortProcessorCaster() *SortProcessor
}

type SortVariant ¶

type SortVariant interface {
	SortCaster() *Sort
}

type SourceConfigVariant ¶

type SourceConfigVariant interface {
	SourceConfigCaster() *SourceConfig
}

type SourceField ¶

type SourceField struct {
	Compress          *bool                            `json:"compress,omitempty"`
	CompressThreshold *string                          `json:"compress_threshold,omitempty"`
	Enabled           *bool                            `json:"enabled,omitempty"`
	Excludes          []string                         `json:"excludes,omitempty"`
	Includes          []string                         `json:"includes,omitempty"`
	Mode              *sourcefieldmode.SourceFieldMode `json:"mode,omitempty"`
}

SourceField type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/meta-fields.ts#L58-L65

func NewSourceField ¶

func NewSourceField() *SourceField

NewSourceField returns a SourceField.

func (*SourceField) SourceFieldCaster ¶

func (s *SourceField) SourceFieldCaster() *SourceField

func (*SourceField) UnmarshalJSON ¶

func (s *SourceField) UnmarshalJSON(data []byte) error

type SourceFieldVariant ¶

type SourceFieldVariant interface {
	SourceFieldCaster() *SourceField
}

type SourceFilter ¶

type SourceFilter struct {
	// ExcludeVectors If `true`, vector fields are excluded from the returned source.
	//
	// This option takes precedence over `includes`: any vector field will
	// remain excluded even if it matches an `includes` rule.
	ExcludeVectors *bool `json:"exclude_vectors,omitempty"`
	// Excludes A list of fields to exclude from the returned source.
	Excludes []string `json:"excludes,omitempty"`
	// Includes A list of fields to include in the returned source.
	Includes []string `json:"includes,omitempty"`
}

SourceFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/SourceFilter.ts#L23-L48

func NewSourceFilter ¶

func NewSourceFilter() *SourceFilter

NewSourceFilter returns a SourceFilter.

func (*SourceFilter) SourceConfigCaster ¶ added in v9.0.1

func (s *SourceFilter) SourceConfigCaster() *SourceConfig

func (*SourceFilter) SourceFilterCaster ¶

func (s *SourceFilter) SourceFilterCaster() *SourceFilter

func (*SourceFilter) UnmarshalJSON ¶

func (s *SourceFilter) UnmarshalJSON(data []byte) error

type SourceFilterVariant ¶

type SourceFilterVariant interface {
	SourceFilterCaster() *SourceFilter
}

type SourceIndex ¶

type SourceIndex struct {
	Index string `json:"index"`
}

SourceIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52

func NewSourceIndex ¶

func NewSourceIndex() *SourceIndex

NewSourceIndex returns a SourceIndex.

func (*SourceIndex) SourceIndexCaster ¶

func (s *SourceIndex) SourceIndexCaster() *SourceIndex

func (*SourceIndex) UnmarshalJSON ¶

func (s *SourceIndex) UnmarshalJSON(data []byte) error

type SourceIndexVariant ¶

type SourceIndexVariant interface {
	SourceIndexCaster() *SourceIndex
}

type SourceOnlyRepository ¶

type SourceOnlyRepository struct {
	// Settings The repository settings.
	Settings SourceOnlyRepositorySettings `json:"settings"`
	// Type The source-only repository type.
	Type string  `json:"type,omitempty"`
	Uuid *string `json:"uuid,omitempty"`
}

SourceOnlyRepository type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L104-L114

func NewSourceOnlyRepository ¶

func NewSourceOnlyRepository() *SourceOnlyRepository

NewSourceOnlyRepository returns a SourceOnlyRepository.

func (SourceOnlyRepository) MarshalJSON ¶

func (s SourceOnlyRepository) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SourceOnlyRepository) RepositoryCaster ¶ added in v9.0.1

func (s *SourceOnlyRepository) RepositoryCaster() *Repository

func (*SourceOnlyRepository) SourceOnlyRepositoryCaster ¶

func (s *SourceOnlyRepository) SourceOnlyRepositoryCaster() *SourceOnlyRepository

func (*SourceOnlyRepository) UnmarshalJSON ¶

func (s *SourceOnlyRepository) UnmarshalJSON(data []byte) error

type SourceOnlyRepositorySettings ¶

type SourceOnlyRepositorySettings struct {
	// ChunkSize Big files can be broken down into multiple smaller blobs in the blob store
	// during snapshotting.
	// It is not recommended to change this value from its default unless there is
	// an explicit reason for limiting the size of blobs in the repository.
	// Setting a value lower than the default can result in an increased number of
	// API calls to the blob store during snapshot create and restore operations
	// compared to using the default value and thus make both operations slower and
	// more costly.
	// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.
	// The default varies by repository type.
	ChunkSize ByteSize `json:"chunk_size,omitempty"`
	// Compress When set to `true`, metadata files are stored in compressed format.
	// This setting doesn't affect index files that are already compressed by
	// default.
	Compress *bool `json:"compress,omitempty"`
	// DelegateType The delegated repository type. For valid values, refer to the `type`
	// parameter.
	// Source repositories can use `settings` properties for its delegated
	// repository type.
	DelegateType *string `json:"delegate_type,omitempty"`
	// MaxNumberOfSnapshots The maximum number of snapshots the repository can contain.
	// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.
	MaxNumberOfSnapshots *int `json:"max_number_of_snapshots,omitempty"`
	// MaxRestoreBytesPerSec The maximum snapshot restore rate per node.
	// It defaults to unlimited.
	// Note that restores are also throttled through recovery settings.
	MaxRestoreBytesPerSec ByteSize `json:"max_restore_bytes_per_sec,omitempty"`
	// MaxSnapshotBytesPerSec The maximum snapshot creation rate per node.
	// It defaults to 40mb per second.
	// Note that if the recovery settings for managed services are set, then it
	// defaults to unlimited, and the rate is additionally throttled through
	// recovery settings.
	MaxSnapshotBytesPerSec ByteSize `json:"max_snapshot_bytes_per_sec,omitempty"`
	// ReadOnly If `true`, the repository is read-only.
	// The cluster can retrieve and restore snapshots from the repository but not
	// write to the repository or create snapshots in it.
	//
	// Only a cluster with write access can create snapshots in the repository.
	// All other clusters connected to the repository should have the `readonly`
	// parameter set to `true`.
	//
	// If `false`, the cluster can write to the repository and create snapshots in
	// it.
	//
	// IMPORTANT: If you register the same snapshot repository with multiple
	// clusters, only one cluster should have write access to the repository.
	// Having multiple clusters write to the repository at the same time risks
	// corrupting the contents of the repository.
	ReadOnly *bool `json:"read_only,omitempty"`
}

SourceOnlyRepositorySettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotRepository.ts#L414-L441

func NewSourceOnlyRepositorySettings ¶

func NewSourceOnlyRepositorySettings() *SourceOnlyRepositorySettings

NewSourceOnlyRepositorySettings returns a SourceOnlyRepositorySettings.

func (*SourceOnlyRepositorySettings) SourceOnlyRepositorySettingsCaster ¶

func (s *SourceOnlyRepositorySettings) SourceOnlyRepositorySettingsCaster() *SourceOnlyRepositorySettings

func (*SourceOnlyRepositorySettings) UnmarshalJSON ¶

func (s *SourceOnlyRepositorySettings) UnmarshalJSON(data []byte) error

type SourceOnlyRepositorySettingsVariant ¶

type SourceOnlyRepositorySettingsVariant interface {
	SourceOnlyRepositorySettingsCaster() *SourceOnlyRepositorySettings
}

type SourceOnlyRepositoryVariant ¶

type SourceOnlyRepositoryVariant interface {
	SourceOnlyRepositoryCaster() *SourceOnlyRepository
}

type SpanContainingQuery ¶

type SpanContainingQuery struct {
	// Big Can be any span query.
	// Matching spans from `big` that contain matches from `little` are returned.
	Big SpanQuery `json:"big"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Little Can be any span query.
	// Matching spans from `big` that contain matches from `little` are returned.
	Little     SpanQuery `json:"little"`
	QueryName_ *string   `json:"_name,omitempty"`
}

SpanContainingQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L25-L39

func NewSpanContainingQuery ¶

func NewSpanContainingQuery() *SpanContainingQuery

NewSpanContainingQuery returns a SpanContainingQuery.

func (*SpanContainingQuery) SpanContainingQueryCaster ¶

func (s *SpanContainingQuery) SpanContainingQueryCaster() *SpanContainingQuery

func (*SpanContainingQuery) UnmarshalJSON ¶

func (s *SpanContainingQuery) UnmarshalJSON(data []byte) error

type SpanContainingQueryVariant ¶

type SpanContainingQueryVariant interface {
	SpanContainingQueryCaster() *SpanContainingQuery
}

type SpanFieldMaskingQuery ¶

type SpanFieldMaskingQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32  `json:"boost,omitempty"`
	Field      string    `json:"field"`
	Query      SpanQuery `json:"query"`
	QueryName_ *string   `json:"_name,omitempty"`
}

SpanFieldMaskingQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L41-L47

func NewSpanFieldMaskingQuery ¶

func NewSpanFieldMaskingQuery() *SpanFieldMaskingQuery

NewSpanFieldMaskingQuery returns a SpanFieldMaskingQuery.

func (*SpanFieldMaskingQuery) SpanFieldMaskingQueryCaster ¶

func (s *SpanFieldMaskingQuery) SpanFieldMaskingQueryCaster() *SpanFieldMaskingQuery

func (*SpanFieldMaskingQuery) UnmarshalJSON ¶

func (s *SpanFieldMaskingQuery) UnmarshalJSON(data []byte) error

type SpanFieldMaskingQueryVariant ¶

type SpanFieldMaskingQueryVariant interface {
	SpanFieldMaskingQueryCaster() *SpanFieldMaskingQuery
}

type SpanFirstQuery ¶

type SpanFirstQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// End Controls the maximum end position permitted in a match.
	End int `json:"end"`
	// Match Can be any other span type query.
	Match      SpanQuery `json:"match"`
	QueryName_ *string   `json:"_name,omitempty"`
}

SpanFirstQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L49-L61

func NewSpanFirstQuery ¶

func NewSpanFirstQuery() *SpanFirstQuery

NewSpanFirstQuery returns a SpanFirstQuery.

func (*SpanFirstQuery) SpanFirstQueryCaster ¶

func (s *SpanFirstQuery) SpanFirstQueryCaster() *SpanFirstQuery

func (*SpanFirstQuery) UnmarshalJSON ¶

func (s *SpanFirstQuery) UnmarshalJSON(data []byte) error

type SpanFirstQueryVariant ¶

type SpanFirstQueryVariant interface {
	SpanFirstQueryCaster() *SpanFirstQuery
}

type SpanGapQueryVariant ¶

type SpanGapQueryVariant interface {
	SpanGapQueryCaster() *SpanGapQuery
}

type SpanMultiTermQuery ¶

type SpanMultiTermQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Match Should be a multi term query (one of `wildcard`, `fuzzy`, `prefix`, `range`,
	// or `regexp` query).
	Match      Query   `json:"match"`
	QueryName_ *string `json:"_name,omitempty"`
}

SpanMultiTermQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L67-L75

func NewSpanMultiTermQuery ¶

func NewSpanMultiTermQuery() *SpanMultiTermQuery

NewSpanMultiTermQuery returns a SpanMultiTermQuery.

func (*SpanMultiTermQuery) SpanMultiTermQueryCaster ¶

func (s *SpanMultiTermQuery) SpanMultiTermQueryCaster() *SpanMultiTermQuery

func (*SpanMultiTermQuery) UnmarshalJSON ¶

func (s *SpanMultiTermQuery) UnmarshalJSON(data []byte) error

type SpanMultiTermQueryVariant ¶

type SpanMultiTermQueryVariant interface {
	SpanMultiTermQueryCaster() *SpanMultiTermQuery
}

type SpanNearQuery ¶

type SpanNearQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Clauses Array of one or more other span type queries.
	Clauses []SpanQuery `json:"clauses"`
	// InOrder Controls whether matches are required to be in-order.
	InOrder    *bool   `json:"in_order,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// Slop Controls the maximum number of intervening unmatched positions permitted.
	Slop *int `json:"slop,omitempty"`
}

SpanNearQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L77-L93

func NewSpanNearQuery ¶

func NewSpanNearQuery() *SpanNearQuery

NewSpanNearQuery returns a SpanNearQuery.

func (*SpanNearQuery) SpanNearQueryCaster ¶

func (s *SpanNearQuery) SpanNearQueryCaster() *SpanNearQuery

func (*SpanNearQuery) UnmarshalJSON ¶

func (s *SpanNearQuery) UnmarshalJSON(data []byte) error

type SpanNearQueryVariant ¶

type SpanNearQueryVariant interface {
	SpanNearQueryCaster() *SpanNearQuery
}

type SpanNotQuery ¶

type SpanNotQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Dist The number of tokens from within the include span that can’t have overlap
	// with the exclude span.
	// Equivalent to setting both `pre` and `post`.
	Dist *int `json:"dist,omitempty"`
	// Exclude Span query whose matches must not overlap those returned.
	Exclude SpanQuery `json:"exclude"`
	// Include Span query whose matches are filtered.
	Include SpanQuery `json:"include"`
	// Post The number of tokens after the include span that can’t have overlap with the
	// exclude span.
	Post *int `json:"post,omitempty"`
	// Pre The number of tokens before the include span that can’t have overlap with the
	// exclude span.
	Pre        *int    `json:"pre,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
}

SpanNotQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L95-L122

func NewSpanNotQuery ¶

func NewSpanNotQuery() *SpanNotQuery

NewSpanNotQuery returns a SpanNotQuery.

func (*SpanNotQuery) SpanNotQueryCaster ¶

func (s *SpanNotQuery) SpanNotQueryCaster() *SpanNotQuery

func (*SpanNotQuery) UnmarshalJSON ¶

func (s *SpanNotQuery) UnmarshalJSON(data []byte) error

type SpanNotQueryVariant ¶

type SpanNotQueryVariant interface {
	SpanNotQueryCaster() *SpanNotQuery
}

type SpanOrQuery ¶

type SpanOrQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Clauses Array of one or more other span type queries.
	Clauses    []SpanQuery `json:"clauses"`
	QueryName_ *string     `json:"_name,omitempty"`
}

SpanOrQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L124-L132

func NewSpanOrQuery ¶

func NewSpanOrQuery() *SpanOrQuery

NewSpanOrQuery returns a SpanOrQuery.

func (*SpanOrQuery) SpanOrQueryCaster ¶

func (s *SpanOrQuery) SpanOrQueryCaster() *SpanOrQuery

func (*SpanOrQuery) UnmarshalJSON ¶

func (s *SpanOrQuery) UnmarshalJSON(data []byte) error

type SpanOrQueryVariant ¶

type SpanOrQueryVariant interface {
	SpanOrQueryCaster() *SpanOrQuery
}

type SpanQuery ¶

type SpanQuery struct {
	AdditionalSpanQueryProperty map[string]json.RawMessage `json:"-"`
	// SpanContaining Accepts a list of span queries, but only returns those spans which also match
	// a second span query.
	SpanContaining *SpanContainingQuery `json:"span_containing,omitempty"`
	// SpanFieldMasking Allows queries like `span_near` or `span_or` across different fields.
	SpanFieldMasking *SpanFieldMaskingQuery `json:"span_field_masking,omitempty"`
	// SpanFirst Accepts another span query whose matches must appear within the first N
	// positions of the field.
	SpanFirst *SpanFirstQuery `json:"span_first,omitempty"`
	SpanGap   SpanGapQuery    `json:"span_gap,omitempty"`
	// SpanMulti Wraps a `term`, `range`, `prefix`, `wildcard`, `regexp`, or `fuzzy` query.
	SpanMulti *SpanMultiTermQuery `json:"span_multi,omitempty"`
	// SpanNear Accepts multiple span queries whose matches must be within the specified
	// distance of each other, and possibly in the same order.
	SpanNear *SpanNearQuery `json:"span_near,omitempty"`
	// SpanNot Wraps another span query, and excludes any documents which match that query.
	SpanNot *SpanNotQuery `json:"span_not,omitempty"`
	// SpanOr Combines multiple span queries and returns documents which match any of the
	// specified queries.
	SpanOr *SpanOrQuery `json:"span_or,omitempty"`
	// SpanTerm The equivalent of the `term` query but for use with other span queries.
	SpanTerm map[string]SpanTermQuery `json:"span_term,omitempty"`
	// SpanWithin The result from a single span query is returned as long is its span falls
	// within the spans returned by a list of other span queries.
	SpanWithin *SpanWithinQuery `json:"span_within,omitempty"`
}

SpanQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L159-L201

func NewSpanQuery ¶

func NewSpanQuery() *SpanQuery

NewSpanQuery returns a SpanQuery.

func (SpanQuery) MarshalJSON ¶

func (s SpanQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SpanQuery) SpanQueryCaster ¶

func (s *SpanQuery) SpanQueryCaster() *SpanQuery

func (*SpanQuery) UnmarshalJSON ¶

func (s *SpanQuery) UnmarshalJSON(data []byte) error

type SpanQueryVariant ¶

type SpanQueryVariant interface {
	SpanQueryCaster() *SpanQuery
}

type SpanTermQuery ¶

type SpanTermQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32   `json:"boost,omitempty"`
	QueryName_ *string    `json:"_name,omitempty"`
	Value      FieldValue `json:"value"`
}

SpanTermQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L134-L141

func NewSpanTermQuery ¶

func NewSpanTermQuery() *SpanTermQuery

NewSpanTermQuery returns a SpanTermQuery.

func (*SpanTermQuery) SpanTermQueryCaster ¶

func (s *SpanTermQuery) SpanTermQueryCaster() *SpanTermQuery

func (*SpanTermQuery) UnmarshalJSON ¶

func (s *SpanTermQuery) UnmarshalJSON(data []byte) error

type SpanTermQueryVariant ¶

type SpanTermQueryVariant interface {
	SpanTermQueryCaster() *SpanTermQuery
}

type SpanWithinQuery ¶

type SpanWithinQuery struct {
	// Big Can be any span query.
	// Matching spans from `little` that are enclosed within `big` are returned.
	Big SpanQuery `json:"big"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Little Can be any span query.
	// Matching spans from `little` that are enclosed within `big` are returned.
	Little     SpanQuery `json:"little"`
	QueryName_ *string   `json:"_name,omitempty"`
}

SpanWithinQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/span.ts#L143-L157

func NewSpanWithinQuery ¶

func NewSpanWithinQuery() *SpanWithinQuery

NewSpanWithinQuery returns a SpanWithinQuery.

func (*SpanWithinQuery) SpanWithinQueryCaster ¶

func (s *SpanWithinQuery) SpanWithinQueryCaster() *SpanWithinQuery

func (*SpanWithinQuery) UnmarshalJSON ¶

func (s *SpanWithinQuery) UnmarshalJSON(data []byte) error

type SpanWithinQueryVariant ¶

type SpanWithinQueryVariant interface {
	SpanWithinQueryCaster() *SpanWithinQuery
}

type SpanishAnalyzer ¶

type SpanishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

SpanishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L296-L301

func NewSpanishAnalyzer ¶

func NewSpanishAnalyzer() *SpanishAnalyzer

NewSpanishAnalyzer returns a SpanishAnalyzer.

func (*SpanishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SpanishAnalyzer) AnalyzerCaster() *Analyzer

func (SpanishAnalyzer) MarshalJSON ¶

func (s SpanishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SpanishAnalyzer) SpanishAnalyzerCaster ¶

func (s *SpanishAnalyzer) SpanishAnalyzerCaster() *SpanishAnalyzer

func (*SpanishAnalyzer) UnmarshalJSON ¶

func (s *SpanishAnalyzer) UnmarshalJSON(data []byte) error

type SpanishAnalyzerVariant ¶

type SpanishAnalyzerVariant interface {
	SpanishAnalyzerCaster() *SpanishAnalyzer
}

type SparseEmbeddingResult ¶

type SparseEmbeddingResult struct {
	Embedding SparseVector `json:"embedding"`
}

SparseEmbeddingResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Results.ts#L36-L38

func NewSparseEmbeddingResult ¶

func NewSparseEmbeddingResult() *SparseEmbeddingResult

NewSparseEmbeddingResult returns a SparseEmbeddingResult.

func (*SparseEmbeddingResult) UnmarshalJSON ¶

func (s *SparseEmbeddingResult) UnmarshalJSON(data []byte) error

type SparseVectorIndexOptions ¶ added in v9.1.0

type SparseVectorIndexOptions struct {
	// Prune Whether to perform pruning, omitting the non-significant tokens from the
	// query to improve query performance.
	// If prune is true but the pruning_config is not specified, pruning will occur
	// but default values will be used.
	// Default: false
	Prune *bool `json:"prune,omitempty"`
	// PruningConfig Optional pruning configuration.
	// If enabled, this will omit non-significant tokens from the query in order to
	// improve query performance.
	// This is only used if prune is set to true.
	// If prune is set to true but pruning_config is not specified, default values
	// will be used.
	PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`
}

SparseVectorIndexOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/SparseVectorIndexOptions.ts#L22-L42

func NewSparseVectorIndexOptions ¶ added in v9.1.0

func NewSparseVectorIndexOptions() *SparseVectorIndexOptions

NewSparseVectorIndexOptions returns a SparseVectorIndexOptions.

func (*SparseVectorIndexOptions) SparseVectorIndexOptionsCaster ¶ added in v9.1.0

func (s *SparseVectorIndexOptions) SparseVectorIndexOptionsCaster() *SparseVectorIndexOptions

func (*SparseVectorIndexOptions) UnmarshalJSON ¶ added in v9.1.0

func (s *SparseVectorIndexOptions) UnmarshalJSON(data []byte) error

type SparseVectorIndexOptionsVariant ¶ added in v9.1.0

type SparseVectorIndexOptionsVariant interface {
	SparseVectorIndexOptionsCaster() *SparseVectorIndexOptions
}

type SparseVectorProperty ¶

type SparseVectorProperty struct {
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// IndexOptions Additional index options for the sparse vector field that controls the
	// token pruning behavior of the sparse vector field.
	IndexOptions *SparseVectorIndexOptions `json:"index_options,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

SparseVectorProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L226-L236

func NewSparseVectorProperty ¶

func NewSparseVectorProperty() *SparseVectorProperty

NewSparseVectorProperty returns a SparseVectorProperty.

func (SparseVectorProperty) MarshalJSON ¶

func (s SparseVectorProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SparseVectorProperty) PropertyCaster ¶ added in v9.0.1

func (s *SparseVectorProperty) PropertyCaster() *Property

func (*SparseVectorProperty) SparseVectorPropertyCaster ¶

func (s *SparseVectorProperty) SparseVectorPropertyCaster() *SparseVectorProperty

func (*SparseVectorProperty) UnmarshalJSON ¶

func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error

type SparseVectorPropertyVariant ¶

type SparseVectorPropertyVariant interface {
	SparseVectorPropertyCaster() *SparseVectorProperty
}

type SparseVectorQuery ¶

type SparseVectorQuery struct {
	AdditionalSparseVectorQueryProperty map[string]json.RawMessage `json:"-"`
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field The name of the field that contains the token-weight pairs to be searched
	// against.
	// This field must be a mapped sparse_vector field.
	Field string `json:"field"`
	// InferenceId The inference ID to use to convert the query text into token-weight pairs.
	// It must be the same inference ID that was used to create the tokens from the
	// input text.
	// Only one of inference_id and query_vector is allowed.
	// If inference_id is specified, query must also be specified.
	// Only one of inference_id or query_vector may be supplied in a request.
	InferenceId *string `json:"inference_id,omitempty"`
	// Prune Whether to perform pruning, omitting the non-significant tokens from the
	// query to improve query performance.
	// If prune is true but the pruning_config is not specified, pruning will occur
	// but default values will be used.
	// Default: false
	Prune *bool `json:"prune,omitempty"`
	// PruningConfig Optional pruning configuration.
	// If enabled, this will omit non-significant tokens from the query in order to
	// improve query performance.
	// This is only used if prune is set to true.
	// If prune is set to true but pruning_config is not specified, default values
	// will be used.
	PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`
	// Query The query text you want to use for search.
	// If inference_id is specified, query must also be specified.
	Query      *string `json:"query,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// QueryVector Dictionary of precomputed sparse vectors and their associated weights.
	// Only one of inference_id or query_vector may be supplied in a request.
	QueryVector map[string]float32 `json:"query_vector,omitempty"`
}

SparseVectorQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80

func NewSparseVectorQuery ¶

func NewSparseVectorQuery() *SparseVectorQuery

NewSparseVectorQuery returns a SparseVectorQuery.

func (SparseVectorQuery) MarshalJSON ¶

func (s SparseVectorQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SparseVectorQuery) SparseVectorQueryCaster ¶

func (s *SparseVectorQuery) SparseVectorQueryCaster() *SparseVectorQuery

func (*SparseVectorQuery) UnmarshalJSON ¶

func (s *SparseVectorQuery) UnmarshalJSON(data []byte) error

type SparseVectorQueryVariant ¶

type SparseVectorQueryVariant interface {
	SparseVectorQueryCaster() *SparseVectorQuery
}

type SparseVectorStats ¶ added in v9.0.1

type SparseVectorStats struct {
	ValueCount int64 `json:"value_count"`
}

SparseVectorStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L162-L164

func NewSparseVectorStats ¶ added in v9.0.1

func NewSparseVectorStats() *SparseVectorStats

NewSparseVectorStats returns a SparseVectorStats.

func (*SparseVectorStats) UnmarshalJSON ¶ added in v9.0.1

func (s *SparseVectorStats) UnmarshalJSON(data []byte) error

type SpecifiedDocument ¶ added in v9.0.1

type SpecifiedDocument struct {
	Id    string  `json:"id"`
	Index *string `json:"index,omitempty"`
}

SpecifiedDocument type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L97-L100

func NewSpecifiedDocument ¶ added in v9.0.1

func NewSpecifiedDocument() *SpecifiedDocument

NewSpecifiedDocument returns a SpecifiedDocument.

func (*SpecifiedDocument) SpecifiedDocumentCaster ¶ added in v9.0.1

func (s *SpecifiedDocument) SpecifiedDocumentCaster() *SpecifiedDocument

func (*SpecifiedDocument) UnmarshalJSON ¶ added in v9.0.1

func (s *SpecifiedDocument) UnmarshalJSON(data []byte) error

type SpecifiedDocumentVariant ¶ added in v9.0.1

type SpecifiedDocumentVariant interface {
	SpecifiedDocumentCaster() *SpecifiedDocument
}

type SplitProcessor ¶

type SplitProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to split.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// PreserveTrailing Preserves empty trailing fields, if any.
	PreserveTrailing *bool `json:"preserve_trailing,omitempty"`
	// Separator A regex which matches the separator, for example, `,` or `\s+`.
	Separator string `json:"separator"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the split value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

SplitProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1515-L1540

func NewSplitProcessor ¶

func NewSplitProcessor() *SplitProcessor

NewSplitProcessor returns a SplitProcessor.

func (*SplitProcessor) SplitProcessorCaster ¶

func (s *SplitProcessor) SplitProcessorCaster() *SplitProcessor

func (*SplitProcessor) UnmarshalJSON ¶

func (s *SplitProcessor) UnmarshalJSON(data []byte) error

type SplitProcessorVariant ¶

type SplitProcessorVariant interface {
	SplitProcessorCaster() *SplitProcessor
}

type Sql ¶

type Sql struct {
	Available bool                  `json:"available"`
	Enabled   bool                  `json:"enabled"`
	Features  map[string]int        `json:"features"`
	Queries   map[string]XpackQuery `json:"queries"`
}

Sql type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L392-L395

func NewSql ¶

func NewSql() *Sql

NewSql returns a Sql.

func (*Sql) UnmarshalJSON ¶

func (s *Sql) UnmarshalJSON(data []byte) error

type Ssl ¶

type Ssl struct {
	Http      FeatureToggle `json:"http"`
	Transport FeatureToggle `json:"transport"`
}

Ssl type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L397-L400

func NewSsl ¶

func NewSsl() *Ssl

NewSsl returns a Ssl.

type StagnatingBackingIndices ¶

type StagnatingBackingIndices struct {
	FirstOccurrenceTimestamp int64  `json:"first_occurrence_timestamp"`
	IndexName                string `json:"index_name"`
	RetryCount               int    `json:"retry_count"`
}

StagnatingBackingIndices type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/health_report/types.ts#L159-L163

func NewStagnatingBackingIndices ¶

func NewStagnatingBackingIndices() *StagnatingBackingIndices

NewStagnatingBackingIndices returns a StagnatingBackingIndices.

func (*StagnatingBackingIndices) UnmarshalJSON ¶

func (s *StagnatingBackingIndices) UnmarshalJSON(data []byte) error

type StandardAnalyzer ¶

type StandardAnalyzer struct {
	// MaxTokenLength The maximum token length. If a token is seen that exceeds this length then it
	// is split at `max_token_length` intervals.
	// Defaults to `255`.
	MaxTokenLength *int `json:"max_token_length,omitempty"`
	// Stopwords A pre-defined stop words list like `_english_` or an array containing a list
	// of stop words.
	// Defaults to `_none_`.
	Stopwords StopWords `json:"stopwords,omitempty"`
	// StopwordsPath The path to a file containing stop words.
	StopwordsPath *string `json:"stopwords_path,omitempty"`
	Type          string  `json:"type,omitempty"`
}

StandardAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L382-L402

func NewStandardAnalyzer ¶

func NewStandardAnalyzer() *StandardAnalyzer

NewStandardAnalyzer returns a StandardAnalyzer.

func (*StandardAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *StandardAnalyzer) AnalyzerCaster() *Analyzer

func (StandardAnalyzer) MarshalJSON ¶

func (s StandardAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StandardAnalyzer) StandardAnalyzerCaster ¶

func (s *StandardAnalyzer) StandardAnalyzerCaster() *StandardAnalyzer

func (*StandardAnalyzer) UnmarshalJSON ¶

func (s *StandardAnalyzer) UnmarshalJSON(data []byte) error

type StandardAnalyzerVariant ¶

type StandardAnalyzerVariant interface {
	StandardAnalyzerCaster() *StandardAnalyzer
}

type StandardDeviationBounds ¶

type StandardDeviationBounds struct {
	Lower           *Float64 `json:"lower,omitempty"`
	LowerPopulation *Float64 `json:"lower_population,omitempty"`
	LowerSampling   *Float64 `json:"lower_sampling,omitempty"`
	Upper           *Float64 `json:"upper,omitempty"`
	UpperPopulation *Float64 `json:"upper_population,omitempty"`
	UpperSampling   *Float64 `json:"upper_sampling,omitempty"`
}

StandardDeviationBounds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L281-L288

func NewStandardDeviationBounds ¶

func NewStandardDeviationBounds() *StandardDeviationBounds

NewStandardDeviationBounds returns a StandardDeviationBounds.

func (*StandardDeviationBounds) UnmarshalJSON ¶

func (s *StandardDeviationBounds) UnmarshalJSON(data []byte) error

type StandardDeviationBoundsAsString ¶

type StandardDeviationBoundsAsString struct {
	Lower           string `json:"lower"`
	LowerPopulation string `json:"lower_population"`
	LowerSampling   string `json:"lower_sampling"`
	Upper           string `json:"upper"`
	UpperPopulation string `json:"upper_population"`
	UpperSampling   string `json:"upper_sampling"`
}

StandardDeviationBoundsAsString type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L290-L297

func NewStandardDeviationBoundsAsString ¶

func NewStandardDeviationBoundsAsString() *StandardDeviationBoundsAsString

NewStandardDeviationBoundsAsString returns a StandardDeviationBoundsAsString.

func (*StandardDeviationBoundsAsString) UnmarshalJSON ¶

func (s *StandardDeviationBoundsAsString) UnmarshalJSON(data []byte) error

type StandardRetriever ¶

type StandardRetriever struct {
	// Collapse Collapses the top documents by a specified key into a single top document per
	// key.
	Collapse *FieldCollapse `json:"collapse,omitempty"`
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_ *string `json:"_name,omitempty"`
	// Query Defines a query to retrieve a set of top documents.
	Query *Query `json:"query,omitempty"`
	// SearchAfter Defines a search after object parameter used for pagination.
	SearchAfter []FieldValue `json:"search_after,omitempty"`
	// Sort A sort object that that specifies the order of matching documents.
	Sort []SortCombinations `json:"sort,omitempty"`
	// TerminateAfter Maximum number of documents to collect for each shard.
	TerminateAfter *int `json:"terminate_after,omitempty"`
}

StandardRetriever type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L102-L113

func NewStandardRetriever ¶

func NewStandardRetriever() *StandardRetriever

NewStandardRetriever returns a StandardRetriever.

func (*StandardRetriever) StandardRetrieverCaster ¶

func (s *StandardRetriever) StandardRetrieverCaster() *StandardRetriever

func (*StandardRetriever) UnmarshalJSON ¶

func (s *StandardRetriever) UnmarshalJSON(data []byte) error

type StandardRetrieverVariant ¶

type StandardRetrieverVariant interface {
	StandardRetrieverCaster() *StandardRetriever
}

type StandardTokenizer ¶

type StandardTokenizer struct {
	MaxTokenLength *int    `json:"max_token_length,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

StandardTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L123-L126

func NewStandardTokenizer ¶

func NewStandardTokenizer() *StandardTokenizer

NewStandardTokenizer returns a StandardTokenizer.

func (StandardTokenizer) MarshalJSON ¶

func (s StandardTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StandardTokenizer) StandardTokenizerCaster ¶

func (s *StandardTokenizer) StandardTokenizerCaster() *StandardTokenizer

func (*StandardTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *StandardTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*StandardTokenizer) UnmarshalJSON ¶

func (s *StandardTokenizer) UnmarshalJSON(data []byte) error

type StandardTokenizerVariant ¶

type StandardTokenizerVariant interface {
	StandardTokenizerCaster() *StandardTokenizer
}

type Statistics ¶

type Statistics struct {
	Policy                        *string  `json:"policy,omitempty"`
	RetentionDeletionTime         Duration `json:"retention_deletion_time,omitempty"`
	RetentionDeletionTimeMillis   *int64   `json:"retention_deletion_time_millis,omitempty"`
	RetentionFailed               *int64   `json:"retention_failed,omitempty"`
	RetentionRuns                 *int64   `json:"retention_runs,omitempty"`
	RetentionTimedOut             *int64   `json:"retention_timed_out,omitempty"`
	TotalSnapshotDeletionFailures *int64   `json:"total_snapshot_deletion_failures,omitempty"`
	TotalSnapshotsDeleted         *int64   `json:"total_snapshots_deleted,omitempty"`
	TotalSnapshotsFailed          *int64   `json:"total_snapshots_failed,omitempty"`
	TotalSnapshotsTaken           *int64   `json:"total_snapshots_taken,omitempty"`
}

Statistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/slm/_types/SnapshotLifecycle.ts#L61-L84

func NewStatistics ¶

func NewStatistics() *Statistics

NewStatistics returns a Statistics.

func (*Statistics) UnmarshalJSON ¶

func (s *Statistics) UnmarshalJSON(data []byte) error

type Stats ¶

type Stats struct {
	// AdaptiveSelection Statistics about adaptive replica selection.
	AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"`
	// Attributes Contains a list of attributes for the node.
	Attributes map[string]string `json:"attributes,omitempty"`
	// Breakers Statistics about the field data circuit breaker.
	Breakers map[string]Breaker `json:"breakers,omitempty"`
	// Discovery Contains node discovery statistics for the node.
	Discovery *Discovery `json:"discovery,omitempty"`
	// Fs File system information, data path, free disk space, read/write stats.
	Fs *FileSystem `json:"fs,omitempty"`
	// Host Network host for the node, based on the network host setting.
	Host *string `json:"host,omitempty"`
	// Http HTTP connection information.
	Http *Http `json:"http,omitempty"`
	// IndexingPressure Contains indexing pressure statistics for the node.
	IndexingPressure *NodesIndexingPressure `json:"indexing_pressure,omitempty"`
	// Indices Indices stats about size, document count, indexing and deletion times, search
	// times, field cache size, merges and flushes.
	Indices *IndicesShardStats `json:"indices,omitempty"`
	// Ingest Statistics about ingest preprocessing.
	Ingest *NodesIngest `json:"ingest,omitempty"`
	// Ip IP address and port for the node.
	Ip []string `json:"ip,omitempty"`
	// Jvm JVM stats, memory pool information, garbage collection, buffer pools, number
	// of loaded/unloaded classes.
	Jvm *Jvm `json:"jvm,omitempty"`
	// Name Human-readable identifier for the node.
	// Based on the node name setting.
	Name *string `json:"name,omitempty"`
	// Os Operating system stats, load average, mem, swap.
	Os *OperatingSystem `json:"os,omitempty"`
	// Process Process statistics, memory consumption, cpu usage, open file descriptors.
	Process *Process `json:"process,omitempty"`
	// Roles Roles assigned to the node.
	Roles []noderole.NodeRole `json:"roles,omitempty"`
	// Script Contains script statistics for the node.
	Script      *Scripting               `json:"script,omitempty"`
	ScriptCache map[string][]ScriptCache `json:"script_cache,omitempty"`
	// ThreadPool Statistics about each thread pool, including current size, queue and rejected
	// tasks.
	ThreadPool map[string]ThreadCount `json:"thread_pool,omitempty"`
	Timestamp  *int64                 `json:"timestamp,omitempty"`
	// Transport Transport statistics about sent and received bytes in cluster communication.
	Transport *Transport `json:"transport,omitempty"`
	// TransportAddress Host and port for the transport layer, used for internal communication
	// between nodes in a cluster.
	TransportAddress *string `json:"transport_address,omitempty"`
}

Stats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L30-L114

func NewStats ¶

func NewStats() *Stats

NewStats returns a Stats.

func (*Stats) UnmarshalJSON ¶

func (s *Stats) UnmarshalJSON(data []byte) error

type StatsAggregate ¶

type StatsAggregate struct {
	Avg         *Float64 `json:"avg,omitempty"`
	AvgAsString *string  `json:"avg_as_string,omitempty"`
	Count       int64    `json:"count"`
	Max         *Float64 `json:"max,omitempty"`
	MaxAsString *string  `json:"max_as_string,omitempty"`
	Meta        Metadata `json:"meta,omitempty"`
	Min         *Float64 `json:"min,omitempty"`
	MinAsString *string  `json:"min_as_string,omitempty"`
	Sum         Float64  `json:"sum"`
	SumAsString *string  `json:"sum_as_string,omitempty"`
}

StatsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L257-L273

func NewStatsAggregate ¶

func NewStatsAggregate() *StatsAggregate

NewStatsAggregate returns a StatsAggregate.

func (*StatsAggregate) UnmarshalJSON ¶

func (s *StatsAggregate) UnmarshalJSON(data []byte) error

type StatsAggregation ¶

type StatsAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

StatsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L314-L314

func NewStatsAggregation ¶

func NewStatsAggregation() *StatsAggregation

NewStatsAggregation returns a StatsAggregation.

func (*StatsAggregation) StatsAggregationCaster ¶

func (s *StatsAggregation) StatsAggregationCaster() *StatsAggregation

func (*StatsAggregation) UnmarshalJSON ¶

func (s *StatsAggregation) UnmarshalJSON(data []byte) error

type StatsAggregationVariant ¶

type StatsAggregationVariant interface {
	StatsAggregationCaster() *StatsAggregation
}

type StatsBucketAggregate ¶

type StatsBucketAggregate struct {
	Avg         *Float64 `json:"avg,omitempty"`
	AvgAsString *string  `json:"avg_as_string,omitempty"`
	Count       int64    `json:"count"`
	Max         *Float64 `json:"max,omitempty"`
	MaxAsString *string  `json:"max_as_string,omitempty"`
	Meta        Metadata `json:"meta,omitempty"`
	Min         *Float64 `json:"min,omitempty"`
	MinAsString *string  `json:"min_as_string,omitempty"`
	Sum         Float64  `json:"sum"`
	SumAsString *string  `json:"sum_as_string,omitempty"`
}

StatsBucketAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L275-L279

func NewStatsBucketAggregate ¶

func NewStatsBucketAggregate() *StatsBucketAggregate

NewStatsBucketAggregate returns a StatsBucketAggregate.

func (*StatsBucketAggregate) UnmarshalJSON ¶

func (s *StatsBucketAggregate) UnmarshalJSON(data []byte) error

type StatsBucketAggregation ¶

type StatsBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

StatsBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L410-L410

func NewStatsBucketAggregation ¶

func NewStatsBucketAggregation() *StatsBucketAggregation

NewStatsBucketAggregation returns a StatsBucketAggregation.

func (*StatsBucketAggregation) StatsBucketAggregationCaster ¶

func (s *StatsBucketAggregation) StatsBucketAggregationCaster() *StatsBucketAggregation

func (*StatsBucketAggregation) UnmarshalJSON ¶

func (s *StatsBucketAggregation) UnmarshalJSON(data []byte) error

type StatsBucketAggregationVariant ¶

type StatsBucketAggregationVariant interface {
	StatsBucketAggregationCaster() *StatsBucketAggregation
}

type Status ¶

type Status struct {
	// IncludeGlobalState Indicates whether the current cluster state is included in the snapshot.
	IncludeGlobalState bool                          `json:"include_global_state"`
	Indices            map[string]SnapshotIndexStats `json:"indices"`
	// Repository The name of the repository that includes the snapshot.
	Repository string `json:"repository"`
	// ShardsStats Statistics for the shards in the snapshot.
	ShardsStats SnapshotShardsStats `json:"shards_stats"`
	// Snapshot The name of the snapshot.
	Snapshot string `json:"snapshot"`
	// State The current snapshot state:
	//
	// * `FAILED`: The snapshot finished with an error and failed to store any data.
	// * `STARTED`: The snapshot is currently running.
	// * `SUCCESS`: The snapshot completed.
	State string `json:"state"`
	// Stats Details about the number (`file_count`) and size (`size_in_bytes`) of files
	// included in the snapshot.
	Stats SnapshotStats `json:"stats"`
	// Uuid The universally unique identifier (UUID) for the snapshot.
	Uuid string `json:"uuid"`
}

Status type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/_types/SnapshotStatus.ts#L26-L60

func NewStatus ¶

func NewStatus() *Status

NewStatus returns a Status.

func (*Status) UnmarshalJSON ¶

func (s *Status) UnmarshalJSON(data []byte) error

type StatusError ¶

type StatusError struct {
	Index   string `json:"index"`
	Message string `json:"message"`
}

StatusError type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47

func NewStatusError ¶

func NewStatusError() *StatusError

NewStatusError returns a StatusError.

func (*StatusError) UnmarshalJSON ¶

func (s *StatusError) UnmarshalJSON(data []byte) error

type StatusInProgress ¶

type StatusInProgress struct {
	Index             string `json:"index"`
	ReindexedDocCount int64  `json:"reindexed_doc_count"`
	TotalDocCount     int64  `json:"total_doc_count"`
}

StatusInProgress type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42

func NewStatusInProgress ¶

func NewStatusInProgress() *StatusInProgress

NewStatusInProgress returns a StatusInProgress.

func (*StatusInProgress) UnmarshalJSON ¶

func (s *StatusInProgress) UnmarshalJSON(data []byte) error

type StemmerOverrideTokenFilter ¶

type StemmerOverrideTokenFilter struct {
	// Rules A list of mapping rules to use.
	Rules []string `json:"rules,omitempty"`
	// RulesPath A path (either relative to `config` location, or absolute) to a list of
	// mappings.
	RulesPath *string `json:"rules_path,omitempty"`
	Type      string  `json:"type,omitempty"`
	Version   *string `json:"version,omitempty"`
}

StemmerOverrideTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L417-L423

func NewStemmerOverrideTokenFilter ¶

func NewStemmerOverrideTokenFilter() *StemmerOverrideTokenFilter

NewStemmerOverrideTokenFilter returns a StemmerOverrideTokenFilter.

func (StemmerOverrideTokenFilter) MarshalJSON ¶

func (s StemmerOverrideTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StemmerOverrideTokenFilter) StemmerOverrideTokenFilterCaster ¶

func (s *StemmerOverrideTokenFilter) StemmerOverrideTokenFilterCaster() *StemmerOverrideTokenFilter

func (*StemmerOverrideTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *StemmerOverrideTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*StemmerOverrideTokenFilter) UnmarshalJSON ¶

func (s *StemmerOverrideTokenFilter) UnmarshalJSON(data []byte) error

type StemmerOverrideTokenFilterVariant ¶

type StemmerOverrideTokenFilterVariant interface {
	StemmerOverrideTokenFilterCaster() *StemmerOverrideTokenFilter
}

type StemmerTokenFilter ¶

type StemmerTokenFilter struct {
	Language *string `json:"language,omitempty"`
	Type     string  `json:"type,omitempty"`
	Version  *string `json:"version,omitempty"`
}

StemmerTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L425-L429

func NewStemmerTokenFilter ¶

func NewStemmerTokenFilter() *StemmerTokenFilter

NewStemmerTokenFilter returns a StemmerTokenFilter.

func (StemmerTokenFilter) MarshalJSON ¶

func (s StemmerTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StemmerTokenFilter) StemmerTokenFilterCaster ¶

func (s *StemmerTokenFilter) StemmerTokenFilterCaster() *StemmerTokenFilter

func (*StemmerTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *StemmerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*StemmerTokenFilter) UnmarshalJSON ¶

func (s *StemmerTokenFilter) UnmarshalJSON(data []byte) error

type StemmerTokenFilterVariant ¶

type StemmerTokenFilterVariant interface {
	StemmerTokenFilterCaster() *StemmerTokenFilter
}

type StepKey ¶

type StepKey struct {
	// Action The optional action to which the index will be moved.
	Action *string `json:"action,omitempty"`
	// Name The optional step name to which the index will be moved.
	Name  *string `json:"name,omitempty"`
	Phase string  `json:"phase"`
}

StepKey type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/move_to_step/types.ts#L20-L31

func NewStepKey ¶

func NewStepKey() *StepKey

NewStepKey returns a StepKey.

func (*StepKey) StepKeyCaster ¶

func (s *StepKey) StepKeyCaster() *StepKey

func (*StepKey) UnmarshalJSON ¶

func (s *StepKey) UnmarshalJSON(data []byte) error

type StepKeyVariant ¶

type StepKeyVariant interface {
	StepKeyCaster() *StepKey
}

type StopAnalyzer ¶

type StopAnalyzer struct {
	// Stopwords A pre-defined stop words list like `_english_` or an array containing a list
	// of stop words.
	// Defaults to `_none_`.
	Stopwords StopWords `json:"stopwords,omitempty"`
	// StopwordsPath The path to a file containing stop words.
	StopwordsPath *string `json:"stopwords_path,omitempty"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

StopAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L404-L419

func NewStopAnalyzer ¶

func NewStopAnalyzer() *StopAnalyzer

NewStopAnalyzer returns a StopAnalyzer.

func (*StopAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *StopAnalyzer) AnalyzerCaster() *Analyzer

func (StopAnalyzer) MarshalJSON ¶

func (s StopAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StopAnalyzer) StopAnalyzerCaster ¶

func (s *StopAnalyzer) StopAnalyzerCaster() *StopAnalyzer

func (*StopAnalyzer) UnmarshalJSON ¶

func (s *StopAnalyzer) UnmarshalJSON(data []byte) error

type StopAnalyzerVariant ¶

type StopAnalyzerVariant interface {
	StopAnalyzerCaster() *StopAnalyzer
}

type StopTokenFilter ¶

type StopTokenFilter struct {
	// IgnoreCase If `true`, stop word matching is case insensitive. For example, if `true`, a
	// stop word of the matches and removes `The`, `THE`, or `the`. Defaults to
	// `false`.
	IgnoreCase *bool `json:"ignore_case,omitempty"`
	// RemoveTrailing If `true`, the last token of a stream is removed if it’s a stop word.
	// Defaults to `true`.
	RemoveTrailing *bool `json:"remove_trailing,omitempty"`
	// Stopwords Language value, such as `_arabic_` or `_thai_`. Defaults to `_english_`.
	Stopwords StopWords `json:"stopwords,omitempty"`
	// StopwordsPath Path to a file that contains a list of stop words to remove.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each stop word in the file must be separated by a line
	// break.
	StopwordsPath *string `json:"stopwords_path,omitempty"`
	Type          string  `json:"type,omitempty"`
	Version       *string `json:"version,omitempty"`
}

StopTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L125-L136

func NewStopTokenFilter ¶

func NewStopTokenFilter() *StopTokenFilter

NewStopTokenFilter returns a StopTokenFilter.

func (StopTokenFilter) MarshalJSON ¶

func (s StopTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*StopTokenFilter) StopTokenFilterCaster ¶

func (s *StopTokenFilter) StopTokenFilterCaster() *StopTokenFilter

func (*StopTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *StopTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*StopTokenFilter) UnmarshalJSON ¶

func (s *StopTokenFilter) UnmarshalJSON(data []byte) error

type StopTokenFilterVariant ¶

type StopTokenFilterVariant interface {
	StopTokenFilterCaster() *StopTokenFilter
}

type StopWords ¶

type StopWords any

StopWords holds the union for the following types:

stopwordlanguage.StopWordLanguage
[]string

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/StopWords.ts#L60-L66

type StopWordsVariant ¶

type StopWordsVariant interface {
	StopWordsCaster() *StopWords
}

type Storage ¶

type Storage struct {
	// AllowMmap You can restrict the use of the mmapfs and the related hybridfs store type
	// via the setting node.store.allow_mmap.
	// This is a boolean setting indicating whether or not memory-mapping is
	// allowed. The default is to allow it. This
	// setting is useful, for example, if you are in an environment where you can
	// not control the ability to create a lot
	// of memory maps so you need disable the ability to use memory-mapping.
	AllowMmap *bool `json:"allow_mmap,omitempty"`
	// StatsRefreshInterval How often store statistics are refreshed
	StatsRefreshInterval Duration                `json:"stats_refresh_interval,omitempty"`
	Type                 storagetype.StorageType `json:"type"`
}

Storage type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L547-L558

func NewStorage ¶

func NewStorage() *Storage

NewStorage returns a Storage.

func (*Storage) StorageCaster ¶

func (s *Storage) StorageCaster() *Storage

func (*Storage) UnmarshalJSON ¶

func (s *Storage) UnmarshalJSON(data []byte) error

type StorageVariant ¶

type StorageVariant interface {
	StorageCaster() *Storage
}

type StoreStats ¶

type StoreStats struct {
	// Reserved A prediction of how much larger the shard stores will eventually grow due to
	// ongoing peer recoveries, restoring snapshots, and similar activities.
	Reserved ByteSize `json:"reserved,omitempty"`
	// ReservedInBytes A prediction, in bytes, of how much larger the shard stores will eventually
	// grow due to ongoing peer recoveries, restoring snapshots, and similar
	// activities.
	ReservedInBytes int64 `json:"reserved_in_bytes"`
	// Size Total size of all shards assigned to selected nodes.
	Size ByteSize `json:"size,omitempty"`
	// SizeInBytes Total size, in bytes, of all shards assigned to selected nodes.
	SizeInBytes int64 `json:"size_in_bytes"`
	// TotalDataSetSize Total data set size of all shards assigned to selected nodes.
	// This includes the size of shards not stored fully on the nodes, such as the
	// cache for partially mounted indices.
	TotalDataSetSize ByteSize `json:"total_data_set_size,omitempty"`
	// TotalDataSetSizeInBytes Total data set size, in bytes, of all shards assigned to selected nodes.
	// This includes the size of shards not stored fully on the nodes, such as the
	// cache for partially mounted indices.
	TotalDataSetSizeInBytes *int64 `json:"total_data_set_size_in_bytes,omitempty"`
}

StoreStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L398-L425

func NewStoreStats ¶

func NewStoreStats() *StoreStats

NewStoreStats returns a StoreStats.

func (*StoreStats) UnmarshalJSON ¶

func (s *StoreStats) UnmarshalJSON(data []byte) error

type StoredScript ¶

type StoredScript struct {
	// Lang The language the script is written in.
	// For search templates, use `mustache`.
	Lang    scriptlanguage.ScriptLanguage `json:"lang"`
	Options map[string]string             `json:"options,omitempty"`
	// Source The script source.
	// For search templates, an object containing the search template.
	Source ScriptSource `json:"source"`
}

StoredScript type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Scripting.ts#L51-L63

func NewStoredScript ¶

func NewStoredScript() *StoredScript

NewStoredScript returns a StoredScript.

func (*StoredScript) StoredScriptCaster ¶

func (s *StoredScript) StoredScriptCaster() *StoredScript

func (*StoredScript) UnmarshalJSON ¶

func (s *StoredScript) UnmarshalJSON(data []byte) error

type StoredScriptVariant ¶

type StoredScriptVariant interface {
	StoredScriptCaster() *StoredScript
}

type StringRareTermsAggregate ¶

type StringRareTermsAggregate struct {
	Buckets BucketsStringRareTermsBucket `json:"buckets"`
	Meta    Metadata                     `json:"meta,omitempty"`
}

StringRareTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L483-L487

func NewStringRareTermsAggregate ¶

func NewStringRareTermsAggregate() *StringRareTermsAggregate

NewStringRareTermsAggregate returns a StringRareTermsAggregate.

func (*StringRareTermsAggregate) UnmarshalJSON ¶

func (s *StringRareTermsAggregate) UnmarshalJSON(data []byte) error

type StringRareTermsBucket ¶

type StringRareTermsBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          string               `json:"key"`
}

StringRareTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L489-L491

func NewStringRareTermsBucket ¶

func NewStringRareTermsBucket() *StringRareTermsBucket

NewStringRareTermsBucket returns a StringRareTermsBucket.

func (StringRareTermsBucket) MarshalJSON ¶

func (s StringRareTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*StringRareTermsBucket) UnmarshalJSON ¶

func (s *StringRareTermsBucket) UnmarshalJSON(data []byte) error

type StringStatsAggregate ¶

type StringStatsAggregate struct {
	AvgLength         *Float64            `json:"avg_length,omitempty"`
	AvgLengthAsString *string             `json:"avg_length_as_string,omitempty"`
	Count             int64               `json:"count"`
	Distribution      *map[string]Float64 `json:"distribution,omitempty"`
	Entropy           *Float64            `json:"entropy,omitempty"`
	MaxLength         *int                `json:"max_length,omitempty"`
	MaxLengthAsString *string             `json:"max_length_as_string,omitempty"`
	Meta              Metadata            `json:"meta,omitempty"`
	MinLength         *int                `json:"min_length,omitempty"`
	MinLengthAsString *string             `json:"min_length_as_string,omitempty"`
}

StringStatsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L795-L806

func NewStringStatsAggregate ¶

func NewStringStatsAggregate() *StringStatsAggregate

NewStringStatsAggregate returns a StringStatsAggregate.

func (*StringStatsAggregate) UnmarshalJSON ¶

func (s *StringStatsAggregate) UnmarshalJSON(data []byte) error

type StringStatsAggregation ¶

type StringStatsAggregation struct {
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// ShowDistribution Shows the probability distribution for all characters.
	ShowDistribution *bool `json:"show_distribution,omitempty"`
}

StringStatsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L316-L322

func NewStringStatsAggregation ¶

func NewStringStatsAggregation() *StringStatsAggregation

NewStringStatsAggregation returns a StringStatsAggregation.

func (*StringStatsAggregation) StringStatsAggregationCaster ¶

func (s *StringStatsAggregation) StringStatsAggregationCaster() *StringStatsAggregation

func (*StringStatsAggregation) UnmarshalJSON ¶

func (s *StringStatsAggregation) UnmarshalJSON(data []byte) error

type StringStatsAggregationVariant ¶

type StringStatsAggregationVariant interface {
	StringStatsAggregationCaster() *StringStatsAggregation
}

type StringTermsAggregate ¶

type StringTermsAggregate struct {
	Buckets                 BucketsStringTermsBucket `json:"buckets"`
	DocCountErrorUpperBound *int64                   `json:"doc_count_error_upper_bound,omitempty"`
	Meta                    Metadata                 `json:"meta,omitempty"`
	SumOtherDocCount        *int64                   `json:"sum_other_doc_count,omitempty"`
}

StringTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L424-L429

func NewStringTermsAggregate ¶

func NewStringTermsAggregate() *StringTermsAggregate

NewStringTermsAggregate returns a StringTermsAggregate.

func (*StringTermsAggregate) UnmarshalJSON ¶

func (s *StringTermsAggregate) UnmarshalJSON(data []byte) error

type StringTermsBucket ¶

type StringTermsBucket struct {
	Aggregations            map[string]Aggregate `json:"-"`
	DocCount                int64                `json:"doc_count"`
	DocCountErrorUpperBound *int64               `json:"doc_count_error_upper_bound,omitempty"`
	Key                     FieldValue           `json:"key"`
}

StringTermsBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L435-L437

func NewStringTermsBucket ¶

func NewStringTermsBucket() *StringTermsBucket

NewStringTermsBucket returns a StringTermsBucket.

func (StringTermsBucket) MarshalJSON ¶

func (s StringTermsBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*StringTermsBucket) UnmarshalJSON ¶

func (s *StringTermsBucket) UnmarshalJSON(data []byte) error

type StringifiedEpochTimeUnitMillis ¶

type StringifiedEpochTimeUnitMillis any

StringifiedEpochTimeUnitMillis holds the union for the following types:

int64
string

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_spec_utils/Stringified.ts#L20-L27

type StringifiedEpochTimeUnitMillisVariant ¶

type StringifiedEpochTimeUnitMillisVariant interface {
	StringifiedEpochTimeUnitMillisCaster() *StringifiedEpochTimeUnitMillis
}

type StringifiedEpochTimeUnitSeconds ¶

type StringifiedEpochTimeUnitSeconds any

StringifiedEpochTimeUnitSeconds holds the union for the following types:

int64
string

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_spec_utils/Stringified.ts#L20-L27

type StringifiedbooleanVariant ¶

type StringifiedbooleanVariant interface {
	StringifiedbooleanCaster() *Stringifiedboolean
}

type StringifiedintegerVariant ¶

type StringifiedintegerVariant interface {
	StringifiedintegerCaster() *Stringifiedinteger
}

type StupidBackoffSmoothingModel ¶

type StupidBackoffSmoothingModel struct {
	// Discount A constant factor that the lower order n-gram model is discounted by.
	Discount Float64 `json:"discount"`
}

StupidBackoffSmoothingModel type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L464-L469

func NewStupidBackoffSmoothingModel ¶

func NewStupidBackoffSmoothingModel() *StupidBackoffSmoothingModel

NewStupidBackoffSmoothingModel returns a StupidBackoffSmoothingModel.

func (*StupidBackoffSmoothingModel) StupidBackoffSmoothingModelCaster ¶

func (s *StupidBackoffSmoothingModel) StupidBackoffSmoothingModelCaster() *StupidBackoffSmoothingModel

func (*StupidBackoffSmoothingModel) UnmarshalJSON ¶

func (s *StupidBackoffSmoothingModel) UnmarshalJSON(data []byte) error

type StupidBackoffSmoothingModelVariant ¶

type StupidBackoffSmoothingModelVariant interface {
	StupidBackoffSmoothingModelCaster() *StupidBackoffSmoothingModel
}

type Suggest ¶

type Suggest any

Suggest holds the union for the following types:

CompletionSuggest
PhraseSuggest
TermSuggest

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L35-L41

type SuggestContext ¶

type SuggestContext struct {
	Name      string  `json:"name"`
	Path      *string `json:"path,omitempty"`
	Precision *string `json:"precision,omitempty"`
	Type      string  `json:"type"`
}

SuggestContext type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L43-L48

func NewSuggestContext ¶

func NewSuggestContext() *SuggestContext

NewSuggestContext returns a SuggestContext.

func (*SuggestContext) SuggestContextCaster ¶

func (s *SuggestContext) SuggestContextCaster() *SuggestContext

func (*SuggestContext) UnmarshalJSON ¶

func (s *SuggestContext) UnmarshalJSON(data []byte) error

type SuggestContextVariant ¶

type SuggestContextVariant interface {
	SuggestContextCaster() *SuggestContext
}

type SuggestFuzziness ¶

type SuggestFuzziness struct {
	// Fuzziness The fuzziness factor.
	Fuzziness Fuzziness `json:"fuzziness,omitempty"`
	// MinLength Minimum length of the input before fuzzy suggestions are returned.
	MinLength *int `json:"min_length,omitempty"`
	// PrefixLength Minimum length of the input, which is not checked for fuzzy alternatives.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// Transpositions If set to `true`, transpositions are counted as one change instead of two.
	Transpositions *bool `json:"transpositions,omitempty"`
	// UnicodeAware If `true`, all measurements (like fuzzy edit distance, transpositions, and
	// lengths) are measured in Unicode code points instead of in bytes.
	// This is slightly slower than raw bytes.
	UnicodeAware *bool `json:"unicode_aware,omitempty"`
}

SuggestFuzziness type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L197-L225

func NewSuggestFuzziness ¶

func NewSuggestFuzziness() *SuggestFuzziness

NewSuggestFuzziness returns a SuggestFuzziness.

func (*SuggestFuzziness) SuggestFuzzinessCaster ¶

func (s *SuggestFuzziness) SuggestFuzzinessCaster() *SuggestFuzziness

func (*SuggestFuzziness) UnmarshalJSON ¶

func (s *SuggestFuzziness) UnmarshalJSON(data []byte) error

type SuggestFuzzinessVariant ¶

type SuggestFuzzinessVariant interface {
	SuggestFuzzinessCaster() *SuggestFuzziness
}

type Suggester ¶

type Suggester struct {
	Suggesters map[string]FieldSuggester `json:"-"`
	// Text Global suggest text, to avoid repetition when the same text is used in
	// several suggesters
	Text *string `json:"text,omitempty"`
}

Suggester type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L102-L108

func NewSuggester ¶

func NewSuggester() *Suggester

NewSuggester returns a Suggester.

func (Suggester) MarshalJSON ¶

func (s Suggester) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*Suggester) SuggesterCaster ¶

func (s *Suggester) SuggesterCaster() *Suggester

func (*Suggester) UnmarshalJSON ¶

func (s *Suggester) UnmarshalJSON(data []byte) error

type SuggesterVariant ¶

type SuggesterVariant interface {
	SuggesterCaster() *Suggester
}

type SumAggregate ¶

type SumAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

SumAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L211-L216

func NewSumAggregate ¶

func NewSumAggregate() *SumAggregate

NewSumAggregate returns a SumAggregate.

func (*SumAggregate) UnmarshalJSON ¶

func (s *SumAggregate) UnmarshalJSON(data []byte) error

type SumAggregation ¶

type SumAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

SumAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L324-L324

func NewSumAggregation ¶

func NewSumAggregation() *SumAggregation

NewSumAggregation returns a SumAggregation.

func (*SumAggregation) SumAggregationCaster ¶

func (s *SumAggregation) SumAggregationCaster() *SumAggregation

func (*SumAggregation) UnmarshalJSON ¶

func (s *SumAggregation) UnmarshalJSON(data []byte) error

type SumAggregationVariant ¶

type SumAggregationVariant interface {
	SumAggregationCaster() *SumAggregation
}

type SumBucketAggregation ¶

type SumBucketAggregation struct {
	// BucketsPath Path to the buckets that contain one set of values to correlate.
	BucketsPath BucketsPath `json:"buckets_path,omitempty"`
	// Format `DecimalFormat` pattern for the output value.
	// If specified, the formatted value is returned in the aggregation’s
	// `value_as_string` property.
	Format *string `json:"format,omitempty"`
	// GapPolicy Policy to apply when gaps are found in the data.
	GapPolicy *gappolicy.GapPolicy `json:"gap_policy,omitempty"`
}

SumBucketAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/pipeline.ts#L412-L415

func NewSumBucketAggregation ¶

func NewSumBucketAggregation() *SumBucketAggregation

NewSumBucketAggregation returns a SumBucketAggregation.

func (*SumBucketAggregation) SumBucketAggregationCaster ¶

func (s *SumBucketAggregation) SumBucketAggregationCaster() *SumBucketAggregation

func (*SumBucketAggregation) UnmarshalJSON ¶

func (s *SumBucketAggregation) UnmarshalJSON(data []byte) error

type SumBucketAggregationVariant ¶

type SumBucketAggregationVariant interface {
	SumBucketAggregationCaster() *SumBucketAggregation
}

type SummaryInfo ¶

type SummaryInfo struct {
	// Read A collection of statistics that summarise the results of the read operations
	// in the test.
	Read ReadSummaryInfo `json:"read"`
	// Write A collection of statistics that summarise the results of the write operations
	// in the test.
	Write WriteSummaryInfo `json:"write"`
}

SummaryInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202

func NewSummaryInfo ¶

func NewSummaryInfo() *SummaryInfo

NewSummaryInfo returns a SummaryInfo.

type SwedishAnalyzer ¶

type SwedishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

SwedishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L303-L308

func NewSwedishAnalyzer ¶

func NewSwedishAnalyzer() *SwedishAnalyzer

NewSwedishAnalyzer returns a SwedishAnalyzer.

func (*SwedishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *SwedishAnalyzer) AnalyzerCaster() *Analyzer

func (SwedishAnalyzer) MarshalJSON ¶

func (s SwedishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SwedishAnalyzer) SwedishAnalyzerCaster ¶

func (s *SwedishAnalyzer) SwedishAnalyzerCaster() *SwedishAnalyzer

func (*SwedishAnalyzer) UnmarshalJSON ¶

func (s *SwedishAnalyzer) UnmarshalJSON(data []byte) error

type SwedishAnalyzerVariant ¶

type SwedishAnalyzerVariant interface {
	SwedishAnalyzerCaster() *SwedishAnalyzer
}

type SyncContainer ¶

type SyncContainer struct {
	AdditionalSyncContainerProperty map[string]json.RawMessage `json:"-"`
	// Time Specifies that the transform uses a time field to synchronize the source and
	// destination indices.
	Time *TimeSync `json:"time,omitempty"`
}

SyncContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L169-L175

func NewSyncContainer ¶

func NewSyncContainer() *SyncContainer

NewSyncContainer returns a SyncContainer.

func (SyncContainer) MarshalJSON ¶

func (s SyncContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*SyncContainer) SyncContainerCaster ¶

func (s *SyncContainer) SyncContainerCaster() *SyncContainer

type SyncContainerVariant ¶

type SyncContainerVariant interface {
	SyncContainerCaster() *SyncContainer
}

type SyncJobConnectorReference ¶

type SyncJobConnectorReference struct {
	Configuration ConnectorConfiguration `json:"configuration"`
	Filtering     FilteringRules         `json:"filtering"`
	Id            string                 `json:"id"`
	IndexName     string                 `json:"index_name"`
	Language      *string                `json:"language,omitempty"`
	Pipeline      *IngestPipelineParams  `json:"pipeline,omitempty"`
	ServiceType   string                 `json:"service_type"`
	SyncCursor    json.RawMessage        `json:"sync_cursor,omitempty"`
}

SyncJobConnectorReference type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/SyncJob.ts#L31-L40

func NewSyncJobConnectorReference ¶

func NewSyncJobConnectorReference() *SyncJobConnectorReference

NewSyncJobConnectorReference returns a SyncJobConnectorReference.

func (*SyncJobConnectorReference) UnmarshalJSON ¶

func (s *SyncJobConnectorReference) UnmarshalJSON(data []byte) error

type SyncRulesFeature ¶

type SyncRulesFeature struct {
	// Advanced Indicates whether advanced sync rules are enabled.
	Advanced *FeatureEnabled `json:"advanced,omitempty"`
	// Basic Indicates whether basic sync rules are enabled.
	Basic *FeatureEnabled `json:"basic,omitempty"`
}

SyncRulesFeature type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L219-L228

func NewSyncRulesFeature ¶

func NewSyncRulesFeature() *SyncRulesFeature

NewSyncRulesFeature returns a SyncRulesFeature.

func (*SyncRulesFeature) SyncRulesFeatureCaster ¶

func (s *SyncRulesFeature) SyncRulesFeatureCaster() *SyncRulesFeature

type SyncRulesFeatureVariant ¶

type SyncRulesFeatureVariant interface {
	SyncRulesFeatureCaster() *SyncRulesFeature
}

type SynonymGraphTokenFilter ¶

type SynonymGraphTokenFilter struct {
	// Expand Expands definitions for equivalent synonym rules. Defaults to `true`.
	Expand *bool `json:"expand,omitempty"`
	// Format Sets the synonym rules format.
	Format *synonymformat.SynonymFormat `json:"format,omitempty"`
	// Lenient If `true` ignores errors while parsing the synonym rules. It is important to
	// note that only those synonym rules which cannot get parsed are ignored.
	// Defaults to the value of the `updateable` setting.
	Lenient *bool `json:"lenient,omitempty"`
	// Synonyms Used to define inline synonyms.
	Synonyms []string `json:"synonyms,omitempty"`
	// SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the
	// `config` location.
	SynonymsPath *string `json:"synonyms_path,omitempty"`
	// SynonymsSet Provide a synonym set created via Synonyms Management APIs.
	SynonymsSet *string `json:"synonyms_set,omitempty"`
	// Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this
	// parameter is for backwards compatibility for indices that created before 6.0.
	Tokenizer *string `json:"tokenizer,omitempty"`
	Type      string  `json:"type,omitempty"`
	// Updateable If `true` allows reloading search analyzers to pick up changes to synonym
	// files. Only to be used for search analyzers. Defaults to `false`.
	Updateable *bool   `json:"updateable,omitempty"`
	Version    *string `json:"version,omitempty"`
}

SynonymGraphTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L163-L165

func NewSynonymGraphTokenFilter ¶

func NewSynonymGraphTokenFilter() *SynonymGraphTokenFilter

NewSynonymGraphTokenFilter returns a SynonymGraphTokenFilter.

func (SynonymGraphTokenFilter) MarshalJSON ¶

func (s SynonymGraphTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SynonymGraphTokenFilter) SynonymGraphTokenFilterCaster ¶

func (s *SynonymGraphTokenFilter) SynonymGraphTokenFilterCaster() *SynonymGraphTokenFilter

func (*SynonymGraphTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *SynonymGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*SynonymGraphTokenFilter) UnmarshalJSON ¶

func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error

type SynonymGraphTokenFilterVariant ¶

type SynonymGraphTokenFilterVariant interface {
	SynonymGraphTokenFilterCaster() *SynonymGraphTokenFilter
}

type SynonymRule ¶

type SynonymRule struct {
	// Id The identifier for the synonym rule.
	// If you do not specify a synonym rule ID when you create a rule, an identifier
	// is created automatically by Elasticsearch.
	Id *string `json:"id,omitempty"`
	// Synonyms The synonyms that conform the synonym rule in Solr format.
	Synonyms string `json:"synonyms"`
}

SynonymRule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/synonyms/_types/SynonymRule.ts#L26-L37

func NewSynonymRule ¶

func NewSynonymRule() *SynonymRule

NewSynonymRule returns a SynonymRule.

func (*SynonymRule) SynonymRuleCaster ¶

func (s *SynonymRule) SynonymRuleCaster() *SynonymRule

func (*SynonymRule) UnmarshalJSON ¶

func (s *SynonymRule) UnmarshalJSON(data []byte) error

type SynonymRuleRead ¶

type SynonymRuleRead struct {
	// Id Synonym Rule identifier
	Id string `json:"id"`
	// Synonyms Synonyms, in Solr format, that conform the synonym rule.
	Synonyms string `json:"synonyms"`
}

SynonymRuleRead type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/synonyms/_types/SynonymRule.ts#L40-L50

func NewSynonymRuleRead ¶

func NewSynonymRuleRead() *SynonymRuleRead

NewSynonymRuleRead returns a SynonymRuleRead.

func (*SynonymRuleRead) UnmarshalJSON ¶

func (s *SynonymRuleRead) UnmarshalJSON(data []byte) error

type SynonymRuleVariant ¶

type SynonymRuleVariant interface {
	SynonymRuleCaster() *SynonymRule
}

type SynonymTokenFilter ¶

type SynonymTokenFilter struct {
	// Expand Expands definitions for equivalent synonym rules. Defaults to `true`.
	Expand *bool `json:"expand,omitempty"`
	// Format Sets the synonym rules format.
	Format *synonymformat.SynonymFormat `json:"format,omitempty"`
	// Lenient If `true` ignores errors while parsing the synonym rules. It is important to
	// note that only those synonym rules which cannot get parsed are ignored.
	// Defaults to the value of the `updateable` setting.
	Lenient *bool `json:"lenient,omitempty"`
	// Synonyms Used to define inline synonyms.
	Synonyms []string `json:"synonyms,omitempty"`
	// SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the
	// `config` location.
	SynonymsPath *string `json:"synonyms_path,omitempty"`
	// SynonymsSet Provide a synonym set created via Synonyms Management APIs.
	SynonymsSet *string `json:"synonyms_set,omitempty"`
	// Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this
	// parameter is for backwards compatibility for indices that created before 6.0.
	Tokenizer *string `json:"tokenizer,omitempty"`
	Type      string  `json:"type,omitempty"`
	// Updateable If `true` allows reloading search analyzers to pick up changes to synonym
	// files. Only to be used for search analyzers. Defaults to `false`.
	Updateable *bool   `json:"updateable,omitempty"`
	Version    *string `json:"version,omitempty"`
}

SynonymTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L167-L169

func NewSynonymTokenFilter ¶

func NewSynonymTokenFilter() *SynonymTokenFilter

NewSynonymTokenFilter returns a SynonymTokenFilter.

func (SynonymTokenFilter) MarshalJSON ¶

func (s SynonymTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*SynonymTokenFilter) SynonymTokenFilterCaster ¶

func (s *SynonymTokenFilter) SynonymTokenFilterCaster() *SynonymTokenFilter

func (*SynonymTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *SynonymTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*SynonymTokenFilter) UnmarshalJSON ¶

func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error

type SynonymTokenFilterVariant ¶

type SynonymTokenFilterVariant interface {
	SynonymTokenFilterCaster() *SynonymTokenFilter
}

type SynonymsSetItem ¶

type SynonymsSetItem struct {
	// Count Number of synonym rules that the synonym set contains
	Count int `json:"count"`
	// SynonymsSet Synonyms set identifier
	SynonymsSet string `json:"synonyms_set"`
}

SynonymsSetItem type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45

func NewSynonymsSetItem ¶

func NewSynonymsSetItem() *SynonymsSetItem

NewSynonymsSetItem returns a SynonymsSetItem.

func (*SynonymsSetItem) UnmarshalJSON ¶

func (s *SynonymsSetItem) UnmarshalJSON(data []byte) error

type SynonymsStats ¶ added in v9.0.1

type SynonymsStats struct {
	Count      int `json:"count"`
	IndexCount int `json:"index_count"`
}

SynonymsStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/stats/types.ts#L354-L357

func NewSynonymsStats ¶ added in v9.0.1

func NewSynonymsStats() *SynonymsStats

NewSynonymsStats returns a SynonymsStats.

func (*SynonymsStats) UnmarshalJSON ¶ added in v9.0.1

func (s *SynonymsStats) UnmarshalJSON(data []byte) error

type TDigest ¶

type TDigest struct {
	// Compression Limits the maximum number of nodes used by the underlying TDigest algorithm
	// to `20 * compression`, enabling control of memory usage and approximation
	// error.
	Compression *int `json:"compression,omitempty"`
	// ExecutionHint The default implementation of TDigest is optimized for performance, scaling
	// to millions or even billions of sample values while maintaining acceptable
	// accuracy levels (close to 1% relative error for millions of samples in some
	// cases).
	// To use an implementation optimized for accuracy, set this parameter to
	// high_accuracy instead.
	ExecutionHint *tdigestexecutionhint.TDigestExecutionHint `json:"execution_hint,omitempty"`
}

TDigest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L244-L255

func NewTDigest ¶

func NewTDigest() *TDigest

NewTDigest returns a TDigest.

func (*TDigest) TDigestCaster ¶

func (s *TDigest) TDigestCaster() *TDigest

func (*TDigest) UnmarshalJSON ¶

func (s *TDigest) UnmarshalJSON(data []byte) error

type TDigestPercentileRanksAggregate ¶

type TDigestPercentileRanksAggregate struct {
	Meta   Metadata    `json:"meta,omitempty"`
	Values Percentiles `json:"values"`
}

TDigestPercentileRanksAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L177-L178

func NewTDigestPercentileRanksAggregate ¶

func NewTDigestPercentileRanksAggregate() *TDigestPercentileRanksAggregate

NewTDigestPercentileRanksAggregate returns a TDigestPercentileRanksAggregate.

func (*TDigestPercentileRanksAggregate) UnmarshalJSON ¶

func (s *TDigestPercentileRanksAggregate) UnmarshalJSON(data []byte) error

type TDigestPercentilesAggregate ¶

type TDigestPercentilesAggregate struct {
	Meta   Metadata    `json:"meta,omitempty"`
	Values Percentiles `json:"values"`
}

TDigestPercentilesAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L174-L175

func NewTDigestPercentilesAggregate ¶

func NewTDigestPercentilesAggregate() *TDigestPercentilesAggregate

NewTDigestPercentilesAggregate returns a TDigestPercentilesAggregate.

func (*TDigestPercentilesAggregate) UnmarshalJSON ¶

func (s *TDigestPercentilesAggregate) UnmarshalJSON(data []byte) error

type TDigestVariant ¶

type TDigestVariant interface {
	TDigestCaster() *TDigest
}

type TTestAggregate ¶

type TTestAggregate struct {
	Meta          Metadata `json:"meta,omitempty"`
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

TTestAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L840-L847

func NewTTestAggregate ¶

func NewTTestAggregate() *TTestAggregate

NewTTestAggregate returns a TTestAggregate.

func (*TTestAggregate) UnmarshalJSON ¶

func (s *TTestAggregate) UnmarshalJSON(data []byte) error

type TTestAggregation ¶

type TTestAggregation struct {
	// A Test population A.
	A *TestPopulation `json:"a,omitempty"`
	// B Test population B.
	B *TestPopulation `json:"b,omitempty"`
	// Type The type of test.
	Type *ttesttype.TTestType `json:"type,omitempty"`
}

TTestAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L326-L340

func NewTTestAggregation ¶

func NewTTestAggregation() *TTestAggregation

NewTTestAggregation returns a TTestAggregation.

func (*TTestAggregation) TTestAggregationCaster ¶

func (s *TTestAggregation) TTestAggregationCaster() *TTestAggregation

type TTestAggregationVariant ¶

type TTestAggregationVariant interface {
	TTestAggregationCaster() *TTestAggregation
}

type TableValuesContainer ¶

type TableValuesContainer struct {
	AdditionalTableValuesContainerProperty map[string]json.RawMessage `json:"-"`
	Float64                                [][]Float64                `json:"double,omitempty"`
	Int                                    [][]int                    `json:"integer,omitempty"`
	Int64                                  [][]int64                  `json:"long,omitempty"`
	Keyword                                [][]string                 `json:"keyword,omitempty"`
}

TableValuesContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/esql/_types/TableValuesContainer.ts#L22-L28

func NewTableValuesContainer ¶

func NewTableValuesContainer() *TableValuesContainer

NewTableValuesContainer returns a TableValuesContainer.

func (TableValuesContainer) MarshalJSON ¶

func (s TableValuesContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TableValuesContainer) TableValuesContainerCaster ¶

func (s *TableValuesContainer) TableValuesContainerCaster() *TableValuesContainer

type TableValuesContainerVariant ¶

type TableValuesContainerVariant interface {
	TableValuesContainerCaster() *TableValuesContainer
}

type TableValuesIntegerValueVariant ¶

type TableValuesIntegerValueVariant interface {
	TableValuesIntegerValueCaster() *TableValuesIntegerValue
}

type TableValuesKeywordValueVariant ¶

type TableValuesKeywordValueVariant interface {
	TableValuesKeywordValueCaster() *TableValuesKeywordValue
}

type TableValuesLongDoubleVariant ¶

type TableValuesLongDoubleVariant interface {
	TableValuesLongDoubleCaster() *TableValuesLongDouble
}

type TableValuesLongValueVariant ¶

type TableValuesLongValueVariant interface {
	TableValuesLongValueCaster() *TableValuesLongValue
}

type TargetMeanEncodingPreprocessor ¶

type TargetMeanEncodingPreprocessor struct {
	DefaultValue Float64            `json:"default_value"`
	FeatureName  string             `json:"feature_name"`
	Field        string             `json:"field"`
	TargetMap    map[string]Float64 `json:"target_map"`
}

TargetMeanEncodingPreprocessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L49-L54

func NewTargetMeanEncodingPreprocessor ¶

func NewTargetMeanEncodingPreprocessor() *TargetMeanEncodingPreprocessor

NewTargetMeanEncodingPreprocessor returns a TargetMeanEncodingPreprocessor.

func (*TargetMeanEncodingPreprocessor) TargetMeanEncodingPreprocessorCaster ¶

func (s *TargetMeanEncodingPreprocessor) TargetMeanEncodingPreprocessorCaster() *TargetMeanEncodingPreprocessor

func (*TargetMeanEncodingPreprocessor) UnmarshalJSON ¶

func (s *TargetMeanEncodingPreprocessor) UnmarshalJSON(data []byte) error

type TargetMeanEncodingPreprocessorVariant ¶

type TargetMeanEncodingPreprocessorVariant interface {
	TargetMeanEncodingPreprocessorCaster() *TargetMeanEncodingPreprocessor
}

type TaskFailure ¶

type TaskFailure struct {
	NodeId string     `json:"node_id"`
	Reason ErrorCause `json:"reason"`
	Status string     `json:"status"`
	TaskId int64      `json:"task_id"`
}

TaskFailure type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Errors.ts#L67-L72

func NewTaskFailure ¶

func NewTaskFailure() *TaskFailure

NewTaskFailure returns a TaskFailure.

func (*TaskFailure) UnmarshalJSON ¶

func (s *TaskFailure) UnmarshalJSON(data []byte) error

type TaskInfo ¶

type TaskInfo struct {
	Action      string `json:"action"`
	Cancellable bool   `json:"cancellable"`
	Cancelled   *bool  `json:"cancelled,omitempty"`
	// Description Human readable text that identifies the particular request that the task is
	// performing.
	// For example, it might identify the search request being performed by a search
	// task.
	// Other kinds of tasks have different descriptions, like `_reindex` which has
	// the source and the destination, or `_bulk` which just has the number of
	// requests and the destination indices.
	// Many requests will have only an empty description because more detailed
	// information about the request is not easily available or particularly helpful
	// in identifying the request.
	Description        *string           `json:"description,omitempty"`
	Headers            map[string]string `json:"headers"`
	Id                 int64             `json:"id"`
	Node               string            `json:"node"`
	ParentTaskId       *string           `json:"parent_task_id,omitempty"`
	RunningTime        Duration          `json:"running_time,omitempty"`
	RunningTimeInNanos int64             `json:"running_time_in_nanos"`
	StartTimeInMillis  int64             `json:"start_time_in_millis"`
	// Status The internal status of the task, which varies from task to task.
	// The format also varies.
	// While the goal is to keep the status for a particular task consistent from
	// version to version, this is not always possible because sometimes the
	// implementation changes.
	// Fields might be removed from the status for a particular request so any
	// parsing you do of the status might break in minor releases.
	Status json.RawMessage `json:"status,omitempty"`
	Type   string          `json:"type"`
}

TaskInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/tasks/_types/TaskInfo.ts#L32-L58

func NewTaskInfo ¶

func NewTaskInfo() *TaskInfo

NewTaskInfo returns a TaskInfo.

func (*TaskInfo) UnmarshalJSON ¶

func (s *TaskInfo) UnmarshalJSON(data []byte) error

type TasksRecord ¶

type TasksRecord struct {
	// Action The task action.
	Action *string `json:"action,omitempty"`
	// Description The task action description.
	Description *string `json:"description,omitempty"`
	// Id The identifier of the task with the node.
	Id *string `json:"id,omitempty"`
	// Ip The IP address for the node.
	Ip *string `json:"ip,omitempty"`
	// Node The node name.
	Node *string `json:"node,omitempty"`
	// NodeId The unique node identifier.
	NodeId *string `json:"node_id,omitempty"`
	// ParentTaskId The parent task identifier.
	ParentTaskId *string `json:"parent_task_id,omitempty"`
	// Port The bound transport port for the node.
	Port *string `json:"port,omitempty"`
	// RunningTime The running time.
	RunningTime *string `json:"running_time,omitempty"`
	// RunningTimeNs The running time in nanoseconds.
	RunningTimeNs *string `json:"running_time_ns,omitempty"`
	// StartTime The start time in milliseconds.
	StartTime *string `json:"start_time,omitempty"`
	// TaskId The unique task identifier.
	TaskId *string `json:"task_id,omitempty"`
	// Timestamp The start time in `HH:MM:SS` format.
	Timestamp *string `json:"timestamp,omitempty"`
	// Type The task type.
	Type *string `json:"type,omitempty"`
	// Version The Elasticsearch version.
	Version *string `json:"version,omitempty"`
	// XOpaqueId The X-Opaque-ID header.
	XOpaqueId *string `json:"x_opaque_id,omitempty"`
}

TasksRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/tasks/types.ts#L22-L101

func NewTasksRecord ¶

func NewTasksRecord() *TasksRecord

NewTasksRecord returns a TasksRecord.

func (*TasksRecord) UnmarshalJSON ¶

func (s *TasksRecord) UnmarshalJSON(data []byte) error

type Template ¶

type Template struct {
	Aliases  map[string]Alias `json:"aliases"`
	Mappings TypeMapping      `json:"mappings"`
	Settings IndexSettings    `json:"settings"`
}

Template type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37

func NewTemplate ¶

func NewTemplate() *Template

NewTemplate returns a Template.

type TemplateConfig ¶

type TemplateConfig struct {
	// Explain If `true`, returns detailed information about score calculation as part of
	// each hit.
	Explain *bool `json:"explain,omitempty"`
	// Id The ID of the search template to use. If no `source` is specified,
	// this parameter is required.
	Id *string `json:"id,omitempty"`
	// Params Key-value pairs used to replace Mustache variables in the template.
	// The key is the variable name.
	// The value is the variable value.
	Params map[string]json.RawMessage `json:"params,omitempty"`
	// Profile If `true`, the query execution is profiled.
	Profile *bool `json:"profile,omitempty"`
	// Source An inline search template. Supports the same parameters as the search API's
	// request body. It also supports Mustache variables. If no `id` is specified,
	// this
	// parameter is required.
	Source ScriptSource `json:"source,omitempty"`
}

TemplateConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/msearch_template/types.ts#L29-L55

func NewTemplateConfig ¶

func NewTemplateConfig() *TemplateConfig

NewTemplateConfig returns a TemplateConfig.

func (*TemplateConfig) RequestItemCaster ¶ added in v9.0.1

func (s *TemplateConfig) RequestItemCaster() *RequestItem

func (*TemplateConfig) TemplateConfigCaster ¶

func (s *TemplateConfig) TemplateConfigCaster() *TemplateConfig

func (*TemplateConfig) UnmarshalJSON ¶

func (s *TemplateConfig) UnmarshalJSON(data []byte) error

type TemplateConfigVariant ¶

type TemplateConfigVariant interface {
	TemplateConfigCaster() *TemplateConfig
}

type TemplateMapping ¶

type TemplateMapping struct {
	Aliases       map[string]Alias           `json:"aliases"`
	IndexPatterns []string                   `json:"index_patterns"`
	Mappings      TypeMapping                `json:"mappings"`
	Order         int                        `json:"order"`
	Settings      map[string]json.RawMessage `json:"settings"`
	Version       *int64                     `json:"version,omitempty"`
}

TemplateMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/TemplateMapping.ts#L27-L34

func NewTemplateMapping ¶

func NewTemplateMapping() *TemplateMapping

NewTemplateMapping returns a TemplateMapping.

func (*TemplateMapping) UnmarshalJSON ¶

func (s *TemplateMapping) UnmarshalJSON(data []byte) error

type TemplatesRecord ¶

type TemplatesRecord struct {
	// ComposedOf The component templates that comprise the index template.
	ComposedOf *string `json:"composed_of,omitempty"`
	// IndexPatterns The template index patterns.
	IndexPatterns *string `json:"index_patterns,omitempty"`
	// Name The template name.
	Name *string `json:"name,omitempty"`
	// Order The template application order or priority number.
	Order *string `json:"order,omitempty"`
	// Version The template version.
	Version *string `json:"version,omitempty"`
}

TemplatesRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/templates/types.ts#L22-L48

func NewTemplatesRecord ¶

func NewTemplatesRecord() *TemplatesRecord

NewTemplatesRecord returns a TemplatesRecord.

func (*TemplatesRecord) UnmarshalJSON ¶

func (s *TemplatesRecord) UnmarshalJSON(data []byte) error

type Term ¶

type Term struct {
	DocFreq  *int               `json:"doc_freq,omitempty"`
	Score    *Float64           `json:"score,omitempty"`
	TermFreq int                `json:"term_freq"`
	Tokens   []TermVectorsToken `json:"tokens,omitempty"`
	Ttf      *int               `json:"ttf,omitempty"`
}

Term type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/termvectors/types.ts#L34-L40

func NewTerm ¶

func NewTerm() *Term

NewTerm returns a Term.

func (*Term) UnmarshalJSON ¶

func (s *Term) UnmarshalJSON(data []byte) error

type TermQuery ¶

type TermQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// CaseInsensitive Allows ASCII case insensitive matching of the value with the indexed field
	// values when set to `true`.
	// When `false`, the case sensitivity of matching depends on the underlying
	// field’s mapping.
	CaseInsensitive *bool   `json:"case_insensitive,omitempty"`
	QueryName_      *string `json:"_name,omitempty"`
	// Value Term you wish to find in the provided field.
	Value FieldValue `json:"value"`
}

TermQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L234-L251

func NewTermQuery ¶

func NewTermQuery() *TermQuery

NewTermQuery returns a TermQuery.

func (*TermQuery) TermQueryCaster ¶

func (s *TermQuery) TermQueryCaster() *TermQuery

func (*TermQuery) UnmarshalJSON ¶

func (s *TermQuery) UnmarshalJSON(data []byte) error

type TermQueryVariant ¶

type TermQueryVariant interface {
	TermQueryCaster() *TermQuery
}

type TermRangeQuery ¶

type TermRangeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Gt Greater than.
	Gt *string `json:"gt,omitempty"`
	// Gte Greater than or equal to.
	Gte *string `json:"gte,omitempty"`
	// Lt Less than.
	Lt *string `json:"lt,omitempty"`
	// Lte Less than or equal to.
	Lte        *string `json:"lte,omitempty"`
	QueryName_ *string `json:"_name,omitempty"`
	// Relation Indicates how the range query matches values for `range` fields.
	Relation *rangerelation.RangeRelation `json:"relation,omitempty"`
}

TermRangeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L170-L170

func NewTermRangeQuery ¶

func NewTermRangeQuery() *TermRangeQuery

NewTermRangeQuery returns a TermRangeQuery.

func (*TermRangeQuery) RangeQueryCaster ¶ added in v9.0.1

func (s *TermRangeQuery) RangeQueryCaster() *RangeQuery

func (*TermRangeQuery) TermRangeQueryCaster ¶

func (s *TermRangeQuery) TermRangeQueryCaster() *TermRangeQuery

func (*TermRangeQuery) UnmarshalJSON ¶

func (s *TermRangeQuery) UnmarshalJSON(data []byte) error

type TermRangeQueryVariant ¶

type TermRangeQueryVariant interface {
	TermRangeQueryCaster() *TermRangeQuery
}

type TermSuggest ¶

type TermSuggest struct {
	Length  int                 `json:"length"`
	Offset  int                 `json:"offset"`
	Options []TermSuggestOption `json:"options"`
	Text    string              `json:"text"`
}

TermSuggest type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L65-L70

func NewTermSuggest ¶

func NewTermSuggest() *TermSuggest

NewTermSuggest returns a TermSuggest.

func (*TermSuggest) UnmarshalJSON ¶

func (s *TermSuggest) UnmarshalJSON(data []byte) error

type TermSuggestOption ¶

type TermSuggestOption struct {
	CollateMatch *bool   `json:"collate_match,omitempty"`
	Freq         int64   `json:"freq"`
	Highlighted  *string `json:"highlighted,omitempty"`
	Score        Float64 `json:"score"`
	Text         string  `json:"text"`
}

TermSuggestOption type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L94-L100

func NewTermSuggestOption ¶

func NewTermSuggestOption() *TermSuggestOption

NewTermSuggestOption returns a TermSuggestOption.

func (*TermSuggestOption) UnmarshalJSON ¶

func (s *TermSuggestOption) UnmarshalJSON(data []byte) error

type TermSuggester ¶

type TermSuggester struct {
	// Analyzer The analyzer to analyze the suggest text with.
	// Defaults to the search analyzer of the suggest field.
	Analyzer *string `json:"analyzer,omitempty"`
	// Field The field to fetch the candidate suggestions from.
	// Needs to be set globally or per suggestion.
	Field          string `json:"field"`
	LowercaseTerms *bool  `json:"lowercase_terms,omitempty"`
	// MaxEdits The maximum edit distance candidate suggestions can have in order to be
	// considered as a suggestion.
	// Can only be `1` or `2`.
	MaxEdits *int `json:"max_edits,omitempty"`
	// MaxInspections A factor that is used to multiply with the shard_size in order to inspect
	// more candidate spelling corrections on the shard level.
	// Can improve accuracy at the cost of performance.
	MaxInspections *int `json:"max_inspections,omitempty"`
	// MaxTermFreq The maximum threshold in number of documents in which a suggest text token
	// can exist in order to be included.
	// Can be a relative percentage number (for example `0.4`) or an absolute number
	// to represent document frequencies.
	// If a value higher than 1 is specified, then fractional can not be specified.
	MaxTermFreq *float32 `json:"max_term_freq,omitempty"`
	// MinDocFreq The minimal threshold in number of documents a suggestion should appear in.
	// This can improve quality by only suggesting high frequency terms.
	// Can be specified as an absolute number or as a relative percentage of number
	// of documents.
	// If a value higher than 1 is specified, then the number cannot be fractional.
	MinDocFreq *float32 `json:"min_doc_freq,omitempty"`
	// MinWordLength The minimum length a suggest text term must have in order to be included.
	MinWordLength *int `json:"min_word_length,omitempty"`
	// PrefixLength The number of minimal prefix characters that must match in order be a
	// candidate for suggestions.
	// Increasing this number improves spellcheck performance.
	PrefixLength *int `json:"prefix_length,omitempty"`
	// ShardSize Sets the maximum number of suggestions to be retrieved from each individual
	// shard.
	ShardSize *int `json:"shard_size,omitempty"`
	// Size The maximum corrections to be returned per suggest text token.
	Size *int `json:"size,omitempty"`
	// Sort Defines how suggestions should be sorted per suggest text term.
	Sort *suggestsort.SuggestSort `json:"sort,omitempty"`
	// StringDistance The string distance implementation to use for comparing how similar suggested
	// terms are.
	StringDistance *stringdistance.StringDistance `json:"string_distance,omitempty"`
	// SuggestMode Controls what suggestions are included or controls for what suggest text
	// terms, suggestions should be suggested.
	SuggestMode *suggestmode.SuggestMode `json:"suggest_mode,omitempty"`
	// Text The suggest text.
	// Needs to be set globally or per suggestion.
	Text *string `json:"text,omitempty"`
}

TermSuggester type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/search/_types/suggester.ts#L507-L569

func NewTermSuggester ¶

func NewTermSuggester() *TermSuggester

NewTermSuggester returns a TermSuggester.

func (*TermSuggester) TermSuggesterCaster ¶

func (s *TermSuggester) TermSuggesterCaster() *TermSuggester

func (*TermSuggester) UnmarshalJSON ¶

func (s *TermSuggester) UnmarshalJSON(data []byte) error

type TermSuggesterVariant ¶

type TermSuggesterVariant interface {
	TermSuggesterCaster() *TermSuggester
}

type TermVector ¶

type TermVector struct {
	FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"`
	Terms           map[string]Term  `json:"terms"`
}

TermVector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/termvectors/types.ts#L23-L26

func NewTermVector ¶

func NewTermVector() *TermVector

NewTermVector returns a TermVector.

type TermVectorsFilter ¶

type TermVectorsFilter struct {
	// MaxDocFreq Ignore words which occur in more than this many docs.
	// Defaults to unbounded.
	MaxDocFreq *int `json:"max_doc_freq,omitempty"`
	// MaxNumTerms The maximum number of terms that must be returned per field.
	MaxNumTerms *int `json:"max_num_terms,omitempty"`
	// MaxTermFreq Ignore words with more than this frequency in the source doc.
	// It defaults to unbounded.
	MaxTermFreq *int `json:"max_term_freq,omitempty"`
	// MaxWordLength The maximum word length above which words will be ignored.
	// Defaults to unbounded.
	MaxWordLength *int `json:"max_word_length,omitempty"`
	// MinDocFreq Ignore terms which do not occur in at least this many docs.
	MinDocFreq *int `json:"min_doc_freq,omitempty"`
	// MinTermFreq Ignore words with less than this frequency in the source doc.
	MinTermFreq *int `json:"min_term_freq,omitempty"`
	// MinWordLength The minimum word length below which words will be ignored.
	MinWordLength *int `json:"min_word_length,omitempty"`
}

TermVectorsFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/termvectors/types.ts#L49-L86

func NewTermVectorsFilter ¶

func NewTermVectorsFilter() *TermVectorsFilter

NewTermVectorsFilter returns a TermVectorsFilter.

func (*TermVectorsFilter) TermVectorsFilterCaster ¶

func (s *TermVectorsFilter) TermVectorsFilterCaster() *TermVectorsFilter

func (*TermVectorsFilter) UnmarshalJSON ¶

func (s *TermVectorsFilter) UnmarshalJSON(data []byte) error

type TermVectorsFilterVariant ¶

type TermVectorsFilterVariant interface {
	TermVectorsFilterCaster() *TermVectorsFilter
}

type TermVectorsResult ¶

type TermVectorsResult struct {
	Error       *ErrorCause           `json:"error,omitempty"`
	Found       *bool                 `json:"found,omitempty"`
	Id_         *string               `json:"_id,omitempty"`
	Index_      string                `json:"_index"`
	TermVectors map[string]TermVector `json:"term_vectors,omitempty"`
	Took        *int64                `json:"took,omitempty"`
	Version_    *int64                `json:"_version,omitempty"`
}

TermVectorsResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/mtermvectors/types.ts#L96-L104

func NewTermVectorsResult ¶

func NewTermVectorsResult() *TermVectorsResult

NewTermVectorsResult returns a TermVectorsResult.

func (*TermVectorsResult) UnmarshalJSON ¶

func (s *TermVectorsResult) UnmarshalJSON(data []byte) error

type TermVectorsToken ¶

type TermVectorsToken struct {
	EndOffset   *int    `json:"end_offset,omitempty"`
	Payload     *string `json:"payload,omitempty"`
	Position    int     `json:"position"`
	StartOffset *int    `json:"start_offset,omitempty"`
}

TermVectorsToken type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/termvectors/types.ts#L42-L47

func NewTermVectorsToken ¶

func NewTermVectorsToken() *TermVectorsToken

NewTermVectorsToken returns a TermVectorsToken.

func (*TermVectorsToken) UnmarshalJSON ¶

func (s *TermVectorsToken) UnmarshalJSON(data []byte) error

type TerminateProcessor ¶

type TerminateProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
}

TerminateProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1542-L1542

func NewTerminateProcessor ¶

func NewTerminateProcessor() *TerminateProcessor

NewTerminateProcessor returns a TerminateProcessor.

func (*TerminateProcessor) TerminateProcessorCaster ¶

func (s *TerminateProcessor) TerminateProcessorCaster() *TerminateProcessor

func (*TerminateProcessor) UnmarshalJSON ¶

func (s *TerminateProcessor) UnmarshalJSON(data []byte) error

type TerminateProcessorVariant ¶

type TerminateProcessorVariant interface {
	TerminateProcessorCaster() *TerminateProcessor
}

type TermsAggregation ¶

type TermsAggregation struct {
	// CollectMode Determines how child aggregations should be calculated: breadth-first or
	// depth-first.
	CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"`
	// Exclude Values to exclude.
	// Accepts regular expressions and partitions.
	Exclude []string `json:"exclude,omitempty"`
	// ExecutionHint Determines whether the aggregation will use field values directly or global
	// ordinals.
	ExecutionHint *termsaggregationexecutionhint.TermsAggregationExecutionHint `json:"execution_hint,omitempty"`
	// Field The field from which to return terms.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Include Values to include.
	// Accepts regular expressions and partitions.
	Include TermsInclude `json:"include,omitempty"`
	// MinDocCount Only return values that are found in more than `min_doc_count` hits.
	MinDocCount *int `json:"min_doc_count,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing       Missing                    `json:"missing,omitempty"`
	MissingBucket *bool                      `json:"missing_bucket,omitempty"`
	MissingOrder  *missingorder.MissingOrder `json:"missing_order,omitempty"`
	// Order Specifies the sort order of the buckets.
	// Defaults to sorting by descending document count.
	Order  AggregateOrder `json:"order,omitempty"`
	Script *Script        `json:"script,omitempty"`
	// ShardMinDocCount Regulates the certainty a shard has if the term should actually be added to
	// the candidate list or not with respect to the `min_doc_count`.
	// Terms will only be considered if their local shard frequency within the set
	// is higher than the `shard_min_doc_count`.
	ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`
	// ShardSize The number of candidate terms produced by each shard.
	// By default, `shard_size` will be automatically estimated based on the number
	// of shards and the `size` parameter.
	ShardSize *int `json:"shard_size,omitempty"`
	// ShowTermDocCountError Set to `true` to return the `doc_count_error_upper_bound`, which is an upper
	// bound to the error on the `doc_count` returned by each shard.
	ShowTermDocCountError *bool `json:"show_term_doc_count_error,omitempty"`
	// Size The number of buckets returned out of the overall terms list.
	Size *int `json:"size,omitempty"`
	// ValueType Coerced unmapped fields into the specified type.
	ValueType *string `json:"value_type,omitempty"`
}

TermsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L963-L1031

func NewTermsAggregation ¶

func NewTermsAggregation() *TermsAggregation

NewTermsAggregation returns a TermsAggregation.

func (*TermsAggregation) TermsAggregationCaster ¶

func (s *TermsAggregation) TermsAggregationCaster() *TermsAggregation

func (*TermsAggregation) UnmarshalJSON ¶

func (s *TermsAggregation) UnmarshalJSON(data []byte) error

type TermsAggregationVariant ¶

type TermsAggregationVariant interface {
	TermsAggregationCaster() *TermsAggregation
}

type TermsExcludeVariant ¶

type TermsExcludeVariant interface {
	TermsExcludeCaster() *TermsExclude
}

type TermsGrouping ¶

type TermsGrouping struct {
	// Fields The set of fields that you wish to collect terms for.
	// This array can contain fields that are both keyword and numerics.
	// Order does not matter.
	Fields []string `json:"fields"`
}

TermsGrouping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/rollup/_types/Groupings.ts#L75-L82

func NewTermsGrouping ¶

func NewTermsGrouping() *TermsGrouping

NewTermsGrouping returns a TermsGrouping.

func (*TermsGrouping) TermsGroupingCaster ¶

func (s *TermsGrouping) TermsGroupingCaster() *TermsGrouping

func (*TermsGrouping) UnmarshalJSON ¶

func (s *TermsGrouping) UnmarshalJSON(data []byte) error

type TermsGroupingVariant ¶

type TermsGroupingVariant interface {
	TermsGroupingCaster() *TermsGrouping
}

type TermsIncludeVariant ¶

type TermsIncludeVariant interface {
	TermsIncludeCaster() *TermsInclude
}

type TermsLookup ¶

type TermsLookup struct {
	Id      string  `json:"id"`
	Index   string  `json:"index"`
	Path    string  `json:"path"`
	Routing *string `json:"routing,omitempty"`
}

TermsLookup type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L266-L271

func NewTermsLookup ¶

func NewTermsLookup() *TermsLookup

NewTermsLookup returns a TermsLookup.

func (*TermsLookup) TermsLookupCaster ¶

func (s *TermsLookup) TermsLookupCaster() *TermsLookup

func (*TermsLookup) TermsQueryFieldCaster ¶ added in v9.0.1

func (s *TermsLookup) TermsQueryFieldCaster() *TermsQueryField

func (*TermsLookup) UnmarshalJSON ¶

func (s *TermsLookup) UnmarshalJSON(data []byte) error

type TermsLookupVariant ¶

type TermsLookupVariant interface {
	TermsLookupCaster() *TermsLookup
}

type TermsPartition ¶

type TermsPartition struct {
	// NumPartitions The number of partitions.
	NumPartitions int64 `json:"num_partitions"`
	// Partition The partition number for this request.
	Partition int64 `json:"partition"`
}

TermsPartition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1080-L1089

func NewTermsPartition ¶

func NewTermsPartition() *TermsPartition

NewTermsPartition returns a TermsPartition.

func (*TermsPartition) TermsIncludeCaster ¶ added in v9.0.1

func (s *TermsPartition) TermsIncludeCaster() *TermsInclude

func (*TermsPartition) TermsPartitionCaster ¶

func (s *TermsPartition) TermsPartitionCaster() *TermsPartition

func (*TermsPartition) UnmarshalJSON ¶

func (s *TermsPartition) UnmarshalJSON(data []byte) error

type TermsPartitionVariant ¶

type TermsPartitionVariant interface {
	TermsPartitionCaster() *TermsPartition
}

type TermsQuery ¶

type TermsQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32                   `json:"boost,omitempty"`
	QueryName_ *string                    `json:"_name,omitempty"`
	TermsQuery map[string]TermsQueryField `json:"-"`
}

TermsQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L253-L259

func NewTermsQuery ¶

func NewTermsQuery() *TermsQuery

NewTermsQuery returns a TermsQuery.

func (TermsQuery) MarshalJSON ¶

func (s TermsQuery) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TermsQuery) TermsQueryCaster ¶

func (s *TermsQuery) TermsQueryCaster() *TermsQuery

func (*TermsQuery) UnmarshalJSON ¶

func (s *TermsQuery) UnmarshalJSON(data []byte) error

type TermsQueryFieldVariant ¶

type TermsQueryFieldVariant interface {
	TermsQueryFieldCaster() *TermsQueryField
}

type TermsQueryVariant ¶

type TermsQueryVariant interface {
	TermsQueryCaster() *TermsQuery
}

type TermsSetQuery ¶

type TermsSetQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// MinimumShouldMatch Specification describing number of matching terms required to return a
	// document.
	MinimumShouldMatch MinimumShouldMatch `json:"minimum_should_match,omitempty"`
	// MinimumShouldMatchField Numeric field containing the number of matching terms required to return a
	// document.
	MinimumShouldMatchField *string `json:"minimum_should_match_field,omitempty"`
	// MinimumShouldMatchScript Custom script containing the number of matching terms required to return a
	// document.
	MinimumShouldMatchScript *Script `json:"minimum_should_match_script,omitempty"`
	QueryName_               *string `json:"_name,omitempty"`
	// Terms Array of terms you wish to find in the provided field.
	Terms []FieldValue `json:"terms"`
}

TermsSetQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L273-L295

func NewTermsSetQuery ¶

func NewTermsSetQuery() *TermsSetQuery

NewTermsSetQuery returns a TermsSetQuery.

func (*TermsSetQuery) TermsSetQueryCaster ¶

func (s *TermsSetQuery) TermsSetQueryCaster() *TermsSetQuery

func (*TermsSetQuery) UnmarshalJSON ¶

func (s *TermsSetQuery) UnmarshalJSON(data []byte) error

type TermsSetQueryVariant ¶

type TermsSetQueryVariant interface {
	TermsSetQueryCaster() *TermsSetQuery
}

type TestPopulation ¶

type TestPopulation struct {
	// Field The field to aggregate.
	Field string `json:"field"`
	// Filter A filter used to define a set of records to run unpaired t-test on.
	Filter *Query  `json:"filter,omitempty"`
	Script *Script `json:"script,omitempty"`
}

TestPopulation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L342-L352

func NewTestPopulation ¶

func NewTestPopulation() *TestPopulation

NewTestPopulation returns a TestPopulation.

func (*TestPopulation) TestPopulationCaster ¶

func (s *TestPopulation) TestPopulationCaster() *TestPopulation

func (*TestPopulation) UnmarshalJSON ¶

func (s *TestPopulation) UnmarshalJSON(data []byte) error

type TestPopulationVariant ¶

type TestPopulationVariant interface {
	TestPopulationCaster() *TestPopulation
}

type TextClassificationInferenceOptions ¶

type TextClassificationInferenceOptions struct {
	// ClassificationLabels Classification labels to apply other than the stored labels. Must have the
	// same deminsions as the default configured labels
	ClassificationLabels []string `json:"classification_labels,omitempty"`
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   *Vocabulary                  `json:"vocabulary,omitempty"`
}

TextClassificationInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L202-L214

func NewTextClassificationInferenceOptions ¶

func NewTextClassificationInferenceOptions() *TextClassificationInferenceOptions

NewTextClassificationInferenceOptions returns a TextClassificationInferenceOptions.

func (*TextClassificationInferenceOptions) TextClassificationInferenceOptionsCaster ¶

func (s *TextClassificationInferenceOptions) TextClassificationInferenceOptionsCaster() *TextClassificationInferenceOptions

func (*TextClassificationInferenceOptions) UnmarshalJSON ¶

func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error

type TextClassificationInferenceOptionsVariant ¶

type TextClassificationInferenceOptionsVariant interface {
	TextClassificationInferenceOptionsCaster() *TextClassificationInferenceOptions
}

type TextClassificationInferenceUpdateOptions ¶

type TextClassificationInferenceUpdateOptions struct {
	// ClassificationLabels Classification labels to apply other than the stored labels. Must have the
	// same deminsions as the default configured labels
	ClassificationLabels []string `json:"classification_labels,omitempty"`
	// NumTopClasses Specifies the number of top class predictions to return. Defaults to 0.
	NumTopClasses *int `json:"num_top_classes,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

TextClassificationInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L382-L391

func NewTextClassificationInferenceUpdateOptions ¶

func NewTextClassificationInferenceUpdateOptions() *TextClassificationInferenceUpdateOptions

NewTextClassificationInferenceUpdateOptions returns a TextClassificationInferenceUpdateOptions.

func (*TextClassificationInferenceUpdateOptions) TextClassificationInferenceUpdateOptionsCaster ¶

func (s *TextClassificationInferenceUpdateOptions) TextClassificationInferenceUpdateOptionsCaster() *TextClassificationInferenceUpdateOptions

func (*TextClassificationInferenceUpdateOptions) UnmarshalJSON ¶

func (s *TextClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type TextClassificationInferenceUpdateOptionsVariant ¶

type TextClassificationInferenceUpdateOptionsVariant interface {
	TextClassificationInferenceUpdateOptionsCaster() *TextClassificationInferenceUpdateOptions
}

type TextEmbedding ¶

type TextEmbedding struct {
	ModelId   string `json:"model_id"`
	ModelText string `json:"model_text"`
}

TextEmbedding type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Knn.ts#L94-L97

func NewTextEmbedding ¶

func NewTextEmbedding() *TextEmbedding

NewTextEmbedding returns a TextEmbedding.

func (*TextEmbedding) TextEmbeddingCaster ¶

func (s *TextEmbedding) TextEmbeddingCaster() *TextEmbedding

func (*TextEmbedding) UnmarshalJSON ¶

func (s *TextEmbedding) UnmarshalJSON(data []byte) error

type TextEmbeddingByteResult ¶

type TextEmbeddingByteResult struct {
	Embedding []byte `json:"embedding"`
}

TextEmbeddingByteResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Results.ts#L53-L58

func NewTextEmbeddingByteResult ¶

func NewTextEmbeddingByteResult() *TextEmbeddingByteResult

NewTextEmbeddingByteResult returns a TextEmbeddingByteResult.

func (*TextEmbeddingByteResult) UnmarshalJSON ¶

func (s *TextEmbeddingByteResult) UnmarshalJSON(data []byte) error

type TextEmbeddingInferenceOptions ¶

type TextEmbeddingInferenceOptions struct {
	// EmbeddingSize The number of dimensions in the embedding output
	EmbeddingSize *int `json:"embedding_size,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   Vocabulary                   `json:"vocabulary"`
}

TextEmbeddingInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L252-L262

func NewTextEmbeddingInferenceOptions ¶

func NewTextEmbeddingInferenceOptions() *TextEmbeddingInferenceOptions

NewTextEmbeddingInferenceOptions returns a TextEmbeddingInferenceOptions.

func (*TextEmbeddingInferenceOptions) TextEmbeddingInferenceOptionsCaster ¶

func (s *TextEmbeddingInferenceOptions) TextEmbeddingInferenceOptionsCaster() *TextEmbeddingInferenceOptions

func (*TextEmbeddingInferenceOptions) UnmarshalJSON ¶

func (s *TextEmbeddingInferenceOptions) UnmarshalJSON(data []byte) error

type TextEmbeddingInferenceOptionsVariant ¶

type TextEmbeddingInferenceOptionsVariant interface {
	TextEmbeddingInferenceOptionsCaster() *TextEmbeddingInferenceOptions
}

type TextEmbeddingInferenceUpdateOptions ¶

type TextEmbeddingInferenceUpdateOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string                       `json:"results_field,omitempty"`
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

TextEmbeddingInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L411-L415

func NewTextEmbeddingInferenceUpdateOptions ¶

func NewTextEmbeddingInferenceUpdateOptions() *TextEmbeddingInferenceUpdateOptions

NewTextEmbeddingInferenceUpdateOptions returns a TextEmbeddingInferenceUpdateOptions.

func (*TextEmbeddingInferenceUpdateOptions) TextEmbeddingInferenceUpdateOptionsCaster ¶

func (s *TextEmbeddingInferenceUpdateOptions) TextEmbeddingInferenceUpdateOptionsCaster() *TextEmbeddingInferenceUpdateOptions

func (*TextEmbeddingInferenceUpdateOptions) UnmarshalJSON ¶

func (s *TextEmbeddingInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type TextEmbeddingInferenceUpdateOptionsVariant ¶

type TextEmbeddingInferenceUpdateOptionsVariant interface {
	TextEmbeddingInferenceUpdateOptionsCaster() *TextEmbeddingInferenceUpdateOptions
}

type TextEmbeddingResult ¶

type TextEmbeddingResult struct {
	Embedding []float32 `json:"embedding"`
}

TextEmbeddingResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/Results.ts#L60-L65

func NewTextEmbeddingResult ¶

func NewTextEmbeddingResult() *TextEmbeddingResult

NewTextEmbeddingResult returns a TextEmbeddingResult.

func (*TextEmbeddingResult) UnmarshalJSON ¶

func (s *TextEmbeddingResult) UnmarshalJSON(data []byte) error

type TextEmbeddingVariant ¶

type TextEmbeddingVariant interface {
	TextEmbeddingCaster() *TextEmbedding
}

type TextExpansionInferenceOptions ¶

type TextExpansionInferenceOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
	Vocabulary   Vocabulary                   `json:"vocabulary"`
}

TextExpansionInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L264-L271

func NewTextExpansionInferenceOptions ¶

func NewTextExpansionInferenceOptions() *TextExpansionInferenceOptions

NewTextExpansionInferenceOptions returns a TextExpansionInferenceOptions.

func (*TextExpansionInferenceOptions) TextExpansionInferenceOptionsCaster ¶

func (s *TextExpansionInferenceOptions) TextExpansionInferenceOptionsCaster() *TextExpansionInferenceOptions

func (*TextExpansionInferenceOptions) UnmarshalJSON ¶

func (s *TextExpansionInferenceOptions) UnmarshalJSON(data []byte) error

type TextExpansionInferenceOptionsVariant ¶

type TextExpansionInferenceOptionsVariant interface {
	TextExpansionInferenceOptionsCaster() *TextExpansionInferenceOptions
}

type TextExpansionInferenceUpdateOptions ¶

type TextExpansionInferenceUpdateOptions struct {
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string                       `json:"results_field,omitempty"`
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

TextExpansionInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L417-L421

func NewTextExpansionInferenceUpdateOptions ¶

func NewTextExpansionInferenceUpdateOptions() *TextExpansionInferenceUpdateOptions

NewTextExpansionInferenceUpdateOptions returns a TextExpansionInferenceUpdateOptions.

func (*TextExpansionInferenceUpdateOptions) TextExpansionInferenceUpdateOptionsCaster ¶

func (s *TextExpansionInferenceUpdateOptions) TextExpansionInferenceUpdateOptionsCaster() *TextExpansionInferenceUpdateOptions

func (*TextExpansionInferenceUpdateOptions) UnmarshalJSON ¶

func (s *TextExpansionInferenceUpdateOptions) UnmarshalJSON(data []byte) error

type TextExpansionInferenceUpdateOptionsVariant ¶

type TextExpansionInferenceUpdateOptionsVariant interface {
	TextExpansionInferenceUpdateOptionsCaster() *TextExpansionInferenceUpdateOptions
}

type TextExpansionQuery ¶

type TextExpansionQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// ModelId The text expansion NLP model to use
	ModelId string `json:"model_id"`
	// ModelText The query text
	ModelText string `json:"model_text"`
	// PruningConfig Token pruning configurations
	PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`
	QueryName_    *string             `json:"_name,omitempty"`
}

TextExpansionQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36

func NewTextExpansionQuery ¶

func NewTextExpansionQuery() *TextExpansionQuery

NewTextExpansionQuery returns a TextExpansionQuery.

func (*TextExpansionQuery) TextExpansionQueryCaster ¶

func (s *TextExpansionQuery) TextExpansionQueryCaster() *TextExpansionQuery

func (*TextExpansionQuery) UnmarshalJSON ¶

func (s *TextExpansionQuery) UnmarshalJSON(data []byte) error

type TextExpansionQueryVariant ¶

type TextExpansionQueryVariant interface {
	TextExpansionQueryCaster() *TextExpansionQuery
}

type TextIndexPrefixes ¶

type TextIndexPrefixes struct {
	MaxChars int `json:"max_chars"`
	MinChars int `json:"min_chars"`
}

TextIndexPrefixes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L316-L319

func NewTextIndexPrefixes ¶

func NewTextIndexPrefixes() *TextIndexPrefixes

NewTextIndexPrefixes returns a TextIndexPrefixes.

func (*TextIndexPrefixes) TextIndexPrefixesCaster ¶

func (s *TextIndexPrefixes) TextIndexPrefixesCaster() *TextIndexPrefixes

func (*TextIndexPrefixes) UnmarshalJSON ¶

func (s *TextIndexPrefixes) UnmarshalJSON(data []byte) error

type TextIndexPrefixesVariant ¶

type TextIndexPrefixesVariant interface {
	TextIndexPrefixesCaster() *TextIndexPrefixes
}

type TextProperty ¶

type TextProperty struct {
	Analyzer                 *string                        `json:"analyzer,omitempty"`
	Boost                    *Float64                       `json:"boost,omitempty"`
	CopyTo                   []string                       `json:"copy_to,omitempty"`
	Dynamic                  *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EagerGlobalOrdinals      *bool                          `json:"eager_global_ordinals,omitempty"`
	Fielddata                *bool                          `json:"fielddata,omitempty"`
	FielddataFrequencyFilter *FielddataFrequencyFilter      `json:"fielddata_frequency_filter,omitempty"`
	Fields                   map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove              *int                           `json:"ignore_above,omitempty"`
	Index                    *bool                          `json:"index,omitempty"`
	IndexOptions             *indexoptions.IndexOptions     `json:"index_options,omitempty"`
	IndexPhrases             *bool                          `json:"index_phrases,omitempty"`
	IndexPrefixes            *TextIndexPrefixes             `json:"index_prefixes,omitempty"`
	// Meta Metadata about the field.
	Meta                 map[string]string                                `json:"meta,omitempty"`
	Norms                *bool                                            `json:"norms,omitempty"`
	PositionIncrementGap *int                                             `json:"position_increment_gap,omitempty"`
	Properties           map[string]Property                              `json:"properties,omitempty"`
	SearchAnalyzer       *string                                          `json:"search_analyzer,omitempty"`
	SearchQuoteAnalyzer  *string                                          `json:"search_quote_analyzer,omitempty"`
	Similarity           *string                                          `json:"similarity,omitempty"`
	Store                *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep  *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	TermVector           *termvectoroption.TermVectorOption               `json:"term_vector,omitempty"`
	Type                 string                                           `json:"type,omitempty"`
}

TextProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L321-L338

func NewTextProperty ¶

func NewTextProperty() *TextProperty

NewTextProperty returns a TextProperty.

func (TextProperty) MarshalJSON ¶

func (s TextProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*TextProperty) PropertyCaster ¶ added in v9.0.1

func (s *TextProperty) PropertyCaster() *Property

func (*TextProperty) TextPropertyCaster ¶

func (s *TextProperty) TextPropertyCaster() *TextProperty

func (*TextProperty) UnmarshalJSON ¶

func (s *TextProperty) UnmarshalJSON(data []byte) error

type TextPropertyVariant ¶

type TextPropertyVariant interface {
	TextPropertyCaster() *TextProperty
}

type TextSimilarityReranker ¶

type TextSimilarityReranker struct {
	// Field The document field to be used for text similarity comparisons. This field
	// should contain the text that will be evaluated against the inference_text
	Field string `json:"field"`
	// Filter Query to filter the documents that can match.
	Filter []Query `json:"filter,omitempty"`
	// InferenceId Unique identifier of the inference endpoint created using the inference API.
	InferenceId *string `json:"inference_id,omitempty"`
	// InferenceText The text snippet used as the basis for similarity comparison
	InferenceText string `json:"inference_text"`
	// MinScore Minimum _score for matching documents. Documents with a lower _score are not
	// included in the top documents.
	MinScore *float32 `json:"min_score,omitempty"`
	// Name_ Retriever name.
	Name_ *string `json:"_name,omitempty"`
	// RankWindowSize This value determines how many documents we will consider from the nested
	// retriever.
	RankWindowSize *int `json:"rank_window_size,omitempty"`
	// Retriever The nested retriever which will produce the first-level results, that will
	// later be used for reranking.
	Retriever RetrieverContainer `json:"retriever"`
}

TextSimilarityReranker type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Retriever.ts#L146-L157

func NewTextSimilarityReranker ¶

func NewTextSimilarityReranker() *TextSimilarityReranker

NewTextSimilarityReranker returns a TextSimilarityReranker.

func (*TextSimilarityReranker) TextSimilarityRerankerCaster ¶

func (s *TextSimilarityReranker) TextSimilarityRerankerCaster() *TextSimilarityReranker

func (*TextSimilarityReranker) UnmarshalJSON ¶

func (s *TextSimilarityReranker) UnmarshalJSON(data []byte) error

type TextSimilarityRerankerVariant ¶

type TextSimilarityRerankerVariant interface {
	TextSimilarityRerankerCaster() *TextSimilarityReranker
}

type TextToAnalyzeVariant ¶

type TextToAnalyzeVariant interface {
	TextToAnalyzeCaster() *TextToAnalyze
}

type ThaiAnalyzer ¶

type ThaiAnalyzer struct {
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

ThaiAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L317-L321

func NewThaiAnalyzer ¶

func NewThaiAnalyzer() *ThaiAnalyzer

NewThaiAnalyzer returns a ThaiAnalyzer.

func (*ThaiAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *ThaiAnalyzer) AnalyzerCaster() *Analyzer

func (ThaiAnalyzer) MarshalJSON ¶

func (s ThaiAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ThaiAnalyzer) ThaiAnalyzerCaster ¶

func (s *ThaiAnalyzer) ThaiAnalyzerCaster() *ThaiAnalyzer

func (*ThaiAnalyzer) UnmarshalJSON ¶

func (s *ThaiAnalyzer) UnmarshalJSON(data []byte) error

type ThaiAnalyzerVariant ¶

type ThaiAnalyzerVariant interface {
	ThaiAnalyzerCaster() *ThaiAnalyzer
}

type ThaiTokenizer ¶

type ThaiTokenizer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

ThaiTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L128-L130

func NewThaiTokenizer ¶

func NewThaiTokenizer() *ThaiTokenizer

NewThaiTokenizer returns a ThaiTokenizer.

func (ThaiTokenizer) MarshalJSON ¶

func (s ThaiTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*ThaiTokenizer) ThaiTokenizerCaster ¶

func (s *ThaiTokenizer) ThaiTokenizerCaster() *ThaiTokenizer

func (*ThaiTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *ThaiTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*ThaiTokenizer) UnmarshalJSON ¶

func (s *ThaiTokenizer) UnmarshalJSON(data []byte) error

type ThaiTokenizerVariant ¶

type ThaiTokenizerVariant interface {
	ThaiTokenizerCaster() *ThaiTokenizer
}

type ThreadCount ¶

type ThreadCount struct {
	// Active Number of active threads in the thread pool.
	Active *int64 `json:"active,omitempty"`
	// Completed Number of tasks completed by the thread pool executor.
	Completed *int64 `json:"completed,omitempty"`
	// Largest Highest number of active threads in the thread pool.
	Largest *int64 `json:"largest,omitempty"`
	// Queue Number of tasks in queue for the thread pool.
	Queue *int64 `json:"queue,omitempty"`
	// Rejected Number of tasks rejected by the thread pool executor.
	Rejected *int64 `json:"rejected,omitempty"`
	// Threads Number of threads in the thread pool.
	Threads *int64 `json:"threads,omitempty"`
}

ThreadCount type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1082-L1107

func NewThreadCount ¶

func NewThreadCount() *ThreadCount

NewThreadCount returns a ThreadCount.

func (*ThreadCount) UnmarshalJSON ¶

func (s *ThreadCount) UnmarshalJSON(data []byte) error

type ThreadPoolRecord ¶

type ThreadPoolRecord struct {
	// Active The number of active threads in the current thread pool.
	Active *string `json:"active,omitempty"`
	// Completed The number of completed tasks.
	Completed *string `json:"completed,omitempty"`
	// Core The core number of active threads allowed in a scaling thread pool.
	Core *string `json:"core,omitempty"`
	// EphemeralNodeId The ephemeral node identifier.
	EphemeralNodeId *string `json:"ephemeral_node_id,omitempty"`
	// Host The host name for the current node.
	Host *string `json:"host,omitempty"`
	// Ip The IP address for the current node.
	Ip *string `json:"ip,omitempty"`
	// KeepAlive The thread keep alive time.
	KeepAlive *string `json:"keep_alive,omitempty"`
	// Largest The highest number of active threads in the current thread pool.
	Largest *string `json:"largest,omitempty"`
	// Max The maximum number of active threads allowed in a scaling thread pool.
	Max *string `json:"max,omitempty"`
	// Name The thread pool name.
	Name *string `json:"name,omitempty"`
	// NodeId The persistent node identifier.
	NodeId *string `json:"node_id,omitempty"`
	// NodeName The node name.
	NodeName *string `json:"node_name,omitempty"`
	// Pid The process identifier.
	Pid *string `json:"pid,omitempty"`
	// PoolSize The number of threads in the current thread pool.
	PoolSize *string `json:"pool_size,omitempty"`
	// Port The bound transport port for the current node.
	Port *string `json:"port,omitempty"`
	// Queue The number of tasks currently in queue.
	Queue *string `json:"queue,omitempty"`
	// QueueSize The maximum number of tasks permitted in the queue.
	QueueSize *string `json:"queue_size,omitempty"`
	// Rejected The number of rejected tasks.
	Rejected *string `json:"rejected,omitempty"`
	// Size The number of active threads allowed in a fixed thread pool.
	Size *string `json:"size,omitempty"`
	// Type The thread pool type.
	// Returned values include `fixed`, `fixed_auto_queue_size`, `direct`, and
	// `scaling`.
	Type *string `json:"type,omitempty"`
}

ThreadPoolRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/thread_pool/types.ts#L22-L124

func NewThreadPoolRecord ¶

func NewThreadPoolRecord() *ThreadPoolRecord

NewThreadPoolRecord returns a ThreadPoolRecord.

func (*ThreadPoolRecord) UnmarshalJSON ¶

func (s *ThreadPoolRecord) UnmarshalJSON(data []byte) error

type ThrottleState ¶

type ThrottleState struct {
	Reason    string   `json:"reason"`
	Timestamp DateTime `json:"timestamp"`
}

ThrottleState type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L120-L123

func NewThrottleState ¶

func NewThrottleState() *ThrottleState

NewThrottleState returns a ThrottleState.

func (*ThrottleState) ThrottleStateCaster ¶

func (s *ThrottleState) ThrottleStateCaster() *ThrottleState

func (*ThrottleState) UnmarshalJSON ¶

func (s *ThrottleState) UnmarshalJSON(data []byte) error

type ThrottleStateVariant ¶

type ThrottleStateVariant interface {
	ThrottleStateCaster() *ThrottleState
}

type TimeHttpHistogram ¶

type TimeHttpHistogram struct {
	Count    int64  `json:"count"`
	GeMillis *int64 `json:"ge_millis,omitempty"`
	LtMillis *int64 `json:"lt_millis,omitempty"`
}

TimeHttpHistogram type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L710-L714

func NewTimeHttpHistogram ¶

func NewTimeHttpHistogram() *TimeHttpHistogram

NewTimeHttpHistogram returns a TimeHttpHistogram.

func (*TimeHttpHistogram) UnmarshalJSON ¶

func (s *TimeHttpHistogram) UnmarshalJSON(data []byte) error

type TimeOfMonth ¶

type TimeOfMonth struct {
	At []string `json:"at"`
	On []int    `json:"on"`
}

TimeOfMonth type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L111-L114

func NewTimeOfMonth ¶

func NewTimeOfMonth() *TimeOfMonth

NewTimeOfMonth returns a TimeOfMonth.

func (*TimeOfMonth) TimeOfMonthCaster ¶

func (s *TimeOfMonth) TimeOfMonthCaster() *TimeOfMonth

type TimeOfMonthVariant ¶

type TimeOfMonthVariant interface {
	TimeOfMonthCaster() *TimeOfMonth
}

type TimeOfWeek ¶

type TimeOfWeek struct {
	At []string  `json:"at"`
	On []day.Day `json:"on"`
}

TimeOfWeek type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L116-L119

func NewTimeOfWeek ¶

func NewTimeOfWeek() *TimeOfWeek

NewTimeOfWeek returns a TimeOfWeek.

func (*TimeOfWeek) TimeOfWeekCaster ¶

func (s *TimeOfWeek) TimeOfWeekCaster() *TimeOfWeek

type TimeOfWeekVariant ¶

type TimeOfWeekVariant interface {
	TimeOfWeekCaster() *TimeOfWeek
}

type TimeOfYear ¶

type TimeOfYear struct {
	At  []string      `json:"at"`
	Int []month.Month `json:"int"`
	On  []int         `json:"on"`
}

TimeOfYear type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Schedule.ts#L121-L125

func NewTimeOfYear ¶

func NewTimeOfYear() *TimeOfYear

NewTimeOfYear returns a TimeOfYear.

func (*TimeOfYear) TimeOfYearCaster ¶

func (s *TimeOfYear) TimeOfYearCaster() *TimeOfYear

type TimeOfYearVariant ¶

type TimeOfYearVariant interface {
	TimeOfYearCaster() *TimeOfYear
}

type TimeSeriesAggregate ¶

type TimeSeriesAggregate struct {
	Buckets BucketsTimeSeriesBucket `json:"buckets"`
	Meta    Metadata                `json:"meta,omitempty"`
}

TimeSeriesAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L732-L733

func NewTimeSeriesAggregate ¶

func NewTimeSeriesAggregate() *TimeSeriesAggregate

NewTimeSeriesAggregate returns a TimeSeriesAggregate.

func (*TimeSeriesAggregate) UnmarshalJSON ¶

func (s *TimeSeriesAggregate) UnmarshalJSON(data []byte) error

type TimeSeriesAggregation ¶

type TimeSeriesAggregation struct {
	// Keyed Set to `true` to associate a unique string key with each bucket and returns
	// the ranges as a hash rather than an array.
	Keyed *bool `json:"keyed,omitempty"`
	// Size The maximum number of results to return.
	Size *int `json:"size,omitempty"`
}

TimeSeriesAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1033-L1046

func NewTimeSeriesAggregation ¶

func NewTimeSeriesAggregation() *TimeSeriesAggregation

NewTimeSeriesAggregation returns a TimeSeriesAggregation.

func (*TimeSeriesAggregation) TimeSeriesAggregationCaster ¶

func (s *TimeSeriesAggregation) TimeSeriesAggregationCaster() *TimeSeriesAggregation

func (*TimeSeriesAggregation) UnmarshalJSON ¶

func (s *TimeSeriesAggregation) UnmarshalJSON(data []byte) error

type TimeSeriesAggregationVariant ¶

type TimeSeriesAggregationVariant interface {
	TimeSeriesAggregationCaster() *TimeSeriesAggregation
}

type TimeSeriesBucket ¶

type TimeSeriesBucket struct {
	Aggregations map[string]Aggregate  `json:"-"`
	DocCount     int64                 `json:"doc_count"`
	Key          map[string]FieldValue `json:"key"`
}

TimeSeriesBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L735-L737

func NewTimeSeriesBucket ¶

func NewTimeSeriesBucket() *TimeSeriesBucket

NewTimeSeriesBucket returns a TimeSeriesBucket.

func (TimeSeriesBucket) MarshalJSON ¶

func (s TimeSeriesBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TimeSeriesBucket) UnmarshalJSON ¶

func (s *TimeSeriesBucket) UnmarshalJSON(data []byte) error

type TimeSync ¶

type TimeSync struct {
	// Delay The time delay between the current time and the latest input data time.
	Delay Duration `json:"delay,omitempty"`
	// Field The date field that is used to identify new documents in the source. In
	// general, it’s a good idea to use a field
	// that contains the ingest timestamp. If you use a different field, you might
	// need to set the delay such that it
	// accounts for data transmission delays.
	Field string `json:"field"`
}

TimeSync type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L177-L189

func NewTimeSync ¶

func NewTimeSync() *TimeSync

NewTimeSync returns a TimeSync.

func (*TimeSync) TimeSyncCaster ¶

func (s *TimeSync) TimeSyncCaster() *TimeSync

func (*TimeSync) UnmarshalJSON ¶

func (s *TimeSync) UnmarshalJSON(data []byte) error

type TimeSyncVariant ¶

type TimeSyncVariant interface {
	TimeSyncCaster() *TimeSync
}

type TimingStats ¶

type TimingStats struct {
	// ElapsedTime Runtime of the analysis in milliseconds.
	ElapsedTime int64 `json:"elapsed_time"`
	// IterationTime Runtime of the latest iteration of the analysis in milliseconds.
	IterationTime *int64 `json:"iteration_time,omitempty"`
}

TimingStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L564-L569

func NewTimingStats ¶

func NewTimingStats() *TimingStats

NewTimingStats returns a TimingStats.

func (*TimingStats) UnmarshalJSON ¶

func (s *TimingStats) UnmarshalJSON(data []byte) error

type TokenCountProperty ¶

type TokenCountProperty struct {
	Analyzer                 *string                        `json:"analyzer,omitempty"`
	Boost                    *Float64                       `json:"boost,omitempty"`
	CopyTo                   []string                       `json:"copy_to,omitempty"`
	DocValues                *bool                          `json:"doc_values,omitempty"`
	Dynamic                  *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	EnablePositionIncrements *bool                          `json:"enable_position_increments,omitempty"`
	Fields                   map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove              *int                           `json:"ignore_above,omitempty"`
	Index                    *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *Float64                                         `json:"null_value,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

TokenCountProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/specialized.ts#L94-L101

func NewTokenCountProperty ¶

func NewTokenCountProperty() *TokenCountProperty

NewTokenCountProperty returns a TokenCountProperty.

func (TokenCountProperty) MarshalJSON ¶

func (s TokenCountProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*TokenCountProperty) PropertyCaster ¶ added in v9.0.1

func (s *TokenCountProperty) PropertyCaster() *Property

func (*TokenCountProperty) TokenCountPropertyCaster ¶

func (s *TokenCountProperty) TokenCountPropertyCaster() *TokenCountProperty

func (*TokenCountProperty) UnmarshalJSON ¶

func (s *TokenCountProperty) UnmarshalJSON(data []byte) error

type TokenCountPropertyVariant ¶

type TokenCountPropertyVariant interface {
	TokenCountPropertyCaster() *TokenCountProperty
}

type TokenDetail ¶

type TokenDetail struct {
	Name   string                `json:"name"`
	Tokens []ExplainAnalyzeToken `json:"tokens"`
}

TokenDetail type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/analyze/types.ts#L71-L74

func NewTokenDetail ¶

func NewTokenDetail() *TokenDetail

NewTokenDetail returns a TokenDetail.

func (*TokenDetail) UnmarshalJSON ¶

func (s *TokenDetail) UnmarshalJSON(data []byte) error

type TokenFilterDefinition ¶

type TokenFilterDefinition any

TokenFilterDefinition holds the union for the following types:

ApostropheTokenFilter
ArabicStemTokenFilter
ArabicNormalizationTokenFilter
AsciiFoldingTokenFilter
BengaliNormalizationTokenFilter
BrazilianStemTokenFilter
CjkBigramTokenFilter
CjkWidthTokenFilter
ClassicTokenFilter
CommonGramsTokenFilter
ConditionTokenFilter
CzechStemTokenFilter
DecimalDigitTokenFilter
DelimitedPayloadTokenFilter
DutchStemTokenFilter
EdgeNGramTokenFilter
ElisionTokenFilter
FingerprintTokenFilter
FlattenGraphTokenFilter
FrenchStemTokenFilter
GermanNormalizationTokenFilter
GermanStemTokenFilter
HindiNormalizationTokenFilter
HunspellTokenFilter
HyphenationDecompounderTokenFilter
IndicNormalizationTokenFilter
KeepTypesTokenFilter
KeepWordsTokenFilter
KeywordMarkerTokenFilter
KeywordRepeatTokenFilter
KStemTokenFilter
LengthTokenFilter
LimitTokenCountTokenFilter
LowercaseTokenFilter
MinHashTokenFilter
MultiplexerTokenFilter
NGramTokenFilter
NoriPartOfSpeechTokenFilter
PatternCaptureTokenFilter
PatternReplaceTokenFilter
PersianNormalizationTokenFilter
PersianStemTokenFilter
PorterStemTokenFilter
PredicateTokenFilter
RemoveDuplicatesTokenFilter
ReverseTokenFilter
RussianStemTokenFilter
ScandinavianFoldingTokenFilter
ScandinavianNormalizationTokenFilter
SerbianNormalizationTokenFilter
ShingleTokenFilter
SnowballTokenFilter
SoraniNormalizationTokenFilter
StemmerOverrideTokenFilter
StemmerTokenFilter
StopTokenFilter
SynonymGraphTokenFilter
SynonymTokenFilter
TrimTokenFilter
TruncateTokenFilter
UniqueTokenFilter
UppercaseTokenFilter
WordDelimiterGraphTokenFilter
WordDelimiterTokenFilter
JaStopTokenFilter
KuromojiStemmerTokenFilter
KuromojiReadingFormTokenFilter
KuromojiPartOfSpeechTokenFilter
IcuCollationTokenFilter
IcuFoldingTokenFilter
IcuNormalizationTokenFilter
IcuTransformTokenFilter
PhoneticTokenFilter
DictionaryDecompounderTokenFilter

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L582-L660

type TokenFilterDefinitionVariant ¶

type TokenFilterDefinitionVariant interface {
	TokenFilterDefinitionCaster() *TokenFilterDefinition
}

type TokenFilterVariant ¶

type TokenFilterVariant interface {
	TokenFilterCaster() *TokenFilter
}

type TokenPruningConfig ¶

type TokenPruningConfig struct {
	// OnlyScorePrunedTokens Whether to only score pruned tokens, vs only scoring kept tokens.
	OnlyScorePrunedTokens *bool `json:"only_score_pruned_tokens,omitempty"`
	// TokensFreqRatioThreshold Tokens whose frequency is more than this threshold times the average
	// frequency of all tokens in the specified field are considered outliers and
	// pruned.
	TokensFreqRatioThreshold *int `json:"tokens_freq_ratio_threshold,omitempty"`
	// TokensWeightThreshold Tokens whose weight is less than this threshold are considered nonsignificant
	// and pruned.
	TokensWeightThreshold *float32 `json:"tokens_weight_threshold,omitempty"`
}

TokenPruningConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/TokenPruningConfig.ts#L22-L35

func NewTokenPruningConfig ¶

func NewTokenPruningConfig() *TokenPruningConfig

NewTokenPruningConfig returns a TokenPruningConfig.

func (*TokenPruningConfig) TokenPruningConfigCaster ¶

func (s *TokenPruningConfig) TokenPruningConfigCaster() *TokenPruningConfig

func (*TokenPruningConfig) UnmarshalJSON ¶

func (s *TokenPruningConfig) UnmarshalJSON(data []byte) error

type TokenPruningConfigVariant ¶

type TokenPruningConfigVariant interface {
	TokenPruningConfigCaster() *TokenPruningConfig
}

type TokenizationConfigContainer ¶

type TokenizationConfigContainer struct {
	AdditionalTokenizationConfigContainerProperty map[string]json.RawMessage `json:"-"`
	// Bert Indicates BERT tokenization and its options
	Bert *NlpBertTokenizationConfig `json:"bert,omitempty"`
	// BertJa Indicates BERT Japanese tokenization and its options
	BertJa *NlpBertTokenizationConfig `json:"bert_ja,omitempty"`
	// Mpnet Indicates MPNET tokenization and its options
	Mpnet *NlpBertTokenizationConfig `json:"mpnet,omitempty"`
	// Roberta Indicates RoBERTa tokenization and its options
	Roberta    *NlpRobertaTokenizationConfig `json:"roberta,omitempty"`
	XlmRoberta *XlmRobertaTokenizationConfig `json:"xlm_roberta,omitempty"`
}

TokenizationConfigContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L135-L158

func NewTokenizationConfigContainer ¶

func NewTokenizationConfigContainer() *TokenizationConfigContainer

NewTokenizationConfigContainer returns a TokenizationConfigContainer.

func (TokenizationConfigContainer) MarshalJSON ¶

func (s TokenizationConfigContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TokenizationConfigContainer) TokenizationConfigContainerCaster ¶

func (s *TokenizationConfigContainer) TokenizationConfigContainerCaster() *TokenizationConfigContainer

type TokenizationConfigContainerVariant ¶

type TokenizationConfigContainerVariant interface {
	TokenizationConfigContainerCaster() *TokenizationConfigContainer
}

type TokenizerDefinition ¶

type TokenizerDefinition any

TokenizerDefinition holds the union for the following types:

CharGroupTokenizer
ClassicTokenizer
EdgeNGramTokenizer
KeywordTokenizer
LetterTokenizer
LowercaseTokenizer
NGramTokenizer
PathHierarchyTokenizer
PatternTokenizer
SimplePatternTokenizer
SimplePatternSplitTokenizer
StandardTokenizer
ThaiTokenizer
UaxEmailUrlTokenizer
WhitespaceTokenizer
IcuTokenizer
KuromojiTokenizer
NoriTokenizer

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L149-L172

type TokenizerDefinitionVariant ¶

type TokenizerDefinitionVariant interface {
	TokenizerDefinitionCaster() *TokenizerDefinition
}

type TokenizerVariant ¶

type TokenizerVariant interface {
	TokenizerCaster() *Tokenizer
}

type ToolCall ¶

type ToolCall struct {
	// Function The function that the model called.
	Function ToolCallFunction `json:"function"`
	// Id The identifier of the tool call.
	Id string `json:"id"`
	// Type The type of the tool call.
	Type string `json:"type"`
}

ToolCall type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L151-L167

func NewToolCall ¶

func NewToolCall() *ToolCall

NewToolCall returns a ToolCall.

func (*ToolCall) ToolCallCaster ¶

func (s *ToolCall) ToolCallCaster() *ToolCall

func (*ToolCall) UnmarshalJSON ¶

func (s *ToolCall) UnmarshalJSON(data []byte) error

type ToolCallFunction ¶

type ToolCallFunction struct {
	// Arguments The arguments to call the function with in JSON format.
	Arguments string `json:"arguments"`
	// Name The name of the function to call.
	Name string `json:"name"`
}

ToolCallFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L137-L149

func NewToolCallFunction ¶

func NewToolCallFunction() *ToolCallFunction

NewToolCallFunction returns a ToolCallFunction.

func (*ToolCallFunction) ToolCallFunctionCaster ¶

func (s *ToolCallFunction) ToolCallFunctionCaster() *ToolCallFunction

func (*ToolCallFunction) UnmarshalJSON ¶

func (s *ToolCallFunction) UnmarshalJSON(data []byte) error

type ToolCallFunctionVariant ¶

type ToolCallFunctionVariant interface {
	ToolCallFunctionCaster() *ToolCallFunction
}

type ToolCallVariant ¶

type ToolCallVariant interface {
	ToolCallCaster() *ToolCall
}

type TopClassEntry ¶

type TopClassEntry struct {
	ClassName        string  `json:"class_name"`
	ClassProbability Float64 `json:"class_probability"`
	ClassScore       Float64 `json:"class_score"`
}

TopClassEntry type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L459-L463

func NewTopClassEntry ¶

func NewTopClassEntry() *TopClassEntry

NewTopClassEntry returns a TopClassEntry.

func (*TopClassEntry) UnmarshalJSON ¶

func (s *TopClassEntry) UnmarshalJSON(data []byte) error

type TopHit ¶

type TopHit struct {
	Count int64           `json:"count"`
	Value json.RawMessage `json:"value,omitempty"`
}

TopHit type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/text_structure/_types/Structure.ts#L35-L38

func NewTopHit ¶

func NewTopHit() *TopHit

NewTopHit returns a TopHit.

func (*TopHit) UnmarshalJSON ¶

func (s *TopHit) UnmarshalJSON(data []byte) error

type TopHitsAggregate ¶

type TopHitsAggregate struct {
	Hits HitsMetadata `json:"hits"`
	Meta Metadata     `json:"meta,omitempty"`
}

TopHitsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L749-L755

func NewTopHitsAggregate ¶

func NewTopHitsAggregate() *TopHitsAggregate

NewTopHitsAggregate returns a TopHitsAggregate.

func (*TopHitsAggregate) UnmarshalJSON ¶

func (s *TopHitsAggregate) UnmarshalJSON(data []byte) error

type TopHitsAggregation ¶

type TopHitsAggregation struct {
	// DocvalueFields Fields for which to return doc values.
	DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"`
	// Explain If `true`, returns detailed information about score computation as part of a
	// hit.
	Explain *bool `json:"explain,omitempty"`
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Fields Array of wildcard (*) patterns. The request returns values for field names
	// matching these patterns in the hits.fields property of the response.
	Fields []FieldAndFormat `json:"fields,omitempty"`
	// From Starting document offset.
	From *int `json:"from,omitempty"`
	// Highlight Specifies the highlighter to use for retrieving highlighted snippets from one
	// or more fields in the search results.
	Highlight *Highlight `json:"highlight,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// ScriptFields Returns the result of one or more script evaluations for each hit.
	ScriptFields map[string]ScriptField `json:"script_fields,omitempty"`
	// SeqNoPrimaryTerm If `true`, returns sequence number and primary term of the last modification
	// of each hit.
	SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"`
	// Size The maximum number of top matching hits to return per bucket.
	Size *int `json:"size,omitempty"`
	// Sort Sort order of the top matching hits.
	// By default, the hits are sorted by the score of the main query.
	Sort []SortCombinations `json:"sort,omitempty"`
	// Source_ Selects the fields of the source that are returned.
	Source_ SourceConfig `json:"_source,omitempty"`
	// StoredFields Returns values for the specified stored fields (fields that use the `store`
	// mapping option).
	StoredFields []string `json:"stored_fields,omitempty"`
	// TrackScores If `true`, calculates and returns document scores, even if the scores are not
	// used for sorting.
	TrackScores *bool `json:"track_scores,omitempty"`
	// Version If `true`, returns document version as part of a hit.
	Version *bool `json:"version,omitempty"`
}

TopHitsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L369-L429

func NewTopHitsAggregation ¶

func NewTopHitsAggregation() *TopHitsAggregation

NewTopHitsAggregation returns a TopHitsAggregation.

func (*TopHitsAggregation) TopHitsAggregationCaster ¶

func (s *TopHitsAggregation) TopHitsAggregationCaster() *TopHitsAggregation

func (*TopHitsAggregation) UnmarshalJSON ¶

func (s *TopHitsAggregation) UnmarshalJSON(data []byte) error

type TopHitsAggregationVariant ¶

type TopHitsAggregationVariant interface {
	TopHitsAggregationCaster() *TopHitsAggregation
}

type TopLeftBottomRightGeoBounds ¶

type TopLeftBottomRightGeoBounds struct {
	BottomRight GeoLocation `json:"bottom_right"`
	TopLeft     GeoLocation `json:"top_left"`
}

TopLeftBottomRightGeoBounds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L161-L164

func NewTopLeftBottomRightGeoBounds ¶

func NewTopLeftBottomRightGeoBounds() *TopLeftBottomRightGeoBounds

NewTopLeftBottomRightGeoBounds returns a TopLeftBottomRightGeoBounds.

func (*TopLeftBottomRightGeoBounds) GeoBoundsCaster ¶ added in v9.0.1

func (s *TopLeftBottomRightGeoBounds) GeoBoundsCaster() *GeoBounds

func (*TopLeftBottomRightGeoBounds) TopLeftBottomRightGeoBoundsCaster ¶

func (s *TopLeftBottomRightGeoBounds) TopLeftBottomRightGeoBoundsCaster() *TopLeftBottomRightGeoBounds

func (*TopLeftBottomRightGeoBounds) UnmarshalJSON ¶

func (s *TopLeftBottomRightGeoBounds) UnmarshalJSON(data []byte) error

type TopLeftBottomRightGeoBoundsVariant ¶

type TopLeftBottomRightGeoBoundsVariant interface {
	TopLeftBottomRightGeoBoundsCaster() *TopLeftBottomRightGeoBounds
}

type TopMetrics ¶

type TopMetrics struct {
	Metrics map[string]FieldValue `json:"metrics"`
	Sort    []FieldValue          `json:"sort"`
}

TopMetrics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L834-L838

func NewTopMetrics ¶

func NewTopMetrics() *TopMetrics

NewTopMetrics returns a TopMetrics.

type TopMetricsAggregate ¶

type TopMetricsAggregate struct {
	Meta Metadata     `json:"meta,omitempty"`
	Top  []TopMetrics `json:"top"`
}

TopMetricsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L829-L832

func NewTopMetricsAggregate ¶

func NewTopMetricsAggregate() *TopMetricsAggregate

NewTopMetricsAggregate returns a TopMetricsAggregate.

func (*TopMetricsAggregate) UnmarshalJSON ¶

func (s *TopMetricsAggregate) UnmarshalJSON(data []byte) error

type TopMetricsAggregation ¶

type TopMetricsAggregation struct {
	// Field The field on which to run the aggregation.
	Field *string `json:"field,omitempty"`
	// Metrics The fields of the top document to return.
	Metrics []TopMetricsValue `json:"metrics,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
	// Size The number of top documents from which to return metrics.
	Size *int `json:"size,omitempty"`
	// Sort The sort order of the documents.
	Sort []SortCombinations `json:"sort,omitempty"`
}

TopMetricsAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L431-L448

func NewTopMetricsAggregation ¶

func NewTopMetricsAggregation() *TopMetricsAggregation

NewTopMetricsAggregation returns a TopMetricsAggregation.

func (*TopMetricsAggregation) TopMetricsAggregationCaster ¶

func (s *TopMetricsAggregation) TopMetricsAggregationCaster() *TopMetricsAggregation

func (*TopMetricsAggregation) UnmarshalJSON ¶

func (s *TopMetricsAggregation) UnmarshalJSON(data []byte) error

type TopMetricsAggregationVariant ¶

type TopMetricsAggregationVariant interface {
	TopMetricsAggregationCaster() *TopMetricsAggregation
}

type TopMetricsValue ¶

type TopMetricsValue struct {
	// Field A field to return as a metric.
	Field string `json:"field"`
}

TopMetricsValue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L450-L455

func NewTopMetricsValue ¶

func NewTopMetricsValue() *TopMetricsValue

NewTopMetricsValue returns a TopMetricsValue.

func (*TopMetricsValue) TopMetricsValueCaster ¶

func (s *TopMetricsValue) TopMetricsValueCaster() *TopMetricsValue

func (*TopMetricsValue) UnmarshalJSON ¶

func (s *TopMetricsValue) UnmarshalJSON(data []byte) error

type TopMetricsValueVariant ¶

type TopMetricsValueVariant interface {
	TopMetricsValueCaster() *TopMetricsValue
}

type TopRightBottomLeftGeoBounds ¶

type TopRightBottomLeftGeoBounds struct {
	BottomLeft GeoLocation `json:"bottom_left"`
	TopRight   GeoLocation `json:"top_right"`
}

TopRightBottomLeftGeoBounds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L166-L169

func NewTopRightBottomLeftGeoBounds ¶

func NewTopRightBottomLeftGeoBounds() *TopRightBottomLeftGeoBounds

NewTopRightBottomLeftGeoBounds returns a TopRightBottomLeftGeoBounds.

func (*TopRightBottomLeftGeoBounds) GeoBoundsCaster ¶ added in v9.0.1

func (s *TopRightBottomLeftGeoBounds) GeoBoundsCaster() *GeoBounds

func (*TopRightBottomLeftGeoBounds) TopRightBottomLeftGeoBoundsCaster ¶

func (s *TopRightBottomLeftGeoBounds) TopRightBottomLeftGeoBoundsCaster() *TopRightBottomLeftGeoBounds

func (*TopRightBottomLeftGeoBounds) UnmarshalJSON ¶

func (s *TopRightBottomLeftGeoBounds) UnmarshalJSON(data []byte) error

type TopRightBottomLeftGeoBoundsVariant ¶

type TopRightBottomLeftGeoBoundsVariant interface {
	TopRightBottomLeftGeoBoundsCaster() *TopRightBottomLeftGeoBounds
}

type TotalFeatureImportance ¶

type TotalFeatureImportance struct {
	// Classes If the trained model is a classification model, feature importance statistics
	// are gathered per target class value.
	Classes []TotalFeatureImportanceClass `json:"classes"`
	// FeatureName The feature for which this importance was calculated.
	FeatureName string `json:"feature_name"`
	// Importance A collection of feature importance statistics related to the training data
	// set for this particular feature.
	Importance []TotalFeatureImportanceStatistics `json:"importance"`
}

TotalFeatureImportance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L290-L297

func NewTotalFeatureImportance ¶

func NewTotalFeatureImportance() *TotalFeatureImportance

NewTotalFeatureImportance returns a TotalFeatureImportance.

func (*TotalFeatureImportance) UnmarshalJSON ¶

func (s *TotalFeatureImportance) UnmarshalJSON(data []byte) error

type TotalFeatureImportanceClass ¶

type TotalFeatureImportanceClass struct {
	// ClassName The target class value. Could be a string, boolean, or number.
	ClassName string `json:"class_name"`
	// Importance A collection of feature importance statistics related to the training data
	// set for this particular feature.
	Importance []TotalFeatureImportanceStatistics `json:"importance"`
}

TotalFeatureImportanceClass type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L299-L304

func NewTotalFeatureImportanceClass ¶

func NewTotalFeatureImportanceClass() *TotalFeatureImportanceClass

NewTotalFeatureImportanceClass returns a TotalFeatureImportanceClass.

func (*TotalFeatureImportanceClass) UnmarshalJSON ¶

func (s *TotalFeatureImportanceClass) UnmarshalJSON(data []byte) error

type TotalFeatureImportanceStatistics ¶

type TotalFeatureImportanceStatistics struct {
	// Max The maximum importance value across all the training data for this feature.
	Max int `json:"max"`
	// MeanMagnitude The average magnitude of this feature across all the training data. This
	// value is the average of the absolute values of the importance for this
	// feature.
	MeanMagnitude Float64 `json:"mean_magnitude"`
	// Min The minimum importance value across all the training data for this feature.
	Min int `json:"min"`
}

TotalFeatureImportanceStatistics type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L306-L313

func NewTotalFeatureImportanceStatistics ¶

func NewTotalFeatureImportanceStatistics() *TotalFeatureImportanceStatistics

NewTotalFeatureImportanceStatistics returns a TotalFeatureImportanceStatistics.

func (*TotalFeatureImportanceStatistics) UnmarshalJSON ¶

func (s *TotalFeatureImportanceStatistics) UnmarshalJSON(data []byte) error

type TotalHits ¶

type TotalHits struct {
	Relation totalhitsrelation.TotalHitsRelation `json:"relation"`
	Value    int64                               `json:"value"`
}

TotalHits type.

https://github.com/elastic/elasticsearch-specification/blob/18d160a8583deec1bbef274d2c0e563a0cd20e2f/specification/_global/search/_types/hits.ts#L94-L97

func NewTotalHits ¶

func NewTotalHits() *TotalHits

NewTotalHits returns a TotalHits.

func (*TotalHits) UnmarshalJSON ¶

func (t *TotalHits) UnmarshalJSON(data []byte) error

UnmarshalJSON implements Unmarshaler interface, it handles the shortcut for total hits.

type TotalUserProfiles ¶

type TotalUserProfiles struct {
	Relation string `json:"relation"`
	Value    int64  `json:"value"`
}

TotalUserProfiles type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/suggest_user_profiles/Response.ts#L24-L27

func NewTotalUserProfiles ¶

func NewTotalUserProfiles() *TotalUserProfiles

NewTotalUserProfiles returns a TotalUserProfiles.

func (*TotalUserProfiles) UnmarshalJSON ¶

func (s *TotalUserProfiles) UnmarshalJSON(data []byte) error

type TrackHitsVariant ¶

type TrackHitsVariant interface {
	TrackHitsCaster() *TrackHits
}

type TrainedModel ¶

type TrainedModel struct {
	// Ensemble The definition for an ensemble model
	Ensemble *Ensemble `json:"ensemble,omitempty"`
	// Tree The definition for a binary decision tree.
	Tree *TrainedModelTree `json:"tree,omitempty"`
	// TreeNode The definition of a node in a tree.
	// There are two major types of nodes: leaf nodes and not-leaf nodes.
	// - Leaf nodes only need node_index and leaf_value defined.
	// - All other nodes need split_feature, left_child, right_child, threshold,
	// decision_type, and default_left defined.
	TreeNode *TrainedModelTreeNode `json:"tree_node,omitempty"`
}

TrainedModel type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L60-L72

func NewTrainedModel ¶

func NewTrainedModel() *TrainedModel

NewTrainedModel returns a TrainedModel.

func (*TrainedModel) TrainedModelCaster ¶

func (s *TrainedModel) TrainedModelCaster() *TrainedModel

type TrainedModelAssignment ¶

type TrainedModelAssignment struct {
	AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"`
	// AssignmentState The overall assignment state.
	AssignmentState        deploymentassignmentstate.DeploymentAssignmentState `json:"assignment_state"`
	MaxAssignedAllocations *int                                                `json:"max_assigned_allocations,omitempty"`
	Reason                 *string                                             `json:"reason,omitempty"`
	// RoutingTable The allocation state for each node.
	RoutingTable map[string]TrainedModelAssignmentRoutingTable `json:"routing_table"`
	// StartTime The timestamp when the deployment started.
	StartTime      DateTime                             `json:"start_time"`
	TaskParameters TrainedModelAssignmentTaskParameters `json:"task_parameters"`
}

TrainedModelAssignment type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L472-L489

func NewTrainedModelAssignment ¶

func NewTrainedModelAssignment() *TrainedModelAssignment

NewTrainedModelAssignment returns a TrainedModelAssignment.

func (*TrainedModelAssignment) UnmarshalJSON ¶

func (s *TrainedModelAssignment) UnmarshalJSON(data []byte) error

type TrainedModelAssignmentRoutingStateAndReason ¶

type TrainedModelAssignmentRoutingStateAndReason struct {
	// Reason The reason for the current state. It is usually populated only when the
	// `routing_state` is `failed`.
	Reason *string `json:"reason,omitempty"`
	// RoutingState The current routing state.
	RoutingState routingstate.RoutingState `json:"routing_state"`
}

TrainedModelAssignmentRoutingStateAndReason type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L431-L441

func NewTrainedModelAssignmentRoutingStateAndReason ¶

func NewTrainedModelAssignmentRoutingStateAndReason() *TrainedModelAssignmentRoutingStateAndReason

NewTrainedModelAssignmentRoutingStateAndReason returns a TrainedModelAssignmentRoutingStateAndReason.

func (*TrainedModelAssignmentRoutingStateAndReason) UnmarshalJSON ¶

func (s *TrainedModelAssignmentRoutingStateAndReason) UnmarshalJSON(data []byte) error

type TrainedModelAssignmentRoutingTable ¶

type TrainedModelAssignmentRoutingTable struct {
	// CurrentAllocations Current number of allocations.
	CurrentAllocations int `json:"current_allocations"`
	// Reason The reason for the current state. It is usually populated only when the
	// `routing_state` is `failed`.
	Reason *string `json:"reason,omitempty"`
	// RoutingState The current routing state.
	RoutingState routingstate.RoutingState `json:"routing_state"`
	// TargetAllocations Target number of allocations.
	TargetAllocations int `json:"target_allocations"`
}

TrainedModelAssignmentRoutingTable type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L443-L461

func NewTrainedModelAssignmentRoutingTable ¶

func NewTrainedModelAssignmentRoutingTable() *TrainedModelAssignmentRoutingTable

NewTrainedModelAssignmentRoutingTable returns a TrainedModelAssignmentRoutingTable.

func (*TrainedModelAssignmentRoutingTable) UnmarshalJSON ¶

func (s *TrainedModelAssignmentRoutingTable) UnmarshalJSON(data []byte) error

type TrainedModelAssignmentTaskParameters ¶

type TrainedModelAssignmentTaskParameters struct {
	// CacheSize The size of the trained model cache.
	CacheSize ByteSize `json:"cache_size,omitempty"`
	// DeploymentId The unique identifier for the trained model deployment.
	DeploymentId string `json:"deployment_id"`
	// ModelBytes The size of the trained model in bytes.
	ModelBytes ByteSize `json:"model_bytes"`
	// ModelId The unique identifier for the trained model.
	ModelId string `json:"model_id"`
	// NumberOfAllocations The total number of allocations this model is assigned across ML nodes.
	NumberOfAllocations      int                               `json:"number_of_allocations"`
	PerAllocationMemoryBytes ByteSize                          `json:"per_allocation_memory_bytes"`
	PerDeploymentMemoryBytes ByteSize                          `json:"per_deployment_memory_bytes"`
	Priority                 trainingpriority.TrainingPriority `json:"priority"`
	// QueueCapacity Number of inference requests are allowed in the queue at a time.
	QueueCapacity int `json:"queue_capacity"`
	// ThreadsPerAllocation Number of threads per allocation.
	ThreadsPerAllocation int `json:"threads_per_allocation"`
}

TrainedModelAssignmentTaskParameters type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L370-L406

func NewTrainedModelAssignmentTaskParameters ¶

func NewTrainedModelAssignmentTaskParameters() *TrainedModelAssignmentTaskParameters

NewTrainedModelAssignmentTaskParameters returns a TrainedModelAssignmentTaskParameters.

func (*TrainedModelAssignmentTaskParameters) UnmarshalJSON ¶

func (s *TrainedModelAssignmentTaskParameters) UnmarshalJSON(data []byte) error

type TrainedModelConfig ¶

type TrainedModelConfig struct {
	CompressedDefinition *string `json:"compressed_definition,omitempty"`
	// CreateTime The time when the trained model was created.
	CreateTime DateTime `json:"create_time,omitempty"`
	// CreatedBy Information on the creator of the trained model.
	CreatedBy *string `json:"created_by,omitempty"`
	// DefaultFieldMap Any field map described in the inference configuration takes precedence.
	DefaultFieldMap map[string]string `json:"default_field_map,omitempty"`
	// Description The free-text description of the trained model.
	Description *string `json:"description,omitempty"`
	// EstimatedHeapMemoryUsageBytes The estimated heap usage in bytes to keep the trained model in memory.
	EstimatedHeapMemoryUsageBytes *int `json:"estimated_heap_memory_usage_bytes,omitempty"`
	// EstimatedOperations The estimated number of operations to use the trained model.
	EstimatedOperations *int `json:"estimated_operations,omitempty"`
	// FullyDefined True if the full model definition is present.
	FullyDefined *bool `json:"fully_defined,omitempty"`
	// InferenceConfig The default configuration for inference. This can be either a regression,
	// classification, or one of the many NLP focused configurations. It must match
	// the underlying definition.trained_model's target_type. For pre-packaged
	// models such as ELSER the config is not required.
	InferenceConfig *InferenceConfigCreateContainer `json:"inference_config,omitempty"`
	// Input The input field names for the model definition.
	Input TrainedModelConfigInput `json:"input"`
	// LicenseLevel The license level of the trained model.
	LicenseLevel *string               `json:"license_level,omitempty"`
	Location     *TrainedModelLocation `json:"location,omitempty"`
	// Metadata An object containing metadata about the trained model. For example, models
	// created by data frame analytics contain analysis_config and input objects.
	Metadata *TrainedModelConfigMetadata `json:"metadata,omitempty"`
	// ModelId Identifier for the trained model.
	ModelId        string              `json:"model_id"`
	ModelPackage   *ModelPackageConfig `json:"model_package,omitempty"`
	ModelSizeBytes ByteSize            `json:"model_size_bytes,omitempty"`
	// ModelType The model type
	ModelType            *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"`
	PlatformArchitecture *string                            `json:"platform_architecture,omitempty"`
	PrefixStrings        *TrainedModelPrefixStrings         `json:"prefix_strings,omitempty"`
	// Tags A comma delimited string of tags. A trained model can have many tags, or
	// none.
	Tags []string `json:"tags"`
	// Version The Elasticsearch version number in which the trained model was created.
	Version *string `json:"version,omitempty"`
}

TrainedModelConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L203-L240

func NewTrainedModelConfig ¶

func NewTrainedModelConfig() *TrainedModelConfig

NewTrainedModelConfig returns a TrainedModelConfig.

func (*TrainedModelConfig) UnmarshalJSON ¶

func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error

type TrainedModelConfigInput ¶

type TrainedModelConfigInput struct {
	// FieldNames An array of input field names for the model.
	FieldNames []string `json:"field_names"`
}

TrainedModelConfigInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L242-L245

func NewTrainedModelConfigInput ¶

func NewTrainedModelConfigInput() *TrainedModelConfigInput

NewTrainedModelConfigInput returns a TrainedModelConfigInput.

type TrainedModelConfigMetadata ¶

type TrainedModelConfigMetadata struct {
	// FeatureImportanceBaseline An object that contains the baseline for feature importance values. For
	// regression analysis, it is a single value. For classification analysis, there
	// is a value for each class.
	FeatureImportanceBaseline map[string]string `json:"feature_importance_baseline,omitempty"`
	// Hyperparameters List of the available hyperparameters optimized during the
	// fine_parameter_tuning phase as well as specified by the user.
	Hyperparameters []Hyperparameter `json:"hyperparameters,omitempty"`
	ModelAliases    []string         `json:"model_aliases,omitempty"`
	// TotalFeatureImportance An array of the total feature importance for each feature used from the
	// training data set. This array of objects is returned if data frame analytics
	// trained the model and the request includes total_feature_importance in the
	// include request parameter.
	TotalFeatureImportance []TotalFeatureImportance `json:"total_feature_importance,omitempty"`
}

TrainedModelConfigMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L247-L255

func NewTrainedModelConfigMetadata ¶

func NewTrainedModelConfigMetadata() *TrainedModelConfigMetadata

NewTrainedModelConfigMetadata returns a TrainedModelConfigMetadata.

type TrainedModelDeploymentAllocationStatus ¶

type TrainedModelDeploymentAllocationStatus struct {
	// AllocationCount The current number of nodes where the model is allocated.
	AllocationCount int `json:"allocation_count"`
	// State The detailed allocation state related to the nodes.
	State deploymentallocationstate.DeploymentAllocationState `json:"state"`
	// TargetAllocationCount The desired number of nodes for model allocation.
	TargetAllocationCount int `json:"target_allocation_count"`
}

TrainedModelDeploymentAllocationStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L463-L470

func NewTrainedModelDeploymentAllocationStatus ¶

func NewTrainedModelDeploymentAllocationStatus() *TrainedModelDeploymentAllocationStatus

NewTrainedModelDeploymentAllocationStatus returns a TrainedModelDeploymentAllocationStatus.

func (*TrainedModelDeploymentAllocationStatus) UnmarshalJSON ¶

func (s *TrainedModelDeploymentAllocationStatus) UnmarshalJSON(data []byte) error

type TrainedModelDeploymentNodesStats ¶

type TrainedModelDeploymentNodesStats struct {
	// AverageInferenceTimeMs The average time for each inference call to complete on this node.
	AverageInferenceTimeMs Float64 `json:"average_inference_time_ms,omitempty"`
	// AverageInferenceTimeMsExcludingCacheHits The average time for each inference call to complete on this node, excluding
	// cache
	AverageInferenceTimeMsExcludingCacheHits Float64 `json:"average_inference_time_ms_excluding_cache_hits,omitempty"`
	AverageInferenceTimeMsLastMinute         Float64 `json:"average_inference_time_ms_last_minute,omitempty"`
	// ErrorCount The number of errors when evaluating the trained model.
	ErrorCount                       *int   `json:"error_count,omitempty"`
	InferenceCacheHitCount           *int64 `json:"inference_cache_hit_count,omitempty"`
	InferenceCacheHitCountLastMinute *int64 `json:"inference_cache_hit_count_last_minute,omitempty"`
	// InferenceCount The total number of inference calls made against this node for this model.
	InferenceCount *int64 `json:"inference_count,omitempty"`
	// LastAccess The epoch time stamp of the last inference call for the model on this node.
	LastAccess *int64 `json:"last_access,omitempty"`
	// Node Information pertaining to the node.
	Node DiscoveryNode `json:"node,omitempty"`
	// NumberOfAllocations The number of allocations assigned to this node.
	NumberOfAllocations *int `json:"number_of_allocations,omitempty"`
	// NumberOfPendingRequests The number of inference requests queued to be processed.
	NumberOfPendingRequests *int  `json:"number_of_pending_requests,omitempty"`
	PeakThroughputPerMinute int64 `json:"peak_throughput_per_minute"`
	// RejectedExecutionCount The number of inference requests that were not processed because the queue
	// was full.
	RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"`
	// RoutingState The current routing state and reason for the current routing state for this
	// allocation.
	RoutingState TrainedModelAssignmentRoutingStateAndReason `json:"routing_state"`
	// StartTime The epoch timestamp when the allocation started.
	StartTime *int64 `json:"start_time,omitempty"`
	// ThreadsPerAllocation The number of threads used by each allocation during inference.
	ThreadsPerAllocation *int `json:"threads_per_allocation,omitempty"`
	ThroughputLastMinute int  `json:"throughput_last_minute"`
	// TimeoutCount The number of inference requests that timed out before being processed.
	TimeoutCount *int `json:"timeout_count,omitempty"`
}

TrainedModelDeploymentNodesStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L156-L201

func NewTrainedModelDeploymentNodesStats ¶

func NewTrainedModelDeploymentNodesStats() *TrainedModelDeploymentNodesStats

NewTrainedModelDeploymentNodesStats returns a TrainedModelDeploymentNodesStats.

func (*TrainedModelDeploymentNodesStats) UnmarshalJSON ¶

func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error

type TrainedModelDeploymentStats ¶

type TrainedModelDeploymentStats struct {
	AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"`
	// AllocationStatus The detailed allocation status for the deployment.
	AllocationStatus *TrainedModelDeploymentAllocationStatus `json:"allocation_status,omitempty"`
	CacheSize        ByteSize                                `json:"cache_size,omitempty"`
	// DeploymentId The unique identifier for the trained model deployment.
	DeploymentId string `json:"deployment_id"`
	// ErrorCount The sum of `error_count` for all nodes in the deployment.
	ErrorCount *int `json:"error_count,omitempty"`
	// InferenceCount The sum of `inference_count` for all nodes in the deployment.
	InferenceCount *int `json:"inference_count,omitempty"`
	// ModelId The unique identifier for the trained model.
	ModelId string `json:"model_id"`
	// Nodes The deployment stats for each node that currently has the model allocated.
	// In serverless, stats are reported for a single unnamed virtual node.
	Nodes []TrainedModelDeploymentNodesStats `json:"nodes"`
	// NumberOfAllocations The number of allocations requested.
	NumberOfAllocations     *int                              `json:"number_of_allocations,omitempty"`
	PeakThroughputPerMinute int64                             `json:"peak_throughput_per_minute"`
	Priority                trainingpriority.TrainingPriority `json:"priority"`
	// QueueCapacity The number of inference requests that can be queued before new requests are
	// rejected.
	QueueCapacity *int `json:"queue_capacity,omitempty"`
	// Reason The reason for the current deployment state. Usually only populated when
	// the model is not deployed to a node.
	Reason *string `json:"reason,omitempty"`
	// RejectedExecutionCount The sum of `rejected_execution_count` for all nodes in the deployment.
	// Individual nodes reject an inference request if the inference queue is full.
	// The queue size is controlled by the `queue_capacity` setting in the start
	// trained model deployment API.
	RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"`
	// StartTime The epoch timestamp when the deployment started.
	StartTime int64 `json:"start_time"`
	// State The overall state of the deployment.
	State *deploymentassignmentstate.DeploymentAssignmentState `json:"state,omitempty"`
	// ThreadsPerAllocation The number of threads used be each allocation during inference.
	ThreadsPerAllocation *int `json:"threads_per_allocation,omitempty"`
	// TimeoutCount The sum of `timeout_count` for all nodes in the deployment.
	TimeoutCount *int `json:"timeout_count,omitempty"`
}

TrainedModelDeploymentStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L62-L107

func NewTrainedModelDeploymentStats ¶

func NewTrainedModelDeploymentStats() *TrainedModelDeploymentStats

NewTrainedModelDeploymentStats returns a TrainedModelDeploymentStats.

func (*TrainedModelDeploymentStats) UnmarshalJSON ¶

func (s *TrainedModelDeploymentStats) UnmarshalJSON(data []byte) error

type TrainedModelEntities ¶

type TrainedModelEntities struct {
	ClassName        string  `json:"class_name"`
	ClassProbability Float64 `json:"class_probability"`
	EndPos           int     `json:"end_pos"`
	Entity           string  `json:"entity"`
	StartPos         int     `json:"start_pos"`
}

TrainedModelEntities type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L452-L458

func NewTrainedModelEntities ¶

func NewTrainedModelEntities() *TrainedModelEntities

NewTrainedModelEntities returns a TrainedModelEntities.

func (*TrainedModelEntities) UnmarshalJSON ¶

func (s *TrainedModelEntities) UnmarshalJSON(data []byte) error

type TrainedModelInferenceClassImportance ¶

type TrainedModelInferenceClassImportance struct {
	ClassName  string  `json:"class_name"`
	Importance Float64 `json:"importance"`
}

TrainedModelInferenceClassImportance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L465-L468

func NewTrainedModelInferenceClassImportance ¶

func NewTrainedModelInferenceClassImportance() *TrainedModelInferenceClassImportance

NewTrainedModelInferenceClassImportance returns a TrainedModelInferenceClassImportance.

func (*TrainedModelInferenceClassImportance) UnmarshalJSON ¶

func (s *TrainedModelInferenceClassImportance) UnmarshalJSON(data []byte) error

type TrainedModelInferenceFeatureImportance ¶

type TrainedModelInferenceFeatureImportance struct {
	Classes     []TrainedModelInferenceClassImportance `json:"classes,omitempty"`
	FeatureName string                                 `json:"feature_name"`
	Importance  *Float64                               `json:"importance,omitempty"`
}

TrainedModelInferenceFeatureImportance type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L470-L474

func NewTrainedModelInferenceFeatureImportance ¶

func NewTrainedModelInferenceFeatureImportance() *TrainedModelInferenceFeatureImportance

NewTrainedModelInferenceFeatureImportance returns a TrainedModelInferenceFeatureImportance.

func (*TrainedModelInferenceFeatureImportance) UnmarshalJSON ¶

func (s *TrainedModelInferenceFeatureImportance) UnmarshalJSON(data []byte) error

type TrainedModelInferenceStats ¶

type TrainedModelInferenceStats struct {
	// CacheMissCount The number of times the model was loaded for inference and was not retrieved
	// from the cache.
	// If this number is close to the `inference_count`, the cache is not being
	// appropriately used.
	// This can be solved by increasing the cache size or its time-to-live (TTL).
	// Refer to general machine learning settings for the appropriate settings.
	CacheMissCount int `json:"cache_miss_count"`
	// FailureCount The number of failures when using the model for inference.
	FailureCount int `json:"failure_count"`
	// InferenceCount The total number of times the model has been called for inference.
	// This is across all inference contexts, including all pipelines.
	InferenceCount int `json:"inference_count"`
	// MissingAllFieldsCount The number of inference calls where all the training features for the model
	// were missing.
	MissingAllFieldsCount int `json:"missing_all_fields_count"`
	// Timestamp The time when the statistics were last updated.
	Timestamp int64 `json:"timestamp"`
}

TrainedModelInferenceStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L127-L147

func NewTrainedModelInferenceStats ¶

func NewTrainedModelInferenceStats() *TrainedModelInferenceStats

NewTrainedModelInferenceStats returns a TrainedModelInferenceStats.

func (*TrainedModelInferenceStats) UnmarshalJSON ¶

func (s *TrainedModelInferenceStats) UnmarshalJSON(data []byte) error

type TrainedModelLocation ¶

type TrainedModelLocation struct {
	Index TrainedModelLocationIndex `json:"index"`
}

TrainedModelLocation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L491-L493

func NewTrainedModelLocation ¶

func NewTrainedModelLocation() *TrainedModelLocation

NewTrainedModelLocation returns a TrainedModelLocation.

type TrainedModelLocationIndex ¶

type TrainedModelLocationIndex struct {
	Name string `json:"name"`
}

TrainedModelLocationIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L495-L497

func NewTrainedModelLocationIndex ¶

func NewTrainedModelLocationIndex() *TrainedModelLocationIndex

NewTrainedModelLocationIndex returns a TrainedModelLocationIndex.

func (*TrainedModelLocationIndex) UnmarshalJSON ¶

func (s *TrainedModelLocationIndex) UnmarshalJSON(data []byte) error

type TrainedModelPrefixStrings ¶

type TrainedModelPrefixStrings struct {
	// Ingest String prepended to input at ingest
	Ingest *string `json:"ingest,omitempty"`
	// Search String prepended to input at search
	Search *string `json:"search,omitempty"`
}

TrainedModelPrefixStrings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L499-L508

func NewTrainedModelPrefixStrings ¶

func NewTrainedModelPrefixStrings() *TrainedModelPrefixStrings

NewTrainedModelPrefixStrings returns a TrainedModelPrefixStrings.

func (*TrainedModelPrefixStrings) TrainedModelPrefixStringsCaster ¶

func (s *TrainedModelPrefixStrings) TrainedModelPrefixStringsCaster() *TrainedModelPrefixStrings

func (*TrainedModelPrefixStrings) UnmarshalJSON ¶

func (s *TrainedModelPrefixStrings) UnmarshalJSON(data []byte) error

type TrainedModelPrefixStringsVariant ¶

type TrainedModelPrefixStringsVariant interface {
	TrainedModelPrefixStringsCaster() *TrainedModelPrefixStrings
}

type TrainedModelSizeStats ¶

type TrainedModelSizeStats struct {
	// ModelSizeBytes The size of the model in bytes.
	ModelSizeBytes ByteSize `json:"model_size_bytes"`
	// RequiredNativeMemoryBytes The amount of memory required to load the model in bytes.
	RequiredNativeMemoryBytes ByteSize `json:"required_native_memory_bytes"`
}

TrainedModelSizeStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L149-L154

func NewTrainedModelSizeStats ¶

func NewTrainedModelSizeStats() *TrainedModelSizeStats

NewTrainedModelSizeStats returns a TrainedModelSizeStats.

func (*TrainedModelSizeStats) UnmarshalJSON ¶

func (s *TrainedModelSizeStats) UnmarshalJSON(data []byte) error

type TrainedModelStats ¶

type TrainedModelStats struct {
	// DeploymentStats A collection of deployment stats, which is present when the models are
	// deployed.
	DeploymentStats *TrainedModelDeploymentStats `json:"deployment_stats,omitempty"`
	// InferenceStats A collection of inference stats fields.
	InferenceStats *TrainedModelInferenceStats `json:"inference_stats,omitempty"`
	// Ingest A collection of ingest stats for the model across all nodes.
	// The values are summations of the individual node statistics.
	// The format matches the ingest section in the nodes stats API.
	Ingest map[string]json.RawMessage `json:"ingest,omitempty"`
	// ModelId The unique identifier of the trained model.
	ModelId string `json:"model_id"`
	// ModelSizeStats A collection of model size stats.
	ModelSizeStats TrainedModelSizeStats `json:"model_size_stats"`
	// PipelineCount The number of ingest pipelines that currently refer to the model.
	PipelineCount int `json:"pipeline_count"`
}

TrainedModelStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/TrainedModel.ts#L42-L60

func NewTrainedModelStats ¶

func NewTrainedModelStats() *TrainedModelStats

NewTrainedModelStats returns a TrainedModelStats.

func (*TrainedModelStats) UnmarshalJSON ¶

func (s *TrainedModelStats) UnmarshalJSON(data []byte) error

type TrainedModelTree ¶

type TrainedModelTree struct {
	ClassificationLabels []string               `json:"classification_labels,omitempty"`
	FeatureNames         []string               `json:"feature_names"`
	TargetType           *string                `json:"target_type,omitempty"`
	TreeStructure        []TrainedModelTreeNode `json:"tree_structure"`
}

TrainedModelTree type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L74-L79

func NewTrainedModelTree ¶

func NewTrainedModelTree() *TrainedModelTree

NewTrainedModelTree returns a TrainedModelTree.

func (*TrainedModelTree) TrainedModelTreeCaster ¶

func (s *TrainedModelTree) TrainedModelTreeCaster() *TrainedModelTree

func (*TrainedModelTree) UnmarshalJSON ¶

func (s *TrainedModelTree) UnmarshalJSON(data []byte) error

type TrainedModelTreeNode ¶

type TrainedModelTreeNode struct {
	DecisionType *string  `json:"decision_type,omitempty"`
	DefaultLeft  *bool    `json:"default_left,omitempty"`
	LeafValue    *Float64 `json:"leaf_value,omitempty"`
	LeftChild    *int     `json:"left_child,omitempty"`
	NodeIndex    int      `json:"node_index"`
	RightChild   *int     `json:"right_child,omitempty"`
	SplitFeature *int     `json:"split_feature,omitempty"`
	SplitGain    *int     `json:"split_gain,omitempty"`
	Threshold    *Float64 `json:"threshold,omitempty"`
}

TrainedModelTreeNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L81-L91

func NewTrainedModelTreeNode ¶

func NewTrainedModelTreeNode() *TrainedModelTreeNode

NewTrainedModelTreeNode returns a TrainedModelTreeNode.

func (*TrainedModelTreeNode) TrainedModelTreeNodeCaster ¶

func (s *TrainedModelTreeNode) TrainedModelTreeNodeCaster() *TrainedModelTreeNode

func (*TrainedModelTreeNode) UnmarshalJSON ¶

func (s *TrainedModelTreeNode) UnmarshalJSON(data []byte) error

type TrainedModelTreeNodeVariant ¶

type TrainedModelTreeNodeVariant interface {
	TrainedModelTreeNodeCaster() *TrainedModelTreeNode
}

type TrainedModelTreeVariant ¶

type TrainedModelTreeVariant interface {
	TrainedModelTreeCaster() *TrainedModelTree
}

type TrainedModelVariant ¶

type TrainedModelVariant interface {
	TrainedModelCaster() *TrainedModel
}

type TrainedModelsRecord ¶

type TrainedModelsRecord struct {
	// CreateTime The time the model was created.
	CreateTime DateTime `json:"create_time,omitempty"`
	// CreatedBy Information about the creator of the model.
	CreatedBy *string `json:"created_by,omitempty"`
	// DataFrameAnalysis The analysis used by the data frame to build the model.
	DataFrameAnalysis *string `json:"data_frame.analysis,omitempty"`
	// DataFrameCreateTime The time the data frame analytics job was created.
	DataFrameCreateTime *string `json:"data_frame.create_time,omitempty"`
	// DataFrameId The identifier for the data frame analytics job that created the model.
	// Only displayed if the job is still available.
	DataFrameId *string `json:"data_frame.id,omitempty"`
	// DataFrameSourceIndex The source index used to train in the data frame analysis.
	DataFrameSourceIndex *string `json:"data_frame.source_index,omitempty"`
	// Description A description of the model.
	Description *string `json:"description,omitempty"`
	// HeapSize The estimated heap size to keep the model in memory.
	HeapSize ByteSize `json:"heap_size,omitempty"`
	// Id The model identifier.
	Id *string `json:"id,omitempty"`
	// IngestCount The total number of documents that are processed by the model.
	IngestCount *string `json:"ingest.count,omitempty"`
	// IngestCurrent The total number of documents that are currently being handled by the model.
	IngestCurrent *string `json:"ingest.current,omitempty"`
	// IngestFailed The total number of failed ingest attempts with the model.
	IngestFailed *string `json:"ingest.failed,omitempty"`
	// IngestPipelines The number of pipelines that are referencing the model.
	IngestPipelines *string `json:"ingest.pipelines,omitempty"`
	// IngestTime The total time spent processing documents with thie model.
	IngestTime *string `json:"ingest.time,omitempty"`
	// License The license level of the model.
	License *string `json:"license,omitempty"`
	// Operations The estimated number of operations to use the model.
	// This number helps to measure the computational complexity of the model.
	Operations *string `json:"operations,omitempty"`
	Type       *string `json:"type,omitempty"`
	// Version The version of Elasticsearch when the model was created.
	Version *string `json:"version,omitempty"`
}

TrainedModelsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/ml_trained_models/types.ts#L23-L115

func NewTrainedModelsRecord ¶

func NewTrainedModelsRecord() *TrainedModelsRecord

NewTrainedModelsRecord returns a TrainedModelsRecord.

func (*TrainedModelsRecord) UnmarshalJSON ¶

func (s *TrainedModelsRecord) UnmarshalJSON(data []byte) error

type TransformAuthorization ¶

type TransformAuthorization struct {
	// ApiKey If an API key was used for the most recent update to the transform, its name
	// and identifier are listed in the response.
	ApiKey *ApiKeyAuthorization `json:"api_key,omitempty"`
	// Roles If a user ID was used for the most recent update to the transform, its roles
	// at the time of the update are listed in the response.
	Roles []string `json:"roles,omitempty"`
	// ServiceAccount If a service account was used for the most recent update to the transform,
	// the account name is listed in the response.
	ServiceAccount *string `json:"service_account,omitempty"`
}

TransformAuthorization type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/Authorization.ts#L59-L71

func NewTransformAuthorization ¶

func NewTransformAuthorization() *TransformAuthorization

NewTransformAuthorization returns a TransformAuthorization.

func (*TransformAuthorization) UnmarshalJSON ¶

func (s *TransformAuthorization) UnmarshalJSON(data []byte) error

type TransformContainer ¶

type TransformContainer struct {
	AdditionalTransformContainerProperty map[string]json.RawMessage `json:"-"`
	Chain                                []TransformContainer       `json:"chain,omitempty"`
	Script                               *ScriptTransform           `json:"script,omitempty"`
	Search                               *SearchTransform           `json:"search,omitempty"`
}

TransformContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Transform.ts#L28-L35

func NewTransformContainer ¶

func NewTransformContainer() *TransformContainer

NewTransformContainer returns a TransformContainer.

func (TransformContainer) MarshalJSON ¶

func (s TransformContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TransformContainer) TransformContainerCaster ¶

func (s *TransformContainer) TransformContainerCaster() *TransformContainer

type TransformContainerVariant ¶

type TransformContainerVariant interface {
	TransformContainerCaster() *TransformContainer
}

type TransformDestination ¶

type TransformDestination struct {
	// Index The destination index for the transform. The mappings of the destination
	// index are deduced based on the source
	// fields when possible. If alternate mappings are required, use the create
	// index API prior to starting the
	// transform.
	Index *string `json:"index,omitempty"`
	// Pipeline The unique identifier for an ingest pipeline.
	Pipeline *string `json:"pipeline,omitempty"`
}

TransformDestination type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L34-L45

func NewTransformDestination ¶

func NewTransformDestination() *TransformDestination

NewTransformDestination returns a TransformDestination.

func (*TransformDestination) TransformDestinationCaster ¶

func (s *TransformDestination) TransformDestinationCaster() *TransformDestination

func (*TransformDestination) UnmarshalJSON ¶

func (s *TransformDestination) UnmarshalJSON(data []byte) error

type TransformDestinationVariant ¶

type TransformDestinationVariant interface {
	TransformDestinationCaster() *TransformDestination
}

type TransformHealthIssue ¶

type TransformHealthIssue struct {
	// Count Number of times this issue has occurred since it started
	Count int `json:"count"`
	// Details Details about the issue
	Details              *string  `json:"details,omitempty"`
	FirstOccurenceString DateTime `json:"first_occurence_string,omitempty"`
	// FirstOccurrence The timestamp this issue occurred for for the first time
	FirstOccurrence *int64 `json:"first_occurrence,omitempty"`
	// Issue A description of the issue
	Issue string `json:"issue"`
	// Type The type of the issue
	Type string `json:"type"`
}

TransformHealthIssue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L51-L63

func NewTransformHealthIssue ¶

func NewTransformHealthIssue() *TransformHealthIssue

NewTransformHealthIssue returns a TransformHealthIssue.

func (*TransformHealthIssue) UnmarshalJSON ¶

func (s *TransformHealthIssue) UnmarshalJSON(data []byte) error

type TransformIndexerStats ¶

type TransformIndexerStats struct {
	DeleteTimeInMs                     *int64  `json:"delete_time_in_ms,omitempty"`
	DocumentsDeleted                   *int64  `json:"documents_deleted,omitempty"`
	DocumentsIndexed                   int64   `json:"documents_indexed"`
	DocumentsProcessed                 int64   `json:"documents_processed"`
	ExponentialAvgCheckpointDurationMs Float64 `json:"exponential_avg_checkpoint_duration_ms"`
	ExponentialAvgDocumentsIndexed     Float64 `json:"exponential_avg_documents_indexed"`
	ExponentialAvgDocumentsProcessed   Float64 `json:"exponential_avg_documents_processed"`
	IndexFailures                      int64   `json:"index_failures"`
	IndexTimeInMs                      int64   `json:"index_time_in_ms"`
	IndexTotal                         int64   `json:"index_total"`
	PagesProcessed                     int64   `json:"pages_processed"`
	ProcessingTimeInMs                 int64   `json:"processing_time_in_ms"`
	ProcessingTotal                    int64   `json:"processing_total"`
	SearchFailures                     int64   `json:"search_failures"`
	SearchTimeInMs                     int64   `json:"search_time_in_ms"`
	SearchTotal                        int64   `json:"search_total"`
	TriggerCount                       int64   `json:"trigger_count"`
}

TransformIndexerStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L73-L91

func NewTransformIndexerStats ¶

func NewTransformIndexerStats() *TransformIndexerStats

NewTransformIndexerStats returns a TransformIndexerStats.

func (*TransformIndexerStats) UnmarshalJSON ¶

func (s *TransformIndexerStats) UnmarshalJSON(data []byte) error

type TransformProgress ¶

type TransformProgress struct {
	DocsIndexed     int64    `json:"docs_indexed"`
	DocsProcessed   int64    `json:"docs_processed"`
	DocsRemaining   *int64   `json:"docs_remaining,omitempty"`
	PercentComplete *Float64 `json:"percent_complete,omitempty"`
	TotalDocs       *int64   `json:"total_docs,omitempty"`
}

TransformProgress type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L65-L71

func NewTransformProgress ¶

func NewTransformProgress() *TransformProgress

NewTransformProgress returns a TransformProgress.

func (*TransformProgress) UnmarshalJSON ¶

func (s *TransformProgress) UnmarshalJSON(data []byte) error

type TransformSource ¶

type TransformSource struct {
	// Index The source indices for the transform. It can be a single index, an index
	// pattern (for example, `"my-index-*""`), an
	// array of indices (for example, `["my-index-000001", "my-index-000002"]`), or
	// an array of index patterns (for
	// example, `["my-index-*", "my-other-index-*"]`. For remote indices use the
	// syntax `"remote_name:index_name"`. If
	// any indices are in remote clusters then the master node and at least one
	// transform node must have the `remote_cluster_client` node role.
	Index []string `json:"index"`
	// Query A query clause that retrieves a subset of data from the source index.
	Query *Query `json:"query,omitempty"`
	// RuntimeMappings Definitions of search-time runtime fields that can be used by the transform.
	// For search runtime fields all data
	// nodes, including remote nodes, must be 7.12 or later.
	RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"`
}

TransformSource type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/_types/Transform.ts#L146-L165

func NewTransformSource ¶

func NewTransformSource() *TransformSource

NewTransformSource returns a TransformSource.

func (*TransformSource) TransformSourceCaster ¶

func (s *TransformSource) TransformSourceCaster() *TransformSource

func (*TransformSource) UnmarshalJSON ¶

func (s *TransformSource) UnmarshalJSON(data []byte) error

type TransformSourceVariant ¶

type TransformSourceVariant interface {
	TransformSourceCaster() *TransformSource
}

type TransformStats ¶

type TransformStats struct {
	Checkpointing Checkpointing         `json:"checkpointing"`
	Health        *TransformStatsHealth `json:"health,omitempty"`
	Id            string                `json:"id"`
	Node          *NodeAttributes       `json:"node,omitempty"`
	Reason        *string               `json:"reason,omitempty"`
	State         string                `json:"state"`
	Stats         TransformIndexerStats `json:"stats"`
}

TransformStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L31-L42

func NewTransformStats ¶

func NewTransformStats() *TransformStats

NewTransformStats returns a TransformStats.

func (*TransformStats) UnmarshalJSON ¶

func (s *TransformStats) UnmarshalJSON(data []byte) error

type TransformStatsHealth ¶

type TransformStatsHealth struct {
	// Issues If a non-healthy status is returned, contains a list of issues of the
	// transform.
	Issues []TransformHealthIssue    `json:"issues,omitempty"`
	Status healthstatus.HealthStatus `json:"status"`
}

TransformStatsHealth type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform_stats/types.ts#L44-L49

func NewTransformStatsHealth ¶

func NewTransformStatsHealth() *TransformStatsHealth

NewTransformStatsHealth returns a TransformStatsHealth.

type TransformSummary ¶

type TransformSummary struct {
	// Authorization The security privileges that the transform uses to run its queries. If
	// Elastic Stack security features were disabled at the time of the most recent
	// update to the transform, this property is omitted.
	Authorization *TransformAuthorization `json:"authorization,omitempty"`
	// CreateTime The time the transform was created.
	CreateTime       *int64   `json:"create_time,omitempty"`
	CreateTimeString DateTime `json:"create_time_string,omitempty"`
	// Description Free text description of the transform.
	Description *string `json:"description,omitempty"`
	// Dest The destination for the transform.
	Dest      ReindexDestination `json:"dest"`
	Frequency Duration           `json:"frequency,omitempty"`
	Id        string             `json:"id"`
	Latest    *Latest            `json:"latest,omitempty"`
	Meta_     Metadata           `json:"_meta,omitempty"`
	// Pivot The pivot method transforms the data by aggregating and grouping it.
	Pivot           *Pivot                    `json:"pivot,omitempty"`
	RetentionPolicy *RetentionPolicyContainer `json:"retention_policy,omitempty"`
	// Settings Defines optional transform settings.
	Settings *Settings `json:"settings,omitempty"`
	// Source The source of the data for the transform.
	Source TransformSource `json:"source"`
	// Sync Defines the properties transforms require to run continuously.
	Sync *SyncContainer `json:"sync,omitempty"`
	// Version The version of Elasticsearch that existed on the node when the transform was
	// created.
	Version *string `json:"version,omitempty"`
}

TransformSummary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/transform/get_transform/types.ts#L33-L62

func NewTransformSummary ¶

func NewTransformSummary() *TransformSummary

NewTransformSummary returns a TransformSummary.

func (*TransformSummary) UnmarshalJSON ¶

func (s *TransformSummary) UnmarshalJSON(data []byte) error

type TransformsRecord ¶

type TransformsRecord struct {
	// ChangesLastDetectionTime The timestamp when changes were last detected in the source indices.
	ChangesLastDetectionTime *string `json:"changes_last_detection_time,omitempty"`
	// Checkpoint The sequence number for the checkpoint.
	Checkpoint *string `json:"checkpoint,omitempty"`
	// CheckpointDurationTimeExpAvg The exponential moving average of the duration of the checkpoint, in
	// milliseconds.
	CheckpointDurationTimeExpAvg *string `json:"checkpoint_duration_time_exp_avg,omitempty"`
	// CheckpointProgress The progress of the next checkpoint that is currently in progress.
	CheckpointProgress *string `json:"checkpoint_progress,omitempty"`
	// CreateTime The time the transform was created.
	CreateTime *string `json:"create_time,omitempty"`
	// DeleteTime The total time spent deleting documents, in milliseconds.
	DeleteTime *string `json:"delete_time,omitempty"`
	// Description The description of the transform.
	Description *string `json:"description,omitempty"`
	// DestIndex The destination index for the transform.
	DestIndex *string `json:"dest_index,omitempty"`
	// DocsPerSecond The number of input documents per second.
	DocsPerSecond *string `json:"docs_per_second,omitempty"`
	// DocumentsDeleted The number of documents deleted from the destination index due to the
	// retention policy for the transform.
	DocumentsDeleted *string `json:"documents_deleted,omitempty"`
	// DocumentsIndexed The number of documents that have been indexed into the destination index for
	// the transform.
	DocumentsIndexed *string `json:"documents_indexed,omitempty"`
	// DocumentsProcessed The number of documents that have been processed from the source index of the
	// transform.
	DocumentsProcessed *string `json:"documents_processed,omitempty"`
	// Frequency The interval between checks for changes in the source indices when the
	// transform is running continuously.
	Frequency *string `json:"frequency,omitempty"`
	// Id The transform identifier.
	Id *string `json:"id,omitempty"`
	// IndexFailure The total number of indexing failures.
	IndexFailure *string `json:"index_failure,omitempty"`
	// IndexTime The total time spent indexing documents, in milliseconds.
	IndexTime *string `json:"index_time,omitempty"`
	// IndexTotal The total number of index operations done by the transform.
	IndexTotal *string `json:"index_total,omitempty"`
	// IndexedDocumentsExpAvg The exponential moving average of the number of new documents that have been
	// indexed.
	IndexedDocumentsExpAvg *string `json:"indexed_documents_exp_avg,omitempty"`
	// LastSearchTime The timestamp of the last search in the source indices.
	// This field is shown only if the transform is running.
	LastSearchTime *string `json:"last_search_time,omitempty"`
	// MaxPageSearchSize The initial page size that is used for the composite aggregation for each
	// checkpoint.
	MaxPageSearchSize *string `json:"max_page_search_size,omitempty"`
	// PagesProcessed The number of search or bulk index operations processed.
	// Documents are processed in batches instead of individually.
	PagesProcessed *string `json:"pages_processed,omitempty"`
	// Pipeline The unique identifier for the ingest pipeline.
	Pipeline *string `json:"pipeline,omitempty"`
	// ProcessedDocumentsExpAvg The exponential moving average of the number of documents that have been
	// processed.
	ProcessedDocumentsExpAvg *string `json:"processed_documents_exp_avg,omitempty"`
	// ProcessingTime The total time spent processing results, in milliseconds.
	ProcessingTime *string `json:"processing_time,omitempty"`
	// Reason If a transform has a `failed` state, these details describe the reason for
	// failure.
	Reason *string `json:"reason,omitempty"`
	// SearchFailure The total number of search failures.
	SearchFailure *string `json:"search_failure,omitempty"`
	// SearchTime The total amount of search time, in milliseconds.
	SearchTime *string `json:"search_time,omitempty"`
	// SearchTotal The total number of search operations on the source index for the transform.
	SearchTotal *string `json:"search_total,omitempty"`
	// SourceIndex The source indices for the transform.
	SourceIndex *string `json:"source_index,omitempty"`
	// State The status of the transform.
	// Returned values include:
	// `aborting`: The transform is aborting.
	// `failed: The transform failed. For more information about the failure, check
	// the `reason` field.
	// `indexing`: The transform is actively processing data and creating new
	// documents.
	// `started`: The transform is running but not actively indexing data.
	// `stopped`: The transform is stopped.
	// `stopping`: The transform is stopping.
	State *string `json:"state,omitempty"`
	// TransformType The type of transform: `batch` or `continuous`.
	TransformType *string `json:"transform_type,omitempty"`
	// TriggerCount The number of times the transform has been triggered by the scheduler.
	// For example, the scheduler triggers the transform indexer to check for
	// updates or ingest new data at an interval specified in the `frequency`
	// property.
	TriggerCount *string `json:"trigger_count,omitempty"`
	// Version The version of Elasticsearch that existed on the node when the transform was
	// created.
	Version *string `json:"version,omitempty"`
}

TransformsRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cat/transforms/types.ts#L22-L197

func NewTransformsRecord ¶

func NewTransformsRecord() *TransformsRecord

NewTransformsRecord returns a TransformsRecord.

func (*TransformsRecord) UnmarshalJSON ¶

func (s *TransformsRecord) UnmarshalJSON(data []byte) error

type Translog ¶

type Translog struct {
	// Durability Whether or not to `fsync` and commit the translog after every index, delete,
	// update, or bulk request.
	Durability *translogdurability.TranslogDurability `json:"durability,omitempty"`
	// FlushThresholdSize The translog stores all operations that are not yet safely persisted in
	// Lucene (i.e., are not
	// part of a Lucene commit point). Although these operations are available for
	// reads, they will need
	// to be replayed if the shard was stopped and had to be recovered. This setting
	// controls the
	// maximum total size of these operations, to prevent recoveries from taking too
	// long. Once the
	// maximum size has been reached a flush will happen, generating a new Lucene
	// commit point.
	FlushThresholdSize ByteSize           `json:"flush_threshold_size,omitempty"`
	Retention          *TranslogRetention `json:"retention,omitempty"`
	// SyncInterval How often the translog is fsynced to disk and committed, regardless of write
	// operations.
	// Values less than 100ms are not allowed.
	SyncInterval Duration `json:"sync_interval,omitempty"`
}

Translog type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L368-L390

func NewTranslog ¶

func NewTranslog() *Translog

NewTranslog returns a Translog.

func (*Translog) TranslogCaster ¶

func (s *Translog) TranslogCaster() *Translog

func (*Translog) UnmarshalJSON ¶

func (s *Translog) UnmarshalJSON(data []byte) error

type TranslogRetention ¶

type TranslogRetention struct {
	// Age This controls the maximum duration for which translog files are kept by each
	// shard. Keeping more
	// translog files increases the chance of performing an operation based sync
	// when recovering replicas. If
	// the translog files are not sufficient, replica recovery will fall back to a
	// file based sync. This setting
	// is ignored, and should not be set, if soft deletes are enabled. Soft deletes
	// are enabled by default in
	// indices created in Elasticsearch versions 7.0.0 and later.
	Age Duration `json:"age,omitempty"`
	// Size This controls the total size of translog files to keep for each shard.
	// Keeping more translog files increases
	// the chance of performing an operation based sync when recovering a replica.
	// If the translog files are not
	// sufficient, replica recovery will fall back to a file based sync. This
	// setting is ignored, and should not be
	// set, if soft deletes are enabled. Soft deletes are enabled by default in
	// indices created in Elasticsearch
	// versions 7.0.0 and later.
	Size ByteSize `json:"size,omitempty"`
}

TranslogRetention type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/_types/IndexSettings.ts#L409-L428

func NewTranslogRetention ¶

func NewTranslogRetention() *TranslogRetention

NewTranslogRetention returns a TranslogRetention.

func (*TranslogRetention) TranslogRetentionCaster ¶

func (s *TranslogRetention) TranslogRetentionCaster() *TranslogRetention

func (*TranslogRetention) UnmarshalJSON ¶

func (s *TranslogRetention) UnmarshalJSON(data []byte) error

type TranslogRetentionVariant ¶

type TranslogRetentionVariant interface {
	TranslogRetentionCaster() *TranslogRetention
}

type TranslogStats ¶

type TranslogStats struct {
	EarliestLastModifiedAge int64   `json:"earliest_last_modified_age"`
	Operations              int64   `json:"operations"`
	Size                    *string `json:"size,omitempty"`
	SizeInBytes             int64   `json:"size_in_bytes"`
	UncommittedOperations   int     `json:"uncommitted_operations"`
	UncommittedSize         *string `json:"uncommitted_size,omitempty"`
	UncommittedSizeInBytes  int64   `json:"uncommitted_size_in_bytes"`
}

TranslogStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L427-L435

func NewTranslogStats ¶

func NewTranslogStats() *TranslogStats

NewTranslogStats returns a TranslogStats.

func (*TranslogStats) UnmarshalJSON ¶

func (s *TranslogStats) UnmarshalJSON(data []byte) error

type TranslogStatus ¶

type TranslogStatus struct {
	Percent           Percentage `json:"percent"`
	Recovered         int64      `json:"recovered"`
	Total             int64      `json:"total"`
	TotalOnStart      int64      `json:"total_on_start"`
	TotalTime         Duration   `json:"total_time,omitempty"`
	TotalTimeInMillis int64      `json:"total_time_in_millis"`
}

TranslogStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L102-L109

func NewTranslogStatus ¶

func NewTranslogStatus() *TranslogStatus

NewTranslogStatus returns a TranslogStatus.

func (*TranslogStatus) UnmarshalJSON ¶

func (s *TranslogStatus) UnmarshalJSON(data []byte) error

type TranslogVariant ¶

type TranslogVariant interface {
	TranslogCaster() *Translog
}

type Transport ¶

type Transport struct {
	// InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a
	// transport thread, represented as a histogram.
	InboundHandlingTimeHistogram []TransportHistogram `json:"inbound_handling_time_histogram,omitempty"`
	// OutboundHandlingTimeHistogram The distribution of the time spent sending each outbound transport message on
	// a transport thread, represented as a histogram.
	OutboundHandlingTimeHistogram []TransportHistogram `json:"outbound_handling_time_histogram,omitempty"`
	// RxCount Total number of RX (receive) packets received by the node during internal
	// cluster communication.
	RxCount *int64 `json:"rx_count,omitempty"`
	// RxSize Size of RX packets received by the node during internal cluster
	// communication.
	RxSize *string `json:"rx_size,omitempty"`
	// RxSizeInBytes Size, in bytes, of RX packets received by the node during internal cluster
	// communication.
	RxSizeInBytes *int64 `json:"rx_size_in_bytes,omitempty"`
	// ServerOpen Current number of inbound TCP connections used for internal communication
	// between nodes.
	ServerOpen *int `json:"server_open,omitempty"`
	// TotalOutboundConnections The cumulative number of outbound transport connections that this node has
	// opened since it started.
	// Each transport connection may comprise multiple TCP connections but is only
	// counted once in this statistic.
	// Transport connections are typically long-lived so this statistic should
	// remain constant in a stable cluster.
	TotalOutboundConnections *int64 `json:"total_outbound_connections,omitempty"`
	// TxCount Total number of TX (transmit) packets sent by the node during internal
	// cluster communication.
	TxCount *int64 `json:"tx_count,omitempty"`
	// TxSize Size of TX packets sent by the node during internal cluster communication.
	TxSize *string `json:"tx_size,omitempty"`
	// TxSizeInBytes Size, in bytes, of TX packets sent by the node during internal cluster
	// communication.
	TxSizeInBytes *int64 `json:"tx_size_in_bytes,omitempty"`
}

Transport type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1125-L1168

func NewTransport ¶

func NewTransport() *Transport

NewTransport returns a Transport.

func (*Transport) UnmarshalJSON ¶

func (s *Transport) UnmarshalJSON(data []byte) error

type TransportHistogram ¶

type TransportHistogram struct {
	// Count The number of times a transport thread took a period of time within the
	// bounds of this bucket to handle an inbound message.
	Count *int64 `json:"count,omitempty"`
	// GeMillis The inclusive lower bound of the bucket in milliseconds. May be omitted on
	// the first bucket if this bucket has no lower bound.
	GeMillis *int64 `json:"ge_millis,omitempty"`
	// LtMillis The exclusive upper bound of the bucket in milliseconds.
	// May be omitted on the last bucket if this bucket has no upper bound.
	LtMillis *int64 `json:"lt_millis,omitempty"`
}

TransportHistogram type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/nodes/_types/Stats.ts#L1170-L1184

func NewTransportHistogram ¶

func NewTransportHistogram() *TransportHistogram

NewTransportHistogram returns a TransportHistogram.

func (*TransportHistogram) UnmarshalJSON ¶

func (s *TransportHistogram) UnmarshalJSON(data []byte) error

type TriggerContainer ¶

type TriggerContainer struct {
	AdditionalTriggerContainerProperty map[string]json.RawMessage `json:"-"`
	Schedule                           *ScheduleContainer         `json:"schedule,omitempty"`
}

TriggerContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Trigger.ts#L23-L28

func NewTriggerContainer ¶

func NewTriggerContainer() *TriggerContainer

NewTriggerContainer returns a TriggerContainer.

func (TriggerContainer) MarshalJSON ¶

func (s TriggerContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*TriggerContainer) TriggerContainerCaster ¶

func (s *TriggerContainer) TriggerContainerCaster() *TriggerContainer

type TriggerContainerVariant ¶

type TriggerContainerVariant interface {
	TriggerContainerCaster() *TriggerContainer
}

type TriggerEventContainer ¶

type TriggerEventContainer struct {
	AdditionalTriggerEventContainerProperty map[string]json.RawMessage `json:"-"`
	Schedule                                *ScheduleTriggerEvent      `json:"schedule,omitempty"`
}

TriggerEventContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Trigger.ts#L32-L37

func NewTriggerEventContainer ¶

func NewTriggerEventContainer() *TriggerEventContainer

NewTriggerEventContainer returns a TriggerEventContainer.

func (TriggerEventContainer) MarshalJSON ¶

func (s TriggerEventContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

type TriggerEventResult ¶

type TriggerEventResult struct {
	Manual        TriggerEventContainer `json:"manual"`
	TriggeredTime DateTime              `json:"triggered_time"`
	Type          string                `json:"type"`
}

TriggerEventResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Trigger.ts#L39-L43

func NewTriggerEventResult ¶

func NewTriggerEventResult() *TriggerEventResult

NewTriggerEventResult returns a TriggerEventResult.

func (*TriggerEventResult) UnmarshalJSON ¶

func (s *TriggerEventResult) UnmarshalJSON(data []byte) error

type TrimProcessor ¶

type TrimProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The string-valued field to trim whitespace from.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the trimmed value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

TrimProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1544-L1560

func NewTrimProcessor ¶

func NewTrimProcessor() *TrimProcessor

NewTrimProcessor returns a TrimProcessor.

func (*TrimProcessor) TrimProcessorCaster ¶

func (s *TrimProcessor) TrimProcessorCaster() *TrimProcessor

func (*TrimProcessor) UnmarshalJSON ¶

func (s *TrimProcessor) UnmarshalJSON(data []byte) error

type TrimProcessorVariant ¶

type TrimProcessorVariant interface {
	TrimProcessorCaster() *TrimProcessor
}

type TrimTokenFilter ¶

type TrimTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

TrimTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L431-L433

func NewTrimTokenFilter ¶

func NewTrimTokenFilter() *TrimTokenFilter

NewTrimTokenFilter returns a TrimTokenFilter.

func (TrimTokenFilter) MarshalJSON ¶

func (s TrimTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*TrimTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *TrimTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*TrimTokenFilter) TrimTokenFilterCaster ¶

func (s *TrimTokenFilter) TrimTokenFilterCaster() *TrimTokenFilter

func (*TrimTokenFilter) UnmarshalJSON ¶

func (s *TrimTokenFilter) UnmarshalJSON(data []byte) error

type TrimTokenFilterVariant ¶

type TrimTokenFilterVariant interface {
	TrimTokenFilterCaster() *TrimTokenFilter
}

type TruncateTokenFilter ¶

type TruncateTokenFilter struct {
	// Length Character limit for each token. Tokens exceeding this limit are truncated.
	// Defaults to `10`.
	Length  *int    `json:"length,omitempty"`
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

TruncateTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L435-L439

func NewTruncateTokenFilter ¶

func NewTruncateTokenFilter() *TruncateTokenFilter

NewTruncateTokenFilter returns a TruncateTokenFilter.

func (TruncateTokenFilter) MarshalJSON ¶

func (s TruncateTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*TruncateTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *TruncateTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*TruncateTokenFilter) TruncateTokenFilterCaster ¶

func (s *TruncateTokenFilter) TruncateTokenFilterCaster() *TruncateTokenFilter

func (*TruncateTokenFilter) UnmarshalJSON ¶

func (s *TruncateTokenFilter) UnmarshalJSON(data []byte) error

type TruncateTokenFilterVariant ¶

type TruncateTokenFilterVariant interface {
	TruncateTokenFilterCaster() *TruncateTokenFilter
}

type TurkishAnalyzer ¶

type TurkishAnalyzer struct {
	StemExclusion []string  `json:"stem_exclusion,omitempty"`
	Stopwords     StopWords `json:"stopwords,omitempty"`
	StopwordsPath *string   `json:"stopwords_path,omitempty"`
	Type          string    `json:"type,omitempty"`
}

TurkishAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L310-L315

func NewTurkishAnalyzer ¶

func NewTurkishAnalyzer() *TurkishAnalyzer

NewTurkishAnalyzer returns a TurkishAnalyzer.

func (*TurkishAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *TurkishAnalyzer) AnalyzerCaster() *Analyzer

func (TurkishAnalyzer) MarshalJSON ¶

func (s TurkishAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*TurkishAnalyzer) TurkishAnalyzerCaster ¶

func (s *TurkishAnalyzer) TurkishAnalyzerCaster() *TurkishAnalyzer

func (*TurkishAnalyzer) UnmarshalJSON ¶

func (s *TurkishAnalyzer) UnmarshalJSON(data []byte) error

type TurkishAnalyzerVariant ¶

type TurkishAnalyzerVariant interface {
	TurkishAnalyzerCaster() *TurkishAnalyzer
}

type TypeFieldMappings ¶

type TypeFieldMappings struct {
	Mappings map[string]FieldMapping `json:"mappings"`
}

TypeFieldMappings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/get_field_mapping/types.ts#L24-L26

func NewTypeFieldMappings ¶

func NewTypeFieldMappings() *TypeFieldMappings

NewTypeFieldMappings returns a TypeFieldMappings.

type TypeMapping ¶

type TypeMapping struct {
	AllField             *AllField                      `json:"all_field,omitempty"`
	DataStreamTimestamp_ *DataStreamTimestamp           `json:"_data_stream_timestamp,omitempty"`
	DateDetection        *bool                          `json:"date_detection,omitempty"`
	Dynamic              *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	DynamicDateFormats   []string                       `json:"dynamic_date_formats,omitempty"`
	DynamicTemplates     []map[string]DynamicTemplate   `json:"dynamic_templates,omitempty"`
	Enabled              *bool                          `json:"enabled,omitempty"`
	FieldNames_          *FieldNamesField               `json:"_field_names,omitempty"`
	IndexField           *IndexField                    `json:"index_field,omitempty"`
	Meta_                Metadata                       `json:"_meta,omitempty"`
	NumericDetection     *bool                          `json:"numeric_detection,omitempty"`
	Properties           map[string]Property            `json:"properties,omitempty"`
	Routing_             *RoutingField                  `json:"_routing,omitempty"`
	Runtime              map[string]RuntimeField        `json:"runtime,omitempty"`
	Size_                *SizeField                     `json:"_size,omitempty"`
	Source_              *SourceField                   `json:"_source,omitempty"`
	Subobjects           *subobjects.Subobjects         `json:"subobjects,omitempty"`
}

TypeMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/TypeMapping.ts#L34-L57

func NewTypeMapping ¶

func NewTypeMapping() *TypeMapping

NewTypeMapping returns a TypeMapping.

func (*TypeMapping) TypeMappingCaster ¶

func (s *TypeMapping) TypeMappingCaster() *TypeMapping

func (*TypeMapping) UnmarshalJSON ¶

func (s *TypeMapping) UnmarshalJSON(data []byte) error

type TypeMappingVariant ¶

type TypeMappingVariant interface {
	TypeMappingCaster() *TypeMapping
}

type TypeQuery ¶

type TypeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost      *float32 `json:"boost,omitempty"`
	QueryName_ *string  `json:"_name,omitempty"`
	Value      string   `json:"value"`
}

TypeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L297-L299

func NewTypeQuery ¶

func NewTypeQuery() *TypeQuery

NewTypeQuery returns a TypeQuery.

func (*TypeQuery) TypeQueryCaster ¶

func (s *TypeQuery) TypeQueryCaster() *TypeQuery

func (*TypeQuery) UnmarshalJSON ¶

func (s *TypeQuery) UnmarshalJSON(data []byte) error

type TypeQueryVariant ¶

type TypeQueryVariant interface {
	TypeQueryCaster() *TypeQuery
}

type UaxEmailUrlTokenizer ¶

type UaxEmailUrlTokenizer struct {
	MaxTokenLength *int    `json:"max_token_length,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

UaxEmailUrlTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L132-L135

func NewUaxEmailUrlTokenizer ¶

func NewUaxEmailUrlTokenizer() *UaxEmailUrlTokenizer

NewUaxEmailUrlTokenizer returns a UaxEmailUrlTokenizer.

func (UaxEmailUrlTokenizer) MarshalJSON ¶

func (s UaxEmailUrlTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*UaxEmailUrlTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *UaxEmailUrlTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*UaxEmailUrlTokenizer) UaxEmailUrlTokenizerCaster ¶

func (s *UaxEmailUrlTokenizer) UaxEmailUrlTokenizerCaster() *UaxEmailUrlTokenizer

func (*UaxEmailUrlTokenizer) UnmarshalJSON ¶

func (s *UaxEmailUrlTokenizer) UnmarshalJSON(data []byte) error

type UaxEmailUrlTokenizerVariant ¶

type UaxEmailUrlTokenizerVariant interface {
	UaxEmailUrlTokenizerCaster() *UaxEmailUrlTokenizer
}

type UnassignedInformation ¶

type UnassignedInformation struct {
	AllocationStatus         *string                                                 `json:"allocation_status,omitempty"`
	At                       DateTime                                                `json:"at"`
	Delayed                  *bool                                                   `json:"delayed,omitempty"`
	Details                  *string                                                 `json:"details,omitempty"`
	FailedAllocationAttempts *int                                                    `json:"failed_allocation_attempts,omitempty"`
	LastAllocationStatus     *string                                                 `json:"last_allocation_status,omitempty"`
	Reason                   unassignedinformationreason.UnassignedInformationReason `json:"reason"`
}

UnassignedInformation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/cluster/allocation_explain/types.ts#L128-L136

func NewUnassignedInformation ¶

func NewUnassignedInformation() *UnassignedInformation

NewUnassignedInformation returns a UnassignedInformation.

func (*UnassignedInformation) UnmarshalJSON ¶

func (s *UnassignedInformation) UnmarshalJSON(data []byte) error

type UniqueTokenFilter ¶

type UniqueTokenFilter struct {
	// OnlyOnSamePosition If `true`, only remove duplicate tokens in the same position. Defaults to
	// `false`.
	OnlyOnSamePosition *bool   `json:"only_on_same_position,omitempty"`
	Type               string  `json:"type,omitempty"`
	Version            *string `json:"version,omitempty"`
}

UniqueTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L441-L445

func NewUniqueTokenFilter ¶

func NewUniqueTokenFilter() *UniqueTokenFilter

NewUniqueTokenFilter returns a UniqueTokenFilter.

func (UniqueTokenFilter) MarshalJSON ¶

func (s UniqueTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*UniqueTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *UniqueTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*UniqueTokenFilter) UniqueTokenFilterCaster ¶

func (s *UniqueTokenFilter) UniqueTokenFilterCaster() *UniqueTokenFilter

func (*UniqueTokenFilter) UnmarshalJSON ¶

func (s *UniqueTokenFilter) UnmarshalJSON(data []byte) error

type UniqueTokenFilterVariant ¶

type UniqueTokenFilterVariant interface {
	UniqueTokenFilterCaster() *UniqueTokenFilter
}

type UnmappedRareTermsAggregate ¶

type UnmappedRareTermsAggregate struct {
	Buckets BucketsVoid `json:"buckets"`
	Meta    Metadata    `json:"meta,omitempty"`
}

UnmappedRareTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L493-L499

func NewUnmappedRareTermsAggregate ¶

func NewUnmappedRareTermsAggregate() *UnmappedRareTermsAggregate

NewUnmappedRareTermsAggregate returns a UnmappedRareTermsAggregate.

func (*UnmappedRareTermsAggregate) UnmarshalJSON ¶

func (s *UnmappedRareTermsAggregate) UnmarshalJSON(data []byte) error

type UnmappedSamplerAggregate ¶

type UnmappedSamplerAggregate struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Meta         Metadata             `json:"meta,omitempty"`
}

UnmappedSamplerAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L561-L562

func NewUnmappedSamplerAggregate ¶

func NewUnmappedSamplerAggregate() *UnmappedSamplerAggregate

NewUnmappedSamplerAggregate returns a UnmappedSamplerAggregate.

func (UnmappedSamplerAggregate) MarshalJSON ¶

func (s UnmappedSamplerAggregate) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*UnmappedSamplerAggregate) UnmarshalJSON ¶

func (s *UnmappedSamplerAggregate) UnmarshalJSON(data []byte) error

type UnmappedSignificantTermsAggregate ¶

type UnmappedSignificantTermsAggregate struct {
	BgCount  *int64      `json:"bg_count,omitempty"`
	Buckets  BucketsVoid `json:"buckets"`
	DocCount *int64      `json:"doc_count,omitempty"`
	Meta     Metadata    `json:"meta,omitempty"`
}

UnmappedSignificantTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L692-L698

func NewUnmappedSignificantTermsAggregate ¶

func NewUnmappedSignificantTermsAggregate() *UnmappedSignificantTermsAggregate

NewUnmappedSignificantTermsAggregate returns a UnmappedSignificantTermsAggregate.

func (*UnmappedSignificantTermsAggregate) UnmarshalJSON ¶

func (s *UnmappedSignificantTermsAggregate) UnmarshalJSON(data []byte) error

type UnmappedTermsAggregate ¶

type UnmappedTermsAggregate struct {
	Buckets                 BucketsVoid `json:"buckets"`
	DocCountErrorUpperBound *int64      `json:"doc_count_error_upper_bound,omitempty"`
	Meta                    Metadata    `json:"meta,omitempty"`
	SumOtherDocCount        *int64      `json:"sum_other_doc_count,omitempty"`
}

UnmappedTermsAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L463-L469

func NewUnmappedTermsAggregate ¶

func NewUnmappedTermsAggregate() *UnmappedTermsAggregate

NewUnmappedTermsAggregate returns a UnmappedTermsAggregate.

func (*UnmappedTermsAggregate) UnmarshalJSON ¶

func (s *UnmappedTermsAggregate) UnmarshalJSON(data []byte) error

type UnratedDocument ¶

type UnratedDocument struct {
	Id_    string `json:"_id"`
	Index_ string `json:"_index"`
}

UnratedDocument type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/rank_eval/types.ts#L150-L153

func NewUnratedDocument ¶

func NewUnratedDocument() *UnratedDocument

NewUnratedDocument returns a UnratedDocument.

func (*UnratedDocument) UnmarshalJSON ¶

func (s *UnratedDocument) UnmarshalJSON(data []byte) error

type UnsignedLongNumberProperty ¶

type UnsignedLongNumberProperty struct {
	Boost           *Float64                       `json:"boost,omitempty"`
	Coerce          *bool                          `json:"coerce,omitempty"`
	CopyTo          []string                       `json:"copy_to,omitempty"`
	DocValues       *bool                          `json:"doc_values,omitempty"`
	Dynamic         *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields          map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove     *int                           `json:"ignore_above,omitempty"`
	IgnoreMalformed *bool                          `json:"ignore_malformed,omitempty"`
	Index           *bool                          `json:"index,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *uint64                                          `json:"null_value,omitempty"`
	OnScriptError       *onscripterror.OnScriptError                     `json:"on_script_error,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Script              *Script                                          `json:"script,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	// TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"`
	// TimeSeriesMetric For internal use by Elastic only. Marks the field as a time series dimension.
	// Defaults to false.
	TimeSeriesMetric *timeseriesmetrictype.TimeSeriesMetricType `json:"time_series_metric,omitempty"`
	Type             string                                     `json:"type,omitempty"`
}

UnsignedLongNumberProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L192-L195

func NewUnsignedLongNumberProperty ¶

func NewUnsignedLongNumberProperty() *UnsignedLongNumberProperty

NewUnsignedLongNumberProperty returns a UnsignedLongNumberProperty.

func (UnsignedLongNumberProperty) MarshalJSON ¶

func (s UnsignedLongNumberProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*UnsignedLongNumberProperty) PropertyCaster ¶ added in v9.0.1

func (s *UnsignedLongNumberProperty) PropertyCaster() *Property

func (*UnsignedLongNumberProperty) UnmarshalJSON ¶

func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error

func (*UnsignedLongNumberProperty) UnsignedLongNumberPropertyCaster ¶

func (s *UnsignedLongNumberProperty) UnsignedLongNumberPropertyCaster() *UnsignedLongNumberProperty

type UnsignedLongNumberPropertyVariant ¶

type UnsignedLongNumberPropertyVariant interface {
	UnsignedLongNumberPropertyCaster() *UnsignedLongNumberProperty
}

type UntypedDecayFunction ¶

type UntypedDecayFunction struct {
	DecayFunctionBase map[string]DecayPlacement `json:"-"`
	// MultiValueMode Determines how the distance is calculated when a field used for computing the
	// decay contains multiple values.
	MultiValueMode *multivaluemode.MultiValueMode `json:"multi_value_mode,omitempty"`
}

UntypedDecayFunction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/compound.ts#L204-L207

func NewUntypedDecayFunction ¶

func NewUntypedDecayFunction() *UntypedDecayFunction

NewUntypedDecayFunction returns a UntypedDecayFunction.

func (*UntypedDecayFunction) DecayFunctionCaster ¶ added in v9.0.1

func (s *UntypedDecayFunction) DecayFunctionCaster() *DecayFunction

func (UntypedDecayFunction) MarshalJSON ¶

func (s UntypedDecayFunction) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*UntypedDecayFunction) UntypedDecayFunctionCaster ¶

func (s *UntypedDecayFunction) UntypedDecayFunctionCaster() *UntypedDecayFunction

type UntypedDecayFunctionVariant ¶

type UntypedDecayFunctionVariant interface {
	UntypedDecayFunctionCaster() *UntypedDecayFunction
}

type UntypedDistanceFeatureQuery ¶

type UntypedDistanceFeatureQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Field Name of the field used to calculate distances. This field must meet the
	// following criteria:
	// be a `date`, `date_nanos` or `geo_point` field;
	// have an `index` mapping parameter value of `true`, which is the default;
	// have an `doc_values` mapping parameter value of `true`, which is the default.
	Field string `json:"field"`
	// Origin Date or point of origin used to calculate distances.
	// If the `field` value is a `date` or `date_nanos` field, the `origin` value
	// must be a date.
	// Date Math, such as `now-1h`, is supported.
	// If the field value is a `geo_point` field, the `origin` value must be a
	// geopoint.
	Origin json.RawMessage `json:"origin,omitempty"`
	// Pivot Distance from the `origin` at which relevance scores receive half of the
	// `boost` value.
	// If the `field` value is a `date` or `date_nanos` field, the `pivot` value
	// must be a time unit, such as `1h` or `10d`. If the `field` value is a
	// `geo_point` field, the `pivot` value must be a distance unit, such as `1km`
	// or `12m`.
	Pivot      json.RawMessage `json:"pivot,omitempty"`
	QueryName_ *string         `json:"_name,omitempty"`
}

UntypedDistanceFeatureQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/specialized.ts#L61-L64

func NewUntypedDistanceFeatureQuery ¶

func NewUntypedDistanceFeatureQuery() *UntypedDistanceFeatureQuery

NewUntypedDistanceFeatureQuery returns a UntypedDistanceFeatureQuery.

func (*UntypedDistanceFeatureQuery) DistanceFeatureQueryCaster ¶ added in v9.0.1

func (s *UntypedDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery

func (*UntypedDistanceFeatureQuery) UnmarshalJSON ¶

func (s *UntypedDistanceFeatureQuery) UnmarshalJSON(data []byte) error

func (*UntypedDistanceFeatureQuery) UntypedDistanceFeatureQueryCaster ¶

func (s *UntypedDistanceFeatureQuery) UntypedDistanceFeatureQueryCaster() *UntypedDistanceFeatureQuery

type UntypedDistanceFeatureQueryVariant ¶

type UntypedDistanceFeatureQueryVariant interface {
	UntypedDistanceFeatureQueryCaster() *UntypedDistanceFeatureQuery
}

type UntypedRangeQuery ¶

type UntypedRangeQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Format Date format used to convert `date` values in the query.
	Format *string `json:"format,omitempty"`
	// Gt Greater than.
	Gt json.RawMessage `json:"gt,omitempty"`
	// Gte Greater than or equal to.
	Gte json.RawMessage `json:"gte,omitempty"`
	// Lt Less than.
	Lt json.RawMessage `json:"lt,omitempty"`
	// Lte Less than or equal to.
	Lte        json.RawMessage `json:"lte,omitempty"`
	QueryName_ *string         `json:"_name,omitempty"`
	// Relation Indicates how the range query matches values for `range` fields.
	Relation *rangerelation.RangeRelation `json:"relation,omitempty"`
	// TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert
	// `date` values in the query to UTC.
	TimeZone *string `json:"time_zone,omitempty"`
}

UntypedRangeQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L146-L155

func NewUntypedRangeQuery ¶

func NewUntypedRangeQuery() *UntypedRangeQuery

NewUntypedRangeQuery returns a UntypedRangeQuery.

func (*UntypedRangeQuery) RangeQueryCaster ¶ added in v9.0.1

func (s *UntypedRangeQuery) RangeQueryCaster() *RangeQuery

func (*UntypedRangeQuery) UnmarshalJSON ¶

func (s *UntypedRangeQuery) UnmarshalJSON(data []byte) error

func (*UntypedRangeQuery) UntypedRangeQueryCaster ¶

func (s *UntypedRangeQuery) UntypedRangeQueryCaster() *UntypedRangeQuery

type UntypedRangeQueryVariant ¶

type UntypedRangeQueryVariant interface {
	UntypedRangeQueryCaster() *UntypedRangeQuery
}

type UpdateAction ¶

type UpdateAction struct {
	// DetectNoop If true, the `result` in the response is set to 'noop' when no changes to the
	// document occur.
	DetectNoop *bool `json:"detect_noop,omitempty"`
	// Doc A partial update to an existing document.
	Doc json.RawMessage `json:"doc,omitempty"`
	// DocAsUpsert Set to `true` to use the contents of `doc` as the value of `upsert`.
	DocAsUpsert *bool `json:"doc_as_upsert,omitempty"`
	// Script The script to run to update the document.
	Script *Script `json:"script,omitempty"`
	// ScriptedUpsert Set to `true` to run the script whether or not the document exists.
	ScriptedUpsert *bool `json:"scripted_upsert,omitempty"`
	// Source_ If `false`, source retrieval is turned off.
	// You can also specify a comma-separated list of the fields you want to
	// retrieve.
	Source_ SourceConfig `json:"_source,omitempty"`
	// Upsert If the document does not already exist, the contents of `upsert` are inserted
	// as a new document.
	// If the document exists, the `script` is run.
	Upsert json.RawMessage `json:"upsert,omitempty"`
}

UpdateAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L182-L217

func NewUpdateAction ¶

func NewUpdateAction() *UpdateAction

NewUpdateAction returns a UpdateAction.

func (*UpdateAction) UnmarshalJSON ¶

func (s *UpdateAction) UnmarshalJSON(data []byte) error

func (*UpdateAction) UpdateActionCaster ¶

func (s *UpdateAction) UpdateActionCaster() *UpdateAction

type UpdateActionVariant ¶

type UpdateActionVariant interface {
	UpdateActionCaster() *UpdateAction
}

type UpdateByQueryRethrottleNode ¶

type UpdateByQueryRethrottleNode struct {
	Attributes       map[string]string   `json:"attributes"`
	Host             string              `json:"host"`
	Ip               string              `json:"ip"`
	Name             string              `json:"name"`
	Roles            []noderole.NodeRole `json:"roles,omitempty"`
	Tasks            map[string]TaskInfo `json:"tasks"`
	TransportAddress string              `json:"transport_address"`
}

UpdateByQueryRethrottleNode type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27

func NewUpdateByQueryRethrottleNode ¶

func NewUpdateByQueryRethrottleNode() *UpdateByQueryRethrottleNode

NewUpdateByQueryRethrottleNode returns a UpdateByQueryRethrottleNode.

func (*UpdateByQueryRethrottleNode) UnmarshalJSON ¶

func (s *UpdateByQueryRethrottleNode) UnmarshalJSON(data []byte) error

type UpdateOperation ¶

type UpdateOperation struct {
	// Id_ The document ID.
	Id_           *string `json:"_id,omitempty"`
	IfPrimaryTerm *int64  `json:"if_primary_term,omitempty"`
	IfSeqNo       *int64  `json:"if_seq_no,omitempty"`
	// Index_ The name of the index or index alias to perform the action on.
	Index_ *string `json:"_index,omitempty"`
	// RequireAlias If `true`, the request's actions must target an index alias.
	RequireAlias *bool `json:"require_alias,omitempty"`
	// RetryOnConflict The number of times an update should be retried in the case of a version
	// conflict.
	RetryOnConflict *int `json:"retry_on_conflict,omitempty"`
	// Routing A custom value used to route operations to a specific shard.
	Routing     *string                  `json:"routing,omitempty"`
	Version     *int64                   `json:"version,omitempty"`
	VersionType *versiontype.VersionType `json:"version_type,omitempty"`
}

UpdateOperation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_global/bulk/types.ts#L146-L156

func NewUpdateOperation ¶

func NewUpdateOperation() *UpdateOperation

NewUpdateOperation returns a UpdateOperation.

func (*UpdateOperation) UnmarshalJSON ¶

func (s *UpdateOperation) UnmarshalJSON(data []byte) error

func (*UpdateOperation) UpdateOperationCaster ¶

func (s *UpdateOperation) UpdateOperationCaster() *UpdateOperation

type UpdateOperationVariant ¶

type UpdateOperationVariant interface {
	UpdateOperationCaster() *UpdateOperation
}

type UpdatedDataStreamSettings ¶ added in v9.1.0

type UpdatedDataStreamSettings struct {
	// AppliedToDataStream If the settings were successfully applied to the data stream (or would have
	// been, if running in `dry_run`
	// mode), it is `true`. If an error occurred, it is `false`.
	AppliedToDataStream bool `json:"applied_to_data_stream"`
	// EffectiveSettings The settings that are effective on this data stream, taking into account the
	// settings from the matching index
	// template and the settings specific to this data stream.
	EffectiveSettings IndexSettings `json:"effective_settings"`
	// Error A message explaining why the settings could not be applied to the data
	// stream.
	Error *string `json:"error,omitempty"`
	// IndexSettingsResults Information about whether and where each setting was applied.
	IndexSettingsResults IndexSettingResults `json:"index_settings_results"`
	// Name The data stream name.
	Name string `json:"name"`
	// Settings The settings that are specfic to this data stream that will override any
	// settings from the matching index template.
	Settings IndexSettings `json:"settings"`
}

UpdatedDataStreamSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L30-L55

func NewUpdatedDataStreamSettings ¶ added in v9.1.0

func NewUpdatedDataStreamSettings() *UpdatedDataStreamSettings

NewUpdatedDataStreamSettings returns a UpdatedDataStreamSettings.

func (*UpdatedDataStreamSettings) UnmarshalJSON ¶ added in v9.1.0

func (s *UpdatedDataStreamSettings) UnmarshalJSON(data []byte) error

type UppercaseProcessor ¶

type UppercaseProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to make uppercase.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

UppercaseProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1562-L1578

func NewUppercaseProcessor ¶

func NewUppercaseProcessor() *UppercaseProcessor

NewUppercaseProcessor returns a UppercaseProcessor.

func (*UppercaseProcessor) UnmarshalJSON ¶

func (s *UppercaseProcessor) UnmarshalJSON(data []byte) error

func (*UppercaseProcessor) UppercaseProcessorCaster ¶

func (s *UppercaseProcessor) UppercaseProcessorCaster() *UppercaseProcessor

type UppercaseProcessorVariant ¶

type UppercaseProcessorVariant interface {
	UppercaseProcessorCaster() *UppercaseProcessor
}

type UppercaseTokenFilter ¶

type UppercaseTokenFilter struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

UppercaseTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L447-L449

func NewUppercaseTokenFilter ¶

func NewUppercaseTokenFilter() *UppercaseTokenFilter

NewUppercaseTokenFilter returns a UppercaseTokenFilter.

func (UppercaseTokenFilter) MarshalJSON ¶

func (s UppercaseTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*UppercaseTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *UppercaseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*UppercaseTokenFilter) UnmarshalJSON ¶

func (s *UppercaseTokenFilter) UnmarshalJSON(data []byte) error

func (*UppercaseTokenFilter) UppercaseTokenFilterCaster ¶

func (s *UppercaseTokenFilter) UppercaseTokenFilterCaster() *UppercaseTokenFilter

type UppercaseTokenFilterVariant ¶

type UppercaseTokenFilterVariant interface {
	UppercaseTokenFilterCaster() *UppercaseTokenFilter
}

type UriPartsProcessor ¶

type UriPartsProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field Field containing the URI string.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// KeepOriginal If `true`, the processor copies the unparsed URI to
	// `<target_field>.original`.
	KeepOriginal *bool `json:"keep_original,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// RemoveIfSuccessful If `true`, the processor removes the `field` after parsing the URI string.
	// If parsing fails, the processor does not remove the `field`.
	RemoveIfSuccessful *bool `json:"remove_if_successful,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField Output field for the URI object.
	TargetField *string `json:"target_field,omitempty"`
}

UriPartsProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1598-L1624

func NewUriPartsProcessor ¶

func NewUriPartsProcessor() *UriPartsProcessor

NewUriPartsProcessor returns a UriPartsProcessor.

func (*UriPartsProcessor) UnmarshalJSON ¶

func (s *UriPartsProcessor) UnmarshalJSON(data []byte) error

func (*UriPartsProcessor) UriPartsProcessorCaster ¶

func (s *UriPartsProcessor) UriPartsProcessorCaster() *UriPartsProcessor

type UriPartsProcessorVariant ¶

type UriPartsProcessorVariant interface {
	UriPartsProcessorCaster() *UriPartsProcessor
}

type UrlDecodeProcessor ¶

type UrlDecodeProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// Field The field to decode.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist or is `null`, the processor quietly
	// exits without modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field to assign the converted value to.
	// By default, the field is updated in-place.
	TargetField *string `json:"target_field,omitempty"`
}

UrlDecodeProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L1580-L1596

func NewUrlDecodeProcessor ¶

func NewUrlDecodeProcessor() *UrlDecodeProcessor

NewUrlDecodeProcessor returns a UrlDecodeProcessor.

func (*UrlDecodeProcessor) UnmarshalJSON ¶

func (s *UrlDecodeProcessor) UnmarshalJSON(data []byte) error

func (*UrlDecodeProcessor) UrlDecodeProcessorCaster ¶

func (s *UrlDecodeProcessor) UrlDecodeProcessorCaster() *UrlDecodeProcessor

type UrlDecodeProcessorVariant ¶

type UrlDecodeProcessorVariant interface {
	UrlDecodeProcessorCaster() *UrlDecodeProcessor
}

type UsagePhase ¶

type UsagePhase struct {
	Actions []string `json:"actions"`
	MinAge  int64    `json:"min_age"`
}

UsagePhase type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L154-L157

func NewUsagePhase ¶

func NewUsagePhase() *UsagePhase

NewUsagePhase returns a UsagePhase.

func (*UsagePhase) UnmarshalJSON ¶

func (s *UsagePhase) UnmarshalJSON(data []byte) error

type UsagePhases ¶

type UsagePhases struct {
	Cold   *UsagePhase `json:"cold,omitempty"`
	Delete *UsagePhase `json:"delete,omitempty"`
	Frozen *UsagePhase `json:"frozen,omitempty"`
	Hot    *UsagePhase `json:"hot,omitempty"`
	Warm   *UsagePhase `json:"warm,omitempty"`
}

UsagePhases type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L159-L165

func NewUsagePhases ¶

func NewUsagePhases() *UsagePhases

NewUsagePhases returns a UsagePhases.

type UsageStatsIndex ¶

type UsageStatsIndex struct {
	Shards []UsageStatsShards `json:"shards"`
}

UsageStatsIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44

func NewUsageStatsIndex ¶

func NewUsageStatsIndex() *UsageStatsIndex

NewUsageStatsIndex returns a UsageStatsIndex.

type UsageStatsShards ¶

type UsageStatsShards struct {
	Routing                 ShardRouting       `json:"routing"`
	Stats                   IndicesShardsStats `json:"stats"`
	TrackingId              string             `json:"tracking_id"`
	TrackingStartedAtMillis int64              `json:"tracking_started_at_millis"`
}

UsageStatsShards type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51

func NewUsageStatsShards ¶

func NewUsageStatsShards() *UsageStatsShards

NewUsageStatsShards returns a UsageStatsShards.

func (*UsageStatsShards) UnmarshalJSON ¶

func (s *UsageStatsShards) UnmarshalJSON(data []byte) error

type User ¶

type User struct {
	Email      *string  `json:"email,omitempty"`
	Enabled    bool     `json:"enabled"`
	FullName   *string  `json:"full_name,omitempty"`
	Metadata   Metadata `json:"metadata"`
	ProfileUid *string  `json:"profile_uid,omitempty"`
	Roles      []string `json:"roles"`
	Username   string   `json:"username"`
}

User type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/User.ts#L23-L31

func NewUser ¶

func NewUser() *User

NewUser returns a User.

func (*User) UnmarshalJSON ¶

func (s *User) UnmarshalJSON(data []byte) error

type UserAgentProcessor ¶

type UserAgentProcessor struct {
	// Description Description of the processor.
	// Useful for describing the purpose of the processor or its configuration.
	Description *string `json:"description,omitempty"`
	// ExtractDeviceType Extracts device type from the user agent string on a best-effort basis.
	ExtractDeviceType *bool `json:"extract_device_type,omitempty"`
	// Field The field containing the user agent string.
	Field string `json:"field"`
	// If Conditionally execute the processor.
	If *Script `json:"if,omitempty"`
	// IgnoreFailure Ignore failures for the processor.
	IgnoreFailure *bool `json:"ignore_failure,omitempty"`
	// IgnoreMissing If `true` and `field` does not exist, the processor quietly exits without
	// modifying the document.
	IgnoreMissing *bool `json:"ignore_missing,omitempty"`
	// OnFailure Handle failures for the processor.
	OnFailure []ProcessorContainer `json:"on_failure,omitempty"`
	// Properties Controls what properties are added to `target_field`.
	Properties []useragentproperty.UserAgentProperty `json:"properties,omitempty"`
	// RegexFile The name of the file in the `config/ingest-user-agent` directory containing
	// the regular expressions for parsing the user agent string. Both the directory
	// and the file have to be created before starting Elasticsearch. If not
	// specified, ingest-user-agent will use the `regexes.yaml` from uap-core it
	// ships with.
	RegexFile *string `json:"regex_file,omitempty"`
	// Tag Identifier for the processor.
	// Useful for debugging and metrics.
	Tag *string `json:"tag,omitempty"`
	// TargetField The field that will be filled with the user agent details.
	TargetField *string `json:"target_field,omitempty"`
}

UserAgentProcessor type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ingest/_types/Processors.ts#L515-L546

func NewUserAgentProcessor ¶

func NewUserAgentProcessor() *UserAgentProcessor

NewUserAgentProcessor returns a UserAgentProcessor.

func (*UserAgentProcessor) UnmarshalJSON ¶

func (s *UserAgentProcessor) UnmarshalJSON(data []byte) error

func (*UserAgentProcessor) UserAgentProcessorCaster ¶

func (s *UserAgentProcessor) UserAgentProcessorCaster() *UserAgentProcessor

type UserAgentProcessorVariant ¶

type UserAgentProcessorVariant interface {
	UserAgentProcessorCaster() *UserAgentProcessor
}

type UserIndicesPrivileges ¶

type UserIndicesPrivileges struct {
	// AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that
	// cover restricted indices. Implicitly, restricted indices have limited
	// privileges that can cause pattern tests to fail. If restricted indices are
	// explicitly included in the `names` list, Elasticsearch checks privileges
	// against these indices regardless of the value set for
	// `allow_restricted_indices`.
	AllowRestrictedIndices bool `json:"allow_restricted_indices"`
	// FieldSecurity The document fields that the owners of the role have read access to.
	FieldSecurity []FieldSecurity `json:"field_security,omitempty"`
	// Names A list of indices (or index name patterns) to which the permissions in this
	// entry apply.
	Names []string `json:"names"`
	// Privileges The index level privileges that owners of the role have on the specified
	// indices.
	Privileges []indexprivilege.IndexPrivilege `json:"privileges"`
	// Query Search queries that define the documents the user has access to. A document
	// within the specified indices must match these queries for it to be accessible
	// by the owners of the role.
	Query []IndicesPrivilegesQuery `json:"query,omitempty"`
}

UserIndicesPrivileges type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/Privileges.ts#L294-L316

func NewUserIndicesPrivileges ¶

func NewUserIndicesPrivileges() *UserIndicesPrivileges

NewUserIndicesPrivileges returns a UserIndicesPrivileges.

func (*UserIndicesPrivileges) UnmarshalJSON ¶

func (s *UserIndicesPrivileges) UnmarshalJSON(data []byte) error

type UserProfile ¶

type UserProfile struct {
	Data    map[string]json.RawMessage `json:"data"`
	Enabled *bool                      `json:"enabled,omitempty"`
	Labels  map[string]json.RawMessage `json:"labels"`
	Uid     string                     `json:"uid"`
	User    UserProfileUser            `json:"user"`
}

UserProfile type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/UserProfile.ts#L41-L47

func NewUserProfile ¶

func NewUserProfile() *UserProfile

NewUserProfile returns a UserProfile.

func (*UserProfile) UnmarshalJSON ¶

func (s *UserProfile) UnmarshalJSON(data []byte) error

type UserProfileHitMetadata ¶

type UserProfileHitMetadata struct {
	PrimaryTerm_ int64 `json:"_primary_term"`
	SeqNo_       int64 `json:"_seq_no"`
}

UserProfileHitMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/UserProfile.ts#L27-L30

func NewUserProfileHitMetadata ¶

func NewUserProfileHitMetadata() *UserProfileHitMetadata

NewUserProfileHitMetadata returns a UserProfileHitMetadata.

func (*UserProfileHitMetadata) UnmarshalJSON ¶

func (s *UserProfileHitMetadata) UnmarshalJSON(data []byte) error

type UserProfileUser ¶

type UserProfileUser struct {
	Email       *string  `json:"email,omitempty"`
	FullName    *string  `json:"full_name,omitempty"`
	RealmDomain *string  `json:"realm_domain,omitempty"`
	RealmName   string   `json:"realm_name"`
	Roles       []string `json:"roles"`
	Username    string   `json:"username"`
}

UserProfileUser type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/UserProfile.ts#L32-L39

func NewUserProfileUser ¶

func NewUserProfileUser() *UserProfileUser

NewUserProfileUser returns a UserProfileUser.

func (*UserProfileUser) UnmarshalJSON ¶

func (s *UserProfileUser) UnmarshalJSON(data []byte) error

type UserProfileWithMetadata ¶

type UserProfileWithMetadata struct {
	Data             map[string]json.RawMessage `json:"data"`
	Doc_             UserProfileHitMetadata     `json:"_doc"`
	Enabled          *bool                      `json:"enabled,omitempty"`
	Labels           map[string]json.RawMessage `json:"labels"`
	LastSynchronized int64                      `json:"last_synchronized"`
	Uid              string                     `json:"uid"`
	User             UserProfileUser            `json:"user"`
}

UserProfileWithMetadata type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/_types/UserProfile.ts#L49-L52

func NewUserProfileWithMetadata ¶

func NewUserProfileWithMetadata() *UserProfileWithMetadata

NewUserProfileWithMetadata returns a UserProfileWithMetadata.

func (*UserProfileWithMetadata) UnmarshalJSON ¶

func (s *UserProfileWithMetadata) UnmarshalJSON(data []byte) error

type UserQueryContainer ¶

type UserQueryContainer struct {
	AdditionalUserQueryContainerProperty map[string]json.RawMessage `json:"-"`
	// Bool matches users matching boolean combinations of other queries.
	Bool *BoolQuery `json:"bool,omitempty"`
	// Exists Returns users that contain an indexed value for a field.
	Exists *ExistsQuery `json:"exists,omitempty"`
	// Ids Returns users based on their IDs.
	// This query uses the user document IDs stored in the `_id` field.
	Ids *IdsQuery `json:"ids,omitempty"`
	// Match Returns users that match a provided text, number, date or boolean value.
	// The provided text is analyzed before matching.
	Match map[string]MatchQuery `json:"match,omitempty"`
	// MatchAll Matches all users, giving them all a `_score` of 1.0.
	MatchAll *MatchAllQuery `json:"match_all,omitempty"`
	// Prefix Returns users that contain a specific prefix in a provided field.
	Prefix map[string]PrefixQuery `json:"prefix,omitempty"`
	// Range Returns users that contain terms within a provided range.
	Range map[string]RangeQuery `json:"range,omitempty"`
	// SimpleQueryString Returns users based on a provided query string, using a parser with a limited
	// but fault-tolerant syntax.
	SimpleQueryString *SimpleQueryStringQuery `json:"simple_query_string,omitempty"`
	// Term Returns users that contain an exact term in a provided field.
	// To return a document, the query term must exactly match the queried field's
	// value, including whitespace and capitalization.
	Term map[string]TermQuery `json:"term,omitempty"`
	// Terms Returns users that contain one or more exact terms in a provided field.
	// To return a document, one or more terms must exactly match a field value,
	// including whitespace and capitalization.
	Terms *TermsQuery `json:"terms,omitempty"`
	// Wildcard Returns users that contain terms matching a wildcard pattern.
	Wildcard map[string]WildcardQuery `json:"wildcard,omitempty"`
}

UserQueryContainer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/query_user/types.ts#L37-L101

func NewUserQueryContainer ¶

func NewUserQueryContainer() *UserQueryContainer

NewUserQueryContainer returns a UserQueryContainer.

func (UserQueryContainer) MarshalJSON ¶

func (s UserQueryContainer) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*UserQueryContainer) UnmarshalJSON ¶

func (s *UserQueryContainer) UnmarshalJSON(data []byte) error

func (*UserQueryContainer) UserQueryContainerCaster ¶

func (s *UserQueryContainer) UserQueryContainerCaster() *UserQueryContainer

type UserQueryContainerVariant ¶

type UserQueryContainerVariant interface {
	UserQueryContainerCaster() *UserQueryContainer
}

type UserRealm ¶

type UserRealm struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

UserRealm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/security/get_token/types.ts#L50-L53

func NewUserRealm ¶

func NewUserRealm() *UserRealm

NewUserRealm returns a UserRealm.

func (*UserRealm) UnmarshalJSON ¶

func (s *UserRealm) UnmarshalJSON(data []byte) error

type Validation ¶

type Validation any

Validation holds the union for the following types:

LessThanValidation
GreaterThanValidation
ListTypeValidation
IncludedInValidation
RegexValidation

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/connector/_types/Connector.ts#L50-L56

type ValidationLoss ¶

type ValidationLoss struct {
	// FoldValues Validation loss values for every added decision tree during the forest
	// growing procedure.
	FoldValues []string `json:"fold_values"`
	// LossType The type of the loss metric. For example, binomial_logistic.
	LossType string `json:"loss_type"`
}

ValidationLoss type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/DataframeAnalytics.ts#L571-L576

func NewValidationLoss ¶

func NewValidationLoss() *ValidationLoss

NewValidationLoss returns a ValidationLoss.

func (*ValidationLoss) UnmarshalJSON ¶

func (s *ValidationLoss) UnmarshalJSON(data []byte) error

type ValidationVariant ¶

type ValidationVariant interface {
	ValidationCaster() *Validation
}

type ValueCountAggregate ¶

type ValueCountAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

ValueCountAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L231-L236

func NewValueCountAggregate ¶

func NewValueCountAggregate() *ValueCountAggregate

NewValueCountAggregate returns a ValueCountAggregate.

func (*ValueCountAggregate) UnmarshalJSON ¶

func (s *ValueCountAggregate) UnmarshalJSON(data []byte) error

type ValueCountAggregation ¶

type ValueCountAggregation struct {
	// Field The field on which to run the aggregation.
	Field  *string `json:"field,omitempty"`
	Format *string `json:"format,omitempty"`
	// Missing The value to apply to documents that do not have a value.
	// By default, documents without a value are ignored.
	Missing Missing `json:"missing,omitempty"`
	Script  *Script `json:"script,omitempty"`
}

ValueCountAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L457-L457

func NewValueCountAggregation ¶

func NewValueCountAggregation() *ValueCountAggregation

NewValueCountAggregation returns a ValueCountAggregation.

func (*ValueCountAggregation) UnmarshalJSON ¶

func (s *ValueCountAggregation) UnmarshalJSON(data []byte) error

func (*ValueCountAggregation) ValueCountAggregationCaster ¶

func (s *ValueCountAggregation) ValueCountAggregationCaster() *ValueCountAggregation

type ValueCountAggregationVariant ¶

type ValueCountAggregationVariant interface {
	ValueCountAggregationCaster() *ValueCountAggregation
}

type VariableWidthHistogramAggregate ¶

type VariableWidthHistogramAggregate struct {
	Buckets BucketsVariableWidthHistogramBucket `json:"buckets"`
	Meta    Metadata                            `json:"meta,omitempty"`
}

VariableWidthHistogramAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L402-L404

func NewVariableWidthHistogramAggregate ¶

func NewVariableWidthHistogramAggregate() *VariableWidthHistogramAggregate

NewVariableWidthHistogramAggregate returns a VariableWidthHistogramAggregate.

func (*VariableWidthHistogramAggregate) UnmarshalJSON ¶

func (s *VariableWidthHistogramAggregate) UnmarshalJSON(data []byte) error

type VariableWidthHistogramAggregation ¶

type VariableWidthHistogramAggregation struct {
	// Buckets The target number of buckets.
	Buckets *int `json:"buckets,omitempty"`
	// Field The name of the field.
	Field *string `json:"field,omitempty"`
	// InitialBuffer Specifies the number of individual documents that will be stored in memory on
	// a shard before the initial bucketing algorithm is run.
	// Defaults to `min(10 * shard_size, 50000)`.
	InitialBuffer *int    `json:"initial_buffer,omitempty"`
	Script        *Script `json:"script,omitempty"`
	// ShardSize The number of buckets that the coordinating node will request from each
	// shard.
	// Defaults to `buckets * 50`.
	ShardSize *int `json:"shard_size,omitempty"`
}

VariableWidthHistogramAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/bucket.ts#L1091-L1115

func NewVariableWidthHistogramAggregation ¶

func NewVariableWidthHistogramAggregation() *VariableWidthHistogramAggregation

NewVariableWidthHistogramAggregation returns a VariableWidthHistogramAggregation.

func (*VariableWidthHistogramAggregation) UnmarshalJSON ¶

func (s *VariableWidthHistogramAggregation) UnmarshalJSON(data []byte) error

func (*VariableWidthHistogramAggregation) VariableWidthHistogramAggregationCaster ¶

func (s *VariableWidthHistogramAggregation) VariableWidthHistogramAggregationCaster() *VariableWidthHistogramAggregation

type VariableWidthHistogramAggregationVariant ¶

type VariableWidthHistogramAggregationVariant interface {
	VariableWidthHistogramAggregationCaster() *VariableWidthHistogramAggregation
}

type VariableWidthHistogramBucket ¶

type VariableWidthHistogramBucket struct {
	Aggregations map[string]Aggregate `json:"-"`
	DocCount     int64                `json:"doc_count"`
	Key          Float64              `json:"key"`
	KeyAsString  *string              `json:"key_as_string,omitempty"`
	Max          Float64              `json:"max"`
	MaxAsString  *string              `json:"max_as_string,omitempty"`
	Min          Float64              `json:"min"`
	MinAsString  *string              `json:"min_as_string,omitempty"`
}

VariableWidthHistogramBucket type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L406-L413

func NewVariableWidthHistogramBucket ¶

func NewVariableWidthHistogramBucket() *VariableWidthHistogramBucket

NewVariableWidthHistogramBucket returns a VariableWidthHistogramBucket.

func (VariableWidthHistogramBucket) MarshalJSON ¶

func (s VariableWidthHistogramBucket) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*VariableWidthHistogramBucket) UnmarshalJSON ¶

func (s *VariableWidthHistogramBucket) UnmarshalJSON(data []byte) error

type Vector ¶

type Vector struct {
	Available               bool `json:"available"`
	DenseVectorDimsAvgCount int  `json:"dense_vector_dims_avg_count"`
	DenseVectorFieldsCount  int  `json:"dense_vector_fields_count"`
	Enabled                 bool `json:"enabled"`
	SparseVectorFieldsCount *int `json:"sparse_vector_fields_count,omitempty"`
}

Vector type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L460-L464

func NewVector ¶

func NewVector() *Vector

NewVector returns a Vector.

func (*Vector) UnmarshalJSON ¶

func (s *Vector) UnmarshalJSON(data []byte) error

type VerifyIndex ¶

type VerifyIndex struct {
	CheckIndexTime         Duration `json:"check_index_time,omitempty"`
	CheckIndexTimeInMillis int64    `json:"check_index_time_in_millis"`
	TotalTime              Duration `json:"total_time,omitempty"`
	TotalTimeInMillis      int64    `json:"total_time_in_millis"`
}

VerifyIndex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/indices/recovery/types.ts#L111-L116

func NewVerifyIndex ¶

func NewVerifyIndex() *VerifyIndex

NewVerifyIndex returns a VerifyIndex.

func (*VerifyIndex) UnmarshalJSON ¶

func (s *VerifyIndex) UnmarshalJSON(data []byte) error

type VersionProperty ¶

type VersionProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

VersionProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L340-L342

func NewVersionProperty ¶

func NewVersionProperty() *VersionProperty

NewVersionProperty returns a VersionProperty.

func (VersionProperty) MarshalJSON ¶

func (s VersionProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*VersionProperty) PropertyCaster ¶ added in v9.0.1

func (s *VersionProperty) PropertyCaster() *Property

func (*VersionProperty) UnmarshalJSON ¶

func (s *VersionProperty) UnmarshalJSON(data []byte) error

func (*VersionProperty) VersionPropertyCaster ¶

func (s *VersionProperty) VersionPropertyCaster() *VersionProperty

type VersionPropertyVariant ¶

type VersionPropertyVariant interface {
	VersionPropertyCaster() *VersionProperty
}

type Vertex ¶

type Vertex struct {
	Depth  int64   `json:"depth"`
	Field  string  `json:"field"`
	Term   string  `json:"term"`
	Weight Float64 `json:"weight"`
}

Vertex type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/Vertex.ts#L23-L28

func NewVertex ¶

func NewVertex() *Vertex

NewVertex returns a Vertex.

func (*Vertex) UnmarshalJSON ¶

func (s *Vertex) UnmarshalJSON(data []byte) error

type VertexDefinition ¶

type VertexDefinition struct {
	// Exclude Prevents the specified terms from being included in the results.
	Exclude []string `json:"exclude,omitempty"`
	// Field Identifies a field in the documents of interest.
	Field string `json:"field"`
	// Include Identifies the terms of interest that form the starting points from which you
	// want to spider out.
	Include []VertexInclude `json:"include,omitempty"`
	// MinDocCount Specifies how many documents must contain a pair of terms before it is
	// considered to be a useful connection.
	// This setting acts as a certainty threshold.
	MinDocCount *int64 `json:"min_doc_count,omitempty"`
	// ShardMinDocCount Controls how many documents on a particular shard have to contain a pair of
	// terms before the connection is returned for global consideration.
	ShardMinDocCount *int64 `json:"shard_min_doc_count,omitempty"`
	// Size Specifies the maximum number of vertex terms returned for each field.
	Size *int `json:"size,omitempty"`
}

VertexDefinition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/Vertex.ts#L30-L59

func NewVertexDefinition ¶

func NewVertexDefinition() *VertexDefinition

NewVertexDefinition returns a VertexDefinition.

func (*VertexDefinition) UnmarshalJSON ¶

func (s *VertexDefinition) UnmarshalJSON(data []byte) error

func (*VertexDefinition) VertexDefinitionCaster ¶

func (s *VertexDefinition) VertexDefinitionCaster() *VertexDefinition

type VertexDefinitionVariant ¶

type VertexDefinitionVariant interface {
	VertexDefinitionCaster() *VertexDefinition
}

type VertexInclude ¶

type VertexInclude struct {
	Boost *Float64 `json:"boost,omitempty"`
	Term  string   `json:"term"`
}

VertexInclude type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/graph/_types/Vertex.ts#L61-L65

func NewVertexInclude ¶

func NewVertexInclude() *VertexInclude

NewVertexInclude returns a VertexInclude.

func (*VertexInclude) UnmarshalJSON ¶

func (s *VertexInclude) UnmarshalJSON(data []byte) error

func (*VertexInclude) VertexIncludeCaster ¶

func (s *VertexInclude) VertexIncludeCaster() *VertexInclude

type VertexIncludeVariant ¶

type VertexIncludeVariant interface {
	VertexIncludeCaster() *VertexInclude
}

type Vocabulary ¶

type Vocabulary struct {
	Index string `json:"index"`
}

Vocabulary type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L248-L250

func NewVocabulary ¶

func NewVocabulary() *Vocabulary

NewVocabulary returns a Vocabulary.

func (*Vocabulary) UnmarshalJSON ¶

func (s *Vocabulary) UnmarshalJSON(data []byte) error

func (*Vocabulary) VocabularyCaster ¶

func (s *Vocabulary) VocabularyCaster() *Vocabulary

type VocabularyVariant ¶

type VocabularyVariant interface {
	VocabularyCaster() *Vocabulary
}

type Void ¶

type Void any

type VoyageAIServiceSettings ¶

type VoyageAIServiceSettings struct {
	// Dimensions The number of dimensions for resulting output embeddings.
	// This setting maps to `output_dimension` in the VoyageAI documentation.
	// Only for the `text_embedding` task type.
	Dimensions *int `json:"dimensions,omitempty"`
	// EmbeddingType The data type for the embeddings to be returned.
	// This setting maps to `output_dtype` in the VoyageAI documentation.
	// Permitted values: float, int8, bit.
	// `int8` is a synonym of `byte` in the VoyageAI documentation.
	// `bit` is a synonym of `binary` in the VoyageAI documentation.
	// Only for the `text_embedding` task type.
	EmbeddingType *float32 `json:"embedding_type,omitempty"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the VoyageAI documentation for the list of available text embedding
	// and rerank models.
	ModelId string `json:"model_id"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// VoyageAI.
	// The `voyageai` service sets a default number of requests allowed per minute
	// depending on the task type.
	// For both `text_embedding` and `rerank`, it is set to `2000`.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
}

VoyageAIServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1616-L1647

func NewVoyageAIServiceSettings ¶

func NewVoyageAIServiceSettings() *VoyageAIServiceSettings

NewVoyageAIServiceSettings returns a VoyageAIServiceSettings.

func (*VoyageAIServiceSettings) UnmarshalJSON ¶

func (s *VoyageAIServiceSettings) UnmarshalJSON(data []byte) error

func (*VoyageAIServiceSettings) VoyageAIServiceSettingsCaster ¶

func (s *VoyageAIServiceSettings) VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings

type VoyageAIServiceSettingsVariant ¶

type VoyageAIServiceSettingsVariant interface {
	VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings
}

type VoyageAITaskSettings ¶

type VoyageAITaskSettings struct {
	// InputType Type of the input text.
	// Permitted values: `ingest` (maps to `document` in the VoyageAI
	// documentation), `search` (maps to `query` in the VoyageAI documentation).
	// Only for the `text_embedding` task type.
	InputType *string `json:"input_type,omitempty"`
	// ReturnDocuments Whether to return the source documents in the response.
	// Only for the `rerank` task type.
	ReturnDocuments *bool `json:"return_documents,omitempty"`
	// TopK The number of most relevant documents to return.
	// If not specified, the reranking results of all documents will be returned.
	// Only for the `rerank` task type.
	TopK *int `json:"top_k,omitempty"`
	// Truncation Whether to truncate the input texts to fit within the context length.
	Truncation *bool `json:"truncation,omitempty"`
}

VoyageAITaskSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1649-L1673

func NewVoyageAITaskSettings ¶

func NewVoyageAITaskSettings() *VoyageAITaskSettings

NewVoyageAITaskSettings returns a VoyageAITaskSettings.

func (*VoyageAITaskSettings) UnmarshalJSON ¶

func (s *VoyageAITaskSettings) UnmarshalJSON(data []byte) error

func (*VoyageAITaskSettings) VoyageAITaskSettingsCaster ¶

func (s *VoyageAITaskSettings) VoyageAITaskSettingsCaster() *VoyageAITaskSettings

type VoyageAITaskSettingsVariant ¶

type VoyageAITaskSettingsVariant interface {
	VoyageAITaskSettingsCaster() *VoyageAITaskSettings
}

type WaitForActiveShards ¶

type WaitForActiveShards any

WaitForActiveShards holds the union for the following types:

int
waitforactiveshardoptions.WaitForActiveShardOptions

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/common.ts#L139-L140

type WaitForSnapshotAction ¶

type WaitForSnapshotAction struct {
	Policy string `json:"policy"`
}

WaitForSnapshotAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ilm/_types/Phase.ts#L145-L147

func NewWaitForSnapshotAction ¶

func NewWaitForSnapshotAction() *WaitForSnapshotAction

NewWaitForSnapshotAction returns a WaitForSnapshotAction.

func (*WaitForSnapshotAction) UnmarshalJSON ¶

func (s *WaitForSnapshotAction) UnmarshalJSON(data []byte) error

func (*WaitForSnapshotAction) WaitForSnapshotActionCaster ¶

func (s *WaitForSnapshotAction) WaitForSnapshotActionCaster() *WaitForSnapshotAction

type WaitForSnapshotActionVariant ¶

type WaitForSnapshotActionVariant interface {
	WaitForSnapshotActionCaster() *WaitForSnapshotAction
}

type WarmerStats ¶

type WarmerStats struct {
	Current           int64    `json:"current"`
	Total             int64    `json:"total"`
	TotalTime         Duration `json:"total_time,omitempty"`
	TotalTimeInMillis int64    `json:"total_time_in_millis"`
}

WarmerStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Stats.ts#L437-L442

func NewWarmerStats ¶

func NewWarmerStats() *WarmerStats

NewWarmerStats returns a WarmerStats.

func (*WarmerStats) UnmarshalJSON ¶

func (s *WarmerStats) UnmarshalJSON(data []byte) error

type Watch ¶

type Watch struct {
	Actions                map[string]WatcherAction `json:"actions"`
	Condition              WatcherCondition         `json:"condition"`
	Input                  WatcherInput             `json:"input"`
	Metadata               Metadata                 `json:"metadata,omitempty"`
	Status                 *WatchStatus             `json:"status,omitempty"`
	ThrottlePeriod         Duration                 `json:"throttle_period,omitempty"`
	ThrottlePeriodInMillis *int64                   `json:"throttle_period_in_millis,omitempty"`
	Transform              *TransformContainer      `json:"transform,omitempty"`
	Trigger                TriggerContainer         `json:"trigger"`
}

Watch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Watch.ts#L37-L47

func NewWatch ¶

func NewWatch() *Watch

NewWatch returns a Watch.

func (*Watch) UnmarshalJSON ¶

func (s *Watch) UnmarshalJSON(data []byte) error

func (*Watch) WatchCaster ¶

func (s *Watch) WatchCaster() *Watch

type WatchRecord ¶

type WatchRecord struct {
	Condition    WatcherCondition                `json:"condition"`
	Input        WatcherInput                    `json:"input"`
	Messages     []string                        `json:"messages"`
	Metadata     Metadata                        `json:"metadata,omitempty"`
	Node         string                          `json:"node"`
	Result       ExecutionResult                 `json:"result"`
	State        executionstatus.ExecutionStatus `json:"state"`
	Status       *WatchStatus                    `json:"status,omitempty"`
	TriggerEvent TriggerEventResult              `json:"trigger_event"`
	User         string                          `json:"user"`
	WatchId      string                          `json:"watch_id"`
}

WatchRecord type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/execute_watch/types.ts#L27-L39

func NewWatchRecord ¶

func NewWatchRecord() *WatchRecord

NewWatchRecord returns a WatchRecord.

func (*WatchRecord) UnmarshalJSON ¶

func (s *WatchRecord) UnmarshalJSON(data []byte) error

type WatchRecordQueuedStats ¶

type WatchRecordQueuedStats struct {
	// ExecutionTime The time the watch was run.
	// This is just before the input is being run.
	ExecutionTime DateTime `json:"execution_time"`
}

WatchRecordQueuedStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/stats/types.ts#L71-L77

func NewWatchRecordQueuedStats ¶

func NewWatchRecordQueuedStats() *WatchRecordQueuedStats

NewWatchRecordQueuedStats returns a WatchRecordQueuedStats.

func (*WatchRecordQueuedStats) UnmarshalJSON ¶

func (s *WatchRecordQueuedStats) UnmarshalJSON(data []byte) error

type WatchRecordStats ¶

type WatchRecordStats struct {
	ExecutedActions []string `json:"executed_actions,omitempty"`
	// ExecutionPhase The current watch execution phase.
	ExecutionPhase executionphase.ExecutionPhase `json:"execution_phase"`
	// ExecutionTime The time the watch was run.
	// This is just before the input is being run.
	ExecutionTime DateTime `json:"execution_time"`
	// TriggeredTime The time the watch was triggered by the trigger engine.
	TriggeredTime DateTime `json:"triggered_time"`
	WatchId       string   `json:"watch_id"`
	// WatchRecordId The watch record identifier.
	WatchRecordId string `json:"watch_record_id"`
}

WatchRecordStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/stats/types.ts#L79-L94

func NewWatchRecordStats ¶

func NewWatchRecordStats() *WatchRecordStats

NewWatchRecordStats returns a WatchRecordStats.

func (*WatchRecordStats) UnmarshalJSON ¶

func (s *WatchRecordStats) UnmarshalJSON(data []byte) error

type WatchStatus ¶

type WatchStatus struct {
	Actions          WatcherStatusActions `json:"actions"`
	ExecutionState   *string              `json:"execution_state,omitempty"`
	LastChecked      DateTime             `json:"last_checked,omitempty"`
	LastMetCondition DateTime             `json:"last_met_condition,omitempty"`
	State            ActivationState      `json:"state"`
	Version          int64                `json:"version"`
}

WatchStatus type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Watch.ts#L49-L56

func NewWatchStatus ¶

func NewWatchStatus() *WatchStatus

NewWatchStatus returns a WatchStatus.

func (*WatchStatus) UnmarshalJSON ¶

func (s *WatchStatus) UnmarshalJSON(data []byte) error

func (*WatchStatus) WatchStatusCaster ¶

func (s *WatchStatus) WatchStatusCaster() *WatchStatus

type WatchStatusVariant ¶

type WatchStatusVariant interface {
	WatchStatusCaster() *WatchStatus
}

type WatchVariant ¶

type WatchVariant interface {
	WatchCaster() *Watch
}

type Watcher ¶

type Watcher struct {
	Available bool           `json:"available"`
	Count     Counter        `json:"count"`
	Enabled   bool           `json:"enabled"`
	Execution WatcherActions `json:"execution"`
	Watch     WatcherWatch   `json:"watch"`
}

Watcher type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L466-L470

func NewWatcher ¶

func NewWatcher() *Watcher

NewWatcher returns a Watcher.

func (*Watcher) UnmarshalJSON ¶

func (s *Watcher) UnmarshalJSON(data []byte) error

type WatcherAction ¶

type WatcherAction struct {
	ActionType             *actiontype.ActionType `json:"action_type,omitempty"`
	Condition              *WatcherCondition      `json:"condition,omitempty"`
	Email                  *EmailAction           `json:"email,omitempty"`
	Foreach                *string                `json:"foreach,omitempty"`
	Index                  *IndexAction           `json:"index,omitempty"`
	Logging                *LoggingAction         `json:"logging,omitempty"`
	MaxIterations          *int                   `json:"max_iterations,omitempty"`
	Name                   *string                `json:"name,omitempty"`
	Pagerduty              *PagerDutyAction       `json:"pagerduty,omitempty"`
	Slack                  *SlackAction           `json:"slack,omitempty"`
	ThrottlePeriod         Duration               `json:"throttle_period,omitempty"`
	ThrottlePeriodInMillis *int64                 `json:"throttle_period_in_millis,omitempty"`
	Transform              *TransformContainer    `json:"transform,omitempty"`
	Webhook                *WebhookAction         `json:"webhook,omitempty"`
}

WatcherAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Action.ts#L35-L54

func NewWatcherAction ¶

func NewWatcherAction() *WatcherAction

NewWatcherAction returns a WatcherAction.

func (*WatcherAction) UnmarshalJSON ¶

func (s *WatcherAction) UnmarshalJSON(data []byte) error

func (*WatcherAction) WatcherActionCaster ¶

func (s *WatcherAction) WatcherActionCaster() *WatcherAction

type WatcherActionTotals ¶

type WatcherActionTotals struct {
	Total         Duration `json:"total"`
	TotalTimeInMs int64    `json:"total_time_in_ms"`
}

WatcherActionTotals type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L418-L421

func NewWatcherActionTotals ¶

func NewWatcherActionTotals() *WatcherActionTotals

NewWatcherActionTotals returns a WatcherActionTotals.

func (*WatcherActionTotals) UnmarshalJSON ¶

func (s *WatcherActionTotals) UnmarshalJSON(data []byte) error

type WatcherActionVariant ¶

type WatcherActionVariant interface {
	WatcherActionCaster() *WatcherAction
}

type WatcherActions ¶

type WatcherActions struct {
	Actions map[string]WatcherActionTotals `json:"actions"`
}

WatcherActions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L402-L404

func NewWatcherActions ¶

func NewWatcherActions() *WatcherActions

NewWatcherActions returns a WatcherActions.

type WatcherCondition ¶

type WatcherCondition struct {
	AdditionalWatcherConditionProperty map[string]json.RawMessage                        `json:"-"`
	Always                             *AlwaysCondition                                  `json:"always,omitempty"`
	ArrayCompare                       map[string]ArrayCompareCondition                  `json:"array_compare,omitempty"`
	Compare                            map[string]map[conditionop.ConditionOp]FieldValue `json:"compare,omitempty"`
	Never                              *NeverCondition                                   `json:"never,omitempty"`
	Script                             *ScriptCondition                                  `json:"script,omitempty"`
}

WatcherCondition type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Conditions.ts#L51-L63

func NewWatcherCondition ¶

func NewWatcherCondition() *WatcherCondition

NewWatcherCondition returns a WatcherCondition.

func (WatcherCondition) MarshalJSON ¶

func (s WatcherCondition) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*WatcherCondition) WatcherConditionCaster ¶

func (s *WatcherCondition) WatcherConditionCaster() *WatcherCondition

type WatcherConditionVariant ¶

type WatcherConditionVariant interface {
	WatcherConditionCaster() *WatcherCondition
}

type WatcherInput ¶

type WatcherInput struct {
	AdditionalWatcherInputProperty map[string]json.RawMessage `json:"-"`
	Chain                          *ChainInput                `json:"chain,omitempty"`
	Http                           *HttpInput                 `json:"http,omitempty"`
	Search                         *SearchInput               `json:"search,omitempty"`
	Simple                         map[string]json.RawMessage `json:"simple,omitempty"`
}

WatcherInput type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Input.ts#L87-L95

func NewWatcherInput ¶

func NewWatcherInput() *WatcherInput

NewWatcherInput returns a WatcherInput.

func (WatcherInput) MarshalJSON ¶

func (s WatcherInput) MarshalJSON() ([]byte, error)

MarhsalJSON overrides marshalling for types with additional properties

func (*WatcherInput) WatcherInputCaster ¶

func (s *WatcherInput) WatcherInputCaster() *WatcherInput

type WatcherInputVariant ¶

type WatcherInputVariant interface {
	WatcherInputCaster() *WatcherInput
}

type WatcherNodeStats ¶

type WatcherNodeStats struct {
	// CurrentWatches The current executing watches metric gives insight into the watches that are
	// currently being executed by Watcher.
	// Additional information is shared per watch that is currently executing.
	// This information includes the `watch_id`, the time its execution started and
	// its current execution phase.
	// To include this metric, the `metric` option should be set to
	// `current_watches` or `_all`.
	// In addition you can also specify the `emit_stacktraces=true` parameter, which
	// adds stack traces for each watch that is being run.
	// These stack traces can give you more insight into an execution of a watch.
	CurrentWatches      []WatchRecordStats  `json:"current_watches,omitempty"`
	ExecutionThreadPool ExecutionThreadPool `json:"execution_thread_pool"`
	NodeId              string              `json:"node_id"`
	// QueuedWatches Watcher moderates the execution of watches such that their execution won't
	// put too much pressure on the node and its resources.
	// If too many watches trigger concurrently and there isn't enough capacity to
	// run them all, some of the watches are queued, waiting for the current running
	// watches to finish.s
	// The queued watches metric gives insight on these queued watches.
	//
	// To include this metric, the `metric` option should include `queued_watches`
	// or `_all`.
	QueuedWatches []WatchRecordQueuedStats `json:"queued_watches,omitempty"`
	// WatchCount The number of watches currently registered.
	WatchCount int64 `json:"watch_count"`
	// WatcherState The current state of Watcher.
	WatcherState watcherstate.WatcherState `json:"watcher_state"`
}

WatcherNodeStats type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/stats/types.ts#L33-L61

func NewWatcherNodeStats ¶

func NewWatcherNodeStats() *WatcherNodeStats

NewWatcherNodeStats returns a WatcherNodeStats.

func (*WatcherNodeStats) UnmarshalJSON ¶

func (s *WatcherNodeStats) UnmarshalJSON(data []byte) error

type WatcherStatusActionsVariant ¶

type WatcherStatusActionsVariant interface {
	WatcherStatusActionsCaster() *WatcherStatusActions
}

type WatcherWatch ¶

type WatcherWatch struct {
	Action    map[string]Counter  `json:"action,omitempty"`
	Condition map[string]Counter  `json:"condition,omitempty"`
	Input     map[string]Counter  `json:"input"`
	Trigger   WatcherWatchTrigger `json:"trigger"`
}

WatcherWatch type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L406-L411

func NewWatcherWatch ¶

func NewWatcherWatch() *WatcherWatch

NewWatcherWatch returns a WatcherWatch.

type WatcherWatchTrigger ¶

type WatcherWatchTrigger struct {
	All_     Counter                      `json:"_all"`
	Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"`
}

WatcherWatchTrigger type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L413-L416

func NewWatcherWatchTrigger ¶

func NewWatcherWatchTrigger() *WatcherWatchTrigger

NewWatcherWatchTrigger returns a WatcherWatchTrigger.

type WatcherWatchTriggerSchedule ¶

type WatcherWatchTriggerSchedule struct {
	Active int64   `json:"active"`
	All_   Counter `json:"_all"`
	Cron   Counter `json:"cron"`
	Total  int64   `json:"total"`
}

WatcherWatchTriggerSchedule type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L472-L475

func NewWatcherWatchTriggerSchedule ¶

func NewWatcherWatchTriggerSchedule() *WatcherWatchTriggerSchedule

NewWatcherWatchTriggerSchedule returns a WatcherWatchTriggerSchedule.

func (*WatcherWatchTriggerSchedule) UnmarshalJSON ¶

func (s *WatcherWatchTriggerSchedule) UnmarshalJSON(data []byte) error

type WatsonxServiceSettings ¶

type WatsonxServiceSettings struct {
	// ApiKey A valid API key of your Watsonx account.
	// You can find your Watsonx API keys or you can create a new one on the API
	// keys page.
	//
	// IMPORTANT: You need to provide the API key only once, during the inference
	// model creation.
	// The get inference endpoint API does not retrieve your API key.
	// After creating the inference model, you cannot change the associated API key.
	// If you want to use a different API key, delete the inference model and
	// recreate it with the same name and the updated API key.
	ApiKey string `json:"api_key"`
	// ApiVersion A version parameter that takes a version date in the format of `YYYY-MM-DD`.
	// For the active version data parameters, refer to the Wastonx documentation.
	ApiVersion string `json:"api_version"`
	// ModelId The name of the model to use for the inference task.
	// Refer to the IBM Embedding Models section in the Watsonx documentation for
	// the list of available text embedding models.
	// Refer to the IBM library - Foundation models in Watsonx.ai.
	ModelId string `json:"model_id"`
	// ProjectId The identifier of the IBM Cloud project to use for the inference task.
	ProjectId string `json:"project_id"`
	// RateLimit This setting helps to minimize the number of rate limit errors returned from
	// Watsonx.
	// By default, the `watsonxai` service sets the number of requests allowed per
	// minute to 120.
	RateLimit *RateLimitSetting `json:"rate_limit,omitempty"`
	// Url The URL of the inference endpoint that you created on Watsonx.
	Url string `json:"url"`
}

WatsonxServiceSettings type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/inference/_types/CommonTypes.ts#L1684-L1722

func NewWatsonxServiceSettings ¶

func NewWatsonxServiceSettings() *WatsonxServiceSettings

NewWatsonxServiceSettings returns a WatsonxServiceSettings.

func (*WatsonxServiceSettings) UnmarshalJSON ¶

func (s *WatsonxServiceSettings) UnmarshalJSON(data []byte) error

func (*WatsonxServiceSettings) WatsonxServiceSettingsCaster ¶

func (s *WatsonxServiceSettings) WatsonxServiceSettingsCaster() *WatsonxServiceSettings

type WatsonxServiceSettingsVariant ¶

type WatsonxServiceSettingsVariant interface {
	WatsonxServiceSettingsCaster() *WatsonxServiceSettings
}

type WebhookAction ¶

type WebhookAction struct {
	Auth              *HttpInputAuthentication           `json:"auth,omitempty"`
	Body              *string                            `json:"body,omitempty"`
	ConnectionTimeout Duration                           `json:"connection_timeout,omitempty"`
	Headers           map[string]string                  `json:"headers,omitempty"`
	Host              *string                            `json:"host,omitempty"`
	Method            *httpinputmethod.HttpInputMethod   `json:"method,omitempty"`
	Params            map[string]string                  `json:"params,omitempty"`
	Path              *string                            `json:"path,omitempty"`
	Port              *uint                              `json:"port,omitempty"`
	Proxy             *HttpInputProxy                    `json:"proxy,omitempty"`
	ReadTimeout       Duration                           `json:"read_timeout,omitempty"`
	Scheme            *connectionscheme.ConnectionScheme `json:"scheme,omitempty"`
	Url               *string                            `json:"url,omitempty"`
}

WebhookAction type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L293-L293

func NewWebhookAction ¶

func NewWebhookAction() *WebhookAction

NewWebhookAction returns a WebhookAction.

func (*WebhookAction) UnmarshalJSON ¶

func (s *WebhookAction) UnmarshalJSON(data []byte) error

func (*WebhookAction) WebhookActionCaster ¶

func (s *WebhookAction) WebhookActionCaster() *WebhookAction

type WebhookActionVariant ¶

type WebhookActionVariant interface {
	WebhookActionCaster() *WebhookAction
}

type WebhookResult ¶

type WebhookResult struct {
	Request  HttpInputRequestResult   `json:"request"`
	Response *HttpInputResponseResult `json:"response,omitempty"`
}

WebhookResult type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/watcher/_types/Actions.ts#L295-L298

func NewWebhookResult ¶

func NewWebhookResult() *WebhookResult

NewWebhookResult returns a WebhookResult.

type WeightedAverageAggregation ¶

type WeightedAverageAggregation struct {
	// Format A numeric response formatter.
	Format *string `json:"format,omitempty"`
	// Value Configuration for the field that provides the values.
	Value     *WeightedAverageValue `json:"value,omitempty"`
	ValueType *valuetype.ValueType  `json:"value_type,omitempty"`
	// Weight Configuration for the field or script that provides the weights.
	Weight *WeightedAverageValue `json:"weight,omitempty"`
}

WeightedAverageAggregation type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L472-L486

func NewWeightedAverageAggregation ¶

func NewWeightedAverageAggregation() *WeightedAverageAggregation

NewWeightedAverageAggregation returns a WeightedAverageAggregation.

func (*WeightedAverageAggregation) UnmarshalJSON ¶

func (s *WeightedAverageAggregation) UnmarshalJSON(data []byte) error

func (*WeightedAverageAggregation) WeightedAverageAggregationCaster ¶

func (s *WeightedAverageAggregation) WeightedAverageAggregationCaster() *WeightedAverageAggregation

type WeightedAverageAggregationVariant ¶

type WeightedAverageAggregationVariant interface {
	WeightedAverageAggregationCaster() *WeightedAverageAggregation
}

type WeightedAverageValue ¶

type WeightedAverageValue struct {
	// Field The field from which to extract the values or weights.
	Field *string `json:"field,omitempty"`
	// Missing A value or weight to use if the field is missing.
	Missing *Float64 `json:"missing,omitempty"`
	Script  *Script  `json:"script,omitempty"`
}

WeightedAverageValue type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/metric.ts#L488-L498

func NewWeightedAverageValue ¶

func NewWeightedAverageValue() *WeightedAverageValue

NewWeightedAverageValue returns a WeightedAverageValue.

func (*WeightedAverageValue) UnmarshalJSON ¶

func (s *WeightedAverageValue) UnmarshalJSON(data []byte) error

func (*WeightedAverageValue) WeightedAverageValueCaster ¶

func (s *WeightedAverageValue) WeightedAverageValueCaster() *WeightedAverageValue

type WeightedAverageValueVariant ¶

type WeightedAverageValueVariant interface {
	WeightedAverageValueCaster() *WeightedAverageValue
}

type WeightedAvgAggregate ¶

type WeightedAvgAggregate struct {
	Meta Metadata `json:"meta,omitempty"`
	// Value The metric value. A missing value generally means that there was no data to
	// aggregate,
	// unless specified otherwise.
	Value         *Float64 `json:"value,omitempty"`
	ValueAsString *string  `json:"value_as_string,omitempty"`
}

WeightedAvgAggregate type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/aggregations/Aggregate.ts#L224-L229

func NewWeightedAvgAggregate ¶

func NewWeightedAvgAggregate() *WeightedAvgAggregate

NewWeightedAvgAggregate returns a WeightedAvgAggregate.

func (*WeightedAvgAggregate) UnmarshalJSON ¶

func (s *WeightedAvgAggregate) UnmarshalJSON(data []byte) error

type WeightedTokensQuery ¶

type WeightedTokensQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// PruningConfig Token pruning configurations
	PruningConfig *TokenPruningConfig `json:"pruning_config,omitempty"`
	QueryName_    *string             `json:"_name,omitempty"`
	// Tokens The tokens representing this query
	Tokens []map[string]float32 `json:"tokens"`
}

WeightedTokensQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33

func NewWeightedTokensQuery ¶

func NewWeightedTokensQuery() *WeightedTokensQuery

NewWeightedTokensQuery returns a WeightedTokensQuery.

func (*WeightedTokensQuery) UnmarshalJSON ¶

func (s *WeightedTokensQuery) UnmarshalJSON(data []byte) error

func (*WeightedTokensQuery) WeightedTokensQueryCaster ¶

func (s *WeightedTokensQuery) WeightedTokensQueryCaster() *WeightedTokensQuery

type WeightedTokensQueryVariant ¶

type WeightedTokensQueryVariant interface {
	WeightedTokensQueryCaster() *WeightedTokensQuery
}

type Weights ¶

type Weights struct {
	Weights Float64 `json:"weights"`
}

Weights type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/put_trained_model/types.ts#L108-L110

func NewWeights ¶

func NewWeights() *Weights

NewWeights returns a Weights.

func (*Weights) UnmarshalJSON ¶

func (s *Weights) UnmarshalJSON(data []byte) error

func (*Weights) WeightsCaster ¶

func (s *Weights) WeightsCaster() *Weights

type WeightsVariant ¶

type WeightsVariant interface {
	WeightsCaster() *Weights
}

type WhitespaceAnalyzer ¶

type WhitespaceAnalyzer struct {
	Type    string  `json:"type,omitempty"`
	Version *string `json:"version,omitempty"`
}

WhitespaceAnalyzer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/analyzers.ts#L421-L425

func NewWhitespaceAnalyzer ¶

func NewWhitespaceAnalyzer() *WhitespaceAnalyzer

NewWhitespaceAnalyzer returns a WhitespaceAnalyzer.

func (*WhitespaceAnalyzer) AnalyzerCaster ¶ added in v9.0.1

func (s *WhitespaceAnalyzer) AnalyzerCaster() *Analyzer

func (WhitespaceAnalyzer) MarshalJSON ¶

func (s WhitespaceAnalyzer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*WhitespaceAnalyzer) UnmarshalJSON ¶

func (s *WhitespaceAnalyzer) UnmarshalJSON(data []byte) error

func (*WhitespaceAnalyzer) WhitespaceAnalyzerCaster ¶

func (s *WhitespaceAnalyzer) WhitespaceAnalyzerCaster() *WhitespaceAnalyzer

type WhitespaceAnalyzerVariant ¶

type WhitespaceAnalyzerVariant interface {
	WhitespaceAnalyzerCaster() *WhitespaceAnalyzer
}

type WhitespaceTokenizer ¶

type WhitespaceTokenizer struct {
	MaxTokenLength *int    `json:"max_token_length,omitempty"`
	Type           string  `json:"type,omitempty"`
	Version        *string `json:"version,omitempty"`
}

WhitespaceTokenizer type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/tokenizers.ts#L137-L140

func NewWhitespaceTokenizer ¶

func NewWhitespaceTokenizer() *WhitespaceTokenizer

NewWhitespaceTokenizer returns a WhitespaceTokenizer.

func (WhitespaceTokenizer) MarshalJSON ¶

func (s WhitespaceTokenizer) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*WhitespaceTokenizer) TokenizerDefinitionCaster ¶ added in v9.0.1

func (s *WhitespaceTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition

func (*WhitespaceTokenizer) UnmarshalJSON ¶

func (s *WhitespaceTokenizer) UnmarshalJSON(data []byte) error

func (*WhitespaceTokenizer) WhitespaceTokenizerCaster ¶

func (s *WhitespaceTokenizer) WhitespaceTokenizerCaster() *WhitespaceTokenizer

type WhitespaceTokenizerVariant ¶

type WhitespaceTokenizerVariant interface {
	WhitespaceTokenizerCaster() *WhitespaceTokenizer
}

type WildcardProperty ¶

type WildcardProperty struct {
	CopyTo      []string                       `json:"copy_to,omitempty"`
	DocValues   *bool                          `json:"doc_values,omitempty"`
	Dynamic     *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"`
	Fields      map[string]Property            `json:"fields,omitempty"`
	IgnoreAbove *int                           `json:"ignore_above,omitempty"`
	// Meta Metadata about the field.
	Meta                map[string]string                                `json:"meta,omitempty"`
	NullValue           *string                                          `json:"null_value,omitempty"`
	Properties          map[string]Property                              `json:"properties,omitempty"`
	Store               *bool                                            `json:"store,omitempty"`
	SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"`
	Type                string                                           `json:"type,omitempty"`
}

WildcardProperty type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/mapping/core.ts#L344-L351

func NewWildcardProperty ¶

func NewWildcardProperty() *WildcardProperty

NewWildcardProperty returns a WildcardProperty.

func (WildcardProperty) MarshalJSON ¶

func (s WildcardProperty) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*WildcardProperty) PropertyCaster ¶ added in v9.0.1

func (s *WildcardProperty) PropertyCaster() *Property

func (*WildcardProperty) UnmarshalJSON ¶

func (s *WildcardProperty) UnmarshalJSON(data []byte) error

func (*WildcardProperty) WildcardPropertyCaster ¶

func (s *WildcardProperty) WildcardPropertyCaster() *WildcardProperty

type WildcardPropertyVariant ¶

type WildcardPropertyVariant interface {
	WildcardPropertyCaster() *WildcardProperty
}

type WildcardQuery ¶

type WildcardQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// CaseInsensitive Allows case insensitive matching of the pattern with the indexed field values
	// when set to true. Default is false which means the case sensitivity of
	// matching depends on the underlying field’s mapping.
	CaseInsensitive *bool   `json:"case_insensitive,omitempty"`
	QueryName_      *string `json:"_name,omitempty"`
	// Rewrite Method used to rewrite the query.
	Rewrite *string `json:"rewrite,omitempty"`
	// Value Wildcard pattern for terms you wish to find in the provided field. Required,
	// when wildcard is not set.
	Value *string `json:"value,omitempty"`
	// Wildcard Wildcard pattern for terms you wish to find in the provided field. Required,
	// when value is not set.
	Wildcard *string `json:"wildcard,omitempty"`
}

WildcardQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/term.ts#L301-L321

func NewWildcardQuery ¶

func NewWildcardQuery() *WildcardQuery

NewWildcardQuery returns a WildcardQuery.

func (*WildcardQuery) UnmarshalJSON ¶

func (s *WildcardQuery) UnmarshalJSON(data []byte) error

func (*WildcardQuery) WildcardQueryCaster ¶

func (s *WildcardQuery) WildcardQueryCaster() *WildcardQuery

type WildcardQueryVariant ¶

type WildcardQueryVariant interface {
	WildcardQueryCaster() *WildcardQuery
}

type WktGeoBounds ¶

type WktGeoBounds struct {
	Wkt string `json:"wkt"`
}

WktGeoBounds type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Geo.ts#L150-L152

func NewWktGeoBounds ¶

func NewWktGeoBounds() *WktGeoBounds

NewWktGeoBounds returns a WktGeoBounds.

func (*WktGeoBounds) GeoBoundsCaster ¶ added in v9.0.1

func (s *WktGeoBounds) GeoBoundsCaster() *GeoBounds

func (*WktGeoBounds) UnmarshalJSON ¶

func (s *WktGeoBounds) UnmarshalJSON(data []byte) error

func (*WktGeoBounds) WktGeoBoundsCaster ¶

func (s *WktGeoBounds) WktGeoBoundsCaster() *WktGeoBounds

type WktGeoBoundsVariant ¶

type WktGeoBoundsVariant interface {
	WktGeoBoundsCaster() *WktGeoBounds
}

type WordDelimiterGraphTokenFilter ¶

type WordDelimiterGraphTokenFilter struct {
	// AdjustOffsets If `true`, the filter adjusts the offsets of split or catenated tokens to
	// better reflect their actual position in the token stream. Defaults to `true`.
	AdjustOffsets *bool `json:"adjust_offsets,omitempty"`
	// CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateAll *bool `json:"catenate_all,omitempty"`
	// CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateNumbers *bool `json:"catenate_numbers,omitempty"`
	// CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateWords *bool `json:"catenate_words,omitempty"`
	// GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters
	// in the output. If `false`, the filter excludes these tokens from the output.
	// Defaults to `true`.
	GenerateNumberParts *bool `json:"generate_number_parts,omitempty"`
	// GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical
	// characters in the output. If `false`, the filter excludes these tokens from
	// the output. Defaults to `true`.
	GenerateWordParts *bool `json:"generate_word_parts,omitempty"`
	// IgnoreKeywords If `true`, the filter skips tokens with a keyword attribute of true. Defaults
	// to `false`.
	IgnoreKeywords *bool `json:"ignore_keywords,omitempty"`
	// PreserveOriginal If `true`, the filter includes the original version of any split tokens in
	// the output. This original version includes non-alphanumeric delimiters.
	// Defaults to `false`.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	// ProtectedWords Array of tokens the filter won’t split.
	ProtectedWords []string `json:"protected_words,omitempty"`
	// ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each token in the file must be separated by a line
	// break.
	ProtectedWordsPath *string `json:"protected_words_path,omitempty"`
	// SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example:
	// camelCase -> [ camel, Case ]. Defaults to `true`.
	SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"`
	// SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For
	// example: j2se -> [ j, 2, se ]. Defaults to `true`.
	SplitOnNumerics *bool `json:"split_on_numerics,omitempty"`
	// StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of
	// each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.
	StemEnglishPossessive *bool  `json:"stem_english_possessive,omitempty"`
	Type                  string `json:"type,omitempty"`
	// TypeTable Array of custom type mappings for characters. This allows you to map
	// non-alphanumeric characters as numeric or alphanumeric to avoid splitting on
	// those characters.
	TypeTable []string `json:"type_table,omitempty"`
	// TypeTablePath Path to a file that contains custom type mappings for characters. This allows
	// you to map non-alphanumeric characters as numeric or alphanumeric to avoid
	// splitting on those characters.
	TypeTablePath *string `json:"type_table_path,omitempty"`
	Version       *string `json:"version,omitempty"`
}

WordDelimiterGraphTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L205-L211

func NewWordDelimiterGraphTokenFilter ¶

func NewWordDelimiterGraphTokenFilter() *WordDelimiterGraphTokenFilter

NewWordDelimiterGraphTokenFilter returns a WordDelimiterGraphTokenFilter.

func (WordDelimiterGraphTokenFilter) MarshalJSON ¶

func (s WordDelimiterGraphTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*WordDelimiterGraphTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *WordDelimiterGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*WordDelimiterGraphTokenFilter) UnmarshalJSON ¶

func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error

func (*WordDelimiterGraphTokenFilter) WordDelimiterGraphTokenFilterCaster ¶

func (s *WordDelimiterGraphTokenFilter) WordDelimiterGraphTokenFilterCaster() *WordDelimiterGraphTokenFilter

type WordDelimiterGraphTokenFilterVariant ¶

type WordDelimiterGraphTokenFilterVariant interface {
	WordDelimiterGraphTokenFilterCaster() *WordDelimiterGraphTokenFilter
}

type WordDelimiterTokenFilter ¶

type WordDelimiterTokenFilter struct {
	// CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateAll *bool `json:"catenate_all,omitempty"`
	// CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateNumbers *bool `json:"catenate_numbers,omitempty"`
	// CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical
	// characters separated by non-alphabetic delimiters. Defaults to `false`.
	CatenateWords *bool `json:"catenate_words,omitempty"`
	// GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters
	// in the output. If `false`, the filter excludes these tokens from the output.
	// Defaults to `true`.
	GenerateNumberParts *bool `json:"generate_number_parts,omitempty"`
	// GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical
	// characters in the output. If `false`, the filter excludes these tokens from
	// the output. Defaults to `true`.
	GenerateWordParts *bool `json:"generate_word_parts,omitempty"`
	// PreserveOriginal If `true`, the filter includes the original version of any split tokens in
	// the output. This original version includes non-alphanumeric delimiters.
	// Defaults to `false`.
	PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"`
	// ProtectedWords Array of tokens the filter won’t split.
	ProtectedWords []string `json:"protected_words,omitempty"`
	// ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split.
	// This path must be absolute or relative to the `config` location, and the file
	// must be UTF-8 encoded. Each token in the file must be separated by a line
	// break.
	ProtectedWordsPath *string `json:"protected_words_path,omitempty"`
	// SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example:
	// camelCase -> [ camel, Case ]. Defaults to `true`.
	SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"`
	// SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For
	// example: j2se -> [ j, 2, se ]. Defaults to `true`.
	SplitOnNumerics *bool `json:"split_on_numerics,omitempty"`
	// StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of
	// each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.
	StemEnglishPossessive *bool  `json:"stem_english_possessive,omitempty"`
	Type                  string `json:"type,omitempty"`
	// TypeTable Array of custom type mappings for characters. This allows you to map
	// non-alphanumeric characters as numeric or alphanumeric to avoid splitting on
	// those characters.
	TypeTable []string `json:"type_table,omitempty"`
	// TypeTablePath Path to a file that contains custom type mappings for characters. This allows
	// you to map non-alphanumeric characters as numeric or alphanumeric to avoid
	// splitting on those characters.
	TypeTablePath *string `json:"type_table_path,omitempty"`
	Version       *string `json:"version,omitempty"`
}

WordDelimiterTokenFilter type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/analysis/token_filters.ts#L201-L203

func NewWordDelimiterTokenFilter ¶

func NewWordDelimiterTokenFilter() *WordDelimiterTokenFilter

NewWordDelimiterTokenFilter returns a WordDelimiterTokenFilter.

func (WordDelimiterTokenFilter) MarshalJSON ¶

func (s WordDelimiterTokenFilter) MarshalJSON() ([]byte, error)

MarshalJSON override marshalling to include literal value

func (*WordDelimiterTokenFilter) TokenFilterDefinitionCaster ¶ added in v9.0.1

func (s *WordDelimiterTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition

func (*WordDelimiterTokenFilter) UnmarshalJSON ¶

func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error

func (*WordDelimiterTokenFilter) WordDelimiterTokenFilterCaster ¶

func (s *WordDelimiterTokenFilter) WordDelimiterTokenFilterCaster() *WordDelimiterTokenFilter

type WordDelimiterTokenFilterVariant ¶

type WordDelimiterTokenFilterVariant interface {
	WordDelimiterTokenFilterCaster() *WordDelimiterTokenFilter
}

type WrapperQuery ¶

type WrapperQuery struct {
	// Boost Floating point number used to decrease or increase the relevance scores of
	// the query.
	// Boost values are relative to the default value of 1.0.
	// A boost value between 0 and 1.0 decreases the relevance score.
	// A value greater than 1.0 increases the relevance score.
	Boost *float32 `json:"boost,omitempty"`
	// Query A base64 encoded query.
	// The binary data format can be any of JSON, YAML, CBOR or SMILE encodings
	Query      string  `json:"query"`
	QueryName_ *string `json:"_name,omitempty"`
}

WrapperQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/query_dsl/abstractions.ts#L508-L517

func NewWrapperQuery ¶

func NewWrapperQuery() *WrapperQuery

NewWrapperQuery returns a WrapperQuery.

func (*WrapperQuery) UnmarshalJSON ¶

func (s *WrapperQuery) UnmarshalJSON(data []byte) error

func (*WrapperQuery) WrapperQueryCaster ¶

func (s *WrapperQuery) WrapperQueryCaster() *WrapperQuery

type WrapperQueryVariant ¶

type WrapperQueryVariant interface {
	WrapperQueryCaster() *WrapperQuery
}

type WriteResponseBase ¶ added in v9.0.1

type WriteResponseBase struct {
	ForcedRefresh *bool `json:"forced_refresh,omitempty"`
	// Id_ The unique identifier for the added document.
	Id_ string `json:"_id"`
	// Index_ The name of the index the document was added to.
	Index_ string `json:"_index"`
	// PrimaryTerm_ The primary term assigned to the document for the indexing operation.
	PrimaryTerm_ *int64 `json:"_primary_term,omitempty"`
	// Result The result of the indexing operation: `created` or `updated`.
	Result result.Result `json:"result"`
	// SeqNo_ The sequence number assigned to the document for the indexing operation.
	// Sequence numbers are used to ensure an older version of a document doesn't
	// overwrite a newer version.
	SeqNo_ *int64 `json:"_seq_no,omitempty"`
	// Shards_ Information about the replication process of the operation.
	Shards_ ShardStatistics `json:"_shards"`
	// Version_ The document version, which is incremented each time the document is updated.
	Version_ int64 `json:"_version"`
}

WriteResponseBase type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/_types/Base.ts#L36-L67

func NewWriteResponseBase ¶ added in v9.0.1

func NewWriteResponseBase() *WriteResponseBase

NewWriteResponseBase returns a WriteResponseBase.

func (*WriteResponseBase) UnmarshalJSON ¶ added in v9.0.1

func (s *WriteResponseBase) UnmarshalJSON(data []byte) error

type WriteSummaryInfo ¶

type WriteSummaryInfo struct {
	// Count The number of write operations performed in the test.
	Count int `json:"count"`
	// TotalElapsed The total elapsed time spent on writing blobs in the test.
	TotalElapsed Duration `json:"total_elapsed"`
	// TotalElapsedNanos The total elapsed time spent on writing blobs in the test, in nanoseconds.
	TotalElapsedNanos int64 `json:"total_elapsed_nanos"`
	// TotalSize The total size of all the blobs written in the test.
	TotalSize ByteSize `json:"total_size"`
	// TotalSizeBytes The total size of all the blobs written in the test, in bytes.
	TotalSizeBytes int64 `json:"total_size_bytes"`
	// TotalThrottled The total time spent waiting due to the `max_snapshot_bytes_per_sec`
	// throttle.
	TotalThrottled Duration `json:"total_throttled"`
	// TotalThrottledNanos The total time spent waiting due to the `max_snapshot_bytes_per_sec`
	// throttle, in nanoseconds.
	TotalThrottledNanos int64 `json:"total_throttled_nanos"`
}

WriteSummaryInfo type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191

func NewWriteSummaryInfo ¶

func NewWriteSummaryInfo() *WriteSummaryInfo

NewWriteSummaryInfo returns a WriteSummaryInfo.

func (*WriteSummaryInfo) UnmarshalJSON ¶

func (s *WriteSummaryInfo) UnmarshalJSON(data []byte) error

type XlmRobertaTokenizationConfig ¶

type XlmRobertaTokenizationConfig struct {
	// DoLowerCase Should the tokenizer lower case the text
	DoLowerCase *bool `json:"do_lower_case,omitempty"`
	// MaxSequenceLength Maximum input sequence length for the model
	MaxSequenceLength *int `json:"max_sequence_length,omitempty"`
	// Span Tokenization spanning options. Special value of -1 indicates no spanning
	// takes place
	Span *int `json:"span,omitempty"`
	// Truncate Should tokenization input be automatically truncated before sending to the
	// model for inference
	Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"`
	// WithSpecialTokens Is tokenization completed with special tokens
	WithSpecialTokens *bool `json:"with_special_tokens,omitempty"`
}

XlmRobertaTokenizationConfig type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L200-L200

func NewXlmRobertaTokenizationConfig ¶

func NewXlmRobertaTokenizationConfig() *XlmRobertaTokenizationConfig

NewXlmRobertaTokenizationConfig returns a XlmRobertaTokenizationConfig.

func (*XlmRobertaTokenizationConfig) UnmarshalJSON ¶

func (s *XlmRobertaTokenizationConfig) UnmarshalJSON(data []byte) error

func (*XlmRobertaTokenizationConfig) XlmRobertaTokenizationConfigCaster ¶

func (s *XlmRobertaTokenizationConfig) XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig

type XlmRobertaTokenizationConfigVariant ¶

type XlmRobertaTokenizationConfigVariant interface {
	XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig
}

type XpackDatafeed ¶

type XpackDatafeed struct {
	Count int64 `json:"count"`
}

XpackDatafeed type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L74-L76

func NewXpackDatafeed ¶

func NewXpackDatafeed() *XpackDatafeed

NewXpackDatafeed returns a XpackDatafeed.

func (*XpackDatafeed) UnmarshalJSON ¶

func (s *XpackDatafeed) UnmarshalJSON(data []byte) error

type XpackFeature ¶

type XpackFeature struct {
	Available      bool                   `json:"available"`
	Description    *string                `json:"description,omitempty"`
	Enabled        bool                   `json:"enabled"`
	NativeCodeInfo *NativeCodeInformation `json:"native_code_info,omitempty"`
}

XpackFeature type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/info/types.ts#L84-L89

func NewXpackFeature ¶

func NewXpackFeature() *XpackFeature

NewXpackFeature returns a XpackFeature.

func (*XpackFeature) UnmarshalJSON ¶

func (s *XpackFeature) UnmarshalJSON(data []byte) error

type XpackFeatures ¶

type XpackFeatures struct {
	AggregateMetric     XpackFeature  `json:"aggregate_metric"`
	Analytics           XpackFeature  `json:"analytics"`
	Archive             XpackFeature  `json:"archive"`
	Ccr                 XpackFeature  `json:"ccr"`
	DataStreams         XpackFeature  `json:"data_streams"`
	DataTiers           XpackFeature  `json:"data_tiers"`
	Enrich              XpackFeature  `json:"enrich"`
	EnterpriseSearch    XpackFeature  `json:"enterprise_search"`
	Eql                 XpackFeature  `json:"eql"`
	Esql                XpackFeature  `json:"esql"`
	Graph               XpackFeature  `json:"graph"`
	Ilm                 XpackFeature  `json:"ilm"`
	Logsdb              XpackFeature  `json:"logsdb"`
	Logstash            XpackFeature  `json:"logstash"`
	Ml                  XpackFeature  `json:"ml"`
	Monitoring          XpackFeature  `json:"monitoring"`
	Rollup              XpackFeature  `json:"rollup"`
	RuntimeFields       *XpackFeature `json:"runtime_fields,omitempty"`
	SearchableSnapshots XpackFeature  `json:"searchable_snapshots"`
	Security            XpackFeature  `json:"security"`
	Slm                 XpackFeature  `json:"slm"`
	Spatial             XpackFeature  `json:"spatial"`
	Sql                 XpackFeature  `json:"sql"`
	Transform           XpackFeature  `json:"transform"`
	UniversalProfiling  XpackFeature  `json:"universal_profiling"`
	VotingOnly          XpackFeature  `json:"voting_only"`
	Watcher             XpackFeature  `json:"watcher"`
}

XpackFeatures type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/info/types.ts#L42-L82

func NewXpackFeatures ¶

func NewXpackFeatures() *XpackFeatures

NewXpackFeatures returns a XpackFeatures.

type XpackQuery ¶

type XpackQuery struct {
	Count  *int `json:"count,omitempty"`
	Failed *int `json:"failed,omitempty"`
	Paging *int `json:"paging,omitempty"`
	Total  *int `json:"total,omitempty"`
}

XpackQuery type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L269-L274

func NewXpackQuery ¶

func NewXpackQuery() *XpackQuery

NewXpackQuery returns a XpackQuery.

func (*XpackQuery) UnmarshalJSON ¶

func (s *XpackQuery) UnmarshalJSON(data []byte) error

type XpackRealm ¶

type XpackRealm struct {
	Available                 bool         `json:"available"`
	Cache                     []RealmCache `json:"cache,omitempty"`
	Enabled                   bool         `json:"enabled"`
	HasAuthorizationRealms    []bool       `json:"has_authorization_realms,omitempty"`
	HasDefaultUsernamePattern []bool       `json:"has_default_username_pattern,omitempty"`
	HasTruststore             []bool       `json:"has_truststore,omitempty"`
	IsAuthenticationDelegated []bool       `json:"is_authentication_delegated,omitempty"`
	Name                      []string     `json:"name,omitempty"`
	Order                     []int64      `json:"order,omitempty"`
	Size                      []int64      `json:"size,omitempty"`
}

XpackRealm type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L423-L432

func NewXpackRealm ¶

func NewXpackRealm() *XpackRealm

NewXpackRealm returns a XpackRealm.

func (*XpackRealm) UnmarshalJSON ¶

func (s *XpackRealm) UnmarshalJSON(data []byte) error

type XpackRoleMapping ¶

type XpackRoleMapping struct {
	Enabled int `json:"enabled"`
	Size    int `json:"size"`
}

XpackRoleMapping type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L280-L283

func NewXpackRoleMapping ¶

func NewXpackRoleMapping() *XpackRoleMapping

NewXpackRoleMapping returns a XpackRoleMapping.

func (*XpackRoleMapping) UnmarshalJSON ¶

func (s *XpackRoleMapping) UnmarshalJSON(data []byte) error

type XpackRuntimeFieldTypes ¶

type XpackRuntimeFieldTypes struct {
	Available  bool                `json:"available"`
	Enabled    bool                `json:"enabled"`
	FieldTypes []RuntimeFieldsType `json:"field_types"`
}

XpackRuntimeFieldTypes type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/xpack/usage/types.ts#L285-L287

func NewXpackRuntimeFieldTypes ¶

func NewXpackRuntimeFieldTypes() *XpackRuntimeFieldTypes

NewXpackRuntimeFieldTypes returns a XpackRuntimeFieldTypes.

func (*XpackRuntimeFieldTypes) UnmarshalJSON ¶

func (s *XpackRuntimeFieldTypes) UnmarshalJSON(data []byte) error

type ZeroShotClassificationInferenceOptions ¶

type ZeroShotClassificationInferenceOptions struct {
	// ClassificationLabels The zero shot classification labels indicating entailment, neutral, and
	// contradiction
	// Must contain exactly and only entailment, neutral, and contradiction
	ClassificationLabels []string `json:"classification_labels"`
	// HypothesisTemplate Hypothesis template used when tokenizing labels for prediction
	HypothesisTemplate *string `json:"hypothesis_template,omitempty"`
	// Labels The labels to predict.
	Labels []string `json:"labels,omitempty"`
	// MultiLabel Indicates if more than one true label exists.
	MultiLabel *bool `json:"multi_label,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"`
}

ZeroShotClassificationInferenceOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L216-L237

func NewZeroShotClassificationInferenceOptions ¶

func NewZeroShotClassificationInferenceOptions() *ZeroShotClassificationInferenceOptions

NewZeroShotClassificationInferenceOptions returns a ZeroShotClassificationInferenceOptions.

func (*ZeroShotClassificationInferenceOptions) UnmarshalJSON ¶

func (s *ZeroShotClassificationInferenceOptions) UnmarshalJSON(data []byte) error

func (*ZeroShotClassificationInferenceOptions) ZeroShotClassificationInferenceOptionsCaster ¶

func (s *ZeroShotClassificationInferenceOptions) ZeroShotClassificationInferenceOptionsCaster() *ZeroShotClassificationInferenceOptions

type ZeroShotClassificationInferenceOptionsVariant ¶

type ZeroShotClassificationInferenceOptionsVariant interface {
	ZeroShotClassificationInferenceOptionsCaster() *ZeroShotClassificationInferenceOptions
}

type ZeroShotClassificationInferenceUpdateOptions ¶

type ZeroShotClassificationInferenceUpdateOptions struct {
	// Labels The labels to predict.
	Labels []string `json:"labels"`
	// MultiLabel Update the configured multi label option. Indicates if more than one true
	// label exists. Defaults to the configured value.
	MultiLabel *bool `json:"multi_label,omitempty"`
	// ResultsField The field that is added to incoming documents to contain the inference
	// prediction. Defaults to predicted_value.
	ResultsField *string `json:"results_field,omitempty"`
	// Tokenization The tokenization options to update when inferring
	Tokenization *NlpTokenizationUpdateOptions `json:"tokenization,omitempty"`
}

ZeroShotClassificationInferenceUpdateOptions type.

https://github.com/elastic/elasticsearch-specification/blob/907d11a72a6bfd37b777d526880c56202889609e/specification/ml/_types/inference.ts#L393-L402

func NewZeroShotClassificationInferenceUpdateOptions ¶

func NewZeroShotClassificationInferenceUpdateOptions() *ZeroShotClassificationInferenceUpdateOptions

NewZeroShotClassificationInferenceUpdateOptions returns a ZeroShotClassificationInferenceUpdateOptions.

func (*ZeroShotClassificationInferenceUpdateOptions) UnmarshalJSON ¶

func (s *ZeroShotClassificationInferenceUpdateOptions) UnmarshalJSON(data []byte) error

func (*ZeroShotClassificationInferenceUpdateOptions) ZeroShotClassificationInferenceUpdateOptionsCaster ¶

func (s *ZeroShotClassificationInferenceUpdateOptions) ZeroShotClassificationInferenceUpdateOptionsCaster() *ZeroShotClassificationInferenceUpdateOptions

type ZeroShotClassificationInferenceUpdateOptionsVariant ¶

type ZeroShotClassificationInferenceUpdateOptionsVariant interface {
	ZeroShotClassificationInferenceUpdateOptionsCaster() *ZeroShotClassificationInferenceUpdateOptions
}

Source Files ¶

Directories ¶

Path Synopsis
enums
accesstokengranttype
Package accesstokengranttype
Package accesstokengranttype
acknowledgementoptions
Package acknowledgementoptions
Package acknowledgementoptions
actionexecutionmode
Package actionexecutionmode
Package actionexecutionmode
actionstatusoptions
Package actionstatusoptions
Package actionstatusoptions
actiontype
Package actiontype
Package actiontype
alibabacloudservicetype
Package alibabacloudservicetype
Package alibabacloudservicetype
alibabacloudtasktype
Package alibabacloudtasktype
Package alibabacloudtasktype
allocationexplaindecision
Package allocationexplaindecision
Package allocationexplaindecision
amazonbedrockservicetype
Package amazonbedrockservicetype
Package amazonbedrockservicetype
amazonbedrocktasktype
Package amazonbedrocktasktype
Package amazonbedrocktasktype
amazonsagemakerapi
Package amazonsagemakerapi
Package amazonsagemakerapi
amazonsagemakerservicetype
Package amazonsagemakerservicetype
Package amazonsagemakerservicetype
anthropicservicetype
Package anthropicservicetype
Package anthropicservicetype
anthropictasktype
Package anthropictasktype
Package anthropictasktype
apikeygranttype
Package apikeygranttype
Package apikeygranttype
apikeytype
Package apikeytype
Package apikeytype
appliesto
Package appliesto
Package appliesto
azureaistudioservicetype
Package azureaistudioservicetype
Package azureaistudioservicetype
azureaistudiotasktype
Package azureaistudiotasktype
Package azureaistudiotasktype
azureopenaiservicetype
Package azureopenaiservicetype
Package azureopenaiservicetype
azureopenaitasktype
Package azureopenaitasktype
Package azureopenaitasktype
boundaryscanner
Package boundaryscanner
Package boundaryscanner
bytes
Package bytes
Package bytes
calendarinterval
Package calendarinterval
Package calendarinterval
cardinalityexecutionmode
Package cardinalityexecutionmode
Package cardinalityexecutionmode
catanomalydetectorcolumn
Package catanomalydetectorcolumn
Package catanomalydetectorcolumn
catdatafeedcolumn
Package catdatafeedcolumn
Package catdatafeedcolumn
catdfacolumn
Package catdfacolumn
Package catdfacolumn
categorizationstatus
Package categorizationstatus
Package categorizationstatus
catnodecolumn
Package catnodecolumn
Package catnodecolumn
catrecoverycolumn
Package catrecoverycolumn
Package catrecoverycolumn
catsegmentscolumn
Package catsegmentscolumn
Package catsegmentscolumn
catshardcolumn
Package catshardcolumn
Package catshardcolumn
catsnapshotscolumn
Package catsnapshotscolumn
Package catsnapshotscolumn
catthreadpoolcolumn
Package catthreadpoolcolumn
Package catthreadpoolcolumn
cattrainedmodelscolumn
Package cattrainedmodelscolumn
Package cattrainedmodelscolumn
cattransformcolumn
Package cattransformcolumn
Package cattransformcolumn
childscoremode
Package childscoremode
Package childscoremode
chunkingmode
Package chunkingmode
Package chunkingmode
cjkbigramignoredscript
Package cjkbigramignoredscript
Package cjkbigramignoredscript
clusterinfotarget
Package clusterinfotarget
Package clusterinfotarget
clusterprivilege
Package clusterprivilege
Package clusterprivilege
clustersearchstatus
Package clustersearchstatus
Package clustersearchstatus
cohereembeddingtype
Package cohereembeddingtype
Package cohereembeddingtype
cohereinputtype
Package cohereinputtype
Package cohereinputtype
cohereservicetype
Package cohereservicetype
Package cohereservicetype
coheresimilaritytype
Package coheresimilaritytype
Package coheresimilaritytype
coheretasktype
Package coheretasktype
Package coheretasktype
coheretruncatetype
Package coheretruncatetype
Package coheretruncatetype
combinedfieldsoperator
Package combinedfieldsoperator
Package combinedfieldsoperator
combinedfieldszeroterms
Package combinedfieldszeroterms
Package combinedfieldszeroterms
conditionop
Package conditionop
Package conditionop
conditionoperator
Package conditionoperator
Package conditionoperator
conditiontype
Package conditiontype
Package conditiontype
conflicts
Package conflicts
Package conflicts
connectionscheme
Package connectionscheme
Package connectionscheme
connectorfieldtype
Package connectorfieldtype
Package connectorfieldtype
connectorstatus
Package connectorstatus
Package connectorstatus
converttype
Package converttype
Package converttype
customservicetype
Package customservicetype
Package customservicetype
customtasktype
Package customtasktype
Package customtasktype
dataattachmentformat
Package dataattachmentformat
Package dataattachmentformat
datafeedstate
Package datafeedstate
Package datafeedstate
dataframestate
Package dataframestate
Package dataframestate
day
Package day
Package day
decision
Package decision
Package decision
deepseekservicetype
Package deepseekservicetype
Package deepseekservicetype
delimitedpayloadencoding
Package delimitedpayloadencoding
Package delimitedpayloadencoding
densevectorelementtype
Package densevectorelementtype
Package densevectorelementtype
densevectorindexoptionstype
Package densevectorindexoptionstype
Package densevectorindexoptionstype
densevectorsimilarity
Package densevectorsimilarity
Package densevectorsimilarity
deploymentallocationstate
Package deploymentallocationstate
Package deploymentallocationstate
deploymentassignmentstate
Package deploymentassignmentstate
Package deploymentassignmentstate
deprecationlevel
Package deprecationlevel
Package deprecationlevel
dfiindependencemeasure
Package dfiindependencemeasure
Package dfiindependencemeasure
dfraftereffect
Package dfraftereffect
Package dfraftereffect
dfrbasicmodel
Package dfrbasicmodel
Package dfrbasicmodel
displaytype
Package displaytype
Package displaytype
distanceunit
Package distanceunit
Package distanceunit
dynamicmapping
Package dynamicmapping
Package dynamicmapping
ecscompatibilitytype
Package ecscompatibilitytype
Package ecscompatibilitytype
edgengramside
Package edgengramside
Package edgengramside
elasticsearchservicetype
Package elasticsearchservicetype
Package elasticsearchservicetype
elasticsearchtasktype
Package elasticsearchtasktype
Package elasticsearchtasktype
elserservicetype
Package elserservicetype
Package elserservicetype
elsertasktype
Package elsertasktype
Package elsertasktype
emailpriority
Package emailpriority
Package emailpriority
enrichpolicyphase
Package enrichpolicyphase
Package enrichpolicyphase
esqlclusterstatus
Package esqlclusterstatus
Package esqlclusterstatus
esqlformat
Package esqlformat
Package esqlformat
eventtype
Package eventtype
Package eventtype
excludefrequent
Package excludefrequent
Package excludefrequent
executionphase
Package executionphase
Package executionphase
executionstatus
Package executionstatus
Package executionstatus
expandwildcard
Package expandwildcard
Package expandwildcard
failurestorestatus
Package failurestorestatus
Package failurestorestatus
feature
Package feature
Package feature
fieldsortnumerictype
Package fieldsortnumerictype
Package fieldsortnumerictype
fieldtype
Package fieldtype
Package fieldtype
fieldvaluefactormodifier
Package fieldvaluefactormodifier
Package fieldvaluefactormodifier
filteringpolicy
Package filteringpolicy
Package filteringpolicy
filteringrulerule
Package filteringrulerule
Package filteringrulerule
filteringvalidationstate
Package filteringvalidationstate
Package filteringvalidationstate
filtertype
Package filtertype
Package filtertype
fingerprintdigest
Package fingerprintdigest
Package fingerprintdigest
followerindexstatus
Package followerindexstatus
Package followerindexstatus
formattype
Package formattype
Package formattype
functionboostmode
Package functionboostmode
Package functionboostmode
functionscoremode
Package functionscoremode
Package functionscoremode
gappolicy
Package gappolicy
Package gappolicy
geodistancetype
Package geodistancetype
Package geodistancetype
geoexecution
Package geoexecution
Package geoexecution
geogridtargetformat
Package geogridtargetformat
Package geogridtargetformat
geogridtiletype
Package geogridtiletype
Package geogridtiletype
geoorientation
Package geoorientation
Package geoorientation
geopointmetrictype
Package geopointmetrictype
Package geopointmetrictype
geoshaperelation
Package geoshaperelation
Package geoshaperelation
geostrategy
Package geostrategy
Package geostrategy
geovalidationmethod
Package geovalidationmethod
Package geovalidationmethod
googleaiservicetype
Package googleaiservicetype
Package googleaiservicetype
googleaistudiotasktype
Package googleaistudiotasktype
Package googleaistudiotasktype
googlevertexaiservicetype
Package googlevertexaiservicetype
Package googlevertexaiservicetype
googlevertexaitasktype
Package googlevertexaitasktype
Package googlevertexaitasktype
granttype
Package granttype
Package granttype
gridaggregationtype
Package gridaggregationtype
Package gridaggregationtype
gridtype
Package gridtype
Package gridtype
groupby
Package groupby
Package groupby
healthstatus
Package healthstatus
Package healthstatus
highlighterencoder
Package highlighterencoder
Package highlighterencoder
highlighterfragmenter
Package highlighterfragmenter
Package highlighterfragmenter
highlighterorder
Package highlighterorder
Package highlighterorder
highlightertagsschema
Package highlightertagsschema
Package highlightertagsschema
highlightertype
Package highlightertype
Package highlightertype
holtwinterstype
Package holtwinterstype
Package holtwinterstype
httpinputmethod
Package httpinputmethod
Package httpinputmethod
huggingfaceservicetype
Package huggingfaceservicetype
Package huggingfaceservicetype
huggingfacetasktype
Package huggingfacetasktype
Package huggingfacetasktype
ibdistribution
Package ibdistribution
Package ibdistribution
iblambda
Package iblambda
Package iblambda
icucollationalternate
Package icucollationalternate
Package icucollationalternate
icucollationcasefirst
Package icucollationcasefirst
Package icucollationcasefirst
icucollationdecomposition
Package icucollationdecomposition
Package icucollationdecomposition
icucollationstrength
Package icucollationstrength
Package icucollationstrength
icunormalizationmode
Package icunormalizationmode
Package icunormalizationmode
icunormalizationtype
Package icunormalizationtype
Package icunormalizationtype
icutransformdirection
Package icutransformdirection
Package icutransformdirection
impactarea
Package impactarea
Package impactarea
include
Package include
Package include
indexcheckonstartup
Package indexcheckonstartup
Package indexcheckonstartup
indexingjobstate
Package indexingjobstate
Package indexingjobstate
indexmetadatastate
Package indexmetadatastate
Package indexmetadatastate
indexmode
Package indexmode
Package indexmode
indexoptions
Package indexoptions
Package indexoptions
indexprivilege
Package indexprivilege
Package indexprivilege
indexroutingallocationoptions
Package indexroutingallocationoptions
Package indexroutingallocationoptions
indexroutingrebalanceoptions
Package indexroutingrebalanceoptions
Package indexroutingrebalanceoptions
indicatorhealthstatus
Package indicatorhealthstatus
Package indicatorhealthstatus
indicesblockoptions
Package indicesblockoptions
Package indicesblockoptions
inputtype
Package inputtype
Package inputtype
jinaaiservicetype
Package jinaaiservicetype
Package jinaaiservicetype
jinaaisimilaritytype
Package jinaaisimilaritytype
Package jinaaisimilaritytype
jinaaitasktype
Package jinaaitasktype
Package jinaaitasktype
jinaaitextembeddingtask
Package jinaaitextembeddingtask
Package jinaaitextembeddingtask
jobblockedreason
Package jobblockedreason
Package jobblockedreason
jobstate
Package jobstate
Package jobstate
jsonprocessorconflictstrategy
Package jsonprocessorconflictstrategy
Package jsonprocessorconflictstrategy
keeptypesmode
Package keeptypesmode
Package keeptypesmode
kuromojitokenizationmode
Package kuromojitokenizationmode
Package kuromojitokenizationmode
level
Package level
Package level
licensestatus
Package licensestatus
Package licensestatus
licensetype
Package licensetype
Package licensetype
lifecycleoperationmode
Package lifecycleoperationmode
Package lifecycleoperationmode
lowercasetokenfilterlanguages
Package lowercasetokenfilterlanguages
Package lowercasetokenfilterlanguages
managedby
Package managedby
Package managedby
matchtype
Package matchtype
Package matchtype
memorystatus
Package memorystatus
Package memorystatus
metric
Package metric
Package metric
migrationstatus
Package migrationstatus
Package migrationstatus
minimuminterval
Package minimuminterval
Package minimuminterval
missingorder
Package missingorder
Package missingorder
mistralservicetype
Package mistralservicetype
Package mistralservicetype
mistraltasktype
Package mistraltasktype
Package mistraltasktype
modeenum
Package modeenum
Package modeenum
month
Package month
Package month
multivaluemode
Package multivaluemode
Package multivaluemode
noderole
Package noderole
Package noderole
noridecompoundmode
Package noridecompoundmode
Package noridecompoundmode
normalization
Package normalization
Package normalization
normalizemethod
Package normalizemethod
Package normalizemethod
numericfielddataformat
Package numericfielddataformat
Package numericfielddataformat
onscripterror
Package onscripterror
Package onscripterror
openaiservicetype
Package openaiservicetype
Package openaiservicetype
openaitasktype
Package openaitasktype
Package openaitasktype
operationtype
Package operationtype
Package operationtype
operator
Package operator
Package operator
optype
Package optype
Package optype
pagerdutycontexttype
Package pagerdutycontexttype
Package pagerdutycontexttype
pagerdutyeventtype
Package pagerdutyeventtype
Package pagerdutyeventtype
painlesscontext
Package painlesscontext
Package painlesscontext
phoneticencoder
Package phoneticencoder
Package phoneticencoder
phoneticlanguage
Package phoneticlanguage
Package phoneticlanguage
phoneticnametype
Package phoneticnametype
Package phoneticnametype
phoneticruletype
Package phoneticruletype
Package phoneticruletype
pipelinesimulationstatusoptions
Package pipelinesimulationstatusoptions
Package pipelinesimulationstatusoptions
policytype
Package policytype
Package policytype
quantifier
Package quantifier
Package quantifier
queryrulecriteriatype
Package queryrulecriteriatype
Package queryrulecriteriatype
queryruletype
Package queryruletype
Package queryruletype
rangerelation
Package rangerelation
Package rangerelation
rankvectorelementtype
Package rankvectorelementtype
Package rankvectorelementtype
ratemode
Package ratemode
Package ratemode
refresh
Package refresh
Package refresh
remoteclusterprivilege
Package remoteclusterprivilege
Package remoteclusterprivilege
responsecontenttype
Package responsecontenttype
Package responsecontenttype
restrictionworkflow
Package restrictionworkflow
Package restrictionworkflow
result
Package result
Package result
resultposition
Package resultposition
Package resultposition
routingstate
Package routingstate
Package routingstate
ruleaction
Package ruleaction
Package ruleaction
runtimefieldtype
Package runtimefieldtype
Package runtimefieldtype
sampleraggregationexecutionhint
Package sampleraggregationexecutionhint
Package sampleraggregationexecutionhint
scoremode
Package scoremode
Package scoremode
scorenormalizer
Package scorenormalizer
Package scorenormalizer
scriptlanguage
Package scriptlanguage
Package scriptlanguage
scriptsorttype
Package scriptsorttype
Package scriptsorttype
searchtype
Package searchtype
Package searchtype
segmentsortmissing
Package segmentsortmissing
Package segmentsortmissing
segmentsortmode
Package segmentsortmode
Package segmentsortmode
segmentsortorder
Package segmentsortorder
Package segmentsortorder
shapetype
Package shapetype
Package shapetype
shardroutingstate
Package shardroutingstate
Package shardroutingstate
shardsstatsstage
Package shardsstatsstage
Package shardsstatsstage
shardstate
Package shardstate
Package shardstate
shardstoreallocation
Package shardstoreallocation
Package shardstoreallocation
shardstorestatus
Package shardstorestatus
Package shardstorestatus
shutdownstatus
Package shutdownstatus
Package shutdownstatus
shutdowntype
Package shutdowntype
Package shutdowntype
simplequerystringflag
Package simplequerystringflag
Package simplequerystringflag
slicescalculation
Package slicescalculation
Package slicescalculation
snapshotsort
Package snapshotsort
Package snapshotsort
snapshotstate
Package snapshotstate
Package snapshotstate
snapshotupgradestate
Package snapshotupgradestate
Package snapshotupgradestate
snowballlanguage
Package snowballlanguage
Package snowballlanguage
sortmode
Package sortmode
Package sortmode
sortorder
Package sortorder
Package sortorder
sourcefieldmode
Package sourcefieldmode
Package sourcefieldmode
sourcemode
Package sourcemode
Package sourcemode
sqlformat
Package sqlformat
Package sqlformat
statslevel
Package statslevel
Package statslevel
stopwordlanguage
Package stopwordlanguage
Package stopwordlanguage
storagetype
Package storagetype
Package storagetype
stringdistance
Package stringdistance
Package stringdistance
subobjects
Package subobjects
Package subobjects
suggestmode
Package suggestmode
Package suggestmode
suggestsort
Package suggestsort
Package suggestsort
syncjobtriggermethod
Package syncjobtriggermethod
Package syncjobtriggermethod
syncjobtype
Package syncjobtype
Package syncjobtype
syncstatus
Package syncstatus
Package syncstatus
synonymformat
Package synonymformat
Package synonymformat
syntheticsourcekeepenum
Package syntheticsourcekeepenum
Package syntheticsourcekeepenum
tasktype
Package tasktype
Package tasktype
tasktypealibabacloudai
Package tasktypealibabacloudai
Package tasktypealibabacloudai
tasktypeamazonbedrock
Package tasktypeamazonbedrock
Package tasktypeamazonbedrock
tasktypeamazonsagemaker
Package tasktypeamazonsagemaker
Package tasktypeamazonsagemaker
tasktypeanthropic
Package tasktypeanthropic
Package tasktypeanthropic
tasktypeazureaistudio
Package tasktypeazureaistudio
Package tasktypeazureaistudio
tasktypeazureopenai
Package tasktypeazureopenai
Package tasktypeazureopenai
tasktypecohere
Package tasktypecohere
Package tasktypecohere
tasktypecustom
Package tasktypecustom
Package tasktypecustom
tasktypedeepseek
Package tasktypedeepseek
Package tasktypedeepseek
tasktypeelasticsearch
Package tasktypeelasticsearch
Package tasktypeelasticsearch
tasktypeelser
Package tasktypeelser
Package tasktypeelser
tasktypegoogleaistudio
Package tasktypegoogleaistudio
Package tasktypegoogleaistudio
tasktypegooglevertexai
Package tasktypegooglevertexai
Package tasktypegooglevertexai
tasktypehuggingface
Package tasktypehuggingface
Package tasktypehuggingface
tasktypejinaai
Package tasktypejinaai
Package tasktypejinaai
tasktypemistral
Package tasktypemistral
Package tasktypemistral
tasktypeopenai
Package tasktypeopenai
Package tasktypeopenai
tasktypevoyageai
Package tasktypevoyageai
Package tasktypevoyageai
tasktypewatsonx
Package tasktypewatsonx
Package tasktypewatsonx
tdigestexecutionhint
Package tdigestexecutionhint
Package tdigestexecutionhint
templateformat
Package templateformat
Package templateformat
termsaggregationcollectmode
Package termsaggregationcollectmode
Package termsaggregationcollectmode
termsaggregationexecutionhint
Package termsaggregationexecutionhint
Package termsaggregationexecutionhint
termvectoroption
Package termvectoroption
Package termvectoroption
textquerytype
Package textquerytype
Package textquerytype
threadtype
Package threadtype
Package threadtype
timeseriesmetrictype
Package timeseriesmetrictype
Package timeseriesmetrictype
timeunit
Package timeunit
Package timeunit
tokenchar
Package tokenchar
Package tokenchar
tokenizationtruncate
Package tokenizationtruncate
Package tokenizationtruncate
totalhitsrelation
Package totalhitsrelation
Package totalhitsrelation
trainedmodeltype
Package trainedmodeltype
Package trainedmodeltype
trainingpriority
Package trainingpriority
Package trainingpriority
translogdurability
Package translogdurability
Package translogdurability
ttesttype
Package ttesttype
Package ttesttype
type_
Package type_
Package type_
unassignedinformationreason
Package unassignedinformationreason
Package unassignedinformationreason
useragentproperty
Package useragentproperty
Package useragentproperty
valuetype
Package valuetype
Package valuetype
versiontype
Package versiontype
Package versiontype
voyageaiservicetype
Package voyageaiservicetype
Package voyageaiservicetype
voyageaitasktype
Package voyageaitasktype
Package voyageaitasktype
waitforactiveshardoptions
Package waitforactiveshardoptions
Package waitforactiveshardoptions
waitforevents
Package waitforevents
Package waitforevents
watchermetric
Package watchermetric
Package watchermetric
watcherstate
Package watcherstate
Package watcherstate
watsonxservicetype
Package watsonxservicetype
Package watsonxservicetype
watsonxtasktype
Package watsonxtasktype
Package watsonxtasktype
xpackcategory
Package xpackcategory
Package xpackcategory
zerotermsquery
Package zerotermsquery
Package zerotermsquery

Jump to

Keyboard shortcuts

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