Restricting HierarchicalMenu Search to a Specific Collection
TLDR gab needed to restrict the HierarchicalMenu component to search within a specific collection. Jason solved the issue by recommending they nest the HierarchicalMenu within an Index element.
1
Feb 11, 2022 (23 months ago)
gab
05:51 PMwhen using the HierarchicalMenu from 'react-instantsearch-dom' can we restrict the component so that search will be on a specific collection ?
Jason
07:01 PMJason
07:02 PMgab
07:03 PMBut in my case I only have those categories on one collection.
gab
07:05 PM<InstantSearch>
<Index indexName="col1" />
<Index indexName="col2" />
<HierarchicalMenu attributes={['categories.lvl0']}/>
</InstantSearch>
gab
07:05 PMJason
08:01 PMJason
08:02 PM<Index indexName="col2">
<HierarchicalMenu attributes={['categories.lvl0']}/
</Index>
Feb 14, 2022 (23 months ago)
gab
11:36 AM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Configuring HierarchicalMenu and Autocomplete in React
gab needed guidance on configuring index-related components. Jason advised using different Configure widgets, and helped with the correct usage in React.
Resolving Issues with 'React-InstantSearch'
robert was having trouble merging results from different collections using `react-instantsearch` and was facing issues with undefined highlight results. After much discussion, Jason provided a solution using `collectionSpecificSearchParameters` and `highlight_full_fields` to solve the problem.
Custom MenuSelect Component Error with Different Facet Lists
KARTHICK and Uma face the same issue with a custom menuselect component. Jason suggests asking in the instantsearch GitHub repo.
Using Hierarchical Menu for Filtering in InstantSearch Vue Component
Sanjay needed help on filtering product data by hierarchy in InstantSearch Vue. Jason suggested using the hierarchical menu widget and provided the needed data format.
Resolving Index Error with Typesense in InstantSearch
Jamshid experienced errors during a multi-index search using Typesense due to a discrepancy in indices. Jason fixed the issue by suggesting the use of `ais-index` to avoid the error.