'multi_match' => [
'query' => 'foo',
'fields' => [
'name.' . self::SECOND_LANGUAGE,
'name.' . Defaults::LANGUAGE_SYSTEM,
],
'type' => 'best_fields',
],
],
];
yield 'EqualsAnyFilter field' => [
new EqualsAnyFilter('productNumber', ['foo', 'bar']),
[
'terms' => [
'productNumber' => ['foo', 'bar'],
],
],
];
yield 'EqualsAnyFilter translated field' => [
new EqualsAnyFilter('name', ['foo', 'bar']),
[
'dis_max' => [
'queries' => [
[