Class IndicesStatsRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder<IndicesStatsRequest,IndicesStatsResponse,IndicesStatsRequestBuilder>
org.elasticsearch.action.admin.indices.stats.IndicesStatsRequestBuilder
public class IndicesStatsRequestBuilder
extends BroadcastOperationRequestBuilder<IndicesStatsRequest,IndicesStatsResponse,IndicesStatsRequestBuilder>
A request to get indices level stats. Allow to enable different stats to be returned.
By default, the setDocs(boolean)
, setStore(boolean)
, setIndexing(boolean)
are enabled. Other stats can be enabled as well.
All the stats to be returned can be cleared using clear()
, at which point, specific
stats can be enabled.
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionIndicesStatsRequestBuilder(ElasticsearchClient client, IndicesStatsAction action)
-
Method Summary
Modifier and TypeMethodDescriptionall()
Sets all flags to return all stats.clear()
Clears all stats.setCompletion(boolean completion)
setCompletionFields(String... fields)
setDocs(boolean docs)
setFieldData(boolean fieldData)
setFieldDataFields(String... fields)
setFlush(boolean flush)
setGet(boolean get)
setIncludeSegmentFileSizes(boolean includeSegmentFileSizes)
setIndexing(boolean indexing)
setMerge(boolean merge)
setQueryCache(boolean queryCache)
setRecovery(boolean recovery)
setRefresh(boolean refresh)
setRequestCache(boolean requestCache)
setSearch(boolean search)
setSegments(boolean segments)
setStore(boolean store)
setTranslog(boolean translog)
Document types to return stats for.setWarmer(boolean warmer)
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions, setTimeout
-
Constructor Details
-
IndicesStatsRequestBuilder
-
-
Method Details
-
all
Sets all flags to return all stats. -
clear
Clears all stats. -
setTypes
Document types to return stats for. Mainly affectssetIndexing(boolean)
when enabled, returning specific indexing stats for those types. -
setGroups
-
setDocs
-
setStore
-
setIndexing
-
setGet
-
setSearch
-
setMerge
-
setRefresh
-
setFlush
-
setWarmer
-
setQueryCache
-
setFieldData
-
setFieldDataFields
-
setSegments
-
setCompletion
-
setCompletionFields
-
setTranslog
-
setRequestCache
-
setRecovery
-
setIncludeSegmentFileSizes
-