Skip to content

Commit 109142e

Browse files
committed
MC-16239: Search result page contain 24k results
1 parent fadf2c8 commit 109142e

File tree

1 file changed

+5
-6
lines changed
  • app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/FieldMapper/Product/FieldProvider

1 file changed

+5
-6
lines changed

app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/FieldMapper/Product/FieldProvider/DynamicFieldTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,12 @@ function ($type) use ($complexType) {
241241
static $callCount = [];
242242
$callCount[$type] = !isset($callCount[$type]) ? 1 : ++$callCount[$type];
243243

244-
if ($type === 'string') {
245-
return 'string';
246-
}
247244
if ($type === 'string') {
248245
return 'string';
249246
} elseif ($type === 'float') {
250247
return 'float';
248+
} elseif ($type === 'integer') {
249+
return 'integer';
251250
} else {
252251
return $complexType;
253252
}
@@ -276,7 +275,7 @@ public function attributeProvider()
276275
'index' => 'no_index'
277276
],
278277
'position_1' => [
279-
'type' => 'string',
278+
'type' => 'integer',
280279
'index' => 'no_index'
281280
],
282281
'price_1_1' => [
@@ -295,7 +294,7 @@ public function attributeProvider()
295294
'index' => 'no_index'
296295
],
297296
'position_1' => [
298-
'type' => 'string',
297+
'type' => 'integer',
299298
'index' => 'no_index'
300299
],
301300
'price_1_1' => [
@@ -314,7 +313,7 @@ public function attributeProvider()
314313
'index' => 'no_index'
315314
],
316315
'position_1' => [
317-
'type' => 'string',
316+
'type' => 'integer',
318317
'index' => 'no_index'
319318
],
320319
'price_1_1' => [

0 commit comments

Comments
 (0)