How to get all the indexes and filter the indexes by using Nest in C#
GetIndexAsync
is removed from Assembly Nest, Version=7.0.0.0
from Version=7.0.0.0
you can use this :
var result = await _client.Indices.GetAsync(new GetIndexRequest(Indices.All));
This works, a slightly sexier way of writing it would be using .Except()
on result.Indices.
Another route would be by using .CatIndices()
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-indices.html
Code Assembly Nest, Version=6.0.0.0
as below
var result = await _client.GetIndexAsync(null, c => c .AllIndices() );
you will get result in result.Indices.Keys
string list