How to search by array elements in elasticsearch?
This is correct usage, as your update mentions.
If you import a document with a "mentions" array, searching on a matching array item, referring to it as "mentions", will retrieve the document. I had the same issue and verified it myself just now.