-
Notifications
You must be signed in to change notification settings - Fork 386
Relationships between facets non-existant #927
Comments
Are you using A replication of your exact setup would be nice, there's a template here |
@Haroenv I'm not using distinct to my knowledge. Although it looks as though that is to do with de-duplication? I'll attempt to get a replication set up, although i'm going through redux to maintain my |
upon further inspection.. it seems that the wrapping of facets in another
the numbers are for the full index, no matter what i query, even though the searchState is updating. |
Why do you need to wrap InstantSearch instances in eachother? If you want to use several indices, you might want to try the Index component. I’m wondering what usecase you have |
@Haroenv I have several facets, each in a different dialog box. The only way to have them update and persist was to have each of them wrapped around a new |
Hi @danhodkinson, thanks for those explanations! It seems that your issue is linked to this one #892. If I correctly understand at the end you want that your refinements persist even when the modal is not on the screen. If you have the time to setup an example it would be great, you can find a template on CodeSandbox. |
I'm closing this one since it's inactive, feel free to re-open an issue. |
Bug: What is the current behavior?
Using the
refinementList
connector, the counts for the facet items have no relationship with each other.Bug: What is the expected behavior?
If I select a
defaultRefinementList
then my other refinements don't update. No relationships exist between them.What is the version you are using? Always use the latest one before opening a bug issue.
Latest React Instant search
Further
I have have the
<SearchBox>
widget, with twoconnectRefinementList
and anotherconnectMenu
which asks as the default refinement that the user queries against.Everything works as expected. I apply the filters on the facets and the results update. But it seems as though no relationship exists amongst them. If I add a country to my
location
facet. I expect the count of the hits on the other facet to be reduced.E.g. for the defaultRefinement of a brand we have about 350 results, which is reflected in the
<Stats>
widget. However on the country facet, theitem>count
is over 1000. Which seems as though it's relationship is to the whole index. and not the existing search state.The text was updated successfully, but these errors were encountered: