| @@ 4515-4527 (lines=13) @@ | ||
| 4512 | $closure($result); |
|
| 4513 | } |
|
| 4514 | ||
| 4515 | if ($ignoreScore) { |
|
| 4516 | foreach ([$fixture, $result] as $set) { |
|
| 4517 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4518 | $property->setAccessible(true); |
|
| 4519 | $property->setValue($set, 0.0); |
|
| 4520 | ||
| 4521 | foreach ($set->searchHits as $hit) { |
|
| 4522 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4523 | $property->setAccessible(true); |
|
| 4524 | $property->setValue($hit, 0.0); |
|
| 4525 | } |
|
| 4526 | } |
|
| 4527 | } |
|
| 4528 | ||
| 4529 | foreach ([$fixture, $result] as $set) { |
|
| 4530 | foreach ($set->searchHits as $hit) { |
|
| @@ 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) { |
|