| @@ 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'); |
|
| @@ 4346-4358 (lines=13) @@ | ||
| 4343 | $closure($result); |
|
| 4344 | } |
|
| 4345 | ||
| 4346 | if ($ignoreScore) { |
|
| 4347 | foreach (array($fixture, $result) as $result) { |
|
| 4348 | $property = new \ReflectionProperty(get_class($result), 'maxScore'); |
|
| 4349 | $property->setAccessible(true); |
|
| 4350 | $property->setValue($result, 0.0); |
|
| 4351 | ||
| 4352 | foreach ($result->searchHits as $hit) { |
|
| 4353 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4354 | $property->setAccessible(true); |
|
| 4355 | $property->setValue($hit, 0.0); |
|
| 4356 | } |
|
| 4357 | } |
|
| 4358 | } |
|
| 4359 | ||
| 4360 | foreach ($result->searchHits as $hit) { |
|
| 4361 | $property = new \ReflectionProperty(get_class($hit), 'index'); |
|