How can i call index depend on checkbox In multiple indexes

  • we use algolia instantSearch to your website and we have 4 index for each type like subjects , teachers, live, etc…

  • i wanna great a checkbox so the user can filter by type

  • so when the user enter value to search for i wanna disable the call for the index is unchecked

    i search a lot and cant find anything

    so is that possible to do ?