| @@ 4390-4402 (lines=13) @@ | ||
| 4387 | $closure($result); |
|
| 4388 | } |
|
| 4389 | ||
| 4390 | if ($ignoreScore) { |
|
| 4391 | foreach ([$fixture, $result] as $set) { |
|
| 4392 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4393 | $property->setAccessible(true); |
|
| 4394 | $property->setValue($set, 0.0); |
|
| 4395 | ||
| 4396 | foreach ($set->searchHits as $hit) { |
|
| 4397 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4398 | $property->setAccessible(true); |
|
| 4399 | $property->setValue($hit, 0.0); |
|
| 4400 | } |
|
| 4401 | } |
|
| 4402 | } |
|
| 4403 | ||
| 4404 | foreach ([$fixture, $result] as $set) { |
|
| 4405 | foreach ($set->searchHits as $hit) { |
|
| @@ 1079-1091 (lines=13) @@ | ||
| 1076 | $closure($result); |
|
| 1077 | } |
|
| 1078 | ||
| 1079 | if ($ignoreScore) { |
|
| 1080 | foreach ([$fixture, $result] as $result) { |
|
| 1081 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 1082 | $property->setAccessible(true); |
|
| 1083 | $property->setValue($result, 0.0); |
|
| 1084 | ||
| 1085 | foreach ($result->searchHits as $hit) { |
|
| 1086 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 1087 | $property->setAccessible(true); |
|
| 1088 | $property->setValue($hit, 0.0); |
|
| 1089 | } |
|
| 1090 | } |
|
| 1091 | } |
|
| 1092 | ||
| 1093 | foreach ([$fixture, $result] as $set) { |
|
| 1094 | foreach ($set->searchHits as $hit) { |
|