...字段改成 [type] type = numeric index = self 这样了 但是我更新所以好像没效果 $index->update($doc); 这样的 是不是要清空后用add ?[hr] Xapian::Query((新闻:(pos=1) AND (type:(pos=2) PHRASE 2 1:(pos=3)))) 这样 但是木有数据
... 没看太懂。。[hr] http://icms.changsha.cn/search/search.php 更新代码是这样写的,$data构建较长,省略了 // 创建文档对象 $doc = new XSDocument; $doc->setFields($data); if ($isnewdoc) { ...