/**
* @return SearcherResult
*/
protected function iterate(array
$result) { $hits =
$result['hits'
]['hits'
];
$sources =
array_column($hits, '_source'
);
$ids =
array_column($sources,
$this->
getIdentifierColumn());
return new SearcherResult($ids,
(int) $result['hits'
]['total'
]);
} /**
* @return string
*/
protected function getIdentifierColumn() { return 'id';
}