Can I select multiple options with numericMenu?

Hi, I’m using numericMenu for price filtering.

For example, if I want to select price range from 1~10 and 100~1000, is the function available on Algolia or it only supports for single option?

Also, I would like to know if putting decimal points(numericMenu) is possible in react-instantsearch. Thanks in advance.

Hi @dev17, the numericMenu currently allows for one value only.
There are many ways to support your use case:

OPTION 1. create your own custom connector, starting off connectNumericMenu https://github.com/algolia/react-instantsearch/blob/master/packages/react-instantsearch-core/src/connectors/connectNumericMenu.js

OPTION 2. (the easiest) add a new property priceRange to your records, then use a RefinementList
So for example, a record would look like this:
{
“price”: 7,
“priceRange”: “1-10”
}