How to create relative search

Hey, so based on your responses I created a new JSON with the help of Gemini AI. Now the JSON that Gemini created was the exact way the app would have it’s structure.

Now I need help understanding how can I create what we created here

based on the new JSON
(I have color coded specific things in doc to make it easier to read)

and also how I can adjust the blocks for search feature