Interface IndexMappingTemplate

All Known Implementing Classes:
EventsIndexMapping, EventsIndexMapping7, IndexMapping, IndexMapping7

public interface IndexMappingTemplate
Implementing classes provide an index mapping template representation that can be stored in Elasticsearch.
  • Method Details

    • toTemplate

      Map<String,Object> toTemplate(IndexSetConfig indexSetConfig, String indexPattern, int order)
      Returns the index template as a map.
      Parameters:
      indexSetConfig - the index set configuration
      indexPattern - the index pattern the returned template should be applied to
      order - the order value of the index template
      Returns:
      the index template
    • toTemplate

      default Map<String,Object> toTemplate(IndexSetConfig indexSetConfig, String indexPattern)
      Returns the index template as a map. (with an default order of -1)
      Parameters:
      indexSetConfig - the index set configuration
      indexPattern - the index pattern the returned template should be applied to
      Returns:
      the index template