Displaying instantsearch in nested object instead of array?


I have set the attribute value in the nested object but front-end on not displayed in the layer navigation.

Please check the attached screenshot for the set the attribute value.

Please let me know how to do this.


Hi @suraj.viradiya,
Could you please explain why this attribute is currently nested and why the object is in an array structure? If there are not more elements, is it necessary to format the data in this way?

In terms of “layer navigation” it sounds as though you might be looking to do something like this:

If that’s the case, the hierarchicalMenu in InstantSearch is the way to go. It has these data structure requirements.