Skip to content

Terms🔗

Definition🔗

type Terms struct {
    Field *string `json:"field,omitempty"`
    Id string `json:"id"`
    Type string `json:"type"`
    Settings *elasticsearch.ElasticsearchTermsSettings `json:"settings,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Terms from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (terms *Terms) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two Terms objects.

func (terms *Terms) Equals(other Terms) bool

Validate🔗

Validate checks all the validation constraints that may be defined on Terms fields for violations and returns them.

func (terms *Terms) Validate() error

See also🔗