Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FirstValue ¶ added in v1.2.0
type FirstValue string
FirstValue is a sort / aggregation source returning the first doc value of a field. It returns what search.FieldSource.Value does, the first value, without the per-document slice that search.RemoveNumericPaddedTerms allocates, or the error it builds for every non-numeric term.
func (FirstValue) AppendValue ¶ added in v1.2.0
func (f FirstValue) AppendValue(match *search.DocumentMatch, buf []byte) []byte
AppendValue implements search.TextValueAppender; nil means missing.
func (FirstValue) Fields ¶ added in v1.2.0
func (f FirstValue) Fields() []string
func (FirstValue) NumericField ¶ added in v1.2.0
func (f FirstValue) NumericField() string
NumericField implements search.NumericFieldSource: for a numeric column with one value the first doc value is that value prefix-coded, so riot can reject hits by their typed value.
func (FirstValue) Value ¶ added in v1.2.0
func (f FirstValue) Value(match *search.DocumentMatch) []byte