Skip to content
Merged
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
63 changes: 42 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -582,29 +582,50 @@ <h3 class="ui header">Indices status and management</h3>
<pre><code>GET /my_index_name/_upgrade?pretty&amp;human</code></pre>






















<div class="es2 es5">
<h2 class="ui dividing header">Reindex API</h2>
<h3 class="ui header">Simple Reindex Operation</h3>
<pre class="es2 es5"><code>POST /_reindex
{
"source": {
"index": "test-index"
},
"dest": {
"index": "test-index-new"
}
}</code></pre>
<pre class="es2 es5"><code>POST /_reindex
{
"source": {
"index": "test-index"
},
"dest": {
"index": "test-index-new"
}
}</code></pre>
<h3 class="ui header">Selective Reindex Operation</h3>
<p >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the extra space?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure.

we need to separate out the document of female employees and index to another index.
</p>
<pre class="es2 es5"><code>POST /_reindex
{
"source": {
"index": "test-index",
"query": {
"match": {
"gender": "female"
}
}
},
"dest": {
"index": "test-index-new",
"type": "female"
}
}
</code></pre>
</div>
<a name="debug"></a>
<h2 class="ui dividing header">Debug and development</h2>

<h3 class="ui header">Queries</h3>
<p>Get a detailed view of what a query do:</p>

Expand Down