projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6277df6
)
Pass section_id for sortkeys
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 6 Nov 2008 10:59:06 +0000
(11:59 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 6 Nov 2008 10:59:06 +0000
(11:59 +0100)
index/extract.c
patch
|
blob
|
history
diff --git
a/index/extract.c
b/index/extract.c
index
82544f5
..
848f367
100644
(file)
--- a/
index/extract.c
+++ b/
index/extract.c
@@
-1584,9
+1584,10
@@
static void extract_add_sort_string(RecWord *p, const char *str, int length)
ch = zebraExplain_lookup_attr_str(zei, cat, p->index_type, p->index_name);
if (ch < 0)
ch = zebraExplain_add_attr_str(zei, cat, p->index_type, p->index_name);
- key.len = 2;
+ key.len = 3;
key.mem[0] = ch;
key.mem[1] = p->record_id;
+ key.mem[2] = p->section_id;
zebra_rec_keys_write(zh->reg->sortKeys, str, length, &key);
}