You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm planning to remove so features which I'm finding not useful but I'd like to get your input.
The goal of this factory is basically to provide an ElasticsearchClient and automatically load index settings, index templates, pipelines, define aliases, ilm policies...
For this, we are reading for existing files in the classpath. But, developers can also force the factory and disable the classpath scanning:
@ConfigurationpublicclassAppConfig {
@BeanpublicElasticsearchClientesClient() throwsException {
ElasticsearchClientFactoryBeanfactory = newElasticsearchClientFactoryBean();
// Create two indices twitter and rssfactory.setIndices({ "twitter", "rss" });
// Create an alias alltheworld on top of twitter and rss indicesfactory.setAliases({ "alltheworld:twitter", "alltheworld:rss" });
// Disable automatic scanning of the classpath.factory.setAutoscan(false);
factory.afterPropertiesSet();
returnfactory.getObject();
}
}
}
Is that something you are using? Or can I remove all the methods like setIndices, setAliases, setComponentTemplates...
In which case, creating a client is just the following plus some files in the classpath (as static resources):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey dear community!
I'm planning to remove so features which I'm finding not useful but I'd like to get your input.
The goal of this factory is basically to provide an ElasticsearchClient and automatically load index settings, index templates, pipelines, define aliases, ilm policies...
For this, we are reading for existing files in the classpath. But, developers can also force the factory and disable the classpath scanning:
Is that something you are using? Or can I remove all the methods like
setIndices
,setAliases
,setComponentTemplates
...In which case, creating a client is just the following plus some files in the classpath (as static resources):
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions