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.
Exibir arquivo
Open project: yiisoft/yii2-elasticsearch
Public Methods
Protected Methods
Method Details
getAggregation()
public method
Returns results of the specified aggregation.
getAggregations()
public method
getQueryResults()
public method
prepareKeys()
protected method
prepareModels()
protected method
prepareTotalCount()
protected method
setQueryResults()
public method