#community-help

Configuring HierarchicalMenu and Autocomplete in React

TLDR gab needed guidance on configuring index-related components. Jason advised using different Configure widgets, and helped with the correct usage in React.

Powered by Struct AI

1

6
20mo
Solved
Join the chat
Feb 23, 2022 (20 months ago)
gab
Photo of md5-8be2a24edf7a95c9c74abce4b1130c3e
gab
09:27 AM
Hi,
I'm using the connectHierarchicalMenu connector. It is forging "automatically" the appropriate query while navigating inside tree.
It is overrding some default properties I have set in collectionSpecificSearchParameters .
For instance maxFacetValues is overrided to be 10
How can I modify this?
09:33
gab
09:33 AM
I just found the limit argument is used to populate maxFacetValues .

My question still remains in following case: I'm using an autocomplete and the hierarchical menu. Both will use the default same config for a given index.
How would I tune an index relative to the component that will use it?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:15 PM
gab You can nest different widgets inside separate configure widgets and have different settings apply for each widget
gab
Photo of md5-8be2a24edf7a95c9c74abce4b1130c3e
gab
01:30 PM
Not so sure about what it means in React.
Does it means something like this :thinking_face: ?
 <Configure q={'*'}>
   <HierarchicalMenu/>
 </Configure> 
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:27 PM
That's correct
Feb 24, 2022 (20 months ago)
gab
Photo of md5-8be2a24edf7a95c9c74abce4b1130c3e
gab
07:43 AM
Thanks !

1