Class SearchStats.Builder (2.40.3)

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
Type Description
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
Name Description
indexUnusedReasons List<IndexUnusedReason>
Returns
Type Description
SearchStats.Builder

setIndexUsageMode(String indexUsageMode)

public abstract SearchStats.Builder setIndexUsageMode(String indexUsageMode)

Specifies index usage mode for the query.

Parameter
Name Description
indexUsageMode String

, has three modes UNUSED, PARTIALLY_USED, and FULLY_USED

Returns
Type Description
SearchStats.Builder