...
|
...
|
@@ -57,10 +57,14 @@ public class ESClientMgr { |
|
|
indexNames.add(ISearchConstants.INDEX_NAME_IMAGE_VECTORS);
|
|
|
indexNames.add(ISearchConstants.INDEX_NAME_PROMOTIONINDEX);
|
|
|
|
|
|
for (String indexName : indexNames) {
|
|
|
this.getClient(indexName);
|
|
|
}
|
|
|
|
|
|
new Thread(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
for (String indexName : indexNames) {
|
|
|
getClient(indexName);
|
|
|
}
|
|
|
}
|
|
|
}).start();
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|