INNER CODE UNIT · Java

afterPropertiesSet

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

    public void afterPropertiesSet() throws Exception {
        logger.info("Starting Elasticsearch Low Level client");
        lowLevelClient = buildElasticsearchLowLevelClient();

        logger.info("Starting Elasticsearch client");
        // Create the transport with a Jackson mapper
        ElasticsearchTransport transport = new RestClientTransport(lowLevelClient, new JacksonJsonpMapper());
        // And create the API client
        client = new ElasticsearchClient(transport);

        // Automagically initialize the cluster/indices
        initLifecycles();
        initPipelines();
        initTemplates();
        initSettings();
        initAliases();
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…