diff --git a/src/Query/TermLevel/TermsSetQuery.php b/src/Query/TermLevel/TermsSetQuery.php index 7ca5e032..6f9ec80d 100644 --- a/src/Query/TermLevel/TermsSetQuery.php +++ b/src/Query/TermLevel/TermsSetQuery.php @@ -75,8 +75,7 @@ public function toArray() private function validateParameters(array $parameters) { - if ( - !isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_FIELD]) && + if (!isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_FIELD]) && !isset($parameters[self::MINIMUM_SHOULD_MATCH_TYPE_SCRIPT]) ) { $message = "Either minimum_should_match_field or minimum_should_match_script must be set.";