... ~ 655.35 {return} string 修正后的搜索语句 源码: sdk/php/lib/XSSearch.class.php#L949 (显示) public function addQueryString($query, $addOp = XS_CMD_QUERY_OP_AND, $scale = 1){ $query = $this->preQueryString($query); $bscale = ($scale > 0 && $scale != 1) ? pack('n', intva...
...turn} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L968 (显示) public function addQueryTerm($field, $term, $addOp = XS_CMD_QUERY_OP_AND, $scale = 1){ $term = strtolower($term); $term = XS::convert($term, 'UTF-8', $this->_charset); $bscal...
...操作对像,参见[如何开始使用索引?](index.overview#ch1) ~~~ [php] // 给 "搜索" 增加 "检索" "查找" 两个同义词 $index->addSynonym('搜索', '检索'); $index->addSynonym('搜索', '查找'); // 给 "Hello world" 增加同义词 "你好" $index->addSynonym('hello world', '...
...XSSearch » XSServer » XSComponent 版本 1.0.0 源代码 sdk/php/lib/XSSearch.class.php XS 搜索类, 执行搜索功能 有部分方法支持串接操作 $xs->search->setQuery($str)->setLimit(10, 10)->search(); $xs->close(); Public 属性 隐去继承来的属性 ...