PHP Class yii\elasticsearch\ActiveDataProvider
It allows to fetch not only rows and total rows count, but full query results including aggregations and so on.
Note: this data provider fetches result models and total count using single ElasticSearch query, so results total
count will be fetched after pagination limit applying, which eliminates ability to verify if requested page number
actually exist. Data provider disables [[yii\data\Pagination::validatePage]] automatically because of this.
Afficher le fichier
Open project: yiisoft/yii2-elasticsearch
Méthodes publiques
Méthodes protégées
Method Details
getAggregation()
public méthode
Returns results of the specified aggregation.
getAggregations()
public méthode
getQueryResults()
public méthode
prepareKeys()
protected méthode
prepareModels()
protected méthode
prepareTotalCount()
protected méthode
setQueryResults()
public méthode