用途:设置需要操作的索引表名称 依赖类:\x\Elasticsearch 方法名:table()
\x\Elasticsearch
table()
参数:
string $database
返回值:this
this
使用示例:
$Elasticsearch = new \x\Elasticsearch(); $Elasticsearch->table('shop')