In an instantsearch.js UI we are building, we need to provide a custom refinementList widget that provides some options which would combine facet selections.
Say our attribute for faceting includes [a, b, c, x, y, z], can i use
transformData to provide custom options like “beginning” which would select the [a, b, c] values and “end” which would select the [x, y, z] values? That’s the best direction I’ve come up with, but haven’t quite found a solution.
I haven’t quite found a thread or example that does this. Basically, providing custom refinement options that do the same thing as selecting multiple refinementList items using
So on screen options would be something like:
- Beginning (filters
[type:"a" OR type:"b" OR type:"c"])
- End (filters
[type:"x" OR type:"y" OR type:"z"])