Class ReloadSearchAnalyzersRequest
IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer.
You can use the reload search analyzers API to pick up changes to synonym
files used in the synonym_graph
or synonym
token
filter of a search analyzer. To be eligible, the token filter must have an
updateable
flag of true
and only be used in search
analyzers.
NOTE: This API does not perform a reload for each shard of an index. Instead, it performs a reload for each node containing index shards. As a result, the total shard count returned by the API can differ from the number of index shards. Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "indices.reload_search_analyzers
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Whether to ignore if a wildcard indices expression resolves into no concrete indices.final List<ExpandWildcard>
Whether to expand wildcard expression to concrete indices that are open, closed or both.final Boolean
Whether specified concrete indices should be ignored when unavailable (missing or closed)index()
Required - A comma-separated list of index names to reload analyzers forstatic ReloadSearchAnalyzersRequest
final String
resource()
Changed resource to reload analyzers from if applicableMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<ReloadSearchAnalyzersRequest,ReloadSearchAnalyzersResponse, _ENDPOINTErrorResponse> Endpoint "indices.reload_search_analyzers
".
-
-
Method Details
-
of
-
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_all
string or when no indices have been specified)API name:
allow_no_indices
-
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards
-
index
Required - A comma-separated list of index names to reload analyzers forAPI name:
index
-
resource
Changed resource to reload analyzers from if applicableAPI name:
resource
-