Package de.cxp.ocs.config
Class Field
java.lang.Object
de.cxp.ocs.config.Field
- Direct Known Subclasses:
IndexedField
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSourceName(String name) Adds the specified name to the source names list.booleanhasUsage(FieldUsage searchedUsage) booleanChecks if the field is be indexed on both - master and variant - level.booleanChecks if the field is indexed on master level.booleanChecks if the field is indexed on variant level.setUsage(FieldUsage usage1, FieldUsage... usages) setUsage(Collection<FieldUsage> usages)
-
Field Details
-
name
Sets the name of the field used in the Elasticsearch index.
-
-
Constructor Details
-
Field
public Field()
-
-
Method Details
-
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
Adds the specified name to the source names list.- Parameters:
name- the name to add to the list of source names.- Returns:
- this instance.
-
hasUsage
-
setUsage
-
setUsage
-