public abstract class DataProperty extends Property implements com.exalead.util.Checkable, java.io.Serializable
Property.Arity, Property.Tags
Modifier and Type | Field and Description |
---|---|
java.lang.String |
additionalMetaNames |
AdvancedParams |
advancedParams |
boolean |
dedicatedField |
static boolean |
DEFAULT_DEDICATED_FIELD |
static boolean |
DEFAULT_DISJUNCTIVE_REFINES |
static boolean |
DEFAULT_FACET |
static boolean |
DEFAULT_OVERRIDE_CLASS_EXPANSION_PARAMS |
static boolean |
DEFAULT_RAM_BASED |
static boolean |
DEFAULT_RETRIEVABLE |
static boolean |
DEFAULT_SEARCHABLE |
java.lang.String |
defaultValue |
boolean |
disjunctiveRefines |
java.lang.String |
dynamicProperty |
boolean |
facet |
boolean |
overrideClassExpansionParams |
boolean |
ramBased |
boolean |
retrievable |
boolean |
searchable |
arity, ARITY_MANY, ARITY_ONE, ARITY_ZERO_OR_ONE, comment, DEFAULT_ARITY, keyValue, label, name, tags
Constructor and Description |
---|
DataProperty() |
DataProperty(DataProperty o)
Copy constructor
|
DataProperty(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this DataProperty.
|
static DataProperty |
fromString(java.lang.String s)
String representation of this DataProperty.
|
java.lang.String |
getAdditionalMetaNames()
Maps these metas (as a comma-separated list) to this index or facet field.
Usable only for properties having a dedicated field, a facet, or are searchable without prefix. |
AdvancedParams |
getAdvancedParams() |
java.lang.String |
getDefaultValue()
If there is no value for this property in the document, use this default value.
|
java.lang.String |
getDynamicProperty()
Storing this meta in a dynamical property decreases index's memory footprint and improve index's commit time.
|
boolean |
isDedicatedField()
Should we create a dedicated index field for this property, or use a multi-field encoding?
A dedicated field is recommended if more than a few percent of objects have this property. Internal: if there is no dedicated field, we store in the "metas" field and index using prefixed-words. |
boolean |
isDisjunctiveRefines()
Makes refinements on this facet disjunctive ("checkboxes") rather than exclusive (select one).
|
boolean |
isFacet()
Creates a navigation facet from the property values.
|
boolean |
isOverrideClassExpansionParams() |
boolean |
isRamBased()
Stores this property in RAM.
|
boolean |
isRetrievable()
Displays the meta in the hit content of search results.
If the property doesn't have a dedicated field, the value will be CSV-encoded in the 'metas' field. |
boolean |
isSearchable()
Allows users to search for matches in this property using a prefix.
For example, to search for "API" in the title of a document, enter the search query |
DataProperty |
makeCopy() |
static DataProperty |
readFrom(java.io.InputStream is)
Read this DataProperty from an XML fragment.
|
void |
setAdditionalMetaNames(java.lang.String additionalMetaNames)
Maps these metas (as a comma-separated list) to this index or facet field.
Usable only for properties having a dedicated field, a facet, or are searchable without prefix. |
void |
setAdvancedParams(AdvancedParams advancedParams) |
void |
setDedicatedField(boolean dedicatedField)
Should we create a dedicated index field for this property, or use a multi-field encoding?
A dedicated field is recommended if more than a few percent of objects have this property. Internal: if there is no dedicated field, we store in the "metas" field and index using prefixed-words. |
void |
setDefaultValue(java.lang.String defaultValue)
If there is no value for this property in the document, use this default value.
|
void |
setDisjunctiveRefines(boolean disjunctiveRefines)
Makes refinements on this facet disjunctive ("checkboxes") rather than exclusive (select one).
|
void |
setDynamicProperty(java.lang.String dynamicProperty)
Storing this meta in a dynamical property decreases index's memory footprint and improve index's commit time.
|
void |
setFacet(boolean facet)
Creates a navigation facet from the property values.
|
void |
setOverrideClassExpansionParams(boolean overrideClassExpansionParams) |
void |
setRamBased(boolean ramBased)
Stores this property in RAM.
|
void |
setRetrievable(boolean retrievable)
Displays the meta in the hit content of search results.
If the property doesn't have a dedicated field, the value will be CSV-encoded in the 'metas' field. |
void |
setSearchable(boolean searchable)
Allows users to search for matches in this property using a prefix.
For example, to search for "API" in the title of a document, enter the search query |
java.lang.String |
toString()
String representation of this DataProperty.
|
DataProperty |
withAdditionalMetaNames(java.lang.String additionalMetaNames) |
DataProperty |
withAdvancedParams(AdvancedParams advancedParams) |
DataProperty |
withArity(java.lang.String arity) |
DataProperty |
withComment(java.lang.String comment) |
DataProperty |
withDedicatedField(boolean dedicatedField) |
DataProperty |
withDedicatedField(java.lang.Boolean dedicatedField) |
DataProperty |
withDefaultValue(java.lang.String defaultValue) |
DataProperty |
withDisjunctiveRefines(boolean disjunctiveRefines) |
DataProperty |
withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines) |
DataProperty |
withDynamicProperty(java.lang.String dynamicProperty) |
DataProperty |
withFacet(boolean facet) |
DataProperty |
withFacet(java.lang.Boolean facet) |
DataProperty |
withKeyValue(java.util.Collection<KeyValue> __values) |
DataProperty |
withKeyValue(KeyValue... __values) |
DataProperty |
withLabel(java.util.Collection<Label> __values) |
DataProperty |
withLabel(Label... __values)
Labels for the internationalization of this property's name
|
DataProperty |
withName(java.lang.String name) |
DataProperty |
withOverrideClassExpansionParams(boolean overrideClassExpansionParams) |
DataProperty |
withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams) |
DataProperty |
withRamBased(boolean ramBased) |
DataProperty |
withRamBased(java.lang.Boolean ramBased) |
DataProperty |
withRetrievable(boolean retrievable) |
DataProperty |
withRetrievable(java.lang.Boolean retrievable) |
DataProperty |
withSearchable(boolean searchable) |
DataProperty |
withSearchable(java.lang.Boolean searchable) |
DataProperty |
withTags(java.util.Collection<KeyValue> __values) |
DataProperty |
withTags(KeyValue... __values)
User-defined tags for this property.
|
void |
writeTo(java.io.OutputStream os) |
addKeyValue, getArity, getArityAsEnum, getComment, getKeyValue, getLabel, getName, getTags, isA, isOneOf, setArity, setArity, setComment, setName, setTags, withTags
public AdvancedParams advancedParams
public boolean overrideClassExpansionParams
public static final boolean DEFAULT_OVERRIDE_CLASS_EXPANSION_PARAMS
public boolean dedicatedField
public static final boolean DEFAULT_DEDICATED_FIELD
public java.lang.String dynamicProperty
public boolean searchable
public static final boolean DEFAULT_SEARCHABLE
public boolean retrievable
public static final boolean DEFAULT_RETRIEVABLE
public boolean ramBased
public static final boolean DEFAULT_RAM_BASED
public boolean facet
public static final boolean DEFAULT_FACET
public boolean disjunctiveRefines
public static final boolean DEFAULT_DISJUNCTIVE_REFINES
public java.lang.String defaultValue
public java.lang.String additionalMetaNames
public DataProperty()
public DataProperty(DataProperty o)
public DataProperty(java.lang.String name)
public DataProperty withKeyValue(KeyValue... __values)
withKeyValue
in class Property
public DataProperty withKeyValue(java.util.Collection<KeyValue> __values)
withKeyValue
in class Property
public DataProperty withArity(java.lang.String arity)
public DataProperty withName(java.lang.String name)
public DataProperty withComment(java.lang.String comment)
withComment
in class Property
public DataProperty withLabel(Label... __values)
public DataProperty withLabel(java.util.Collection<Label> __values)
public DataProperty withTags(KeyValue... __values)
public DataProperty withTags(java.util.Collection<KeyValue> __values)
public void setAdvancedParams(AdvancedParams advancedParams)
public AdvancedParams getAdvancedParams()
public DataProperty withAdvancedParams(AdvancedParams advancedParams)
public void setOverrideClassExpansionParams(boolean overrideClassExpansionParams)
public boolean isOverrideClassExpansionParams()
public DataProperty withOverrideClassExpansionParams(boolean overrideClassExpansionParams)
public DataProperty withOverrideClassExpansionParams(java.lang.Boolean overrideClassExpansionParams)
public void setDedicatedField(boolean dedicatedField)
public boolean isDedicatedField()
public DataProperty withDedicatedField(boolean dedicatedField)
public DataProperty withDedicatedField(java.lang.Boolean dedicatedField)
public void setDynamicProperty(java.lang.String dynamicProperty)
public java.lang.String getDynamicProperty()
public DataProperty withDynamicProperty(java.lang.String dynamicProperty)
public void setSearchable(boolean searchable)
title:API
public boolean isSearchable()
title:API
public DataProperty withSearchable(boolean searchable)
public DataProperty withSearchable(java.lang.Boolean searchable)
public void setRetrievable(boolean retrievable)
public boolean isRetrievable()
public DataProperty withRetrievable(boolean retrievable)
public DataProperty withRetrievable(java.lang.Boolean retrievable)
public void setRamBased(boolean ramBased)
public boolean isRamBased()
public DataProperty withRamBased(boolean ramBased)
public DataProperty withRamBased(java.lang.Boolean ramBased)
public void setFacet(boolean facet)
public boolean isFacet()
public DataProperty withFacet(boolean facet)
public DataProperty withFacet(java.lang.Boolean facet)
public void setDisjunctiveRefines(boolean disjunctiveRefines)
public boolean isDisjunctiveRefines()
public DataProperty withDisjunctiveRefines(boolean disjunctiveRefines)
public DataProperty withDisjunctiveRefines(java.lang.Boolean disjunctiveRefines)
public void setDefaultValue(java.lang.String defaultValue)
public java.lang.String getDefaultValue()
public DataProperty withDefaultValue(java.lang.String defaultValue)
public void setAdditionalMetaNames(java.lang.String additionalMetaNames)
public java.lang.String getAdditionalMetaNames()
public DataProperty withAdditionalMetaNames(java.lang.String additionalMetaNames)
public DataProperty makeCopy()
public static DataProperty readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
public static DataProperty fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
Copyright © 2021 Dassault Systèmes, All Rights Reserved.