Property | Type | Description | |
---|---|---|---|
$embeds | array | Embedded type references | |
$entityClass | The full class name of the document class to wrap the results | ||
$repoName | string | Name of the type that the originating query came from. | |
$resultSet | string | Holds the original instance of the result set |
Method | Description | |
---|---|---|
__construct ( |
Decorator's constructor | |
__debugInfo ( ) : array | Debug output hook method. | |
count ( ) : integer | Returns size of current set | |
countSuggests ( ) : integer | Returns size of current suggests | |
current ( ) : |
Returns the current document for the iteration | |
getAggregation ( string $name ) : array | Retrieve a specific aggregation from this result set | |
getAggregations ( ) : array | Returns all aggregation results | |
getFacets ( ) : array | Returns all facets results | |
getMaxScore ( ) : float | Returns the max score of the results found | |
getQuery ( ) : |
Returns the original \Elastica\Query instance | |
getResponse ( ) : |
Returns response object | |
getResults ( ) : Result[] | Returns all results | |
getSuggests ( ) : array | Return all suggests | |
getTotalHits ( ) : integer | Returns the total number of found hits | |
getTotalTime ( ) : integer | Returns the total number of ms for this search to complete | |
hasFacets ( ) : boolean | Returns whether facets exist | |
hasSuggests ( ) : boolean | Returns true if the response contains suggestion results; false otherwise | |
hasTimedOut ( ) : boolean | Returns true if the query has timed out |
public __construct ( |
||
$resultSet | The results from Elastica to wrap | |
$query | The Elasticsearch Query object |
public countSuggests ( ) : integer | ||
return | integer | Size of suggests |
public current ( ) : |
||
return |
public getAggregation ( string $name ) : array | ||
$name | string | the name of the desired aggregation |
return | array |
public getAggregations ( ) : array | ||
return | array |
public getMaxScore ( ) : float | ||
return | float | Max Score |
public getQuery ( ) : |
||
return |
public getResponse ( ) : |
||
return | Response object |
public getResults ( ) : Result[] | ||
return | Result[] | Results |
public getSuggests ( ) : array | ||
return | array | suggest results |
public getTotalHits ( ) : integer | ||
return | integer | Total hits |
public getTotalTime ( ) : integer | ||
return | integer | Total time |
public hasSuggests ( ) : boolean | ||
return | boolean |
public hasTimedOut ( ) : boolean | ||
return | boolean | Timed out |
protected Document,Cake\ElasticSearch $entityClass | ||
return |
protected string $repoName | ||
return | string |
protected string $resultSet | ||
return | string |