elasticsearch\ActiveFixture $db

$db public property The DB connection object or the application component ID of the DB connection. After the DbFixture object is created, if you want to change this property, you should only assign it with a DB connection object. public yii\elasticsearch\Connection|string $db = 'elasticsearch'

elasticsearch\ActiveFixture $dataFile

$dataFile public property The file path or path alias of the data file that contains the fixture data to be returned by getData(). If this is not set, it will default to FixturePath/data/Index/Type.php, where FixturePath stands for the directory containing this fixture class, Index stands for the elasticsearch $index name and Type stands for the $type associated with this fixture. You can set this property to be false to prevent loading any data. public string|boolean $dataFile = null

elasticsearch\ActiveDataProvider setQueryResults()

setQueryResults() public method public void setQueryResults ( $results )$results array Full query results

elasticsearch\ActiveDataProvider prepareTotalCount()

prepareTotalCount() protected method Returns a value indicating the total number of data models in this data provider. protected integer prepareTotalCount ( )return integer Total number of data models in this data provider.

elasticsearch\ActiveDataProvider prepareModels()

prepareModels() protected method Prepares the data models that will be made available in the current page. protected array prepareModels ( )return array The available data models

elasticsearch\ActiveDataProvider prepareKeys()

prepareKeys() protected method Prepares the keys associated with the currently available data models. protected array prepareKeys ( $models )$models array The available data models return array The keys

elasticsearch\ActiveDataProvider getQueryResults()

getQueryResults() public method public array getQueryResults ( )return array Full query results

elasticsearch\ActiveDataProvider getAggregations()

getAggregations() public method public array getAggregations ( )return array All aggregations results

elasticsearch\ActiveDataProvider getAggregation()

getAggregation() public method Returns results of the specified aggregation. public array getAggregation ( $name )$name string Aggregation name. return array Aggregation results. throws yii\base\InvalidCallException if requested aggregation does not present in query results.

elasticsearch\ActiveDataProvider $queryResults

$queryResults public property Full query results public array getQueryResults ( )public void setQueryResults ( $results )