I am trying to reduce my firestore indices by using the index merge feature as mentioned in the firebase docs: https://firebase.google.com/docs/firestore/query-data/index-overview#taking_advantage_of_index_merging
However the queries always require the full composite index.
i.e.
querying for
- department in [1] AND priority == 1
- order by name
requires a composite index on
- department asc, priority asc, name asc.
As per doc it should be enough to use either an index
- department asc, name asc. or
- priority asc, name asc.
since the index should be merged with the automatic single field index for department or priority.
I was looking around for a working example in order to figure out what I did wrong but could not find anything.
Any ideas?