August 2019
Intermediate to advanced
560 pages
13h 41m
English
Each API specific method has its corresponding response object. Let's take the org.elasticsearch.action.search.SearchResponse object as an example and show the related methods that we can use to construct a return object in the following table:
| Method |
Description |
|
public Aggregations getAggregations() |
Used to get the aggregation return object |
|
public SearchHits getHits() |
The hits entries of the search |
|
public int getTotalShards() |
The total number of shards involved in the execution |
|
public int getSuccessfulShards() |
The number of shards that execute successfully |
| public int getFailedShards() |
The number of shards that failed to execute |
|
public String getScrollId() |
The scroll ID, if the Search ... |
Read now
Unlock full access