@Value.Immutable(copy=false)
public abstract class Field
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Field.IndexOptions |
static class |
Field.SubfieldSerializer |
static class |
Field.TermVector |
static class |
Field.Type |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.String> |
META_FIELDS
Elastic meta fields, see
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html
|
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object another) |
java.util.List<java.lang.String> |
getAdditionalTargets()
Returns a list of fields that should be targeted by
ElasticDocBuilder whenever this
field is targeted. |
java.util.Set<java.lang.String> |
getAliases()
Returns a list of aliases for this field.
|
java.lang.String |
getAnalyzer()
Returns the analyzer used by this field.
|
abstract java.lang.Double |
getBoost()
Returns a query time boosting.
|
abstract java.lang.Boolean |
getCoerce()
Returns true if Elastic should try to convert strings to numbers and truncate fractions for
integers.
|
java.util.List<java.lang.String> |
getCopyTo()
Returns a list of fields that this field value should be copied to.
|
abstract java.lang.String |
getDescription() |
java.util.Set<java.lang.String> |
getExcludePlugins() |
java.util.Map<java.lang.String,Field> |
getFields() |
abstract java.lang.String |
getFormat()
Returns the date format used by Elastic to parse date values.
|
java.lang.Integer |
getIgnoreAbove()
Returns the maximum length of strings that can be indexed or stored.
|
java.util.Set<java.lang.String> |
getIncludePlugins() |
abstract Field.IndexOptions |
getIndexOptions()
Returns setting that determines what information is added to the inverted index.
|
abstract java.lang.String |
getName()
Returns the name of the Elastic index field that should be created.
|
abstract java.lang.String |
getNormalizer()
Returns the normalizer used by this field.
|
abstract java.lang.String |
getNullValue()
Returns a value that will replace null values during indexed.
|
abstract Orientation |
getOrientation()
Returns how to interpret vertex order for polygons / multipolygons.
|
abstract java.lang.Integer |
getPositionIncrementGap() |
abstract java.lang.String |
getPrecision() |
java.lang.Integer |
getScalingFactor() |
abstract java.lang.String |
getSearchAnalyzer() |
abstract SpatialStrategy |
getStrategy()
Returns the approach for how to represent shapes at indexing and search time.
|
abstract Field.TermVector |
getTermVector()
Returns setting that determines what information is added to the inverted index.
|
java.util.List<TokenFilter> |
getTokenFilters() |
abstract Tree |
getTree() |
abstract java.lang.String |
getTreeLevels()
Returns maximum number of layers to be used by the PrefixTree.
|
Field.Type |
getType() |
java.lang.Boolean |
isDocValues()
Returns true if doc_values is enabled.
|
abstract java.lang.Boolean |
isEagerGlobalOrdinals() |
abstract java.lang.Boolean |
isEnabled()
Returns true if this field is enabled.
|
abstract java.lang.Boolean |
isFielddata()
Returns true if field data is enabled for field.
|
abstract java.lang.Boolean |
isIgnoreGlobalTokenFilters() |
abstract java.lang.Boolean |
isIgnoreMalformed()
Returns true if this field should ignore illegal values detected when building Elastic
document.
|
abstract java.lang.Boolean |
isIgnoreZValue()
Returns true (default) if three dimension points will be accepted (stored in source) but only
latitude and longitude values will be indexed; the third dimension is ignored.
|
java.lang.Boolean |
isIncludeInAll()
Returns true if this field should not be included in _all.
|
java.lang.Boolean |
isIndex()
Returns flag that indicates if field is indexed and therefore searchable.
|
boolean |
isMetaField() |
abstract java.lang.Boolean |
isNorms() |
abstract java.lang.Boolean |
isPointsOnly() |
abstract java.lang.Boolean |
isSortTokens() |
java.lang.Boolean |
isStore()
Returns true if the field value is stored.
|
public static final java.util.Set<java.lang.String> META_FIELDS
public boolean equals(@Nullable
java.lang.Object another)
equals in class java.lang.Object@Value.Default @Value.Auxiliary public java.util.List<java.lang.String> getAdditionalTargets()
ElasticDocBuilder whenever this
field is targeted.ElasticDocBuilder whenever this
field is targeted.@Value.Default @Value.Auxiliary public java.util.Set<java.lang.String> getAliases()
@Value.Default @Value.Auxiliary public java.lang.String getAnalyzer()
@Value.Auxiliary public abstract java.lang.Double getBoost()
@Value.Auxiliary public abstract java.lang.Boolean getCoerce()
@Value.Default @Value.Auxiliary public java.util.List<java.lang.String> getCopyTo()
getCopyTo() allows you to create custom _all fields. The values of multiple
fields can be copied into a group field, which can then be queried as a single field.@Value.Auxiliary public abstract java.lang.String getDescription()
@Value.Default @Value.Auxiliary public java.util.Set<java.lang.String> getExcludePlugins()
@Value.Default @Value.Auxiliary public java.util.Map<java.lang.String,Field> getFields()
@Value.Auxiliary public abstract java.lang.String getFormat()
@Value.Default @Value.Auxiliary public java.lang.Integer getIgnoreAbove()
@Value.Default @Value.Auxiliary public java.util.Set<java.lang.String> getIncludePlugins()
@Value.Auxiliary public abstract Field.IndexOptions getIndexOptions()
Field.IndexOptions.POSITIONS as the default, and all other
fields use Field.IndexOptions.DOCS as the default.public abstract java.lang.String getName()
@Value.Auxiliary public abstract java.lang.String getNormalizer()
@Value.Auxiliary public abstract java.lang.String getNullValue()
@Value.Auxiliary public abstract Orientation getOrientation()
@Value.Auxiliary public abstract java.lang.Integer getPositionIncrementGap()
@Value.Auxiliary public abstract java.lang.String getPrecision()
@Value.Default @Value.Auxiliary public java.lang.Integer getScalingFactor()
@Value.Auxiliary public abstract java.lang.String getSearchAnalyzer()
@Value.Auxiliary public abstract SpatialStrategy getStrategy()
@Value.Auxiliary public abstract Field.TermVector getTermVector()
Field.IndexOptions.POSITIONS as the default, and all other
fields use Field.IndexOptions.DOCS as the default.@Value.Default @Value.Auxiliary public java.util.List<TokenFilter> getTokenFilters()
@Value.Auxiliary public abstract Tree getTree()
@Value.Auxiliary public abstract java.lang.String getTreeLevels()
@Value.Default public Field.Type getType()
@Value.Default @Value.Auxiliary public java.lang.Boolean isDocValues()
@Value.Auxiliary public abstract java.lang.Boolean isEagerGlobalOrdinals()
@Value.Auxiliary public abstract java.lang.Boolean isEnabled()
@Value.Auxiliary public abstract java.lang.Boolean isFielddata()
@Value.Auxiliary public abstract java.lang.Boolean isIgnoreGlobalTokenFilters()
@Value.Auxiliary public abstract java.lang.Boolean isIgnoreMalformed()
@Value.Auxiliary public abstract java.lang.Boolean isIgnoreZValue()
@Value.Default @Value.Auxiliary public java.lang.Boolean isIncludeInAll()
@Value.Default @Value.Auxiliary public java.lang.Boolean isIndex()
@Value.Default @Value.Auxiliary public boolean isMetaField()
@Value.Auxiliary public abstract java.lang.Boolean isNorms()
@Value.Auxiliary public abstract java.lang.Boolean isPointsOnly()
@Value.Auxiliary public abstract java.lang.Boolean isSortTokens()
@Value.Default @Value.Auxiliary public java.lang.Boolean isStore()