module/FzyCommon/src/FzyCommon/Service/Search/Base.php
protected function process($entity, Params $params, $results, $asEntity = false)
    {
        return $asEntity ? $entity : (string) $entity;
    }
protected function process($entity, Params $params, $results, $asEntity = false)
    {
        return $asEntity ? $entity : (string) $entity;
    }
This is invoked on every result of the singular/query
search for uniformly transform the result set
@param $entity
@param  Param              $params
@param  array|\Traversable $results
@param  bool               $asEntity - Keep entity as entity
@return $entity