1、配置文件search.ini [code] project.name = search project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] type = id [title] type = title [content] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, c...
...m/doc/php/guide/ini.guide保持一致 搜索配置文件,sample.ini [code]project.name = sample project.default_charset = GBK ;server.index = 8383 ;server.search = 8384 [pid] type = id [subject] type = title [message] type = body [dateline] type = numeric [author] index ...
请问可不可以在下一版中把SDK XS.php 2202行处 [code]throw new XSException($error . '(C#' . $errno . ')'); [/code] 直接修改为相关错误信息呢(或用英文提示错误信息) [code]throw new XSException('由于目标机器积极拒绝,无法连接'. '(C#' . $errno . ')'); [...
...,已经不再有泄露了:) 原代码:(scws.c文件404行)[code]next_path: m = n + 1; } }[/code] 在 _scws_mseg_zone 函数结尾增加两个释放: /* 一口.070808: memory leak fixed. */ if (mpath) free(mpath); if (npath) free(npath); 修改...
...TF8繁体[/url] 模式下,勾取"清除标点符号",測試文字: [code]附加值(Value Added)是附加价值的简称,是在产品的原有价值的基础上,通过生产过程中的有效劳动新创造的价值,即附加在产品原有价值上的新价值,附加值的实现在于...
...,比如搜索“迪卡侬蓝色货品”: 现在是这样的: [code]Xapian::Query(((迪卡侬:(pos=1) SYNONYM (迪卡:(pos=89) OR 卡侬:(pos=90))) OR 蓝色:(pos=2) OR 货品:(pos=3)))[/code] 但是我有在自定义词库里面添加“迪卡侬” 所以我不希望“迪卡侬”...
[code] use Text::Scws; my $scws = Text::Scws->new; $scws->set_dict('dict.xdb'); $scws->set_rule('rule.ini'); $scws->set_ignore(1); $scws->set_multi(1); my $s = shift; $scws->send_text($s); while (my $r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } ...
字段配置:"use_year"为1-70的整型 [code] [use_year] type = string [/code] 搜索代码: [code] $xs = new XS('data.ini'); $search = $xs->getSearch(); $query = $fields['query']; $from = $fields['from']; $to = $fields['to']; $search->setQuery($query); $search->addRange('use_year'...
[code] project.name = 59n [bid] type = id [title] index = mixed weight = 5 [bc] index = mixed [cc] index = mixed [addtime] type = date tokenizer = none [/code] [php] ./Indexer.php --source=mysql://root:root@localhost/blog --sql="select b.bid,b.content AS bc,b.addtime,b.titl...
...我在项目中添加了Greta库后,scws_free_tops就出错了,错误[/code]提示是dbgheap.c line:1044... 单步调试后发现错误发生在scws_free_tops函数中的 [code]free(cur->word)[/code] 请问这种错误可能的原因?应该向什么方向解决呢? 我在scws_free_tops...