From: Adam Dickmeiss Date: Thu, 6 Nov 2008 10:59:06 +0000 (+0100) Subject: Pass section_id for sortkeys X-Git-Tag: v2.0.34~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=283af3f9949fc128d9b8308185130b324333db2b;p=idzebra-moved-to-github.git Pass section_id for sortkeys --- diff --git a/index/extract.c b/index/extract.c index 82544f5..848f367 100644 --- 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); }