| @@ 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'); |
|
| @@ 4573-4585 (lines=13) @@ | ||
| 4570 | $closure($result); |
|
| 4571 | } |
|
| 4572 | ||
| 4573 | if ($ignoreScore) { |
|
| 4574 | foreach (array($fixture, $result) as $set) { |
|
| 4575 | $property = new \ReflectionProperty(get_class($set), 'maxScore'); |
|
| 4576 | $property->setAccessible(true); |
|
| 4577 | $property->setValue($set, 0.0); |
|
| 4578 | ||
| 4579 | foreach ($set->searchHits as $hit) { |
|
| 4580 | $property = new \ReflectionProperty(get_class($hit), 'score'); |
|
| 4581 | $property->setAccessible(true); |
|
| 4582 | $property->setValue($hit, 0.0); |
|
| 4583 | } |
|
| 4584 | } |
|
| 4585 | } |
|
| 4586 | ||
| 4587 | foreach (array($fixture, $result) as $set) { |
|
| 4588 | foreach ($set->searchHits as $hit) { |
|