mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3435][ADF-3436] fix schema json (#3688)
* fix schema json * fix description * update search config from documentation
This commit is contained in:
committed by
Eugenio Romano
parent
10c2115231
commit
3ac9ce4cca
@@ -61,12 +61,15 @@ A typical configuration is shown below:
|
|||||||
{ "query": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
{ "query": "TYPE:'cm:folder' OR TYPE:'cm:content'" },
|
||||||
{ "query": "NOT cm:creator:System" }
|
{ "query": "NOT cm:creator:System" }
|
||||||
],
|
],
|
||||||
"facetFields": [
|
"facetFields": {
|
||||||
|
"expanded": true,
|
||||||
|
"fields": [
|
||||||
{ "field": "content.mimetype", "mincount": 1, "label": "Type" },
|
{ "field": "content.mimetype", "mincount": 1, "label": "Type" },
|
||||||
{ "field": "content.size", "mincount": 1, "label": "Size" },
|
{ "field": "content.size", "mincount": 1, "label": "Size" },
|
||||||
{ "field": "creator", "mincount": 1, "label": "Creator" },
|
{ "field": "creator", "mincount": 1, "label": "Creator" },
|
||||||
{ "field": "modifier", "mincount": 1, "label": "Modifier" }
|
{ "field": "modifier", "mincount": 1, "label": "Modifier" }
|
||||||
],
|
]
|
||||||
|
},
|
||||||
"facetQueries": {
|
"facetQueries": {
|
||||||
"label": "My facet queries",
|
"label": "My facet queries",
|
||||||
"pageSize": 4,
|
"pageSize": 4,
|
||||||
|
@@ -568,37 +568,48 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"facetFields": {
|
"facetFields": {
|
||||||
"type": "array",
|
"type": "object",
|
||||||
"minItems": 1,
|
"required": ["fields"],
|
||||||
"items": {
|
"properties": {
|
||||||
"type": "object",
|
"expanded": {
|
||||||
"required": [ "field", "mincount", "label" ],
|
"description": "Toggles expanded state of the facet field",
|
||||||
"properties": {
|
"type": "boolean"
|
||||||
"field": {
|
},
|
||||||
"type": "string",
|
"fields": {
|
||||||
"description": "This specifies the facet field."
|
"description": "List of custom facet fields",
|
||||||
},
|
"type": "array",
|
||||||
"mincount": {
|
"minItems": 1,
|
||||||
"type": "number",
|
"items": {
|
||||||
"description": "This specifies the minimum count required for a facet field to be included in the response. The default value is 1."
|
"type": "object",
|
||||||
},
|
"required": [ "field", "mincount", "label" ],
|
||||||
"label": {
|
"properties": {
|
||||||
"type": "string",
|
"field": {
|
||||||
"description": "This specifies the label to include in place of the facet field."
|
"type": "string",
|
||||||
},
|
"description": "This specifies the facet field."
|
||||||
"prefix": {
|
},
|
||||||
"type": "string",
|
"mincount": {
|
||||||
"description": "This restricts the possible constraints to only indexed values with a specified prefix."
|
"type": "number",
|
||||||
},
|
"description": "This specifies the minimum count required for a facet field to be included in the response. The default value is 1."
|
||||||
"limit": {
|
},
|
||||||
"type": "number",
|
"label": {
|
||||||
"description": "Maximum number of results"
|
"type": "string",
|
||||||
},
|
"description": "This specifies the label to include in place of the facet field."
|
||||||
"pageSize": {
|
},
|
||||||
"type": "number",
|
"prefix": {
|
||||||
"description": "Display page size"
|
"type": "string",
|
||||||
},
|
"description": "This restricts the possible constraints to only indexed values with a specified prefix."
|
||||||
"offset": { "type": "integer" }
|
},
|
||||||
|
"limit": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "Maximum number of results"
|
||||||
|
},
|
||||||
|
"pageSize": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "Display page size"
|
||||||
|
},
|
||||||
|
"offset": { "type": "integer" }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user