I'm currently developing a search application that utilizes Algolia for indexing purposes. The goal is to display events in the autocompletion dropdown when a user enters a search term into the text input box. Each event is associated with an event category as well.
For instance:
{
"category": "Disney",
"events": [
{
"title": "Ice Skating"
},
{
"title": "Peter-Pan"
},
{
"title": "Roller Skating"
}
]
}
If a user searches for "skating", we want to show the parent category along with the child events "Ice Skating" and "Roller Skating", but exclude the "Peter-Pan" event.
My question is, can Algolia handle this type of nested filtering? If so, how would the filtering process work? Would it need to be managed through JavaScript, does Algolia have built-in support for it, or should we consider creating separate indexes for Event Categories and Individual Events?
Appreciate any insights!