Class SearchStats.Builder (2.35.0)

public abstract static class SearchStats.Builder

Inheritance

java.lang.Object > SearchStats.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract SearchStats build()

Creates a @code SearchStats} object.

Returns
TypeDescription
SearchStats

setIndexUnusedReasons(List<IndexUnusedReason> indexUnusedReasons)

public abstract SearchStats.Builder setIndexUnusedReasons(List<IndexUnusedReason> indexUnusedReasons)

When index_usage_mode is UNUSED or PARTIALLY_USED, this field explains why index was not used in all or part of the search query. If index_usage_mode is FULLY_USED, this field is not populated.

Parameter
NameDescription
indexUnusedReasonsList<IndexUnusedReason>
Returns
TypeDescription
SearchStats.Builder

setIndexUsageMode(String indexUsageMode)

public abstract SearchStats.Builder setIndexUsageMode(String indexUsageMode)

Specifies index usage mode for the query.

Parameter
NameDescription
indexUsageModeString

, has three modes UNUSED, PARTIALLY_USED, and FULLY_USED

Returns
TypeDescription
SearchStats.Builder