<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SuperSearch; abstract class AbstractSuperSearchProvider { public abstract function name(); public abstract function title(); public abstract function ping(); public abstract function bucketExists($zO6V5); public abstract function bucketCreate($zO6V5, $j_g3k); public abstract function bucketDelete($zO6V5); public abstract function bucketCount($zO6V5); public abstract function upsert($zO6V5, $gZ39D, $avcnU); public abstract function delete($zO6V5, $gZ39D); public abstract function get($zO6V5, $gZ39D); public abstract function search($zO6V5, $iXUoW, $VUK_X, $jyBel = array(), $v9Xk2 = array()); public function ensureBucket($zO6V5) { if (!$this->bucketExists($zO6V5)) { $g16tm = SuperSearchBiz::get($zO6V5); $this->bucketCreate($zO6V5, $g16tm->fields()); } } }