public enum Dynamic extends Enum<Dynamic>
dynamic
mapping parameter.Enum Constant and Description |
---|
FALSE
New fields are ignored.
|
INHERIT
Inherit the dynamic setting from their parent object or from the mapping type.
|
RUNTIME
New fields are added to the mapping as
runtime fields.
|
STRICT
If new fields are detected, an exception is thrown and the document is rejected.
|
TRUE
New fields are added to the mapping.
|
Modifier and Type | Method and Description |
---|---|
String |
getMappedName() |
static Dynamic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dynamic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dynamic TRUE
public static final Dynamic RUNTIME
_source
at query time.public static final Dynamic FALSE
_source
field of returned hits. These fields will not be added to the mapping, and new fields must be added
explicitly.public static final Dynamic STRICT
public static final Dynamic INHERIT
public static Dynamic[] values()
for (Dynamic c : Dynamic.values()) System.out.println(c);
public static Dynamic valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMappedName()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.