Package de.cxp.ocs.config
Class Field
- java.lang.Object
-
- de.cxp.ocs.config.Field
-
public class Field extends Object
-
-
Constructor Summary
Constructors Constructor Description Field()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldaddSourceName(String name)Adds the specified name to the source names list.booleanisBothLevel()Checks if the field is be indexed on both - master and variant - level.booleanisMasterLevel()Checks if the field is indexed on master level.booleanisVariantLevel()Checks if the field is indexed on variant level.FieldsetUsage(FieldUsage usage1, FieldUsage... usages)FieldsetUsage(Collection<FieldUsage> usages)
-
-
-
Field Detail
-
name
@NonNull protected @NonNull String name
Sets the name of the field used in the Elasticsearch index.
-
-
Method Detail
-
isVariantLevel
public boolean isVariantLevel()
Checks if the field is indexed on variant level.- Returns:
trueif the field is on variant level,falseotherwise.
-
isMasterLevel
public boolean isMasterLevel()
Checks if the field is indexed on master level.- Returns:
trueif the field is on master level,falseotherwise.
-
isBothLevel
public boolean isBothLevel()
Checks if the field is be indexed on both - master and variant - level.- Returns:
trueif the field is on both level,falseotherwise.
-
addSourceName
public Field addSourceName(String name)
Adds the specified name to the source names list.- Parameters:
name- the name to add to the list of source names.- Returns:
- this instance.
-
setUsage
public Field setUsage(FieldUsage usage1, FieldUsage... usages)
-
setUsage
public Field setUsage(Collection<FieldUsage> usages)
-
-