123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace App;
- use App\Components\EsNative;
- /**
- * Class EsModel
- * @package App\Models\Es
- */
- class EsModel {
- public static function createIdx($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->createIdx($params);
- }
- public static function deleteIdx($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->deleteIdx($params);
- }
- public static function addDoc($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->addDoc($params);
- }
- public static function deleteDoc($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->deleteDoc($params);
- }
- public static function updateDoc($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->updateDoc($params);
- }
- public static function searchDoc($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->searchDoc($params);
- }
- public static function bulkDoc($data) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->bulkDoc($data);
- }
- public static function countDoc($data) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->countDoc($data);
- }
- public static function addAlias($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->addAlias($params);
- }
- public static function updateByQuery($params) {
- /** @var EsNative $es */
- $es = app('es');
- return $es->updateByQuery($params);
- }
- }
|