Search in value of sub-lists of list

Hello,

firebase structure:

fruits:
1:orange
2: mango

flowers:
45: rose
7: lily

List 1: fruits, flowers,… more than 15 items
sub list in each list 1 item: orange, mango… (in list 1) rose, lity…(in list 2) and so on.

here is what i want to acheive:
search bar where user will search for value in all sub-lists of list 1. i.e. it should search in values of all sub-lists and provide result in colintreeview

here are blocks:

can anyone pls help me with this?

Thanks in advance

update:

Sombody can atleast help me with the logic?

i can rearrange firebase structure like below if it will give me any solution:
fruits:
orange:orange
mango: mango

flowers:
rose: rose
lily: lily

i.e. in the 2nd list (sub-list) i will give value as a tag name.

so now i will have to search in tags of 2nd lists (sub-lists) and not its value.