...--------------------------------------------------------+ */ ! /* $Id: php_scws.c,v 1.3 2009/05/14 19:25:32 hightman Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" --- 16,22 ---- +----------------------------------------------------------------------+ */ ! /* $Id: ...
不知你有没有注意到 configure 的结果里,总是显示 checking if zts is enabled... no 问题应该是在这儿 我这儿的FREEBSD,LINUX都是正常的,PHP 4.4.X和PHP5.2.X都测试过~ 查看一下 /usr/local/php/include/php/main/php_config.php 里面是否有 #define ZTS 1 ...
$search->addRange('id', 30, 243239)->search() 搜不出结果, 但是搜 $search->addRange('id', 1, 243239)->search()能搜出结果 query 语句解析出来是这样的 "Xapian::Query(VALUE_RANGE 0 31 243239))" 无结果 "Xapian::Query(VALUE_RANGE 0 1 243239))" 有结果 请问下...
...r/local/xunsearch 所有配置文件和http://www.xunsearch.com/doc/php/guide/ini.guide保持一致 搜索配置文件,sample.ini [code]project.name = sample project.default_charset = GBK ;server.index = 8383 ;server.search = 8384 [pid] type = id [subject] type = title [message]...
...索呢? sphinx配置: [code] sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `fandian` sql_query = SELECT `id`,`type`, `name`, RADIANS(`lat`) AS `latitude`, RADIANS(`lon`) AS `longitude` FROM `fandian` WHERE (`id` >= $start AND `id` SetServer("localhost", 9312); $...
$arr = array(0=>array('id'=>1,'title'=>'啊','cat'=>1), 1=>array('id'=>2,'title'=>'啊2','cat'=>2) ……) 这个 我foreach ($arr as $val) { //获取分类 $arrTag = .........;//一维数组 $doc->setFields($data); $index->add($d...
...ditor set number ; syntax on ; set autoindent ; set tabstop=4 (vim) ! * $Id: xdb.h,v 1.1.1.1 2007/06/05 04:19:45 hightman Exp $ */ #ifndef _SCWS_XDB_20070525_H_ --- 2,8 ---- * @file xdb.h (read only) * @author Hightman Mar * @editor set number ; syntax on ; set autoindent ;...
....php --rebuild --source=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 j...
...oupon $search->setQuery( '(b_split_title:宠物 OR 宠物 ) AND b_city_id:31')->setlimit(1000000)->setFacets('b_tag_id')->search(); 打印: Xapian::Query(((or:(pos=1) AND 宠物:(pos=2) AND and:(pos=3) AND (b_city_id:(pos=4) PHRASE 2 31:(pos=5))) FILTER C宠物)) 但是 如果是别的字...
...r.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric index = self tokenizer = full [forward] type = numeric index = sel...