프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 | ||
리턴 | integer | Size of suggests |
public current ( ) : |
||
리턴 |
public getAggregation ( string $name ) : array | ||
$name | string | the name of the desired aggregation |
리턴 | array |
public getAggregations ( ) : array | ||
리턴 | array |
public getMaxScore ( ) : float | ||
리턴 | float | Max Score |
public getQuery ( ) : |
||
리턴 |
public getResponse ( ) : |
||
리턴 | Response object |
public getTotalHits ( ) : integer | ||
리턴 | integer | Total hits |
public getTotalTime ( ) : integer | ||
리턴 | integer | Total time |
public hasSuggests ( ) : boolean | ||
리턴 | boolean |
public hasTimedOut ( ) : boolean | ||
리턴 | boolean | Timed out |
protected Document,Cake\ElasticSearch $entityClass | ||
리턴 |
protected string $repoName | ||
리턴 | string |
protected string $resultSet | ||
리턴 | string |