August 2019
Intermediate to advanced
560 pages
13h 41m
English
It is useful to see statistics from the indices stats API, _stats. You can get an answer such as the number of search requests in terms of the specific index received, the total time to fetch documents in that index, or identify the hot indices inside your cluster. Let's take a look at cf_view. As shown in the response body of the following screenshot, the result reports two aggregations, which are primaries and total:
The primaries field reports aggregation in the scope of the primary shards, while the total field is the cumulative values in both shard types. Since we have only indexed two documents in cf_view, primaries.docs.count ...
Read now
Unlock full access