PHP Class Cake\ElasticSearch\ResultSet

Inheritance: extends IteratorIterato\IteratorIterator, implements Countabl\Countable, implements JsonSerializabl\JsonSerializable, use trait Cake\Collection\CollectionTrait
Afficher le fichier Open project: cakephp/elastic-search

Protected Properties

Свойство Type Description
$embeds array Embedded type references
$entityClass Document 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

Méthodes publiques

Méthode Description
__construct ( ResultSet $resultSet, Query $query ) Decorator's constructor
__debugInfo ( ) : array Debug output hook method.
count ( ) : integer Returns size of current set
countSuggests ( ) : integer Returns size of current suggests
current ( ) : Document 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 ( ) : Query Returns the original \Elastica\Query instance
getResponse ( ) : Response 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

Method Details

__construct() public méthode

Decorator's constructor
public __construct ( ResultSet $resultSet, Query $query )
$resultSet Elastica\ResultSet The results from Elastica to wrap
$query Elastica\Query The Elasticsearch Query object

__debugInfo() public méthode

Debug output hook method.
public __debugInfo ( ) : array
Résultat array

count() public méthode

Returns size of current set
public count ( ) : integer
Résultat integer Size of set

countSuggests() public méthode

Returns size of current suggests
public countSuggests ( ) : integer
Résultat integer Size of suggests

current() public méthode

Returns the current document for the iteration
public current ( ) : Document
Résultat Document

getAggregation() public méthode

Retrieve a specific aggregation from this result set
public getAggregation ( string $name ) : array
$name string the name of the desired aggregation
Résultat array

getAggregations() public méthode

Returns all aggregation results
public getAggregations ( ) : array
Résultat array

getFacets() public méthode

Returns all facets results
public getFacets ( ) : array
Résultat array Facet results

getMaxScore() public méthode

Returns the max score of the results found
public getMaxScore ( ) : float
Résultat float Max Score

getQuery() public méthode

Returns the original \Elastica\Query instance
public getQuery ( ) : Query
Résultat Elastica\Query

getResponse() public méthode

Returns response object
public getResponse ( ) : Response
Résultat Elastica\Response Response object

getResults() public méthode

Returns all results
public getResults ( ) : Result[]
Résultat Result[] Results

getSuggests() public méthode

Return all suggests
public getSuggests ( ) : array
Résultat array suggest results

getTotalHits() public méthode

Returns the total number of found hits
public getTotalHits ( ) : integer
Résultat integer Total hits

getTotalTime() public méthode

Returns the total number of ms for this search to complete
public getTotalTime ( ) : integer
Résultat integer Total time

hasFacets() public méthode

Returns whether facets exist
public hasFacets ( ) : boolean
Résultat boolean Facet existence

hasSuggests() public méthode

Returns true if the response contains suggestion results; false otherwise
public hasSuggests ( ) : boolean
Résultat boolean

hasTimedOut() public méthode

Returns true if the query has timed out
public hasTimedOut ( ) : boolean
Résultat boolean Timed out

Property Details

$embeds protected_oe property

Embedded type references
protected array $embeds
Résultat array

$entityClass protected_oe property

The full class name of the document class to wrap the results
protected Document,Cake\ElasticSearch $entityClass
Résultat Document

$repoName protected_oe property

Name of the type that the originating query came from.
protected string $repoName
Résultat string

$resultSet protected_oe property

Holds the original instance of the result set
protected string $resultSet
Résultat string