1 | <?php |
||
19 | class Connection extends \yii\elasticsearch\Connection |
||
20 | { |
||
21 | /** |
||
22 | * @var Cache|string the cache object or the ID of the cache application component |
||
23 | * that is used for query caching. |
||
24 | */ |
||
25 | public $cache = 'cache'; |
||
26 | |||
27 | /** |
||
28 | * Spooler table name |
||
29 | * @var string |
||
30 | */ |
||
31 | public $spoolerTableName = '{{ym_elastic_spool_item}}'; |
||
32 | |||
33 | /** |
||
34 | * Elastic search index name |
||
35 | * @var string |
||
36 | */ |
||
37 | public $index; |
||
38 | |||
39 | public function init() |
||
46 | |||
47 | /** |
||
48 | * Creates a command for execution. |
||
49 | * @param array $config the configuration for the Command class |
||
50 | * @return Command the DB command |
||
51 | */ |
||
52 | public function createCommand($config = []) |
||
60 | |||
61 | /** |
||
62 | * Creates new query builder instance |
||
63 | * @return QueryBuilder |
||
64 | */ |
||
65 | public function getQueryBuilder() |
||
69 | } |