Package org.graylog2.indexer
Class IndexMapping
java.lang.Object
org.graylog2.indexer.IndexMapping
- All Implemented Interfaces:
IndexMappingTemplate
- Direct Known Subclasses:
IndexMapping7
Representing the message type mapping in Elasticsearch. This is giving ES more
information about what the fields look like and how it should analyze them.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfieldProperties(String analyzer) messageMapping(String analyzer) messageTemplate(String template, String analyzer, int order) toTemplate(IndexSetConfig indexSetConfig, String indexPattern, int order) Returns the index template as a map.typeLong()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.indexer.IndexMappingTemplate
toTemplate
-
Field Details
-
TYPE_MESSAGE
- See Also:
-
-
Constructor Details
-
IndexMapping
public IndexMapping()
-
-
Method Details
-
toTemplate
Description copied from interface:IndexMappingTemplateReturns the index template as a map.- Specified by:
toTemplatein interfaceIndexMappingTemplate- Parameters:
indexSetConfig- the index set configurationindexPattern- the index pattern the returned template should be applied toorder- the order value of the index template- Returns:
- the index template
-
analyzerKeyword
-
messageTemplate
-
mapping
-
messageMapping
-
dynamicTemplate
-
fieldProperties
-
typeTimeWithMillis
-
typeLong
-
dateFormat
-