es

package
v0.0.0-...-a2de6b1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToElasticFieldSort

func ToElasticFieldSort(sortBy string, resolver contactql.Resolver) (*elastic.FieldSort, error)

ToElasticFieldSort returns the elastic FieldSort for the passed in sort by string

func ToElasticQuery

func ToElasticQuery(env envs.Environment, mapper AssetMapper, query *contactql.ContactQuery) elastic.Query

ToElasticQuery converts a contactql query to an Elastic query

Types

type AssetMapper

type AssetMapper interface {
	Flow(assets.Flow) int64
	Group(assets.Group) int64
}

AssetMapper is used to map engine assets to however ES identifies them

Jump to

Keyboard shortcuts

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