Closed seifrached closed 1 year ago
Hey @seifrached, to make the range slider work with Meilisearch it requires some tweaks because indeed we do not provide the min and max values. Here is the explanation in the instant-meilisearch readme.
There is not really a perfect solution, if you'd like to see this implemented could you react on the product repository?
product
Thanks for the explanation
Closing as it is related to the product :)
Hi everyone,
I tried using an example that works well like vue-instantsearch from official doc https://www.algolia.com but it didn't work !!! Mainly the problem is due "RANGE" value from the slot, always 0 {range.min AND range.max} ! the minimum and maximum value is not automatically computed by Algolia from the data in the index.
BUT Trying to use :min="0" :max="100" inside it work ≈ But the problem is that I can't retrieve any record >= to :max="100" !!!
methods:{
toValue(value, range) { console.log(value,range) return [ typeof value.min === "number" ? value.min : range.min, typeof value.max === "number" ? value.max : range.max, ]; }, }
console.log(value) max: undefined min: undefined
console.log(range) max: 0 min: 0