直接XSIndex::flushIndex 就提示 Fatal error: Undefined class constant 'flushIndex' XSIndex::flushIndex()就提示Method "execCommand" does not exist and was not trapped in __call() 求解决哈!
...ild 选项,因为它是平滑重建,让人感觉很可靠。 由于 XSIndex::beginRebuild 和 XSIndex::endRebuild 必须配对使用,但如果索引创建过程出现某些错误导致程序提前结束,那么由于没有调用 endRebuild,下一次的索引提交和重建均会报告 h...
我在对数据库记录进行索引,所有记录都添加了,可是查看索引总记录数发现少了几十个,不知哪出问题了,所以我有个疑问,如何得知XSIndex->add()方法是否执行成功?谢谢
首先索引更新并不是实时刷新的,你稍后再看。 如果用 XSIndex::add 一样是调用多少次数据库内就是多少条的
...>execCommand(Array, 250) #1 /home/www/xunsearch/sdk/php/lib/XS.php(1246): XSIndex->addExdata('????????1??????...', false) #2 /home/www/xunsearch/sdk/php/lib/XS.php(1102): XSIndex->appendBuffer('????????37225??...') #3 /home/www/xunsearch/sdk/php/util/Indexer.php(237): XSIndex->update(Object(XSDoc...
...S.php(1089): XSServer->execCommand(Array, 250) #1 ../phplib/XS.php(1094): XSIndex->addExdata('????????111????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0) #3 ../phputil/Indexer.php(206): XSIndex->closeBuffer() #4 {main} PHP Fatal error: Exception thrown without a stack frame in Unkno...
...S.php(1089): XSServer->execCommand(Array, 250) #1 ../phplib/XS.php(1094): XSIndex->addExdata('????????1??????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0) #3 ../phputil/Indexer.php(206): XSIndex->closeBuffer() #4 {main} PHP Fatal error: Exception thrown without a stack frame in Unkno...
...S.php(1089): XSServer->execCommand(Array, 250) #1 ../phplib/XS.php(1094): XSIndex->addExdata('????????1??????...') #2 ../phplib/XS.php(1100): XSIndex->openBuffer(0) #3 ../phputil/Indexer.php(206): XSIndex->closeBuffer() #4 {main} PHP Fatal error: Exception thrown without a stack frame in Unkno...