...en = 300 //显示300个字节 [post_title] //标题 type = title [post_time] //时间YYYYmmdd形式 type = date [post_date_sec] //时间戳 [category] //分类 index = self [category_id //分类ID type = numeric index = none 可以看得出,有一些重复了,比如...
...ange('user_id',1,20000)->setLimit($page_num,($page-1)*$page_num)->setSort('post_time',true)->setQuery($q); print_r($search->query); $docs = $search->search(); print_r结果:Xapian::Query(波:(pos=1)) $docs 中的user_id 并没有限制在 1,20000....
... = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric index = self tokenizer = full [forward] type = numeric index = self tokenizer = full [reply_num] type = numeric index = self tokenizer = full xunsearch服务器 部署在 10.1.20...
.../xxx --sql="select ID,post_title,post_content,UNIX_TIMESTAMP(post_date) as post_time from wp_posts where (post_status='publish' or post_status='pending') and post_type='post'" Indexer - 索引批量管理、导入工具 (xunsearch/1.3.3) 用法 /usr/local/xunsearch/sdk/php/util/Indexer.php ...