forked from laiweijian4/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
71 lines
5.8 KiB
HTML
71 lines
5.8 KiB
HTML
<a name="css_01_0167"></a><a name="css_01_0167"></a>
|
|
|
|
<h1 class="topictitle1">Matching Index Synchronization</h1>
|
|
<div id="body0000001247799185"><p id="css_01_0167__en-us_topic_0000001268154469_p8844121618216">The request URL and request body parameters are as follows:</p>
|
|
<pre class="screen" id="css_01_0167__en-us_topic_0000001268154469_screen108441116182118">PUT auto_sync/pattern/{pattern_name}</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0167__en-us_topic_0000001268154469_table1284421662112" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request body parameters</caption><thead align="left"><tr id="css_01_0167__en-us_topic_0000001268154469_row484481616219"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.3.1.1"><p id="css_01_0167__en-us_topic_0000001268154469_p2844116192118">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.3.1.2"><p id="css_01_0167__en-us_topic_0000001268154469_p11844101662111">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0167__en-us_topic_0000001268154469_row12844161612114"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="css_01_0167__en-us_topic_0000001268154469_p184421642110">remote_cluster</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="css_01_0167__en-us_topic_0000001268154469_p168446161215">Name of the primary cluster. The default name is <strong id="css_01_0167__b14970032194111">leader1</strong>. You can change the name by configuring the primary cluster information.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0167__en-us_topic_0000001268154469_row284411682114"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="css_01_0167__en-us_topic_0000001268154469_p4844101614218">remote_index_patterns</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="css_01_0167__en-us_topic_0000001268154469_p1784431612114">Mode of the index to be synchronized in the primary cluster. The wildcard (*) is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0167__en-us_topic_0000001268154469_row4844016152112"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="css_01_0167__en-us_topic_0000001268154469_p158441216192113">local_index_pattern</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="css_01_0167__en-us_topic_0000001268154469_p484431672119">Mode of the index being synchronized in the secondary cluster. The template can be replaced. For example, if this parameter is set to <strong id="css_01_0167__b5721123214313">{{remote_index}}-sync</strong>, the index <strong id="css_01_0167__b94821394313">log1</strong> change to <strong id="css_01_0167__b1698118121256">log1-sync</strong> after synchronization.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0167__en-us_topic_0000001268154469_row10518142315249"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="css_01_0167__en-us_topic_0000001268154469_p0518162392410">apply_exist_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="css_01_0167__en-us_topic_0000001268154469_p14518823192414">Whether to synchronize existing indexes in the primary cluster. The default value is <strong id="css_01_0167__b2966184213106">true</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0167__en-us_topic_0000001268154469_row13845171602117"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="css_01_0167__en-us_topic_0000001268154469_p13845141614214">settings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="css_01_0167__en-us_topic_0000001268154469_p10845131682115">Index settings of the index being synchronized</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="css_01_0167__en-us_topic_0000001268154469_p273282017261">The following are two examples:</p>
|
|
<p id="css_01_0167__en-us_topic_0000001268154469_p20153191520213">1. Synchronize a single index from the primary cluster to the secondary cluster.</p>
|
|
<pre class="screen" id="css_01_0167__en-us_topic_0000001268154469_screen3153201520212">PUT auto_sync/pattern/pattern1
|
|
{
|
|
"remote_cluster": "leader1",
|
|
"remote_index_patterns": "log*",
|
|
"local_index_pattern": "{{remote_index}}-sync",
|
|
"apply_exist_index": true
|
|
}</pre>
|
|
<p id="css_01_0167__en-us_topic_0000001268154469_p9153111513216">2. Synchronize a single index from the primary cluster to the secondary cluster and modify the index configurations.</p>
|
|
<pre class="screen" id="css_01_0167__en-us_topic_0000001268154469_screen5153215152112">PUT auto_sync/pattern/pattern1
|
|
{
|
|
"remote_cluster": "leader1",
|
|
"remote_index_patterns": "log*",
|
|
"local_index_pattern": "{{remote_index}}-sync",
|
|
"apply_exist_index": true,
|
|
"settings": {
|
|
"number_of_replicas": 4
|
|
}
|
|
}</pre>
|
|
<div class="note" id="css_01_0167__en-us_topic_0000001268154469_note6153151518215"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_01_0167__en-us_topic_0000001268154469_p13153141512217">The following index configurations cannot be modified:</p>
|
|
<ul id="css_01_0167__en-us_topic_0000001268154469_ul1415391592113"><li id="css_01_0167__en-us_topic_0000001268154469_li41539153217">number_of_shards</li><li id="css_01_0167__en-us_topic_0000001268154469_li1115331552116">version.created</li><li id="css_01_0167__en-us_topic_0000001268154469_li715371515213">uuid</li><li id="css_01_0167__en-us_topic_0000001268154469_li515321532114">creation_date</li><li id="css_01_0167__en-us_topic_0000001268154469_li1315331518214">soft_deletes.enabled</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0164.html">Instructions</a></div>
|
|
</div>
|
|
</div>
|
|
|