[ADF-3497] Facet intervals on search filter (#4255)

* [ADF-3497] allow facetIntervals on search

* [ADF-3497] update schema json

* [ADF-3497] update json

* [ADF-3497] documentation update

* [ADF-3497] specify that sets are not supported

* [ADF-3497] no spaces on labels - mention

* [ADF-3497] documentation update

* [ADF-3497] update examples & document label key

* [ADF-3497] tests added

* [ADF-3497] testRail id

* [ADF-3497] allow config of custom pageSize values

* [ADF-3497] support mincount filtering also for intervals

* [ADF-3497] support expanded property also for facetIntervals

* remove no longer needed info

- bcs. of PR #4322 fix
This commit is contained in:
Suzana Dirla
2019-02-18 20:51:15 +02:00
committed by Eugenio Romano
parent f20a71438c
commit e34f80aff7
11 changed files with 368 additions and 21 deletions

View File

@@ -980,6 +980,81 @@
}
}
},
"facetIntervals": {
"type": "object",
"required": [
"intervals"
],
"properties": {
"intervals": {
"description": "List of facet intervals",
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"field",
"sets"
],
"properties": {
"label": {
"description": "This specifies the label to use to identify the field facet.",
"type": "string"
},
"field": {
"description": "This specifies the field to facet on.",
"type": "string"
},
"sets": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"start",
"end"
],
"properties": {
"label": {
"description": "This specifies the label to use to identify the set.",
"type": "string"
},
"start": {
"description": "This specifies the start of the range.",
"type": "string"
},
"end": {
"description": "This specifies the end of the range.",
"type": "string"
},
"startInclusive": {
"description": "When true, the set will include values greater or equal to 'start'. The default value is true.",
"type": "boolean"
},
"endInclusive": {
"description": "When true, the set will include values less than or equal to 'end'. The default value is true.",
"type": "boolean"
}
}
}
},
"pageSize": {
"type": "number",
"description": "Display page size"
},
"mincount": {
"type": "number",
"description": "This specifies the minimum count required for a facet interval to be displayed. The default value is 1."
}
}
}
},
"expanded": {
"description": "Toggles expanded state of the facet intervals",
"type": "boolean"
}
}
},
"facetQueries": {
"type": "object",
"required": [
@@ -1017,6 +1092,7 @@
"type": "string"
},
"label": {
"description": "Unique identifier for the query",
"type": "string"
},
"group": {