Return a matched element of an array when searching

I indexed documents like

"dialogue":[ 
    {
      "text": "ELASTIC",
      "value": 10
    },
    {
      "text": "KIBANA",
      "value": 12
    },
    {
      "text": "TRELLO",
      "value": 14
    }
  ]

Then I search by word "KIBANA". I would like it return the matched document but containing only the matched element. In this case, it is

    {
      "text": "KIBANA",
      "value": 12
    }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.