| @@ 1066-1078 (lines=13) @@ | ||
| 1063 | $closure($result); |
|
| 1064 | } |
|
| 1065 | ||
| 1066 | if ($ignoreScore) { |
|
| 1067 | foreach (array($fixture, $result) as $result) { |
|
| 1068 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 1069 | $property->setAccessible(true); |
|
| 1070 | $property->setValue($result, 0.0); |
|
| 1071 | ||
| 1072 | foreach ($result->searchHits as $hit) { |
|
| 1073 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 1074 | $property->setAccessible(true); |
|
| 1075 | $property->setValue($hit, 0.0); |
|
| 1076 | } |
|
| 1077 | } |
|
| 1078 | } |
|
| 1079 | ||
| 1080 | foreach ($result->searchHits as $hit) { |
|
| 1081 | $property = new \ReflectionProperty(get_class($hit), 'index'); |
|
| @@ 4457-4469 (lines=13) @@ | ||
| 4454 | $closure($result); |
|
| 4455 | } |
|
| 4456 | ||
| 4457 | if ($ignoreScore) { |
|
| 4458 | foreach (array($fixture, $result) as $set) { |
|
| 4459 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4460 | $property->setAccessible(true); |
|
| 4461 | $property->setValue($set, 0.0); |
|
| 4462 | ||
| 4463 | foreach ($set->searchHits as $hit) { |
|
| 4464 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4465 | $property->setAccessible(true); |
|
| 4466 | $property->setValue($hit, 0.0); |
|
| 4467 | } |
|
| 4468 | } |
|
| 4469 | } |
|
| 4470 | ||
| 4471 | foreach (array($fixture, $result) as $set) { |
|
| 4472 | foreach ($set->searchHits as $hit) { |
|