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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
fieldProperties
(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, wait
Methods 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:IndexMappingTemplate
Returns the index template as a map.- Specified by:
toTemplate
in 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
-