So I think I've resolved this, I'd like to share what I did and see if anyone can review and let me know if it's the expected way to do it.
Here's what I came up with:
IndexNameExpressionResolver resolver = new IndexNameExpressionResolver(Settings.EMPTY);
String [] indices = resolver.concreteIndices(cl.admin()
.cluster().prepareState().get().getState(),
IndicesOptions.lenientExpandOpen(),
match);
Does that look like the idiomatic way to resolve index names based on a wildcard expression for ES 2.0? I guess I feel that with the @Inject annotation on IndexNameExpressionResolver and having to send in Settings.EMPTY, something just doesn't feel right.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.