...d='7299' dateline='1397182457'] ini配置不对吧,你放心的用 $doc->from 取值吧,会自动转的 [/quote] ini文件: project.name = pin_115_gjh project.default_charset = UTF-8 [id] type = id [name] type = title [create_time] type = numeric [enterprise_id] type = numeric [image_url...
...XS('data.ini'); $search = $xs->getSearch(); $query = $fields['query']; $from = $fields['from']; $to = $fields['to']; $search->setQuery($query); $search->addRange('use_year', $from , $to); $docs = $search->search(); print_r($search->count()); [/code] 不管怎么设置$from跟$to,显...
....php --rebuild --source=mysql://root:123456@localhost/test --sql="SELECT * FROM documents" --project=demo 开始重建索引 ... 初始化数据源 ... mysql://root:123456@localhost/test [XSException] [color=#FF0000]../data/web/sftest/php/util/XSDataSource.class.php(826): SQLSTATE[HY000] [2002...
...p --rebuild --source=mysql://隐藏 --sql="select did, tag, title, content from wiki_doc" --filter=/usr/local/xunsearch/sdk/php/lib/MyBlogFilter --project=go >log.txt 然后仍然显示”忽略错误的过滤器“,我查了下感觉没啥问题啊。怎么老忽略呢?谢谢! 并且我用...
...--------------------------+ ==30624== ==30624== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 1) ==30624== malloc/free: in use at exit: 6 bytes in 3 blocks. ==30624== malloc/free: 36 allocs, 33 frees, 14,613 bytes allocated. ==30624== For counts of detected errors, rerun with: -...
... --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, content FROM dede_article" --project=search [/code] 结果显示成功索引556752条数据 3、测试搜索 [code]util/Quest.php search NBA[/code] 显示: [code]在 181,298条数据中,大约有 3880 条包含NBA[/code] 可...
...urce=mysql://xxx@localhost/phpcms --sql="SELECT a.id,a.title,a.url,a.catid,FROM_UNIXTIME (inputtime,'%Y%m%d' ) as inputtime,ad.content,c.catname,c.url as caturl FROM v9_dede_article AS a LEFT JOIN v9_dede_article_data as ad on a.id=ad.id LEFT JOIN v9_category as c on a.catid = c.catid WHERE a.st...
ini配置不对吧,你放心的用 $doc->from 取值吧,会自动转的
...结果 mysql> select group_concat(game_tag.tag__id) as tag__id,t.id as id from m as t left join game_tag on t.game__id = game_tag.game__id group by t.game__id; +-----------------------------------------------------------------------------+-----+ | tag__id ...
...blog --sql="select b.bid,b.content AS bc,b.addtime,b.title,c.content AS CC from blog b,comment c where b.bid = c.bid" /usr/local/xunsearch/sdk/php/app/59n.ini [/php] [code] [XSException] ../lib/XS.php(2202): Connection timed out(C#110) #0 ../lib/XS.php(2025): XSServer->connect() #1 ../lib/XS...