| @@ 1079-1091 (lines=13) @@ | ||
| 1076 | $closure($result); |
|
| 1077 | } |
|
| 1078 | ||
| 1079 | if ($ignoreScore) { |
|
| 1080 | foreach (array($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 (array($fixture, $result) as $set) { |
|
| 1094 | foreach ($set->searchHits as $hit) { |
|
| @@ 4380-4392 (lines=13) @@ | ||
| 4377 | $closure($result); |
|
| 4378 | } |
|
| 4379 | ||
| 4380 | if ($ignoreScore) { |
|
| 4381 | foreach (array($fixture, $result) as $set) { |
|
| 4382 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4383 | $property->setAccessible(true); |
|
| 4384 | $property->setValue($set, 0.0); |
|
| 4385 | ||
| 4386 | foreach ($set->searchHits as $hit) { |
|
| 4387 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4388 | $property->setAccessible(true); |
|
| 4389 | $property->setValue($hit, 0.0); |
|
| 4390 | } |
|
| 4391 | } |
|
| 4392 | } |
|
| 4393 | ||
| 4394 | foreach (array($fixture, $result) as $set) { |
|
| 4395 | foreach ($set->searchHits as $hit) { |
|