Would it be possible to use the RangeInput control completely without min and max value? I’m using the vue
ais-range-input and I want to give my end user the possibility to enter any value they want in the min and max field. I don’t want them to be limited by the min and max of that value in my index.
I’m currently using a default slot where the min/max handling is removed from the UI, but I figured out that calling
refine is just not refining when the value that I provide is not within the range that is returned in the facet_stats. The underlying
connectRange seems to be preventing this as it’s only performing a query when
isMinValid are true. When no min/max is provided this will use the facet_stats. Is there a way to completely work without any range at all?
Solutions I’ve tried so far:
- Define Inifity as min and max. This is not working as it’s just setting the default behaviour.
- Set 0 and 99999999999 as min and max. This is always adding the 0 and 999999999999 to the query + url. I guess we will be charged for this when I have 5 fields doing this? Besides that I don’t want to have these values in my url by default.
The only solution I see now is overriding the rangeInput connector, but that doesn’t feel like the right solution for this.
Anybody overcome this issue or has an idea on how to solve it?