<p dir="auto">Trying with 1.0.1</p>
<p dir="auto">curl '<a href="http://localhost:9200/foobar*/_stats?pretty&amp;clear=1" rel="nofollow">http://localhost:9200/foobar*/_stats?pretty&amp;clear=1</a>'</p>
<p dir="auto">The indices section has all my indices. :(</p>
<p dir="auto">Trying with 0.90.12</p>
<p dir="auto">{<br>
"error" : "IndexMissingException[[foobar-*] missing]",<br>
"status" : 404<br>
}</p>
<p dir="auto">Either the 0.90 solution or an empty indices section would be better then returning all.<br>
This may happen with other APIs, haven't tried</p>
<p dir="auto">Hi,<br>
I expect to get empty response for scenario;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#create an index
curl -XPOST http://localhost:9200/test-1

# execute _stats for indices starting with xyz (ensure this regex has no matches)
curl -XPOST http://locahost:9200/xyz*/_stats"><pre lang="ssh" class="notranslate"><code class="notranslate">#create an index
curl -XPOST http://localhost:9200/test-1

# execute _stats for indices starting with xyz (ensure this regex has no matches)
curl -XPOST http://locahost:9200/xyz*/_stats
</code></pre></div>
<p dir="auto">returns stats of all indices. I think this should return empty response.</p>
<p dir="auto">Tried with 1.0.1 and 1.1.0</p>