How to boost a nested obj in multi_match fields list

I got a nested field in the doc in this form and want to write a query applying the boosting on this field:

Previously the nested field structure was something like this:

...
"my_nested_obj": {
    "project-type": [
      "skill-level": [
        {
          "name": "Intermediate",
          "value": "63897"
        }
      ],
      "room": [
      {
        "name": "Outdoor",
        "value": "19246"
      }
    ]
  }.......

and I could apply boosting on the field like this:

...
"query": {
    "filtered": {
      "query": {
        "filtered": {
          "query": {
            "multi_match": {
              "query": "some query",
              "fields": [
                "title^3",
                "excerpt^2",
                "my_nested_obj.skill-level.name^3"
              ],
              "operator": "and",
              "type": "cross_fields"
            }
          },
....

The nested field structure reformatted and looks like this:

"my_nested_obj": [
        {
          "name": "Intermediate",
          "type": "skill-level",
          "value": "63897"
        },
        {
          "name": "Outdoor",
          "type": "room",
          "value": "19246"
        }
      ]....

How do I go about applying the boosting on the nested field and rewrite the above query?

Thanks!

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