| @@ 1064-1076 (lines=13) @@ | ||
| 1061 | $closure($result); |
|
| 1062 | } |
|
| 1063 | ||
| 1064 | if ($ignoreScore) { |
|
| 1065 | foreach (array($fixture, $result) as $result) { |
|
| 1066 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 1067 | $property->setAccessible(true); |
|
| 1068 | $property->setValue($result, 0.0); |
|
| 1069 | ||
| 1070 | foreach ($result->searchHits as $hit) { |
|
| 1071 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 1072 | $property->setAccessible(true); |
|
| 1073 | $property->setValue($hit, 0.0); |
|
| 1074 | } |
|
| 1075 | } |
|
| 1076 | } |
|
| 1077 | ||
| 1078 | foreach ($result->searchHits as $hit) { |
|
| 1079 | $property = new \ReflectionProperty(get_class($hit), 'index'); |
|
| @@ 4615-4627 (lines=13) @@ | ||
| 4612 | $closure($result); |
|
| 4613 | } |
|
| 4614 | ||
| 4615 | if ($ignoreScore) { |
|
| 4616 | foreach (array($fixture, $result) as $set) { |
|
| 4617 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4618 | $property->setAccessible(true); |
|
| 4619 | $property->setValue($set, 0.0); |
|
| 4620 | ||
| 4621 | foreach ($set->searchHits as $hit) { |
|
| 4622 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4623 | $property->setAccessible(true); |
|
| 4624 | $property->setValue($hit, 0.0); |
|
| 4625 | } |
|
| 4626 | } |
|
| 4627 | } |
|
| 4628 | ||
| 4629 | foreach (array($fixture, $result) as $set) { |
|
| 4630 | foreach ($set->searchHits as $hit) { |
|