...18): XSServer->__construct('8383', Object(XS)) #3 lib/XS.php(232): XS->getIndex() #4 Indexer.php(121): XSComponent->__get('index') 请问这个问题该如何解决,谢谢
...tman' pid='329' dateline='1323313833'] 配置不对,只是区间搜索 index = none 就行了。 addRange()的用法本身没有错。但希望你能附全代码,实在不行可以在 $search->search()之前或之后打印 $search->query 的值看看实际检索条件 [/quote] 按照...
...ep xs root 21853 0.0 0.0 2184 652 ? S Sep17 0:04 xs-indexd: server root 21856 0.0 0.0 39536 1680 ? S Sep17 0:00 xs-searchd: master root 21857 0.0 0.0 101136 3120 ? Sl Sep17 0:00 xs-searchd: worker[1] root 21858 0.0 0.0 101136 310...
...目名称为:demo $search=$xs->search; $search->setAutoSynonyms(true); $index->addSynonym('搜索','检索'); $index->addSynonym('搜索','查找'); [/php] 然后查看是否成功 [php] $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $search=$xs->search; $search->setAutoSynony...
...ki"); $wiki_date = new MongoDate(0); $xs = new XS('demo'); $index = $xs->index; while (true) { $wikis = $wiki_repo->find(array("query" => array("created_at" => array('$gt' => $wiki_date)), "sort" => array("created_at" => 1), "limit" => 100)); if (!$wikis) break;...
...段 XS fieldTitle XSFieldMeta 获取当前标题字段 XS index XSIndex 获取索引操作对象 XS name string 获取当前项目名称 XS scheme XSFieldScheme 获取当前在用的字段方案 XS scwsServer XSServer 创建 scws 分词连接 XS ...
..._construct('8383') #4 /usr/local/xunsearch/sdk/php/lib/XS.php(251): XS->getIndex('8383', Object(XS)) #5 /usr/local/xunsearch/sdk/php/index_add.php(6): XSComponent->__get() #6 {main} 进程已启动: root 3795 1 0 05:37 ? 00:00:00 xs-indexd: server ...
...skey."type:1")->search(); print_r($docs); 已经 [type] type = string index = self 了 但是搜索不到什么 改成 $docs = $search->setQuery($skey)->search(); 就可以 type这个我读出来是 "0" 和"1" 没错[hr] $docs = $search->setQuery($skey.' AND type:1')->search(); 这...
... etc include lib sdk share tmp [root@sm xunsearch]# ./sdk/php/util/ Indexer.php Quest.php SearchSkel.php XSDataSource.class.php IniWizzard.php RequiredCheck.php skel/ XSUtil.class.php [root@sm xunsearch]# ./sdk/ph...
...为 GBK // 然后进行一系列赋值操作 // 提交到索引中 $xs->index->add($doc); ~~~ 如果您希望在 `XSDocument` 提交到索引前、后进行一系列必要的操作,您可以对 `XSDocument` 进行扩展, 重写 [XSDocument::beforeSubmit] 和 [XSDocument::afterSubmit] 方法...