Skip to content

Commit 37868a3

Browse files
committed
Merge remote-tracking branch 'origin/MC-25254' into 2.4-develop-pr5
2 parents 8d82fe8 + cc86db9 commit 37868a3

File tree

6 files changed

+77
-77
lines changed

6 files changed

+77
-77
lines changed

app/code/Magento/Elasticsearch/Elasticsearch5/Model/Client/Elasticsearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
285285
'match_mapping_type' => 'string',
286286
'mapping' => [
287287
'type' => 'integer',
288-
'index' => false,
288+
'index' => true,
289289
],
290290
],
291291
],
@@ -296,7 +296,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
296296
'mapping' => $this->prepareFieldInfo(
297297
[
298298
'type' => 'text',
299-
'index' => false,
299+
'index' => true,
300300
]
301301
),
302302
],

app/code/Magento/Elasticsearch/Model/Client/Elasticsearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
278278
'match_mapping' => 'string',
279279
'mapping' => [
280280
'type' => 'integer',
281-
'index' => 'no'
281+
'index' => 'not_analyzed',
282282
],
283283
],
284284
],
@@ -288,7 +288,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
288288
'match_mapping' => 'string',
289289
'mapping' => [
290290
'type' => 'string',
291-
'index' => 'no'
291+
'index' => 'not_analyzed',
292292
],
293293
],
294294
]

app/code/Magento/Elasticsearch/Test/Unit/Elasticsearch5/Model/Client/ElasticsearchTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
1212

1313
/**
14-
* Class ElasticsearchTest
14+
* Test elasticsearch client methods.
1515
*/
1616
class ElasticsearchTest extends \PHPUnit\Framework\TestCase
1717
{
@@ -379,7 +379,7 @@ public function testAddFieldsMapping()
379379
'match_mapping_type' => 'string',
380380
'mapping' => [
381381
'type' => 'integer',
382-
'index' => false
382+
'index' => true
383383
],
384384
],
385385
],
@@ -389,7 +389,7 @@ public function testAddFieldsMapping()
389389
'match_mapping_type' => 'string',
390390
'mapping' => [
391391
'type' => 'text',
392-
'index' => false,
392+
'index' => true,
393393
],
394394
],
395395
],
@@ -449,7 +449,7 @@ public function testAddFieldsMappingFailure()
449449
'match_mapping_type' => 'string',
450450
'mapping' => [
451451
'type' => 'integer',
452-
'index' => false
452+
'index' => true,
453453
],
454454
],
455455
],
@@ -459,7 +459,7 @@ public function testAddFieldsMappingFailure()
459459
'match_mapping_type' => 'string',
460460
'mapping' => [
461461
'type' => 'text',
462-
'index' => false,
462+
'index' => true,
463463
],
464464
],
465465
]

app/code/Magento/Elasticsearch6/Model/Client/Elasticsearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
292292
'match_mapping_type' => 'string',
293293
'mapping' => [
294294
'type' => 'integer',
295-
'index' => false,
295+
'index' => true,
296296
],
297297
],
298298
],
@@ -302,7 +302,7 @@ public function addFieldsMapping(array $fields, $index, $entityType)
302302
'match_mapping_type' => 'string',
303303
'mapping' => [
304304
'type' => 'text',
305-
'index' => false,
305+
'index' => true,
306306
'copy_to' => '_search'
307307
],
308308
],

app/code/Magento/Elasticsearch6/Test/Unit/Model/Client/ElasticsearchTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function testAddFieldsMapping()
445445
'match_mapping_type' => 'string',
446446
'mapping' => [
447447
'type' => 'integer',
448-
'index' => false
448+
'index' => true,
449449
],
450450
],
451451
],
@@ -455,7 +455,7 @@ public function testAddFieldsMapping()
455455
'match_mapping_type' => 'string',
456456
'mapping' => [
457457
'type' => 'text',
458-
'index' => false,
458+
'index' => true,
459459
'copy_to' => '_search'
460460
],
461461
],
@@ -515,7 +515,7 @@ public function testAddFieldsMappingFailure()
515515
'match_mapping_type' => 'string',
516516
'mapping' => [
517517
'type' => 'integer',
518-
'index' => false
518+
'index' => true,
519519
],
520520
],
521521
],
@@ -525,7 +525,7 @@ public function testAddFieldsMappingFailure()
525525
'match_mapping_type' => 'string',
526526
'mapping' => [
527527
'type' => 'text',
528-
'index' => false,
528+
'index' => true,
529529
'copy_to' => '_search'
530530
],
531531
],

0 commit comments

Comments
 (0)