Can I have an index on subarrays?
Sample document:
{
'who': [['en', 'Thomas'], ['es', 'Alfonzo'], ['de', 'Helmut']],
'otherField': 123
}
Query:
{'who':
{ '$elemMatch': { '1': 'Helmut'} }
}
I need an index for this type of queries. Thanks.
'who': [ { lang: 'en', name: 'Thomas' }, ... ]?