You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="indices-open-close.html">Open / Close Index API
625
625
»
626
626
</a></span></div><divclass="chapter"><divclass="titlepage"><div><div><h2class="title"><aid="indices-exists"></a>Indices Exists<ahref="https://github.com/elastic/elasticsearch/edit/6.1/docs/reference/indices/indices-exists.asciidoc" class="edit_me" title="Edit this page on GitHub" rel="nofollow">edit</a></h2></div></div></div><p>Used to check if the index (indices) exists or not. For example:</p><divclass="pre_wrapper"><preclass="programlisting prettyprint lang-js">HEAD twitter</pre></div><divclass="console_widget" data-snippet="snippets/indices-exists/1.json"></div><p>The HTTP status code indicates if the index exists or not. A <codeclass="literal">404</code> means
627
-
it does not exist, and <codeclass="literal">200</code> means it does.</p></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
627
+
it does not exist, and <codeclass="literal">200</code> means it does.</p><divclass="important admon"><divclass="icon"><imgalt="Important" src="images/icons/important.png" /></div><divclass="admon_content"><p>This request does not distinguish between an index and an alias,
628
+
i.e. status code <codeclass="literal">200</code> is also returned if an alias exists with that name.</p></div></div></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
<ahref="indices-open-close.html">Open / Close Index API
628
628
»
629
629
</a></span></div><divclass="chapter"><divclass="titlepage"><div><div><h2class="title"><aid="indices-exists"></a>Indices Exists<ahref="https://github.com/elastic/elasticsearch/edit/6.2/docs/reference/indices/indices-exists.asciidoc" class="edit_me" title="Edit this page on GitHub" rel="nofollow">edit</a></h2></div></div></div><p>Used to check if the index (indices) exists or not. For example:</p><divclass="pre_wrapper"><preclass="programlisting prettyprint lang-js">HEAD twitter</pre></div><divclass="console_widget" data-snippet="snippets/indices-exists/1.json"></div><p>The HTTP status code indicates if the index exists or not. A <codeclass="literal">404</code> means
630
-
it does not exist, and <codeclass="literal">200</code> means it does.</p></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
630
+
it does not exist, and <codeclass="literal">200</code> means it does.</p><divclass="important admon"><divclass="icon"><imgalt="Important" src="images/icons/important.png" /></div><divclass="admon_content"><p>This request does not distinguish between an index and an alias,
631
+
i.e. status code <codeclass="literal">200</code> is also returned if an alias exists with that name.</p></div></div></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
<ahref="indices-open-close.html">Open / Close Index API
628
628
»
629
629
</a></span></div><divclass="chapter"><divclass="titlepage"><div><div><h2class="title"><aid="indices-exists"></a>Indices Exists<ahref="https://github.com/elastic/elasticsearch/edit/6.x/docs/reference/indices/indices-exists.asciidoc" class="edit_me" title="Edit this page on GitHub" rel="nofollow">edit</a></h2></div></div></div><p>Used to check if the index (indices) exists or not. For example:</p><divclass="pre_wrapper"><preclass="programlisting prettyprint lang-js">HEAD twitter</pre></div><divclass="console_widget" data-snippet="snippets/indices-exists/1.json"></div><p>The HTTP status code indicates if the index exists or not. A <codeclass="literal">404</code> means
630
-
it does not exist, and <codeclass="literal">200</code> means it does.</p></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
630
+
it does not exist, and <codeclass="literal">200</code> means it does.</p><divclass="important admon"><divclass="icon"><imgalt="Important" src="images/icons/important.png" /></div><divclass="admon_content"><p>This request does not distinguish between an index and an alias,
631
+
i.e. status code <codeclass="literal">200</code> is also returned if an alias exists with that name.</p></div></div></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
<ahref="indices-open-close.html">Open / Close Index API
625
625
»
626
626
</a></span></div><divclass="chapter"><divclass="titlepage"><div><div><h2class="title"><aid="indices-exists"></a>Indices Exists<ahref="https://github.com/elastic/elasticsearch/edit/6.1/docs/reference/indices/indices-exists.asciidoc" class="edit_me" title="Edit this page on GitHub" rel="nofollow">edit</a></h2></div></div></div><p>Used to check if the index (indices) exists or not. For example:</p><divclass="pre_wrapper"><preclass="programlisting prettyprint lang-js">HEAD twitter</pre></div><divclass="console_widget" data-snippet="snippets/indices-exists/1.json"></div><p>The HTTP status code indicates if the index exists or not. A <codeclass="literal">404</code> means
627
-
it does not exist, and <codeclass="literal">200</code> means it does.</p></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
627
+
it does not exist, and <codeclass="literal">200</code> means it does.</p><divclass="important admon"><divclass="icon"><imgalt="Important" src="images/icons/important.png" /></div><divclass="admon_content"><p>This request does not distinguish between an index and an alias,
628
+
i.e. status code <codeclass="literal">200</code> is also returned if an alias exists with that name.</p></div></div></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
<ahref="indices-open-close.html">Open / Close Index API
628
628
»
629
629
</a></span></div><divclass="chapter"><divclass="titlepage"><div><div><h2class="title"><aid="indices-exists"></a>Indices Exists<ahref="https://github.com/elastic/elasticsearch/edit/master/docs/reference/indices/indices-exists.asciidoc" class="edit_me" title="Edit this page on GitHub" rel="nofollow">edit</a></h2></div></div></div><p>Used to check if the index (indices) exists or not. For example:</p><divclass="pre_wrapper"><preclass="programlisting prettyprint lang-js">HEAD twitter</pre></div><divclass="console_widget" data-snippet="snippets/indices-exists/1.json"></div><p>The HTTP status code indicates if the index exists or not. A <codeclass="literal">404</code> means
630
-
it does not exist, and <codeclass="literal">200</code> means it does.</p></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
630
+
it does not exist, and <codeclass="literal">200</code> means it does.</p><divclass="important admon"><divclass="icon"><imgalt="Important" src="images/icons/important.png" /></div><divclass="admon_content"><p>This request does not distinguish between an index and an alias,
631
+
i.e. status code <codeclass="literal">200</code> is also returned if an alias exists with that name.</p></div></div></div><divclass="navfooter"><spanclass="prev"><ahref="indices-get-index.html">
0 commit comments