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, CustomFieldMappings customFieldMappings) protected Template.Mappingsmapping(String analyzer, CustomFieldMappings customFieldMappings) messageMapping(String analyzer, CustomFieldMappings customFieldMappings) messageTemplate(String indexPattern, String analyzer, Long order, CustomFieldMappings customFieldMappings) toTemplate(IndexSetMappingTemplate indexSetConfig, Long 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- template-related index set configurationorder- the order value of the index template- Returns:
- the index template
-
analyzerKeyword
-
messageTemplate
public Template messageTemplate(String indexPattern, String analyzer, Long order, CustomFieldMappings customFieldMappings) -
mapping
-
messageMapping
protected Map<String,Object> messageMapping(String analyzer, CustomFieldMappings customFieldMappings) -
dynamicTemplate
-
fieldProperties
-
typeTimeWithMillis
-
typeLong
-
typeInteger
-
type
-
dateFormat
-