MCPcopy Create free account
hub / github.com/olivere/elastic / SortMode

Method SortMode

sort.go:540–543  ·  view source on GitHub ↗

SortMode specifies what values to pick in case a document contains multiple values for the targeted sort field. Possible values are: min or max.

(sortMode string)

Source from the content-addressed store, hash-verified

538// multiple values for the targeted sort field. Possible values are:
539// min or max.
540func (s *ScriptSort) SortMode(sortMode string) *ScriptSort {
541 s.sortMode = &sortMode
542 return s
543}
544
545// NestedFilter sets a filter that nested objects should match with
546// in order to be taken into account for sorting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected