# mydict_utf8.txt 我是新增词 爆红 再试一个 [php] $text = '最近撑腰体爆红网络我是新增词再试一个'; class scws { public $so; function get_microtime() { list($usec, $sec) = explode(' ', microtime()); return ((float)$usec + (float)$sec); } ...
[root@hp php]# util/Indexer.php --source=csv --clean demo [XSException] lib/XS.php(2092): Failed to create home directoy of the project(S#508) #0 lib/XS.php(2067): XSServer->execCommand(Array, 201) #1 lib/XS.php(2028): XSServer->setProject('demo') #2 lib/XS.php(2011): XSServer->open('8383') #3 ...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L85 (显示) public function update(XSDocument $doc, $add = false){ // before submit if ($doc->beforeSubmit($this) === false) { return $this; } // check primary key of document ...
... 是不是你创建的XDB文件没有调用相应的optimize方法 ? php里有一个 $xdb->Optimize(); 这是在创建文件后必须调用的,即使不调用,效率也不会像你描述的这么慢吧。 [/quote] 有运行优化函数~ 系统是XP (啪 APACHE 然后用的PSCWS4...
1.2.0 起提供了 php 5.3/5.4 的 non-thread-safe 的DLL了
ini文件是这样配置的 [php] [active] index = self tokenizer = none [/php] 这个active 只保存1或者0 可是 搜索 [php] $search->setQuery("active:1")->search(); $search->setQuery('active:"1"')->search() [/php] 这样搜不出来啊 加上双引号也搜不出来 是不是这个有最短...
...结果,就用--fulsh命令,不过报错 [root@zhengmei util]# ./Logger.php --flush /export/home/www/xunsearch/data/products -c gbk [XSException] ../lib/XS.php(819): Missing field of type ID #0 ../lib/XS.php(522): XSFieldScheme->checkValid(true) #1 ../lib/XS.php(296): XS->loadIniFile('/export/hom...
connect() 方法 protected void connect() 源码: sdk/php/lib/XSServer.class.php#L452 (显示) protected function connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L378 (显示) public function closeBuffer(){ return $this->openBuffer(0);} 提交所有指令并关闭缓冲区 若未曾打开缓冲区, 调用本方法是无意义的
flush() 方法 public static void flush() 源码: sdk/php/util/XSUtil.class.php#L183 (显示) public static function flush(){ flush(); if (ob_get_level() > 0) { ob_flush(); }} 刷新标准输出缓冲区