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
1919 {
2020 $ templates [] = [
2121 'price_mapping ' => [
22- 'match ' => 'price_* ' ,
22+ "match_pattern " => "regex " ,
23+ 'match ' => 'price_ \\d+_ \\d+ ' ,
2324 'match_mapping_type ' => 'string ' ,
2425 'mapping ' => [
2526 'type ' => 'double ' ,
Original file line number Diff line number Diff line change @@ -147,7 +147,8 @@ public function testAddFieldsMapping()
147147 'dynamic_templates ' => [
148148 [
149149 'price_mapping ' => [
150- 'match ' => 'price_* ' ,
150+ "match_pattern " => "regex " ,
151+ 'match ' => 'price_ \\d+_ \\d+ ' ,
151152 'match_mapping_type ' => 'string ' ,
152153 'mapping ' => [
153154 'type ' => 'double ' ,
You can’t perform that action at this time.
0 commit comments