Full text search on both Parent and Child

Hi,
I'm looking for a query ( or multiple queries) to do a full text search on both Parent and Child. Thank you in advance!
I'm using the parent-child type. For example, my Parent documents will be a Choice, and its structure looks like:

{
    "id": "choiceId"
     "brand": "Nike"
 }

My Child data will be Item, and Item is associated to its parent id

{
      "id": "itemId-1",
      "attributes": {
        "color":   "blue",
        "size": "medium"
      },
      "_parent":"choiceId"
}
{
      "id": "itemId-2",
      "attributes": {
        "color": "red",
        "size": "large"
      },
     "_parent":"choiceId"
} 

Here is the mapping:

{
  "mappings": {
    "_doc": {
      "properties": {
        "parent": { 
          "type": "join",
          "relations": {
            "choice": "item" 
          }
        }
      }
    }
  }
}

The full text search query will be "Nike red large". So I need to return the matched Parent who can match the search query(need to match every word within the search query) on itself and any of its Child (Children).
I'm not able to find a search query ( or multiple queries) to do a full text search on both Parent and Child. Could anyone help? Thanks!

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