question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding an aggregation which is not a collection property (e.g. years) breaks search

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
domoritzcommented, Apr 1, 2021

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?

2reactions
cigolplcommented, Aug 30, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found