Package org.elasticsearch.index.mapper
Class CompositeRuntimeField
java.lang.Object
org.elasticsearch.index.mapper.CompositeRuntimeField
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
,RuntimeField
A runtime field of type object. Defines a script at the top level, which emits multiple sub-fields.
The sub-fields are declared within the object in order to be made available to the field_caps and search API.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.RuntimeField
RuntimeField.Builder, RuntimeField.Parser
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionExposes theMappedFieldType
s backing this runtime field, used to execute queries, run aggs etc.name()
Exposes the name of the runtime fieldorg.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
- Constant Field Values
-
PARSER
-
-
Method Details
-
name
Description copied from interface:RuntimeField
Exposes the name of the runtime field- Specified by:
name
in interfaceRuntimeField
- Returns:
- name of the field
-
asMappedFieldTypes
Description copied from interface:RuntimeField
Exposes theMappedFieldType
s backing this runtime field, used to execute queries, run aggs etc.- Specified by:
asMappedFieldTypes
in interfaceRuntimeField
- Returns:
- the
MappedFieldType
s backing this runtime field
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-