test

package
v0.0.1-alpha7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddtionalPropEscape

type AddtionalPropEscape struct {
	U003chmu003e          AddtionalPropEscapeU003chmu003eObject `json:"<hm>"`
	U2728                 AddtionalPropEscapeU2728Object        `json:"✨"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscape) MarshalJSON

func (d AddtionalPropEscape) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscape) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscape) UnmarshalJSON

func (d *AddtionalPropEscape) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type AddtionalPropEscapeRaw

type AddtionalPropEscapeRaw struct {
	U003chmu003e          elastic.Elastic[AddtionalPropEscapeU003chmu003eObjectRaw] `json:"<hm>"`
	U2728                 elastic.Elastic[AddtionalPropEscapeU2728ObjectRaw]        `json:"✨"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscapeRaw) MarshalJSON

func (d AddtionalPropEscapeRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscapeRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscapeRaw) UnmarshalJSON

func (d *AddtionalPropEscapeRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type AddtionalPropEscapeU003chmu003eObject

type AddtionalPropEscapeU003chmu003eObject struct {
	U0026mahu0026         string `json:"&mah&"`
	FooBar__              string `json:"__foo_bar"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscapeU003chmu003eObject) MarshalJSON

func (d AddtionalPropEscapeU003chmu003eObject) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscapeU003chmu003eObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscapeU003chmu003eObject) UnmarshalJSON

func (d *AddtionalPropEscapeU003chmu003eObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type AddtionalPropEscapeU003chmu003eObjectRaw

type AddtionalPropEscapeU003chmu003eObjectRaw struct {
	U0026mahu0026         elastic.Elastic[string] `json:"&mah&"`
	FooBar__              elastic.Elastic[string] `json:"__foo_bar"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscapeU003chmu003eObjectRaw) MarshalJSON

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscapeU003chmu003eObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscapeU003chmu003eObjectRaw) UnmarshalJSON

func (d *AddtionalPropEscapeU003chmu003eObjectRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type AddtionalPropEscapeU2728Object

type AddtionalPropEscapeU2728Object struct {
	Yay                   string `json:"yay"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscapeU2728Object) MarshalJSON

func (d AddtionalPropEscapeU2728Object) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscapeU2728Object) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscapeU2728Object) UnmarshalJSON

func (d *AddtionalPropEscapeU2728Object) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type AddtionalPropEscapeU2728ObjectRaw

type AddtionalPropEscapeU2728ObjectRaw struct {
	Yay                   elastic.Elastic[string] `json:"yay"`
	AdditionalProperties_ map[string]any
}

func (AddtionalPropEscapeU2728ObjectRaw) MarshalJSON

func (d AddtionalPropEscapeU2728ObjectRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (AddtionalPropEscapeU2728ObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*AddtionalPropEscapeU2728ObjectRaw) UnmarshalJSON

func (d *AddtionalPropEscapeU2728ObjectRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type All

type All struct {
	Agg             fielddatatype.AggregateMetricDouble  `json:"agg"`
	Alias           *struct{}                            `json:"alias,omitempty"`
	Blob            []byte                               `json:"blob"`
	Bool            fielddatatype.Boolean                `json:"bool"`
	Byte            int8                                 `json:"byte"`
	Comp            string                               `json:"comp"`
	ConstantKwd     string                               `json:"constant_kwd"`
	Date            AllDateDate                          `json:"date"`
	DateNano        AllDateNanoDate                      `json:"dateNano"`
	DateRange       fielddatatype.Range[builtin.Default] `json:"date_range"`
	DenseVector     [3]float64                           `json:"dense_vector"`
	Double          float64                              `json:"double"`
	DoubleRange     fielddatatype.Range[float64]         `json:"double_range"`
	Flattened       map[string]any                       `json:"flattened"`
	Float           float32                              `json:"float"`
	FloatRange      fielddatatype.Range[float32]         `json:"float_range"`
	Geopoint        fielddatatype.GeoPoint               `json:"geopoint"`
	Geoshape        fielddatatype.GeoShape               `json:"geoshape"`
	HalfFloat       float32                              `json:"half_float"`
	Histogram       fielddatatype.Histogram              `json:"histogram"`
	Integer         int32                                `json:"integer"`
	IntegerRange    fielddatatype.Range[int32]           `json:"integer_range"`
	IpAddr          netip.Addr                           `json:"ip_addr"`
	IpRange         fielddatatype.Range[netip.Addr]      `json:"ip_range"`
	Join            map[string]any                       `json:"join"`
	Kwd             string                               `json:"kwd"`
	Long            int64                                `json:"long"`
	LongRange       fielddatatype.Range[int64]           `json:"long_range"`
	Nested          AllNestedObject                      `json:"nested"`
	Object          AllObjectObject                      `json:"object"`
	Point           map[string]any                       `json:"point"`
	Query           map[string]any                       `json:"query"`
	RankFeature     float64                              `json:"rank_feature"`
	RankFeatures    map[string]float64                   `json:"rank_features"`
	ScaledFloat     float64                              `json:"scaled_float"`
	SearchAsYouType string                               `json:"search_as_you_type"`
	Shape           fielddatatype.GeoShape               `json:"shape"`
	Short           int16                                `json:"short"`
	Text            string                               `json:"text"`
	TextWTokenCount string                               `json:"text_w_token_count"`
	UnsignedLong    uint64                               `json:"unsigned_long"`
	Version         string                               `json:"version"`
	Wildcard        string                               `json:"wildcard"`
}

func (All) ToRaw

func (d All) ToRaw() AllRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllDateDate

type AllDateDate time.Time

AllDateDate represents the date or the date_nanos mapping field type. It implements json.Unmarshaler so that it can be directly unmarshaled from all possible formats specified in corresponding `format` field.

Allowed formats are:

  • 2006-01-02 15:04:05
  • 2006-01-02
  • int as epoch_millis

It also implements json.Marshaler. It will be marshaled into string formatted in 2006-01-02 15:04:05 layout.

func (AllDateDate) MarshalJSON

func (t AllDateDate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (AllDateDate) String

func (t AllDateDate) String() string

String implements fmt.Stringer

func (*AllDateDate) UnmarshalJSON

func (t *AllDateDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

type AllDateNanoDate

type AllDateNanoDate time.Time

AllDateNanoDate represents the date or the date_nanos mapping field type. It implements json.Unmarshaler so that it can be directly unmarshaled from all possible formats specified in corresponding `format` field.

Allowed formats are:

  • 2006-01-02T15:04:05.000000000Z0700
  • 2006-01-02
  • int as epoch_second

It also implements json.Marshaler. It will be marshaled into string formatted in 2006-01-02T15:04:05.000000000Z0700 layout.

func (AllDateNanoDate) MarshalJSON

func (t AllDateNanoDate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (AllDateNanoDate) String

func (t AllDateNanoDate) String() string

String implements fmt.Stringer

func (*AllDateNanoDate) UnmarshalJSON

func (t *AllDateNanoDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

type AllNestedNameObject

type AllNestedNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (AllNestedNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllNestedNameObjectRaw

type AllNestedNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (AllNestedNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllNestedObject

type AllNestedObject struct {
	Age  int32               `json:"age"`
	Name AllNestedNameObject `json:"name"`
}

func (AllNestedObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllNestedObjectRaw

type AllNestedObjectRaw struct {
	Age  elastic.Elastic[int32]                  `json:"age"`
	Name elastic.Elastic[AllNestedNameObjectRaw] `json:"name"`
}

func (AllNestedObjectRaw) ToPlain

func (d AllNestedObjectRaw) ToPlain() AllNestedObject

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllObjectNameObject

type AllObjectNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (AllObjectNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllObjectNameObjectRaw

type AllObjectNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (AllObjectNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllObjectObject

type AllObjectObject struct {
	Age  int32               `json:"age"`
	Name AllObjectNameObject `json:"name"`
}

func (AllObjectObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllObjectObjectRaw

type AllObjectObjectRaw struct {
	Age  elastic.Elastic[int32]                  `json:"age"`
	Name elastic.Elastic[AllObjectNameObjectRaw] `json:"name"`
}

func (AllObjectObjectRaw) ToPlain

func (d AllObjectObjectRaw) ToPlain() AllObjectObject

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptional

type AllOptional struct {
	Agg             *fielddatatype.AggregateMetricDouble    `json:"agg"`
	Alias           *struct{}                               `json:"alias,omitempty"`
	Blob            *[][]byte                               `json:"blob"`
	Bool            *[]fielddatatype.Boolean                `json:"bool"`
	Byte            *[]int8                                 `json:"byte"`
	Comp            *[]string                               `json:"comp,omitempty"`
	ConstantKwd     *[]string                               `json:"constant_kwd,omitempty"`
	Date            *[]AllOptionalDateDate                  `json:"date"`
	DateNano        *[]AllOptionalDateNanoDate              `json:"dateNano"`
	DateRange       *[]fielddatatype.Range[builtin.Default] `json:"date_range"`
	DenseVector     *[3]float64                             `json:"dense_vector,omitempty"`
	Double          *[]float64                              `json:"double"`
	DoubleRange     *[]fielddatatype.Range[float64]         `json:"double_range"`
	Flattened       *[]map[string]any                       `json:"flattened"`
	Float           *[]float32                              `json:"float"`
	FloatRange      *[]fielddatatype.Range[float32]         `json:"float_range"`
	Geopoint        *[]fielddatatype.GeoPoint               `json:"geopoint"`
	Geoshape        *[]fielddatatype.GeoShape               `json:"geoshape"`
	HalfFloat       *[]float32                              `json:"half_float"`
	Histogram       *fielddatatype.Histogram                `json:"histogram"`
	Integer         *[]int32                                `json:"integer"`
	IntegerRange    *[]fielddatatype.Range[int32]           `json:"integer_range"`
	IpAddr          *[]netip.Addr                           `json:"ip_addr"`
	IpRange         *[]fielddatatype.Range[netip.Addr]      `json:"ip_range"`
	Join            *map[string]any                         `json:"join,omitempty"`
	Kwd             *[]string                               `json:"kwd"`
	Long            *[]int64                                `json:"long"`
	LongRange       *[]fielddatatype.Range[int64]           `json:"long_range"`
	Nested          *[]AllOptionalNestedObject              `json:"nested"`
	Object          *[]AllOptionalObjectObject              `json:"object"`
	Point           *[]map[string]any                       `json:"point"`
	Query           *map[string]any                         `json:"query,omitempty"`
	RankFeature     *float64                                `json:"rank_feature"`
	RankFeatures    *[]map[string]float64                   `json:"rank_features,omitempty"`
	ScaledFloat     *[]float64                              `json:"scaled_float"`
	SearchAsYouType *[]string                               `json:"search_as_you_type"`
	Shape           *[]fielddatatype.GeoShape               `json:"shape"`
	Short           *[]int16                                `json:"short"`
	Text            *[]string                               `json:"text"`
	TextWTokenCount *[]string                               `json:"text_w_token_count"`
	UnsignedLong    *[]uint64                               `json:"unsigned_long"`
	Version         *[]string                               `json:"version"`
	Wildcard        *[]string                               `json:"wildcard"`
}

func (AllOptional) ToRaw

func (d AllOptional) ToRaw() AllOptionalRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalDateDate

type AllOptionalDateDate time.Time

AllOptionalDateDate represents the date or the date_nanos mapping field type. It implements json.Unmarshaler so that it can be directly unmarshaled from all possible formats specified in corresponding `format` field.

Allowed formats are:

  • 2006-01-02 15:04:05
  • 2006-01-02
  • int as epoch_millis

It also implements json.Marshaler. It will be marshaled into string formatted in 2006-01-02 15:04:05 layout.

func (AllOptionalDateDate) MarshalJSON

func (t AllOptionalDateDate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (AllOptionalDateDate) String

func (t AllOptionalDateDate) String() string

String implements fmt.Stringer

func (*AllOptionalDateDate) UnmarshalJSON

func (t *AllOptionalDateDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

type AllOptionalDateNanoDate

type AllOptionalDateNanoDate time.Time

AllOptionalDateNanoDate represents the date or the date_nanos mapping field type. It implements json.Unmarshaler so that it can be directly unmarshaled from all possible formats specified in corresponding `format` field.

Allowed formats are:

  • 2006-01-02T15:04:05.000000000Z0700
  • 2006-01-02
  • int as epoch_second

It also implements json.Marshaler. It will be marshaled into string formatted in 2006-01-02T15:04:05.000000000Z0700 layout.

func (AllOptionalDateNanoDate) MarshalJSON

func (t AllOptionalDateNanoDate) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (AllOptionalDateNanoDate) String

func (t AllOptionalDateNanoDate) String() string

String implements fmt.Stringer

func (*AllOptionalDateNanoDate) UnmarshalJSON

func (t *AllOptionalDateNanoDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler

type AllOptionalNestedNameObject

type AllOptionalNestedNameObject struct {
	First *[]string `json:"first"`
	Last  *[]string `json:"last"`
}

func (AllOptionalNestedNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalNestedNameObjectRaw

type AllOptionalNestedNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (AllOptionalNestedNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalNestedObject

type AllOptionalNestedObject struct {
	Age  *[]int32                       `json:"age"`
	Name *[]AllOptionalNestedNameObject `json:"name"`
}

func (AllOptionalNestedObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalNestedObjectRaw

type AllOptionalNestedObjectRaw struct {
	Age  elastic.Elastic[int32]                          `json:"age"`
	Name elastic.Elastic[AllOptionalNestedNameObjectRaw] `json:"name"`
}

func (AllOptionalNestedObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalObjectNameObject

type AllOptionalObjectNameObject struct {
	First *[]string `json:"first"`
	Last  *[]string `json:"last"`
}

func (AllOptionalObjectNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalObjectNameObjectRaw

type AllOptionalObjectNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (AllOptionalObjectNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalObjectObject

type AllOptionalObjectObject struct {
	Age  *[]int32                       `json:"age"`
	Name *[]AllOptionalObjectNameObject `json:"name"`
}

func (AllOptionalObjectObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalObjectObjectRaw

type AllOptionalObjectObjectRaw struct {
	Age  elastic.Elastic[int32]                          `json:"age"`
	Name elastic.Elastic[AllOptionalObjectNameObjectRaw] `json:"name"`
}

func (AllOptionalObjectObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllOptionalRaw

type AllOptionalRaw struct {
	Agg             elastic.Elastic[fielddatatype.AggregateMetricDouble]  `json:"agg"`
	Alias           elastic.Elastic[*struct{}]                            `json:"alias"`
	Blob            elastic.Elastic[[]byte]                               `json:"blob"`
	Bool            elastic.Elastic[fielddatatype.Boolean]                `json:"bool"`
	Byte            elastic.Elastic[int8]                                 `json:"byte"`
	Comp            elastic.Elastic[string]                               `json:"comp"`
	ConstantKwd     elastic.Elastic[string]                               `json:"constant_kwd"`
	Date            elastic.Elastic[AllOptionalDateDate]                  `json:"date"`
	DateNano        elastic.Elastic[AllOptionalDateNanoDate]              `json:"dateNano"`
	DateRange       elastic.Elastic[fielddatatype.Range[builtin.Default]] `json:"date_range"`
	DenseVector     undefinedable.Undefinedable[[3]float64]               `json:"dense_vector"`
	Double          elastic.Elastic[float64]                              `json:"double"`
	DoubleRange     elastic.Elastic[fielddatatype.Range[float64]]         `json:"double_range"`
	Flattened       elastic.Elastic[map[string]any]                       `json:"flattened"`
	Float           elastic.Elastic[float32]                              `json:"float"`
	FloatRange      elastic.Elastic[fielddatatype.Range[float32]]         `json:"float_range"`
	Geopoint        elastic.Elastic[fielddatatype.GeoPoint]               `json:"geopoint"`
	Geoshape        elastic.Elastic[fielddatatype.GeoShape]               `json:"geoshape"`
	HalfFloat       elastic.Elastic[float32]                              `json:"half_float"`
	Histogram       elastic.Elastic[fielddatatype.Histogram]              `json:"histogram"`
	Integer         elastic.Elastic[int32]                                `json:"integer"`
	IntegerRange    elastic.Elastic[fielddatatype.Range[int32]]           `json:"integer_range"`
	IpAddr          elastic.Elastic[netip.Addr]                           `json:"ip_addr"`
	IpRange         elastic.Elastic[fielddatatype.Range[netip.Addr]]      `json:"ip_range"`
	Join            elastic.Elastic[map[string]any]                       `json:"join"`
	Kwd             elastic.Elastic[string]                               `json:"kwd"`
	Long            elastic.Elastic[int64]                                `json:"long"`
	LongRange       elastic.Elastic[fielddatatype.Range[int64]]           `json:"long_range"`
	Nested          elastic.Elastic[AllOptionalNestedObjectRaw]           `json:"nested"`
	Object          elastic.Elastic[AllOptionalObjectObjectRaw]           `json:"object"`
	Point           elastic.Elastic[map[string]any]                       `json:"point"`
	Query           elastic.Elastic[map[string]any]                       `json:"query"`
	RankFeature     elastic.Elastic[float64]                              `json:"rank_feature"`
	RankFeatures    elastic.Elastic[map[string]float64]                   `json:"rank_features"`
	ScaledFloat     elastic.Elastic[float64]                              `json:"scaled_float"`
	SearchAsYouType elastic.Elastic[string]                               `json:"search_as_you_type"`
	Shape           elastic.Elastic[fielddatatype.GeoShape]               `json:"shape"`
	Short           elastic.Elastic[int16]                                `json:"short"`
	Text            elastic.Elastic[string]                               `json:"text"`
	TextWTokenCount elastic.Elastic[string]                               `json:"text_w_token_count"`
	UnsignedLong    elastic.Elastic[uint64]                               `json:"unsigned_long"`
	Version         elastic.Elastic[string]                               `json:"version"`
	Wildcard        elastic.Elastic[string]                               `json:"wildcard"`
}

func (AllOptionalRaw) ToPlain

func (d AllOptionalRaw) ToPlain() AllOptional

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type AllRaw

type AllRaw struct {
	Agg             elastic.Elastic[fielddatatype.AggregateMetricDouble]  `json:"agg"`
	Alias           elastic.Elastic[*struct{}]                            `json:"alias"`
	Blob            elastic.Elastic[[]byte]                               `json:"blob"`
	Bool            elastic.Elastic[fielddatatype.Boolean]                `json:"bool"`
	Byte            elastic.Elastic[int8]                                 `json:"byte"`
	Comp            elastic.Elastic[string]                               `json:"comp"`
	ConstantKwd     elastic.Elastic[string]                               `json:"constant_kwd"`
	Date            elastic.Elastic[AllDateDate]                          `json:"date"`
	DateNano        elastic.Elastic[AllDateNanoDate]                      `json:"dateNano"`
	DateRange       elastic.Elastic[fielddatatype.Range[builtin.Default]] `json:"date_range"`
	DenseVector     undefinedable.Undefinedable[[3]float64]               `json:"dense_vector"`
	Double          elastic.Elastic[float64]                              `json:"double"`
	DoubleRange     elastic.Elastic[fielddatatype.Range[float64]]         `json:"double_range"`
	Flattened       elastic.Elastic[map[string]any]                       `json:"flattened"`
	Float           elastic.Elastic[float32]                              `json:"float"`
	FloatRange      elastic.Elastic[fielddatatype.Range[float32]]         `json:"float_range"`
	Geopoint        elastic.Elastic[fielddatatype.GeoPoint]               `json:"geopoint"`
	Geoshape        elastic.Elastic[fielddatatype.GeoShape]               `json:"geoshape"`
	HalfFloat       elastic.Elastic[float32]                              `json:"half_float"`
	Histogram       elastic.Elastic[fielddatatype.Histogram]              `json:"histogram"`
	Integer         elastic.Elastic[int32]                                `json:"integer"`
	IntegerRange    elastic.Elastic[fielddatatype.Range[int32]]           `json:"integer_range"`
	IpAddr          elastic.Elastic[netip.Addr]                           `json:"ip_addr"`
	IpRange         elastic.Elastic[fielddatatype.Range[netip.Addr]]      `json:"ip_range"`
	Join            elastic.Elastic[map[string]any]                       `json:"join"`
	Kwd             elastic.Elastic[string]                               `json:"kwd"`
	Long            elastic.Elastic[int64]                                `json:"long"`
	LongRange       elastic.Elastic[fielddatatype.Range[int64]]           `json:"long_range"`
	Nested          elastic.Elastic[AllNestedObjectRaw]                   `json:"nested"`
	Object          elastic.Elastic[AllObjectObjectRaw]                   `json:"object"`
	Point           elastic.Elastic[map[string]any]                       `json:"point"`
	Query           elastic.Elastic[map[string]any]                       `json:"query"`
	RankFeature     elastic.Elastic[float64]                              `json:"rank_feature"`
	RankFeatures    elastic.Elastic[map[string]float64]                   `json:"rank_features"`
	ScaledFloat     elastic.Elastic[float64]                              `json:"scaled_float"`
	SearchAsYouType elastic.Elastic[string]                               `json:"search_as_you_type"`
	Shape           elastic.Elastic[fielddatatype.GeoShape]               `json:"shape"`
	Short           elastic.Elastic[int16]                                `json:"short"`
	Text            elastic.Elastic[string]                               `json:"text"`
	TextWTokenCount elastic.Elastic[string]                               `json:"text_w_token_count"`
	UnsignedLong    elastic.Elastic[uint64]                               `json:"unsigned_long"`
	Version         elastic.Elastic[string]                               `json:"version"`
	Wildcard        elastic.Elastic[string]                               `json:"wildcard"`
}

func (AllRaw) ToPlain

func (d AllRaw) ToPlain() All

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type Conversion

type Conversion struct {
	MultipleOptional *[]ConversionMultipleOptionalNested `json:"multiple_optional"`
	MultipleRequired []ConversionMultipleRequiredNested  `json:"multiple_required"`
	SingleOptional   *ConversionSingleOptionalObject     `json:"single_optional"`
	SingleRequired   ConversionSingleRequiredObject      `json:"single_required"`
}

func (Conversion) ToRaw

func (d Conversion) ToRaw() ConversionRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleOptionalNameObject

type ConversionMultipleOptionalNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (ConversionMultipleOptionalNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleOptionalNameObjectRaw

type ConversionMultipleOptionalNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (ConversionMultipleOptionalNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleOptionalNested

type ConversionMultipleOptionalNested struct {
	Age  int32                                `json:"age"`
	Name ConversionMultipleOptionalNameObject `json:"name"`
}

func (ConversionMultipleOptionalNested) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleOptionalNestedRaw

type ConversionMultipleOptionalNestedRaw struct {
	Age  elastic.Elastic[int32]                                   `json:"age"`
	Name elastic.Elastic[ConversionMultipleOptionalNameObjectRaw] `json:"name"`
}

func (ConversionMultipleOptionalNestedRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleRequiredNameObject

type ConversionMultipleRequiredNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (ConversionMultipleRequiredNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleRequiredNameObjectRaw

type ConversionMultipleRequiredNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (ConversionMultipleRequiredNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleRequiredNested

type ConversionMultipleRequiredNested struct {
	Age  int32                                `json:"age"`
	Name ConversionMultipleRequiredNameObject `json:"name"`
}

func (ConversionMultipleRequiredNested) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionMultipleRequiredNestedRaw

type ConversionMultipleRequiredNestedRaw struct {
	Age  elastic.Elastic[int32]                                   `json:"age"`
	Name elastic.Elastic[ConversionMultipleRequiredNameObjectRaw] `json:"name"`
}

func (ConversionMultipleRequiredNestedRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionRaw

type ConversionRaw struct {
	MultipleOptional elastic.Elastic[ConversionMultipleOptionalNestedRaw] `json:"multiple_optional"`
	MultipleRequired elastic.Elastic[ConversionMultipleRequiredNestedRaw] `json:"multiple_required"`
	SingleOptional   elastic.Elastic[ConversionSingleOptionalObjectRaw]   `json:"single_optional"`
	SingleRequired   elastic.Elastic[ConversionSingleRequiredObjectRaw]   `json:"single_required"`
}

func (ConversionRaw) ToPlain

func (d ConversionRaw) ToPlain() Conversion

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleOptionalNameObject

type ConversionSingleOptionalNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (ConversionSingleOptionalNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleOptionalNameObjectRaw

type ConversionSingleOptionalNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (ConversionSingleOptionalNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleOptionalObject

type ConversionSingleOptionalObject struct {
	Age  int32                              `json:"age"`
	Name ConversionSingleOptionalNameObject `json:"name"`
}

func (ConversionSingleOptionalObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleOptionalObjectRaw

type ConversionSingleOptionalObjectRaw struct {
	Age  elastic.Elastic[int32]                                 `json:"age"`
	Name elastic.Elastic[ConversionSingleOptionalNameObjectRaw] `json:"name"`
}

func (ConversionSingleOptionalObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleRequiredNameObject

type ConversionSingleRequiredNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (ConversionSingleRequiredNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleRequiredNameObjectRaw

type ConversionSingleRequiredNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (ConversionSingleRequiredNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleRequiredObject

type ConversionSingleRequiredObject struct {
	Age  int32                              `json:"age"`
	Name ConversionSingleRequiredNameObject `json:"name"`
}

func (ConversionSingleRequiredObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type ConversionSingleRequiredObjectRaw

type ConversionSingleRequiredObjectRaw struct {
	Age  elastic.Elastic[int32]                                 `json:"age"`
	Name elastic.Elastic[ConversionSingleRequiredNameObjectRaw] `json:"name"`
}

func (ConversionSingleRequiredObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type Dynamic

type Dynamic struct {
	NestedInherit DynamicNestedInheritNested `json:"nested_inherit"`
	NestedRuntime DynamicNestedRuntimeNested `json:"nested_runtime"`
	NestedStrict  DynamicNestedStrictNested  `json:"nested_strict"`
	ObjectFalse   DynamicObjectFalseObject   `json:"object_false"`
}

func (Dynamic) ToRaw

func (d Dynamic) ToRaw() DynamicRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedInheritNameObject

type DynamicNestedInheritNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (DynamicNestedInheritNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedInheritNameObjectRaw

type DynamicNestedInheritNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (DynamicNestedInheritNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedInheritNested

type DynamicNestedInheritNested struct {
	Age  int32                          `json:"age"`
	Name DynamicNestedInheritNameObject `json:"name"`
}

func (DynamicNestedInheritNested) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedInheritNestedRaw

type DynamicNestedInheritNestedRaw struct {
	Age  elastic.Elastic[int32]                             `json:"age"`
	Name elastic.Elastic[DynamicNestedInheritNameObjectRaw] `json:"name"`
}

func (DynamicNestedInheritNestedRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedRuntimeNameObject

type DynamicNestedRuntimeNameObject struct {
	First                 string `json:"first"`
	Last                  string `json:"last"`
	AdditionalProperties_ map[string]any
}

func (DynamicNestedRuntimeNameObject) MarshalJSON

func (d DynamicNestedRuntimeNameObject) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicNestedRuntimeNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicNestedRuntimeNameObject) UnmarshalJSON

func (d *DynamicNestedRuntimeNameObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicNestedRuntimeNameObjectRaw

type DynamicNestedRuntimeNameObjectRaw struct {
	First                 elastic.Elastic[string] `json:"first"`
	Last                  elastic.Elastic[string] `json:"last"`
	AdditionalProperties_ map[string]any
}

func (DynamicNestedRuntimeNameObjectRaw) MarshalJSON

func (d DynamicNestedRuntimeNameObjectRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicNestedRuntimeNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicNestedRuntimeNameObjectRaw) UnmarshalJSON

func (d *DynamicNestedRuntimeNameObjectRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicNestedRuntimeNested

type DynamicNestedRuntimeNested struct {
	Age                   int32                          `json:"age"`
	Name                  DynamicNestedRuntimeNameObject `json:"name"`
	AdditionalProperties_ map[string]any
}

func (DynamicNestedRuntimeNested) MarshalJSON

func (d DynamicNestedRuntimeNested) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicNestedRuntimeNested) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicNestedRuntimeNested) UnmarshalJSON

func (d *DynamicNestedRuntimeNested) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicNestedRuntimeNestedRaw

type DynamicNestedRuntimeNestedRaw struct {
	Age                   elastic.Elastic[int32]                             `json:"age"`
	Name                  elastic.Elastic[DynamicNestedRuntimeNameObjectRaw] `json:"name"`
	AdditionalProperties_ map[string]any
}

func (DynamicNestedRuntimeNestedRaw) MarshalJSON

func (d DynamicNestedRuntimeNestedRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicNestedRuntimeNestedRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicNestedRuntimeNestedRaw) UnmarshalJSON

func (d *DynamicNestedRuntimeNestedRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicNestedStrictNameObject

type DynamicNestedStrictNameObject struct {
	First string `json:"first"`
	Last  string `json:"last"`
}

func (DynamicNestedStrictNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedStrictNameObjectRaw

type DynamicNestedStrictNameObjectRaw struct {
	First elastic.Elastic[string] `json:"first"`
	Last  elastic.Elastic[string] `json:"last"`
}

func (DynamicNestedStrictNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedStrictNested

type DynamicNestedStrictNested struct {
	Age  int32                         `json:"age"`
	Name DynamicNestedStrictNameObject `json:"name"`
}

func (DynamicNestedStrictNested) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicNestedStrictNestedRaw

type DynamicNestedStrictNestedRaw struct {
	Age  elastic.Elastic[int32]                            `json:"age"`
	Name elastic.Elastic[DynamicNestedStrictNameObjectRaw] `json:"name"`
}

func (DynamicNestedStrictNestedRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

type DynamicObjectFalseNameObject

type DynamicObjectFalseNameObject struct {
	First                 string `json:"first"`
	Last                  string `json:"last"`
	AdditionalProperties_ map[string]any
}

func (DynamicObjectFalseNameObject) MarshalJSON

func (d DynamicObjectFalseNameObject) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicObjectFalseNameObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicObjectFalseNameObject) UnmarshalJSON

func (d *DynamicObjectFalseNameObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicObjectFalseNameObjectRaw

type DynamicObjectFalseNameObjectRaw struct {
	First                 elastic.Elastic[string] `json:"first"`
	Last                  elastic.Elastic[string] `json:"last"`
	AdditionalProperties_ map[string]any
}

func (DynamicObjectFalseNameObjectRaw) MarshalJSON

func (d DynamicObjectFalseNameObjectRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicObjectFalseNameObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicObjectFalseNameObjectRaw) UnmarshalJSON

func (d *DynamicObjectFalseNameObjectRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicObjectFalseObject

type DynamicObjectFalseObject struct {
	Age                   int32                        `json:"age"`
	Name                  DynamicObjectFalseNameObject `json:"name"`
	AdditionalProperties_ map[string]any
}

func (DynamicObjectFalseObject) MarshalJSON

func (d DynamicObjectFalseObject) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicObjectFalseObject) ToRaw

ToRaw converts d into its plain equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicObjectFalseObject) UnmarshalJSON

func (d *DynamicObjectFalseObject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicObjectFalseObjectRaw

type DynamicObjectFalseObjectRaw struct {
	Age                   elastic.Elastic[int32]                           `json:"age"`
	Name                  elastic.Elastic[DynamicObjectFalseNameObjectRaw] `json:"name"`
	AdditionalProperties_ map[string]any
}

func (DynamicObjectFalseObjectRaw) MarshalJSON

func (d DynamicObjectFalseObjectRaw) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler so that both known fields and additional properties are marshaled into a same JSON object.

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

func (DynamicObjectFalseObjectRaw) ToPlain

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

func (*DynamicObjectFalseObjectRaw) UnmarshalJSON

func (d *DynamicObjectFalseObjectRaw) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to add the special handling rule where additional fields in the input JSON object are stored into the AdditionalProperties_ field

The presence of this implementation indicates the dynamic field for this object are defined to be other than "strict" in its mapping.json.

type DynamicRaw

type DynamicRaw struct {
	NestedInherit elastic.Elastic[DynamicNestedInheritNestedRaw] `json:"nested_inherit"`
	NestedRuntime elastic.Elastic[DynamicNestedRuntimeNestedRaw] `json:"nested_runtime"`
	NestedStrict  elastic.Elastic[DynamicNestedStrictNestedRaw]  `json:"nested_strict"`
	ObjectFalse   elastic.Elastic[DynamicObjectFalseObjectRaw]   `json:"object_false"`
}

func (DynamicRaw) ToPlain

func (d DynamicRaw) ToPlain() Dynamic

ToPlain converts d into its raw equivalent. It avoids copying data where it is possilbe. Mutation to fields is not advised.

Jump to

Keyboard shortcuts

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