构建的搜索语句是 echo $search->getQuery($q); ------------------------------------------------------------ Xapian::Query(((F163:(pos=1) AND B海南:(pos=2)) FILTER H1))
用了addrange后 $search->setQuery($var) if(条件){ $search->addRange('num',intval($ex_num),null); } $search->search(); $search->getQuery()//[color=#0000CD]这里打印出是[/color][color=#FF0000]null[/color] 为什么是null呢?这样就查不出东西啦 help~~~:huh::huh::huh: -------...