mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Add _reload_search_analyzers endpoint to HLRC (#43733)
This change adds the new endpoint that allows reloading of search analyzers to the high-level java rest client. Relates to #43313
This commit is contained in:
parent
e63fd536bf
commit
1f61152591
14 changed files with 493 additions and 3 deletions
50
docs/java-rest/high-level/indices/reload_analyzers.asciidoc
Normal file
50
docs/java-rest/high-level/indices/reload_analyzers.asciidoc
Normal file
|
@ -0,0 +1,50 @@
|
|||
--
|
||||
:api: reload-analyzers
|
||||
:request: ReloadAnalyzersRequest
|
||||
:response: ReloadAnalyzersResponse
|
||||
--
|
||||
|
||||
[id="{upid}-{api}"]
|
||||
=== Reload Search Analyzers API
|
||||
|
||||
[id="{upid}-{api}-request"]
|
||||
==== Reload Search Analyzers Request
|
||||
|
||||
An +{request}+ requires an `index` argument:
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-request]
|
||||
--------------------------------------------------
|
||||
<1> The index to reload
|
||||
|
||||
==== Optional arguments
|
||||
The following arguments can optionally be provided:
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-request-indicesOptions]
|
||||
--------------------------------------------------
|
||||
<1> Setting `IndicesOptions` controls how unavailable indices are resolved and
|
||||
how wildcard expressions are expanded
|
||||
|
||||
include::../execution.asciidoc[]
|
||||
|
||||
[id="{upid}-{api}-response"]
|
||||
==== Reload Search Analyzers Response
|
||||
|
||||
The returned +{response}+ allows to retrieve information about the
|
||||
executed operation as follows:
|
||||
|
||||
["source","java",subs="attributes,callouts,macros"]
|
||||
--------------------------------------------------
|
||||
include-tagged::{doc-tests-file}[{api}-response]
|
||||
--------------------------------------------------
|
||||
<1> Shard statistics. Note that reloading does not happen on each shard of an
|
||||
index, but once on each node the index has shards on. The reported shard count
|
||||
can therefore differ from the number of index shards
|
||||
<2> Reloading details of all indices the request was executed on
|
||||
<3> Details can be retrieved by index name
|
||||
<4> The reloaded index name
|
||||
<5> The nodes the index was reloaded on
|
||||
<6> The analyzer names that were reloaded
|
|
@ -155,6 +155,7 @@ include::indices/get_index.asciidoc[]
|
|||
include::indices/freeze_index.asciidoc[]
|
||||
include::indices/unfreeze_index.asciidoc[]
|
||||
include::indices/delete_template.asciidoc[]
|
||||
include::indices/reload_analyzers.asciidoc[]
|
||||
|
||||
== Cluster APIs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue