Skip to content
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

Merged

Conversation

PierreGauthier
Copy link
Contributor

No description provided.

/**
* Bucket min doc count filter.
*
* @return int
Copy link
Contributor

@Coosos Coosos Nov 26, 2021

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()
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to int|null :)

@romainruaud romainruaud merged commit 681eec8 into Smile-SA:2.8.x Nov 30, 2021
@PierreGauthier PierreGauthier deleted the fix-esp-306-use-co-occurence-conf branch January 13, 2022 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants