String eventGazMapping = new Gson().toJson(new AssociationFeaturePojoIndexMap.Mapping(), AssociationFeaturePojoIndexMap.Mapping.class);
ElasticSearchManager eventIndex = IndexManager.createIndex(AssociationFeaturePojoIndexMap.indexName_, null, false, null, eventGazMapping, localSettingsEvent);
if (null == eventIndex) { // (if has been previously referenced in this process space)
eventIndex = IndexManager.getIndex(AssociationFeaturePojoIndexMap.indexName_);
}
eventIndex.createAlias(AssociationFeaturePojoIndexMap.indexCollectionName_);
if (bDeleteEventFeature) {
eventIndex.deleteMe();
eventIndex = IndexManager.createIndex(AssociationFeaturePojoIndexMap.indexName_, null, false, null, eventGazMapping, localSettingsEvent);
}
//entity feature