Hi all,
I have a use case where I have a couple of attributes which have min and max values. For example the width of a door. The attribute door_width
has a minimum width (e.g. 120mm
) and a maximum width (e.g. 240mm
). Now, I would like to use the rangeSlider
widget to filter for those values.
In my first approach I saved all possible values inbetween min and max into Algolia’s index. So in that case this would have been: 120, 121, 122, 123, …, 240. As you can imagine, this would generate a lot of values if you have big differences between the min and the max values. It’s gotten so big, that I reached the limit of 10KB (was up to 17KB) per index item.
Therefore, this is not a possible solution for me anymore. I would much rather like to only save the actual min and max value (e.g. [120, 240]
). My question now is, how can I filter for those values?
Let’s say my range-slider has a value of [150, 350]
, the item with a range of [120, 240]
should be displayed. How could I do this with the range-slider?
Thanks for your suggestions.