ModelSearch module
FacetsIndexField
A model in the Search module, with 33 members for templates, 30 API properties and 40 members for admin templates.
Templates view
Properties 33
Take no arguments.
-
#
getLabelsList() -
array - Key/value list used to transform values to a presentable representation (as an array). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
isCaseSensitiveAble() -
bool - Returns whether a "case-sensitive" setting is meaningful for this field's type. Only a
keywordfield carries the case-insensitive normalizer in the Elasticsearch mapping; for any other type the toggle has no mapping effect. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
isFulltextAble() -
bool - Returns whether a "fulltext" setting is meaningful for this field's type. The "fulltext" flag adds a
.textmulti-field so a non-analyzed field can ALSO be full-text searched. Atextfield is already analyzed, so the flag is redundant there; every other type can opt in. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
getId() -
?int -
#
getName() -
?string -
#
getType() -
?string - The type of the field: * keyword ‒ The value is stored "as is". No analysis is applied. The default type for Faceted Search. * long ‒ Used to store whole numbers, such as ID values. * double ‒ Used to store floating point numbers, such as price. * date ‒ Used to store date fields. * boolean ‒
true / false. * text ‒ Used to store long strings of text for full-text search. -
#
isFulltext() -
bool - When
true, a.textsubfield of the same field will be created in the Elasticsearch. This is useful when the same field (e.g. of akeywordtype) needs to be used as a filter and for fulltext search at the same time. -
#
isCaseSensitive() -
bool - By default, the values are indexed as is, which makes facet values case-sensitive, so a filter query
?size=XLwill not find a document with sizexl. This behavior can be changed with acase_sensitiveproperty set to false. -
#
isHidden() -
bool - All fields are assumed to be used as filters and appear in search results. If there is no intention to display the facet (perhaps, use this field only for filtering purposes), it can be hidden.
-
#
getLabels() -
?string - Key/value list used to transform values to a presentable representation (as a JSON string). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
getOrder() -
?string - The order facet values are sorted on the return from Elasticsearch. By count, by name.
-
#
getOutputOrder() -
?string - The order applied to facet values returned from Elasticsearch. A "post-return" ordering before rendering values.
-
#
getProperties() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 30
Read-only values on the record.
-
#
labelsList -
array - Key/value list used to transform values to a presentable representation (as an array). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
caseSensitiveAble -
bool - Returns whether a "case-sensitive" setting is meaningful for this field's type. Only a
keywordfield carries the case-insensitive normalizer in the Elasticsearch mapping; for any other type the toggle has no mapping effect. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
fulltextAble -
bool - Returns whether a "fulltext" setting is meaningful for this field's type. The "fulltext" flag adds a
.textmulti-field so a non-analyzed field can ALSO be full-text searched. Atextfield is already analyzed, so the flag is redundant there; every other type can opt in. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
id -
?int -
#
name -
?string -
#
type -
?string - The type of the field: * keyword ‒ The value is stored "as is". No analysis is applied. The default type for Faceted Search. * long ‒ Used to store whole numbers, such as ID values. * double ‒ Used to store floating point numbers, such as price. * date ‒ Used to store date fields. * boolean ‒
true / false. * text ‒ Used to store long strings of text for full-text search. -
#
fulltext -
bool - When
true, a.textsubfield of the same field will be created in the Elasticsearch. This is useful when the same field (e.g. of akeywordtype) needs to be used as a filter and for fulltext search at the same time. -
#
caseSensitive -
bool - By default, the values are indexed as is, which makes facet values case-sensitive, so a filter query
?size=XLwill not find a document with sizexl. This behavior can be changed with acase_sensitiveproperty set to false. -
#
labels -
?string - Key/value list used to transform values to a presentable representation (as a JSON string). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
order -
?string - The order facet values are sorted on the return from Elasticsearch. By count, by name.
-
#
outputOrder -
?string - The order applied to facet values returned from Elasticsearch. A "post-return" ordering before rendering values.
-
#
properties -
?string
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 40
Take no arguments.
-
#
getLabelsList() -
array - Key/value list used to transform values to a presentable representation (as an array). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
isCaseSensitiveAble() -
bool - Returns whether a "case-sensitive" setting is meaningful for this field's type. Only a
keywordfield carries the case-insensitive normalizer in the Elasticsearch mapping; for any other type the toggle has no mapping effect. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
isFulltextAble() -
bool - Returns whether a "fulltext" setting is meaningful for this field's type. The "fulltext" flag adds a
.textmulti-field so a non-analyzed field can ALSO be full-text searched. Atextfield is already analyzed, so the flag is redundant there; every other type can opt in. Used to hide the toggle in the admin and to decide whether a change forces a rebuild. -
#
getId() -
?int -
#
getName() -
?string -
#
getType() -
?string - The type of the field: * keyword ‒ The value is stored "as is". No analysis is applied. The default type for Faceted Search. * long ‒ Used to store whole numbers, such as ID values. * double ‒ Used to store floating point numbers, such as price. * date ‒ Used to store date fields. * boolean ‒
true / false. * text ‒ Used to store long strings of text for full-text search. -
#
isFulltext() -
bool - When
true, a.textsubfield of the same field will be created in the Elasticsearch. This is useful when the same field (e.g. of akeywordtype) needs to be used as a filter and for fulltext search at the same time. -
#
isCaseSensitive() -
bool - By default, the values are indexed as is, which makes facet values case-sensitive, so a filter query
?size=XLwill not find a document with sizexl. This behavior can be changed with acase_sensitiveproperty set to false. -
#
isHidden() -
bool - All fields are assumed to be used as filters and appear in search results. If there is no intention to display the facet (perhaps, use this field only for filtering purposes), it can be hidden.
-
#
getLabels() -
?string - Key/value list used to transform values to a presentable representation (as a JSON string). For example, a value of "tbc" may want to be displayed as "To Be Confirmed".
-
#
getOrder() -
?string - The order facet values are sorted on the return from Elasticsearch. By count, by name.
-
#
getOutputOrder() -
?string - The order applied to facet values returned from Elasticsearch. A "post-return" ordering before rendering values.
-
#
getProperties() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getFulltextDisplay()Admin only -
string - Returns the "Fulltext" value for the manage table: "Yes" / "No", or a dash when the setting does not apply to this field's type.
-
#
getCaseSensitiveDisplay()Admin only -
string - Returns the "Case Sensitive" value for the manage table: "Yes" / "No", or a dash when the setting does not apply to this field's type.
-
#
getPredefinedValues()Admin only -
string - Formats the stored predefined values and labels as the editable "value::label" per-line text shown in the backend form.
No members match the filter.