You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: search-endpoint.md
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -278,6 +278,7 @@ The returned JSON response will be like:
278
278
"name" : "author",
279
279
"facetType": "text",
280
280
"facetLimit": 10,
281
+
"openByDefault": false,
281
282
"_embedded" : {
282
283
"values" : [
283
284
{
@@ -312,6 +313,7 @@ The returned JSON response will be like:
312
313
"name" : "subject",
313
314
"facetType": "hierarchical",
314
315
"facetLimit": 10,
316
+
"openByDefault": false,
315
317
"_embedded" : {
316
318
"values" : [
317
319
{
@@ -346,6 +348,7 @@ The returned JSON response will be like:
346
348
"name": "dateIssued",
347
349
"facetType": "date",
348
350
"facetLimit": 10,
351
+
"openByDefault": false,
349
352
"minValue": "1940-03-15",
350
353
"maxValue": "2017-11-06",
351
354
"_links": {
@@ -435,6 +438,8 @@ This endpoint returns a list of configured facets with their respective values.
435
438
436
439
Some facets can be configured in the `discovery.xml` file to expose minimum and maximum values. In the example below the `dateIssued` filter has this configuration enabled.
437
440
441
+
Some facets can be configured in the `discovery.xml` to be presented initially opened/active by the `openByDefault` value.
442
+
438
443
The returned JSON response will be like:
439
444
440
445
```json
@@ -471,6 +476,7 @@ The returned JSON response will be like:
@@ -722,6 +734,17 @@ This endpoint returns a list of values that correspond to the given facet name.
722
734
*`f.<:filter-name>=<:filter-value>,<:filter-operator>`: Advanced search filter that has to be used to filter the result set. The `filter-name` and `filter-operator` must match a value returned by parent search endpoint (see above). For example `f.author=5df05073-3be7-410d-8166-e254369e4166,authority` or `f.title=rainbows,notcontains`. If the filter operator is absent or invalid a "422 Unprocessable Entity" will be returned.
723
735
*`page`, `size` & `sort`[see pagination](README.md#Pagination): the sort name be "count" (results ordered descending by the number of matching records) or "index" (results order alphabetically).
724
736
737
+
The facet contains the following information about itself:
738
+
*`name`: name of the facet
739
+
*`facetType`: type of the facet, e.g. `hierarchical`, `date`, `text`, `authority`
740
+
*`facetLimit`: maximum number of entries on the facet page
741
+
*`hasMore`: if the facet has more entries on the next facet page
742
+
*`openByDefault`: if the facet is meant to be presented initially opened/active by the `openByDefault` value.
743
+
*`minValue`: if configured to expose minimum and maximum values `exposeMinAndMaxValue` this is the minimum value
744
+
*`maxValue`: if configured to expose minimum and maximum values `exposeMinAndMaxValue` this is the maximum value
745
+
746
+
747
+
725
748
Example: TODO
726
749
727
750
The returned JSON response will be like:
@@ -754,6 +777,7 @@ The returned JSON response will be like:
0 commit comments