|  | @@ -148,6 +148,13 @@ public class TermsAggregationBuilder extends ValuesSourceAggregationBuilder<Valu
 | 
	
		
			
				|  |  |          return this;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * Returns the number of term buckets currently configured
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public int size() {
 | 
	
		
			
				|  |  | +        return bucketCountThresholds.getRequiredSize();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * Sets the shard_size - indicating the number of term buckets each shard
 | 
	
		
			
				|  |  |       * will return to the coordinating node (the node that coordinates the
 | 
	
	
		
			
				|  | @@ -163,6 +170,13 @@ public class TermsAggregationBuilder extends ValuesSourceAggregationBuilder<Valu
 | 
	
		
			
				|  |  |          return this;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * Returns the number of term buckets per shard that are currently configured
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public int shardSize() {
 | 
	
		
			
				|  |  | +        return bucketCountThresholds.getShardSize();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * Set the minimum document count terms should have in order to appear in
 | 
	
		
			
				|  |  |       * the response.
 | 
	
	
		
			
				|  | @@ -176,6 +190,13 @@ public class TermsAggregationBuilder extends ValuesSourceAggregationBuilder<Valu
 | 
	
		
			
				|  |  |          return this;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * Returns the minimum document count required per term
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public long minDocCount() {
 | 
	
		
			
				|  |  | +        return bucketCountThresholds.getMinDocCount();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * Set the minimum document count terms should have on the shard in order to
 | 
	
		
			
				|  |  |       * appear in the response.
 | 
	
	
		
			
				|  | @@ -189,6 +210,13 @@ public class TermsAggregationBuilder extends ValuesSourceAggregationBuilder<Valu
 | 
	
		
			
				|  |  |          return this;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * Returns the minimum document count required per term, per shard
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public long shardMinDocCount() {
 | 
	
		
			
				|  |  | +        return bucketCountThresholds.getShardMinDocCount();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /** Set a new order on this builder and return the builder so that calls
 | 
	
		
			
				|  |  |       *  can be chained. A tie-breaker may be added to avoid non-deterministic ordering. */
 | 
	
		
			
				|  |  |      public TermsAggregationBuilder order(BucketOrder order) {
 |