public enum DynamicType extends Enum<DynamicType>
Defines the behaviour when a document contains a field the wasn't define in the index schema.
More details on the Elasticsearch documentation: Elasticsearch mapping: dynamic
Enum Constant and Description |
---|
FALSE
Ignore unrecognized field
|
STRICT
Throw exception when the field is unrecognized
|
TRUE
Add unrecognized fields to the schema
|
Modifier and Type | Method and Description |
---|---|
static DynamicType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DynamicType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamicType TRUE
public static final DynamicType FALSE
public static final DynamicType STRICT
public static DynamicType[] values()
for (DynamicType c : DynamicType.values()) System.out.println(c);
public static DynamicType 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 nullCopyright © 2006-2023 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.