Is there a way to create an index for an array property of a document, so that I can Match
the document based on any value in the array?
For example, assuming a document looks something like
{ data: { ips: ['192.168.1.1', '::ffff:c0a8:101'] } }
then I'd like to have an index documents_by_ip
s.t. I can retrieve that document with either 192.168.1.1
or ::ffff:c0a8:101
.