Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -45,48 +45,123 @@
*/
@JsonpDeserializable
public enum CommonStatsFlag implements JsonEnum {
/**
* Return all statistics.
*/
All("_all"),

/**
* Size of the index in byte units.
*/
Store("store"),

/**
* Indexing statistics.
*/
Indexing("indexing"),

/**
* Get statistics, including missing stats.
*/
Get("get"),

/**
* Search statistics including suggest statistics. You can include statistics
* for custom groups by adding an extra <code>groups</code> parameter (search
* operations can be associated with one or more groups). The
* <code>groups</code> parameter accepts a comma-separated list of group names.
* Use <code>_all</code> to return statistics for all groups.
*/
Search("search"),

/**
* Merge statistics.
*/
Merge("merge"),

/**
* Flush statistics.
*/
Flush("flush"),

/**
* Refresh statistics.
*/
Refresh("refresh"),

/**
* Query cache statistics.
*/
QueryCache("query_cache"),

/**
* Fielddata statistics.
*/
Fielddata("fielddata"),

/**
* Number of documents and deleted docs not yet merged out. Index refreshes can
* affect this statistic.
*/
Docs("docs"),

/**
* Index warming statistics.
*/
Warmer("warmer"),

/**
* Completion suggester statistics.
*/
Completion("completion"),

/**
* Memory use of all open segments. If the
* <code>include_segment_file_sizes</code> parameter is <code>true</code>, this
* metric includes the aggregated disk usage of each Lucene index file.
*/
Segments("segments"),

/**
* Translog statistics.
*/
Translog("translog"),

/**
* Shard request cache statistics.
*/
RequestCache("request_cache"),

/**
* Recovery statistics.
*/
Recovery("recovery"),

/**
* Bulk operations statistics.
*/
Bulk("bulk"),

/**
* Shard statistics, including the total number of shards.
*/
ShardStats("shard_stats"),

/**
* Mapping statistics, including the total count and estimated overhead.
*/
Mappings("mappings"),

/**
* Total number of dense vectors indexed. Index refreshes can affect this
* statistic.
*/
DenseVector("dense_vector"),

/**
* Total number of sparse vectors indexed. Index refreshes can affect this
* statistic.
*/
SparseVector("sparse_vector"),

;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ public static IndicesOptions of(Function<Builder, ObjectBuilder<IndicesOptions>>
}

/**
* If false, the request returns an error if any wildcard expression, index
* alias, or <code>_all</code> value targets only missing or closed indices.
* This behavior applies even if the request targets other open indices. For
* example, a request targeting <code>foo*,bar*</code> returns an error if an
* index starts with <code>foo</code> but no index starts with <code>bar</code>.
* A setting that does two separate checks on the index expression. If
* <code>false</code>, the request returns an error (1) if any wildcard
* expression (including <code>_all</code> and <code>*</code>) resolves to zero
* matching indices or (2) if the complete set of resolved indices, aliases or
* data streams is empty after all expressions are evaluated. If
* <code>true</code>, index expressions that resolve to no indices are allowed
* and the request returns an empty result.
* <p>
* API name: {@code allow_no_indices}
*/
Expand All @@ -117,7 +119,10 @@ public final List<ExpandWildcard> expandWildcards() {
}

/**
* If true, missing or closed indices are not included in the response.
* If <code>false</code>, the request returns an error if it targets a concrete
* (non-wildcarded) index, alias, or data stream that is missing, closed, or
* otherwise unavailable. If <code>true</code>, unavailable concrete targets are
* silently ignored.
* <p>
* API name: {@code ignore_unavailable}
*/
Expand Down Expand Up @@ -208,11 +213,13 @@ private Builder(IndicesOptions instance) {

}
/**
* If false, the request returns an error if any wildcard expression, index
* alias, or <code>_all</code> value targets only missing or closed indices.
* This behavior applies even if the request targets other open indices. For
* example, a request targeting <code>foo*,bar*</code> returns an error if an
* index starts with <code>foo</code> but no index starts with <code>bar</code>.
* A setting that does two separate checks on the index expression. If
* <code>false</code>, the request returns an error (1) if any wildcard
* expression (including <code>_all</code> and <code>*</code>) resolves to zero
* matching indices or (2) if the complete set of resolved indices, aliases or
* data streams is empty after all expressions are evaluated. If
* <code>true</code>, index expressions that resolve to no indices are allowed
* and the request returns an empty result.
* <p>
* API name: {@code allow_no_indices}
*/
Expand Down Expand Up @@ -252,7 +259,10 @@ public final Builder expandWildcards(ExpandWildcard value, ExpandWildcard... val
}

/**
* If true, missing or closed indices are not included in the response.
* If <code>false</code>, the request returns an error if it targets a concrete
* (non-wildcarded) index, alias, or data stream that is missing, closed, or
* otherwise unavailable. If <code>true</code>, unavailable concrete targets are
* silently ignored.
* <p>
* API name: {@code ignore_unavailable}
*/
Expand Down
Loading
Loading