I'm trying to convert this code:
String indices = client.admin().cluster().prepareState().execute().actionGet() .getState().getMetaData() .convertFromWildcards(match, IndicesOptions.lenientExpandOpen());
to ES 2.0. I see IndexNameExpressionResolve and WildcardExpressionResolver, but I can't seem to find a good way to instantiate these.
Anyone know how I can do this? I'm trying to resolve a bunch of indexes from a pattern to their concrete names if that isn't obvious from the code.
I appreciate any help!