File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/OpenSearch
Model/Adapter/DynamicTemplates Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public function processTemplates(array $templates): array
19
19
{
20
20
$ templates [] = [
21
21
'price_mapping ' => [
22
- 'match ' => 'price_* ' ,
22
+ "match_pattern " => "regex " ,
23
+ 'match ' => 'price_ \\d+_ \\d+ ' ,
23
24
'match_mapping_type ' => 'string ' ,
24
25
'mapping ' => [
25
26
'type ' => 'double ' ,
Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ public function testAddFieldsMapping()
147
147
'dynamic_templates ' => [
148
148
[
149
149
'price_mapping ' => [
150
- 'match ' => 'price_* ' ,
150
+ "match_pattern " => "regex " ,
151
+ 'match ' => 'price_ \\d+_ \\d+ ' ,
151
152
'match_mapping_type ' => 'string ' ,
152
153
'mapping ' => [
153
154
'type ' => 'double ' ,
You can’t perform that action at this time.
0 commit comments