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?