[ADF-2786] AOT support for search filter widgets (#3224)

* AOT support for search filter widgets

* json schema for search settings
This commit is contained in:
Denys Vuika
2018-04-24 14:28:24 +01:00
committed by Eugenio Romano
parent 40b4fc7d66
commit b580efb7f6
8 changed files with 164 additions and 83 deletions

View File

@@ -476,6 +476,88 @@
"allowComments": { "type": "boolean" },
"allowDownload": { "type": "boolean" }
}
},
"search": {
"description": "Search configuration parameters",
"type": "object",
"properties": {
"limits": {
"description": "The limits element limits the time and resources used for query execution. Limits applied to the query go to the database.",
"type": "object",
"properties": {
"permissionEvaluationTime": { "type": "integer" },
"permissionEvaluationCount": { "type": "integer" }
}
},
"filterQueries": {
"type": "array",
"items": {
"type": "object",
"required": [ "query" ],
"properties": {
"query": { "type": "string" }
}
}
},
"facetFields": {
"type": "object",
"required": [ "facets" ],
"properties": {
"facets": {
"type": "array",
"items": {
"type": "object",
"required": [ "field", "mincount", "label" ],
"properties": {
"field": { "type": "string" },
"mincount": { "type": "integer" },
"label": { "type": "string" }
}
}
}
}
},
"facetQueries": {
"type": "array",
"items": {
"type": "object",
"required": [ "query", "label" ],
"properties": {
"query": { "type": "string" },
"label": { "type": "string" }
}
}
},
"query": {
"type": "object",
"required": [ "categories" ],
"properties": {
"categories": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [ "id", "name" ],
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"enabled": { "type": "boolean" },
"expanded": { "type": "boolean" },
"component": {
"type": "object",
"required": [ "selector", "settings" ],
"properties": {
"selector": { "type": "string" },
"settings": { "type": "object" }
}
}
}
}
}
}
}
}
}
}
}