private function getTermsQueryParams(ProductCondition $productCondition)
    {
        $field     = $this->getSearchField($productCondition);
        $fieldName = $this->getSearchFieldName($productCondition);
        $values    = $productCondition->getValue();

        if (!is_array($values) && in_array($productCondition->getOperator(), ['()', '!()'])) {
            $values = explode(',', $values);
        }

        if ($field->getType() == FieldInterface::FIELD_TYPE_BOOLEAN) {
            $values = (bool) $values;
        }

        return ['field' => $fieldName, 'values' => $values];
    }
private function getTermsQueryParams(ProductCondition $productCondition)
    {
        $field     = $this->getSearchField($productCondition);
        $fieldName = $this->getSearchFieldName($productCondition);
        $values    = $productCondition->getValue();

        if (!is_array($values) && in_array($productCondition->getOperator(), ['()', '!()'])) {
            $values = explode(',', $values);
        }

        if ($field->getType() == FieldInterface::FIELD_TYPE_BOOLEAN) {
            $values = (bool) $values;
        }

        return ['field' => $fieldName, 'values' => $values];
    }
private function getTermsQueryParams ( ProductCondition $ productCondition ) { $ field = $ this -> getSearchField ( $ productCondition ) ; $ fieldName = $ this -> getSearchFieldName ( $ productCondition ) ; $ values = $ productCondition -> getValue ( ) ; if ( ! is_array ( $ values ) && in_array ( $ productCondition -> getOperator ( ) , [ '()' , '!()' ] ) ) { $ values = explode ( ',' , $ values ) ; } if ( $ field -> getType ( ) == FieldInterface :: FIELD_TYPE_BOOLEAN ) { $ values = ( bool ) $ values ; } return [ 'field' => $ fieldName , 'values' => $ values ] ; }
Retrieve params for a terms query from condition.

@param ProductCondition $productCondition Product condition.

@return array
Retrieve params for a terms query from condition .