| @@ 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'); |
|
| @@ 4423-4435 (lines=13) @@ | ||
| 4420 | $closure($result); |
|
| 4421 | } |
|
| 4422 | ||
| 4423 | if ($ignoreScore) { |
|
| 4424 | foreach (array($fixture, $result) as $set) { |
|
| 4425 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4426 | $property->setAccessible(true); |
|
| 4427 | $property->setValue($set, 0.0); |
|
| 4428 | ||
| 4429 | foreach ($set->searchHits as $hit) { |
|
| 4430 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4431 | $property->setAccessible(true); |
|
| 4432 | $property->setValue($hit, 0.0); |
|
| 4433 | } |
|
| 4434 | } |
|
| 4435 | } |
|
| 4436 | ||
| 4437 | foreach (array($fixture, $result) as $set) { |
|
| 4438 | foreach ($set->searchHits as $hit) { |
|