$elemmatch is not working with partial index

I created a sample collection to check whether $elemmatch is not working with partial index
but its not working for me have attched the scrrenshot

why my index is not picked up also if i do {“attributes.name”:“color”} it works for me

Hello @Swapnesh_Naik, Welcome,

The partial index does not support the $elemMatch operator in its expression.

You can check directly in your query and this will use an index:
{ "attributes.name": "color" }

Refer, For further discussion and opened backlog of limitation in the partial index:

Hey @turivishal, while it’s true that $elemMatch isn’t supported within the expression for creating a partial index. but while quering using the $elemMatch its still not supported?