INNER CODE UNIT · Java

getLowLevelClient

dadoonet/spring-elasticsearch · src/main/java/fr/pilato/spring/elasticsearch/ElasticsearchClientFactoryBean.java:210

    public RestClient getLowLevelClient() {
        return lowLevelClient;
    }

    /**
     * Elasticsearch properties
     * @param properties the properties
     * @deprecated it was only used to set xpack.security.user. Please use now {@link #setUsername(String)}
     * and {@link #setPassword(String)}.
     */
    @Deprecated
    public void setProperties(Properties properties) {
        String securedUser = properties.getProperty(XPACK_USER, null);
        if (securedUser != null) {
            logger.warn("Usage of xpack.security.user property has been deprecated. " +
                    "You should now use username and password factory settings.");

            // We split the username and the password

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…