'nestedField' =>
[ 'value' => 'nested',
'second' => 'ignored',
],
'ignored' => 'ignored',
]);
$analyzer =
$this->
getContainer()->
get(ProductSearchKeywordAnalyzer::
class);
$result =
$analyzer->
analyze($product, Context::
createDefaultContext(),
$config);
$words =
$result->
map(fn (AnalyzedKeyword
$keyword) =>
$keyword->
getKeyword());
static::
assertEquals( ['searchable', 'match', 'array', '10000000', '10.99999', 'nested'
],
array_values($words) );
} /**
* @dataProvider casesSearchBaseOnConfigField
*/
public function testInsertIntoSearchKeywordForEn(bool
$searchable, bool
$tokenize, int
$ranking): void
{