setDb() 方法 public XSIndex setDb(string $name) $name string 数据库名称 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_...
... 我有3个字段要做这样的搜索 配置是这样的: project.name = city [ID] type = id tokenizer = none [name] index = self tokenizer = xstep(1) cutlen = 15 phrase = yes [name_sc] index = self cutlen = 15 weight = 4 phrase = yes [name_tc] index = self cutlen = ...
__set() 方法 public void __set(string $name, mixed $value) $name string 字段名称 $value mixed 字段值 源码: sdk/php/lib/XSDocument.class.php#L93 (显示) public function __set($name, $value){ if ($this->_meta !== null) { throw new XSException('Magick p...
...rce=mysql://root:@localhost/shop --sql="select g.goods_id,g.cat_id,g.goods_name,g.en_goods_name,g.goods_short_name,g.en_goods_short_name,g.brand_id,g.shop_price,g.goods_brief,g.en_goods_brief,g.goods_img,CONCAT(ga.attr_id,'_',ga.attr_value) as attr_value from fp_goods as g left join fp_goods_attr as...
//执行语句 $gSearch->setFuzzy()->setQuery($name)->addWeight('ranking','1')->setLimit($gNum,$startPage)->search(); //执行结果 Xapian::Query((疯:(pos=1) AND_MAYBE GD1))[hr] //输出结果 [0] => XSDocument Object ( [_data:XSDocument:private] => Array ...
...下标方式访问文档字段。 ~~~ [php] $doc = new XSDocument; $doc->name = 'value'; // 用对象属性方式进行赋值、取值 $doc['name'] = 'value'; // 用数组下标方式进行赋值、取值 $value = $doc->f('name'); // 用函数方式进行取值 $doc->setField('name', 'value'); // ...
... 1>f:\mypj\scws\libscws\xdict.c(100): warning C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getcwd. See online help for details. 1> f:\program files (x86)\microsoft visual studio 11.0\vc\include\direct.h(130) : 参见“getcwd”的...
...Title(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_TITLE])) { $name = $this->_typeMap[XSFieldMeta::TYPE_TITLE]; return $this->_fields[$name]; } foreach ($this->_fields as $name => $field) { if ($field->type === XSFieldMeta::TYPE_STRING && !$field->isBoolIndex()) { ...
...', $res->buf); $this->_lastCount = $tmp['count']; // load vno map to name of fields $ret = $this->_facets = array(); $vnoes = $this->xs->getScheme()->getVnoMap(); // get result documents while (true) { $res = $this->getRespond(); if ($res->cmd == XS_CMD_SEARCH_RESULT_...
...为 0表示不截取, body 型字段默认为 300 字节 XSFieldMeta name string 字段名称 理论上支持各种可视字符, 推荐字符范围:[0-9A-Za-z-_], 长度控制在 1~32 字节为宜 XSFieldMeta type int 字段类型 XSFieldMeta vno int 字段序号 取值...