__construct() __construct(array $hit) Constructs a single results object. Parameters array $hit Hit data
getParam() getParam(string $name) : array Returns a param from the result hit array. This function can be used to retrieve all data for which a specific function doesn't exist. If the param does not exist, an empty array is returned Parameters string $name Param name Returns array — Result data
hasParam() hasParam(string $name) : boolean Test if a param from the result hit is set. Parameters string $name Param name to test Returns boolean — True if the param is set, false otherwise
getVersion() getVersion() : string|integer Returns the version information from the hit. Returns string|integer — Document version
getData() getData() : array Returns result data. Checks for partial result data with getFields, falls back to getSource or both Returns array — Result data array
getExplanation() getExplanation() : array Returns explanation on how its score was computed. Returns array — explanations
setParam() setParam(string $param, mixed $value) Sets a parameter on the hit. Parameters string $param mixed $value
__get() __get(string $key) : mixed Magic function to directly access keys inside the result. Returns null if key does not exist Parameters string $key Key name Returns mixed — Key value
__isset() __isset(string $key) : boolean Magic function to support isset() calls. Parameters string $key Key name Returns boolean