搜索测试的时候,搜索 '酷' 出来 ["b_name"] => string(15) "酷酷宠物店" ["b_name"] => string(18) "酷乐岛花木店" ["b_name"] => string(12) "酷乐猫舍" ["b_name"] => string(21) "酷酷宠物生活馆" 但是 还有个 ["b_name"] => string(18) "酷趣宠物诊所" 没...
...e_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); if(empty($result...
...以到到康师傅的记录。 我的配置如下: [php] project.name = goods project.default_charset = utf-8 server.index = 8383 server.search = 8384 ; 商品ID 与配送范围 配送范围以特殊格式放到标题后面 [goods_id] type = id ; 商品名称 [goods_name] type ...
... 我有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 = ...
...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 ...
... 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”的...
... "当" 时限制找不到结果 配置文件名称如下 project.name = digital_music project.default_charset = utf-8 server.index = 8383 server.search = 8384 [music_id] type = id [music_name] type = title index = both [message] type = body cutlen = 500 [singer] typ...
...me Object ( [_fields:private] => Array ( [newsid] => XSFieldMeta Object ( [name] => newsid [cutlen] => 0 [weight] => 1 [type] => 10 [vno] => 0 [tokenizer:private] => full [flag:private] => 1 ) [title] => XSFieldMeta Object ( [name] => title [cutlen] => 0 [weight] => 5 [type] => 11 [vno] => 1 [tokeni...
...-+ | id | int(11) | NO | PRI | NULL | auto_increment | | name | varchar(20) | NO | | | | | phonenum | varchar(40) | YES | | NULL | | +----------+-------------+------+-----+---------+----------------+ 2. ini配置文件...