getindexrequest elasticsearch
GetIndexRequest request = new GetIndexRequest("index");
getindexrequest elasticsearch
GetIndexRequest request = new GetIndexRequest("index");
getindexrequest elasticsearch
public List<String> getIndexListWithPrefix(Object object) {
LOG.info("Retrieving index list with prefix: {}", object.toString());
String[] indices = client.admin().indices().getIndex(new GetIndexRequest()).actionGet().getIndices();
ArrayList<String> indexList = new ArrayList<>();
int length = indices.length;
for (int i = 0; i < length; i++) {
String indexName = indices[i];
if (indexName.startsWith(object.toString())) {
indexList.add(indexName);
}
}
return indexList;
}
getindexrequest elasticsearch
GetIndexRequest request = new GetIndexRequest("index");
getindexrequest elasticsearch
public List<String> getIndexListWithPrefix(Object object) {
LOG.info("Retrieving index list with prefix: {}", object.toString());
String[] indices = client.admin().indices().getIndex(new GetIndexRequest()).actionGet().getIndices();
ArrayList<String> indexList = new ArrayList<>();
int length = indices.length;
for (int i = 0; i < length; i++) {
String indexName = indices[i];
if (indexName.startsWith(object.toString())) {
indexList.add(indexName);
}
}
return indexList;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us