[php]bash-3.2$ php sdk/php/util/Quest.php spj example_attr:small50 --show-query -------------------- 解析后的 QUERY 语句:Xapian::Query((ZHsmall:(pos=1) AND 50:(pos=2)))[/php] 搜不到任何结果?
oh 谢谢!我试试[hr] require_once '/mnt/search/sdk/php/lib/XS.php'; $xs = new XS('test'); $skey = $_GET["skey"]; $search = $xs->search; $docs = $search->setQuery($skey."type:1")->search(); print_r($docs); 已经 [type] type = string index = self 了 但是搜索不到什么 改成...
1.安装xunsearch,参见文档:http://www.xunsearch.com/doc/php/guide/start.installation,这里不必多说 2.启动xunsearch $prefix/bin/xs-ctl.sh start,即可启动xunsearch 3.构建项目:首先参考文档:http://www.xunsearch.com/doc/php/guide/ini.guide 文档中说明了项目...
... - Missing value of primarky key (FIELD:pid) #0 /usr/local/xunsearch/sdk/php/util/Indexer.php(195): XSIndex->update(Object(XSDocument)) sql语句: sql="select c.contentid,c.status,b.contentid from phpcms_content c,phpcms_c_news b where c.contentid=b.contentid and c.status=99" 配置...
...个简单的命令来论坛里问下。 [code][root@a107 ~]# /usr/local/php/bin/php /usr/local/xunsearch/sdk/php/util/Indexer.php --project=xxx –-source=mysql://xxx:xxx@localhost/xxx --sql="select ID,post_title,post_content,UNIX_TIMESTAMP(post_date) as post_time from wp_posts where (post_status...
...] tokenizer = full [subject] type = title [content] type = body #导入 php util/Indexer.php --rebuild --source=mysql://数据库用户名:数据库密码@数据库地址/数据库名 --sql="select t.tid as tid, t.fid as fid, t.author as author, t.authorid as authorid, t.postdate as postdate, t.s...