return new TermsQuery($field,
$value);
case ProductAttributeCondition::OPERATOR_STARTS_WITH:
if (!\
is_string($value)) { throw new RuntimeException('Invalid value for PrefixQuery provided'
);
} if ($type === 'string'
) { $field .= '.raw';
} return new PrefixQuery($field,
$value);
case ProductAttributeCondition::OPERATOR_ENDS_WITH:
if (\
is_array($value)) { throw new RuntimeException('Invalid value for WildcardQuery provided'
);
} if ($type === 'string'
) { $field .= '.raw';
} return new WildcardQuery($field, '*' .
$value);