数据库 - Model 前置说明
官方开源项目 抓取代理IP

参数说明

用途:修改索引表的字段信息
依赖类:\x\Elasticsearch
方法名:updateField()

参数:

  • array $field

    • 功能:字段信息。
    • 默认值:无

返回值:this

使用示例:

$Elasticsearch = new \x\Elasticsearch();
// 字段信息
$field = [
    'title' => [
        'type' => 'text',
    ],
    'age' => [
        'type' => 'integer',
    ],
];
// 修改字段信息
$res = $Elasticsearch->table('shop')->updateField($field);
var_dump($res);

SW-X

企业级 - 高性能 PHP 框架

最后更新:2年前 . 作者-小黄牛

本篇目录