sdk/php/app/demo.ini配置 [php] [id] type = id [productsName] type = title tokenizer = scwsSplit [/php] 自定义字母、数字分词类 sdk/php/lib/XSTokenizerScwsSplit.php [php]
require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...
require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...
...] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $index = $xs->index; // 索引对象来自 XS 的属性 ~~~ 关于索引对象的详细用法剖析请阅读后面的专题。 $Id$
...://www.ftphp.com/scws[/url] 项目演示:[url=http://www.ftphp.com/scws/demo/v4.php]http://www.ftphp.com/scws/demo/v4.php[/url](含自定词汇功能) TF/IDF简易查询计算器:[url=http://www.ftphp.com/scws/demo/get_tfidf.php]http://www.ftphp.com/scws/demo/get_tfidf.php [/url](用于新...
...chd: worker[3] [root@server67 php]# util/Indexer.php --source=csv --clean demo 清空现有索引数据 ... 初始化数据源 ... csv WARNING: input file not specified, read data from 开始批量导入数据 (请直接输入数据) ... 1,关于 xunsearch 的 DEMO 项目测试,项目测试...
... try { include '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; // 直接输出异常描述 if (defined('DEBUG')) // 如果是 DEBUG 模式,则输出堆栈情况 echo "\n" . $e-...
... num_accept:194989(53.8/s), num_task:1083121(299.0/s), sock:7, name:"demo", home:"data/demo", rcv_size:8, flag:0x0000, version:"1.4.5-dev" } ---------- SERVER INFO BEGIN ---------- { id:"worker1", uptime:157312, num_burst:0, max_burst:56, num_accept:436479, aps:2.8, num_task:1213...
...] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; // 搜索对象来自 XS 的属性 ~~~ 默认情况,搜索对象操作时对于用户输入的参数、搜索结果的输出编码视为默认编码,即 [XS::defaultCharset]。 如果您需...
util.searchskel直接生成默认的搜索 代码 ,你在那个基础 上修改就行了。 也可以参见util.Quest里的写法,真要简单搜索 也就大概下面几句就行了: [code] $xs = new XS('demo'); $docs = $xs->search->search('关键字'); print_r($docs); [/code]