Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facet with boolean type for property is not managed #461

Open
fredgaillardUniDistance opened this issue Oct 21, 2021 · 0 comments
Open

Facet with boolean type for property is not managed #461

fredgaillardUniDistance opened this issue Oct 21, 2021 · 0 comments

Comments

@fredgaillardUniDistance

Describe the issue
Facet with boolean type for property is not managed

To Reproduce
add
"mappings": {
"date_detection": false,
"numeric_detection": false,
"properties": {
"$schema": {
"type": "text",
"index": false
},
...
"is_fun": {
"type": "boolean"
},
...
Expected behavior
...
Trace
core.js:6210 ERROR Error: Parameter "key" required
at TranslateService.instant (ngx-translate-core.js:990)
at BucketsComponent.getBucketName (rero-ng-core.js:15893)
at BucketsComponent_ul_0_li_1_Template (rero-ng-core.js:2163)
at executeTemplate (core.js:9614)
...

Request url
http://localhost:4200/api/testresource/?q=&page=1&size=1&facets=is_fun

Network preview
{aggregations: {is_fun: {,…}},…}
aggregations: {is_fun: {,…}}
is_fun: {,…}
buckets: [{doc_count: 47, key: 0, key_as_string: "false"}, {doc_count: 11, key: 1, key_as_string: "true"}]
0: {doc_count: 47, key: 0, key_as_string: "false"}
1: {doc_count: 11, key: 1, key_as_string: "true"}
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant