How to retrieve results with certain amount of hits

Hi,
Having this query for example:

GET person_group/_search
{
 "query": {
   "bool": {
     "filter": [
       
       {
         "exists": {
           
           "field": "educations"
           
         }
         
       },
       {
         "exists": {
           "field": "experience",
          
         }
         
       }
     ]
   }
 },
 "size": 200,
 "sort": [
   {
     "lastModifiedDate": {
       "order": "desc"
     }
   }
 ]
}

How can I specify the amount of "experience" and the amount of "education"? (both has their own hits inside)
furthermore- How can I specify a range of required hits or a minimum of required hits?

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