搜索

大约有 118 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0049秒)

61.和Greta一起使用时,scws_free_tops出错

发布时间:2013-06-15 11:06 t By lyjkensou

...代码 [code]void scws_free_tops(scws_top_t tops) { scws_top_t cur; int len; int b; while ((cur = tops) != NULL) { tops = cur->next; if (cur->word) { OutputDebugStringA(cur->word);//能正常输出能容 len = strlen(cur->word);//长度都正确 b = ('\0'==cur->word[...

62.RE: scws_has_word的逻辑问题

发布时间:2010-08-02 11:08 t By backluck

[quote='backluck' pid='3650' dateline='1280380226'] [quote]int scws_has_word(scws_t s, char *xattr) { int off, cnt, xmode = SCWS_NA; scws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save th...

63.XSServer

...tion connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this wi...

64.scws_set_multi()函数的一个小问题....

发布时间:2010-12-06 22:12 t By lauxinz

void scws_set_multi(scws_t s, int mode); 描述:设定分词执行时是否执行针对长词复合切分。(例如:中国人->中国+人+中国人)。参数 mode 表示复合分词法的级别,取值为 1 ~ 15。mode 设定值,1~15。[b]按位与[/b]的 1|2|4|8 依次表示 短词|二...

65.XSCommand.arg1

arg1 属性 public int $arg1; 参数1 取值范围 0~255, 具体含义根据不同的 CMD 而变化

66.XSCommand.arg2

arg2 属性 public int $arg2; 参数2 取值范围 0~255, 常用于存储 value no, 具体参照不同 CMD 而确定

67.XSCommand.cmd

cmd 属性 public int $cmd; 命令代码 通常是预定义常量 XS_CMD_xxx, 取值范围 0~255

68.XSFieldMeta.cutlen

cutlen 属性 public int $cutlen; 剪取长度 (单位:字节) 用于在返回搜索结果自动剪取较长内容的字段, 默认为 0表示不截取, body 型字段默认为 300 字节

69.XSFieldMeta.type

type 属性 public int $type; 字段类型

70.XSFieldMeta.vno

vno 属性 public int $vno; 字段序号 取值为 0~255, 同一字段方案内不能重复, 由 XSFieldScheme::addField 进行确定

  • 时间不限
  • 按相关性排序