| @@ 1315-1327 (lines=13) @@ | ||
| 1312 | $closure($result); |
|
| 1313 | } |
|
| 1314 | ||
| 1315 | if ($ignoreScore) { |
|
| 1316 | foreach ([$fixture, $result] as $result) { |
|
| 1317 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 1318 | $property->setAccessible(true); |
|
| 1319 | $property->setValue($result, 0.0); |
|
| 1320 | ||
| 1321 | foreach ($result->searchHits as $hit) { |
|
| 1322 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 1323 | $property->setAccessible(true); |
|
| 1324 | $property->setValue($hit, 0.0); |
|
| 1325 | } |
|
| 1326 | } |
|
| 1327 | } |
|
| 1328 | ||
| 1329 | foreach ([$fixture, $result] as $set) { |
|
| 1330 | foreach ($set->searchHits as $hit) { |
|
| @@ 4576-4588 (lines=13) @@ | ||
| 4573 | $closure($result); |
|
| 4574 | } |
|
| 4575 | ||
| 4576 | if ($ignoreScore) { |
|
| 4577 | foreach ([$fixture, $result] as $set) { |
|
| 4578 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4579 | $property->setAccessible(true); |
|
| 4580 | $property->setValue($set, 0.0); |
|
| 4581 | ||
| 4582 | foreach ($set->searchHits as $hit) { |
|
| 4583 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4584 | $property->setAccessible(true); |
|
| 4585 | $property->setValue($hit, 0.0); |
|
| 4586 | } |
|
| 4587 | } |
|
| 4588 | } |
|
| 4589 | ||
| 4590 | foreach ([$fixture, $result] as $set) { |
|
| 4591 | foreach ($set->searchHits as $hit) { |
|