| @@ 1175-1187 (lines=13) @@ | ||
| 1172 | $closure($result); |
|
| 1173 | } |
|
| 1174 | ||
| 1175 | if ($ignoreScore) { |
|
| 1176 | foreach ([$fixture, $result] as $result) { |
|
| 1177 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 1178 | $property->setAccessible(true); |
|
| 1179 | $property->setValue($result, 0.0); |
|
| 1180 | ||
| 1181 | foreach ($result->searchHits as $hit) { |
|
| 1182 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 1183 | $property->setAccessible(true); |
|
| 1184 | $property->setValue($hit, 0.0); |
|
| 1185 | } |
|
| 1186 | } |
|
| 1187 | } |
|
| 1188 | ||
| 1189 | foreach ([$fixture, $result] as $set) { |
|
| 1190 | foreach ($set->searchHits as $hit) { |
|
| @@ 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) { |
|