I am trying to simplify the index creation in Cloud Firestore. It keeps asking me to create new indexes for anything I do in my app. For e.g., I have the following table, which shows a list of incidents. Users can filter based on 5 different fields and can apply a combination of those fields while searching. I have created like 20 indexes to support this table. It is very easy to miss some of the combinations in the index, and then that query doesn't work.
I am trying to understand, isn't there a way to like, mention I want to search on these five fields in any combination?
Whenever I add another field to the filtering, it adds up a lot of work and testing, and I doubt whether everything will work as expected once I push to production.