GET _search
{
"size": 100,
"query": {
"bool": {
"must": [
{
"range": {
"createdAt": {
"gte": "now-30d/d"
}
}
},
{
"terms": {
"jobBerufId": [
"berufsname_12",
"berufsname_2",
"berufsname_1"
]
}
}
],
"filter": {
"geo_distance": {
"distance": "30km",
"location": {
"lat": 52.4876701,
"lon": 13.3096058
}
}
}
}
}
}
Is it possible to get at least X entries of all terms here (if there are any) )
So in the result when size: 30, i need for every term in terms, 10 items.