From 283af3f9949fc128d9b8308185130b324333db2b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 6 Nov 2008 11:59:06 +0100 Subject: [PATCH] Pass section_id for sortkeys --- index/extract.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 1.7.10.4