Метод |
Описание |
|
__construct ( array $hit ) |
Constructs a single results object. |
|
__get ( string $key ) : mixed |
Magic function to directly access keys inside the result. |
|
__isset ( string $key ) : boolean |
Magic function to support isset() calls. |
|
getData ( ) : array |
Returns result data. |
|
getDocument ( ) : Document |
Returns Document. |
|
getExplanation ( ) : array |
Returns explanation on how its score was computed. |
|
getFields ( ) : array |
Returns list of fields. |
|
getHighlights ( ) : array |
Returns result data. |
|
getHit ( ) : array |
Returns the raw hit array. |
|
getId ( ) : string |
Returns the hit id. |
|
getIndex ( ) : string |
Returns the index name of the result. |
|
getInnerHits ( ) : array |
Returns inner hits. |
|
getParam ( string $name ) : mixed |
Returns a param from the result hit array. |
|
getScore ( ) : float |
Returns the score of the result. |
|
getSource ( ) : array |
Returns the result source. |
|
getType ( ) : string |
Returns the type of the result. |
|
getVersion ( ) : string | integer |
Returns the version information from the hit. |
|
hasFields ( ) : boolean |
Returns whether result has fields. |
|
hasInnerHits ( ) : boolean |
Returns whether result has inner hits. |
|
hasParam ( string $name ) : boolean |
Test if a param from the result hit is set. |
|
setParam ( string $param, mixed $value ) |
Sets a parameter on the hit. |
|