ini文件是这样配置的 [php] [active] index = self tokenizer = none [/php] 这个active 只保存1或者0 可是 搜索 [php] $search->setQuery("active:1")->search(); $search->setQuery('active:"1"')->search() [/php] 这样搜不出来啊 加上双引号也搜不出来 是不是这个有最短...
Notice: Undefined index: part in C:\Users\Administrator\Desktop\tool\dev\make_xd b_file.php on line 92 PHP Notice: Undefined index: part in C:\Users\Administrator\Desktop\tool\dev\ma ke_xdb_file.php on line 92 Notice: Use of undefined constant key - assumed 'key' in C:\Users\Administrato Des...
XS Object ( [_index:private] => [_search:private] => [_scws:private] => [_scheme:private] => XSFieldScheme Object ( [_fields:private] => Array ( [newsid] => XSFieldMeta Object ( [name] => newsid [cutlen] => 0 [weight] => 1 [type] => 10 [vno] => 0 [tokenizer:private] => full [flag:private] => 1 )...
...出现如下错误 [XSErrorException] ../usr/local/xunsearch/sdk/php/util/Indexer.php(176): ob_flush(): failed to flush buffer. No buffer to flush.(8) #0 [internal function]: xs_error_handler(8, 'ob_flush(): fai...', '/usr/local/xuns...', 176, Array) #1 /usr/local/xunsearch/sdk/php/util/Indexer.php(...
...xecCommand(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(XSDocum...
...=== 前一章讲到有些情况不得不需要重建索引,可以用 [XSIndex::clean] 立即全部清空所有数据, 然后再把现有数据全部添加到索引数据库中。 但这种方式的缺点对于线上项目是难以容忍的,因此可以选择使用平滑重建方式。它的...
...ng value of primarky key (FIELD:pid) #0 /usr/local/xunsearch/sdk/php/util/Indexer.php(195): XSIndex->update(Object(XSDocument)) sql语句: sql="select c.contentid,c.status,b.contentid from phpcms_content c,phpcms_c_news b where c.contentid=b.contentid and c.status=99" 配置文件:...
...目名称为:demo $search=$xs->search; $search->setAutoSynonyms(true); $index->addSynonym('搜索','检索'); $index->addSynonym('搜索','查找'); [/php] 然后查看是否成功 [php] $xs = new XS('demo'); // 建立 XS 对象,项目名称为:demo $search=$xs->search; $search->setAutoSynony...
[root@localhost xunsearch]# util/Indexer.php --source=test.csv --clean demo 清空现有索引数据 ... 初始化数据源 ... test.csv [XSException] util/XSDataSource.class.php(49): Undefined data source type: `test.csv' #0 Indexer.php(241): XSDataSource::instance('test.csv', NULL) #1 {main}...
...: project.name = city [ID] type = id tokenizer = none [name] index = self tokenizer = xstep(1) cutlen = 15 phrase = yes [name_sc] index = self cutlen = 15 weight = 4 phrase = yes [name_tc] index = self cutlen = 15 weight = 3 phrase = yes 现在中文字都可以...