-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Term Recommender] #ESP-306 Add min_doc_count in term aggregation #2363
[Term Recommender] #ESP-306 Add min_doc_count in term aggregation #2363
Conversation
/** | ||
* Bucket min doc count filter. | ||
* | ||
* @return int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to int|null
:)
* | ||
* @return int | ||
*/ | ||
public function getMinDocCount() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add return type to method : ?int
@@ -48,6 +48,11 @@ class Term extends AbstractBucket | |||
*/ | |||
private $exclude; | |||
|
|||
/** | |||
* @var int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to int|null
:)
) { | ||
parent::__construct($name, $field, $metrics, $childBuckets, $pipelines, $nestedPath, $filter, $nestedFilter); | ||
|
||
$this->size = $size > 0 && $size < self::MAX_BUCKET_SIZE ? $size : self::MAX_BUCKET_SIZE; | ||
$this->sortOrder = $sortOrder; | ||
$this->include = $include; | ||
$this->exclude = $exclude; | ||
$this->minDocCount = $minDocCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra spaces and update the space above to be aligned
@@ -65,6 +70,7 @@ class Term extends AbstractBucket | |||
* @param string $sortOrder Bucket sort order. | |||
* @param array $include Include bucket filter. | |||
* @param array $exclude Exclude bucket filter. | |||
* @param int $minDocCount Min doc count bucket filter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to int|null
:)
No description provided.