Interface: ElasticSearchResponse<T>
Describe the response of a search done on Elastic 7+, with _source
in hits
being typed with T
Type parameters​
Name |
---|
T |
Properties​
_shards​
• _shards: Object
Type declaration​
Name | Type |
---|---|
failed | number |
skipped | number |
successful | number |
total | number |
Defined in​
lib/models/elastic-search-response.ts:9
aggregations​
• aggregations: Object
Index signature​
â–ª [key: string
]: ElasticAggregation
Defined in​
lib/models/elastic-search-response.ts:23
hits​
• hits: Object
Type declaration​
Name | Type |
---|---|
hits | ElasticHit <T >[] |
max_score | null | number |
total | Object |
total.relation | "eq" | "gte" |
total.value | number |
Defined in​
lib/models/elastic-search-response.ts:15
timed_out​
• timed_out: boolean
Defined in​
lib/models/elastic-search-response.ts:8
took​
• took: number