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​
query​
• query: Object
Type declaration​
| Name | Type |
|---|---|
bool? | Object |
bool.filter | unknown[] |
bool.minimum_should_match? | number |
bool.must | unknown[] |
bool.must_not | unknown[] |
bool.should | unknown[] |
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