...ian中document对象有termlist_begin()方法来对该文档进行索引词遍历,在xunsearch里面有没有对应的api呢,在xsDocument类里我找到的方法getAddTerms()似乎只是针对附加索引词进行查找。有没有对某个文档的索引词列表进行遍历的方法呢?
.c文件追加 [code] typedef struct xdb_tree_node { char *key; int vlen; int voff; struct xdb_tree_node* next; } xdb_tree_list, *xdb_tree_plist; int travel_index = -1; xdb_tree_plist _xdb_tree_plist = NULL; void _xdb_next_tree_read(xdb_t x, xptr_t ptr) { if (ptr->len...
...个用法有说明里有提到啊,就是返回一个链表结构,依次遍历取出就好了,大概如下: scws_t s; scws_top_t top, cur; char *text = "测试说明文字"; s = scws_new(); scws_set_charset(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_send_text(s...
...个用法有说明里有提到啊,就是返回一个链表结构,依次遍历取出就好了,大概如下: scws_t s; scws_top_t top, cur; char *text = "测试说明文字"; s = scws_new(); scws_set_charset(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_se...