[VueJS] Tree Menu - dynamic counts and not remove category when empty

Hello, Im created tree menu based on: https://community.algolia.com/vue-instantsearch/components/tree-menu.html. And I’d like modify it a bit. lets say I have similar build to https://community.algolia.com/vue-instantsearch/examples/bootstrap.html.
While typing something in Search box categories are disappear from tree menu, badges stay same even if there is less items (because of typing in search box).
I would like to create it like:
In search box type : TOYOTA
Categoreis tree:
-Clothing (0)
— Pants (0)
-Cars (23)
— Honda (0)
— Toyota (23)

Hi @lukasz,

Today there is no easy way to do it.

The results return by the engine only contain the categories present inside the results of the query.

Hope that helps, feel free to contact me if you have other questions.

Okie thanks you for this info :slight_smile: