Filter results of bucket

is there way to filter results of backet like facet.prefix in solr.
GET contracts/doc/_search
{
"_source": "commodity_line",
"size":0,

 "query":{
   "bool":{
     "must":{
       "match":{
         "commodity_line.keyword":"3"
         
       }
     }
     
   }
 },

         
          "aggs" : {
            "tag": {
              "terms" : { "field" : "commodity_line.keyword",
              
              "size":1000
               
              }
            }
          
      
   }
           
    
}

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