Searching in facet indices #4400
Unanswered
francoischalifour
asked this question in
Ideas
Replies: 1 comment 3 replies
-
How do the other widgets make sense in a "facet index"? Would they just throw an error? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since InstantSearch.js v4, we introduced the
index
widget that allows to target multiple Algolia indices in a singleinstantsearch
instance—and what if we allowed to also target facet indices?Motivation
When building advanced search interfaces, you often need to search through "hidden" data at first glance (e.g., hit categories) to allow to centralize all filters in a single search box.
Here's an example in a Pokédex application, where I search Pokémon and their abilities at the same time, to allow to refine the search.
I had to use the search client for this. As a user, I would expect to be able to use a
facetIndex
widget to search through these values.Proposed usage
A facet index could act as an index, where its widgets inherit from its context: a nested search box would target a facet index (through a SFFV endpoint), a
hits
widget would display facet hits, etc.Using the React syntax for convenience:
Am I the only one in need for such a feature?
Beta Was this translation helpful? Give feedback.
All reactions