An extraction recipe for a single value within a content property JSON object.
An extraction recipe defines which values within your JSON content property will be added to the search index and made available to CQL queries as a field. This can allow you to track custom information and make it look like a simple field on the content object.
You can further extend the field definition by including UI support.
See the content property key documentation for a complete example.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{
"objectName": "attachment.type",
"type": "string",
"alias": "myFirstAddon_contentType",
"uiSupport": {
"defaultOperator": "~",
"name": {
"value": "Content Type",
"i18n": "attachment.type.name"
},
"tooltip": {
"value": "Content Type Tooltip",
"i18n": "attachment.type.tooltip"
},
"dataUri": "/data/content-types",
"valueType": "string"
}
}
objectName
Type | |
Max length | 1000 |
Required | Yes |
Description | The
For instance, for JSON Currently, specifying indexes for JSON arrays is not supported. |
type
Type | |
Required | Yes |
Allowed values |
|
Description | The type of the referenced value. The type can be one of the following values:
* |
alias
Type | |
Description | A CQL field name alias for this content property. Only alphanumeric and underscore ( By defining an alias you are exposing it to CQL and allow other macros and search features to easily use your content property in their search. Important: Must be globally unique. Prefixing it with the name of your add-on is the best way to ensure this. |
uiSupport
Type | |
Description |
Note: You need to define an The UI Support element allows you to define how your content property field will be presented in the CQL Builder. When you define UI support for a field, then the CQL builder will include it in all CQL features in Confluence, including other CQL based macros. See the content property key documentation for a complete content property example. Example 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
name |
| ||||||||
valueType |
| ||||||||
dataUri |
| ||||||||
defaultOperator |
| ||||||||
tooltip |
|
Rate this page: