Adding an aggregation which is not a collection property (e.g. years) breaks search
See original GitHub issueHi, This is a very interesting and extremely useful project.
I’m just encountering a slight problem when I extend the filter configuration with a pure ‘scalar’ value. In order to situate the problem as clear as problem, allow me to refer to your movie sample. (https://jsfiddle.net/cigol/0ef9qeos/5/) When in this sample, you change the configuration as follows:
year: {
title: 'Year',
size: 10
}
the search isn’t working any longer. Did I miss something? You can find the updated jsfiddle reproducing the problem here as well: https://jsfiddle.net/paulvb/86xbs4jd/ So, basically the ‘year list’, the bucket list so to speak is built up correctly but when you select a year, things break.
Thanks a lot paul.
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
$lookup (aggregation) — MongoDB Manual
Specifies the local documents' localField to perform an equality match with the foreign documents' foreignField . If a local document does not contain...
Read more >MongoDB Aggregation: tutorial with examples and exercises
Master the MongoDB aggregation pipeline. Follow along with query examples using the most important aggregation stages, and test your skills!
Read more >Data Aggregation in Tableau
When you add a measure to the view, Tableau automatically aggregates its values. Sum, average, and median are common aggregations; for a complete...
Read more >MongoDB aggregation with $lookup only include (or ...
The request works well, but I would like to filter the fields in campaign.client to only get for example _id and username ....
Read more >Terms aggregation | Elasticsearch Guide [8.5] | Elastic
A multi-bucket value source based aggregation where buckets are dynamically built - one per unique value. Example: GET /_search { "aggs": ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As I understand it, itemsjs does check for exact matches in the filters. It would be great if it supported numbers and boolean in addition to strings. It seems a bit odd that as a user I have to convert numbers to strings to make them work in facets. Or am I missing something?
Paul, the each
year
field in file you are including in jsfiddle https://cdn.rawgit.com/itemsapi/itemsapi-example-data/master/jsfiddle/imdb.js should be as a string then it should work