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.

Question on the page "rangeSlider"

See original GitHub issue

Hi, I have a documentation issue on InstantSearch.js. I could not find what I was looking for on the page “rangeSlider”.

I believe it is not possible to do a numeric filtering on an object key value for which I have a rangeSlider. Let’s say this is the document stored in algolia:

{
  name: "product",
  price: 22,
  values: {
    length: 56,
    width: 34
  },
  objectID: "1"
}

price > 20 works perfectly, but I cannot seem to do a values.width > 30 for instance (I tried this on the dashboard as well).

Is there any way around this or all numeric filters have to be top level?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
samousscommented, Jun 29, 2018

I looked at your example and it seems that the attribute value_features.Poids hold string values rather than number. But the widget only works with number. You should update your values to match the widget expectation.

0reactions
nicogominetcommented, Jun 29, 2018

Yes you’re right, I thought I checked that before but the quotes are a light grey and my eyes didn’t catch it. Sorry about that and thanks for the support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Two Range Sliders on same page - rangeslider.js [closed]
The issue is your css selectors are targeting both inputs, changing your functions.js from $('input[type="range"]').rangeslider({ polyfill: ...
Read more >
Multiple slider on the same page · Issue #715 · IonDen/ion ...
Hi, I'm hoping someone may point me in the right direction as to what I'm trying to achieve here. var $range = $(".range-slider"), ......
Read more >
Example of Side-By-Side Sliders — XM Community
I am trying to use a side by side question to get two sliders ... hide the text input from a question,; add...
Read more >
<input type="range"> - HTML: HyperText Markup Language
elements of type range let the user specify a numeric value which must be no less than a given value, and no more...
Read more >
Range Slider: little question - Framework7 Forum
Good morning guys, I have a little problem. In one page I have something like: div id=“price-filter” class=“range-slider range-slider-init ...
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