Class ElasticsearchConnection

    • Field Detail

      • ELASTICSEARCH_DEFAULT_PORT

        public static final int ELASTICSEARCH_DEFAULT_PORT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ElasticsearchConnection

        public ElasticsearchConnection​(Config config)
    • Method Detail

      • client

        public org.elasticsearch.client.Client client()
      • createIndex

        public String createIndex​(TargetIndexConfig ticonf,
                                  boolean rebuilder)
        Creates the index (if needed), configures it (mapping), and creates aliases. The real index name to be used is returned.
      • closeIndex

        public void closeIndex​(TargetIndexConfig ticonf,
                               String realIndexName,
                               boolean cleanShutdown)
        Closes the index after harvesting and update the aliases to point to the active index.
      • updateAliases

        public void updateAliases​(TargetIndexConfig ticonf)
        Closes the index after harvesting and update the aliases to point to the active index.