itemsapi / itemsjs

Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use
Apache License 2.0
346 stars 41 forks source link

Updating to v2 results in doc count of 1 #69

Closed domoritz closed 3 years ago

domoritz commented 3 years ago

I am trying to switch to v2 but in https://github.com/domoritz/domoritz.github.io/blob/b47cdbed49dfcd4df2fb8459c8669b78909b2744/_includes/pubfilter.js#L154, the aggregations on a search result always have doc count 1.

Screen Shot 2021-03-31 at 22 18 17

Did I miss a step when updating to v2?

cigolpl commented 3 years ago

Everything should work out of the box with upgrading to v2.0. It's compatible with v1.0.

There was a bug when you provide you own non integer "id" but now it is fixed with itemsjs@2.0.2

domoritz commented 3 years ago

Thank you for the quick fix. The new version looks great. It's fast and I can enable full text search.