Pinned Query with Term Aggregation get me null_pointer_exception

Hi, try this query but gives me null_pointer_exception:

    {
      "query": {
        "pinned": {
          "ids": [
            "1819"
          ],
          "organic": {
            "bool": {
              "must": [
                {
                  "multi_match": {
                    "query": "test",
                    "fields": [
                      "name.lowercase^5",
                      "synonim^4",
                      "sku.lowercase^3",
                      "description^1"
                    ],
                    "operator" : "and",
                    "fuzziness" : 1,
                    "analyzer": "synonym"
                   
                  }
                }
              ]
            }
          }
        }
      },
      "aggs": {
        
        "categories_without_path": {
          "terms": {
            "field": "categories_without_path",
            "size": 10
          }
        }
      },
      "suggest": {
        "suggestion": {
          "prefix": "test",
          "completion": {
            "field": "suggest",
            "size": 5
          }
        }
      }
    }

If i remove "aggs" ot works....can you help?

This issue will be fixed in 7.7

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