...il]# ./Logger.php --flush /export/home/www/xunsearch/data/products -c gbk [XSException] ../lib/XS.php(819): Missing field of type ID #0 ../lib/XS.php(522): XSFieldScheme->checkValid(true) #1 ../lib/XS.php(296): XS->loadIniFile('/export/home/ww...') #2 Logger.php(94): XS->__construct('/export/home/ww...
$xs = new XS('my_test'); // $query = $xs->search->setQuery(); $search = $xs->search; $search->query = ''; $count = $search->addRange('price',600,1000)->count(); $search->addRange('price',600,1000)->search(); $count2 = $search->getLastCount(); echo $xs->sea...
setSort() 方法 public XSSearch setSort(string $field, bool $asc=false, bool $relevance_first=false) $field string 依据指定字段的值排序, 设为 null 则用默认顺序 $asc bool 是否为正序排列, 即从小到大, 从少到多, 默认为反序 $relevance_fir...
...r.search = x.x.x.160:8384 使用 Index.php -p test --info 报错 #0 ../lib/XS.php(2025): XSServer->connect() #1 ../lib/XS.php(2011): XSServer->open('x.x.x.160:8...') #2 ../lib/XS.php(342): XSServer->__construct('x.x.x.160:8...', Object(XS)) #3 ../lib/XS.php(249): XS->getIndex() #4 Indexer.php(155): ...
setAutoSynonyms() 方法 (自版本 v1.3.0 起可用) public XSSearch setAutoSynonyms(bool $value=true) $value bool 设为 true 表示开启同义词功能, 设为 false 关闭同义词功能 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSS...
嘿嘿,xunsearch for yii2 来了,通过 git subtree 功能从主仓库拆分出独立子库,除了原生用法外,还支持 AR 方式、DEBUG 面板!! 详见: [url]http://www.xunsearch.com/doc/php/guide/special.composer[/url]
嘿嘿,xunsearch for yii2 来了,通过 git subtree 功能从主仓库拆分出独立子库,除了原生用法外,还支持 AR 方式、DEBUG 面板!! 详见: [url]http://www.xunsearch.com/doc/php/guide/special.composer[/url]
...Rows($array = array()){ Yii::import('application.vendors.sdk.php.lib.XS'); $xs = new XS('shop'); $query = "regionId:".$array['regionId']; //return $query;exit; $ShopDoc = $xs->search->setCharset('UTF-8')->setLimit(1000, 0)->search($query);//我现在想再search...