Skip to main content

Interface: ElasticQuery

This aims to describe an elastic search query, but it can be quite limitative for now

deprecated use the one from @cognizone/elastic instead

Properties​

aggs​

• Optional aggs: Object

Index signature​

â–ª [key: string]: AggregationQuery

Defined in​

lib/models/elastic-query.ts:22


from​

• Optional from: number

Defined in​

lib/models/elastic-query.ts:9


query​

• query: Object

Type declaration​

NameType
bool?Object
bool.filterunknown[]
bool.minimum_should_match?number
bool.mustunknown[]
bool.must_notunknown[]
bool.shouldunknown[]
match?object

Defined in​

lib/models/elastic-query.ts:12


size​

• Optional size: number

Defined in​

lib/models/elastic-query.ts:10


sort​

• Optional sort: Object

Index signature​

â–ª [field: string]: ElasticSort

Defined in​

lib/models/elastic-query.ts:23


track_total_hits​

• Optional track_total_hits: boolean

Defined in​

lib/models/elastic-query.ts:11