One custom field registered against a repo app's search index via Queries.addAppIndexedField. Holds the target field name and search mapping type, together with the name of the JavaScript function that computes the field's value for an item being indexed.
Properties
| Property | Returns | Description |
|---|---|---|
| appIndexerName | String | The id of the app indexer this field is added to. |
| fieldName | String | The name of this field as it appears in the search index. |
| mappingContentFn | String | The name of the global JavaScript function that computes this field's value for an indexed item. |
| mappingType | String | The search index mapping type for this field, for example string, text, keyword, long, double, integer, geo, bool or date. |
| notAnalyzed | boolean | Whether this field is indexed without text analysis, for example for exact-match keyword fields. |
Methods
getAppIndexerName()
Returns: String
The id of the app indexer this field is added to.
getFieldName()
Returns: String
The name of this field as it appears in the search index.
getMappingContentFn()
Returns: String
The name of the global JavaScript function that computes this field's value for an indexed item.
getMappingType()
Returns: String
The search index mapping type for this field, for example string, text, keyword, long, double, integer, geo, bool or date.
isNotAnalyzed()
Returns: boolean
Whether this field is indexed without text analysis, for example for exact-match keyword fields.