Pass section_id for sortkeys
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 6 Nov 2008 10:59:06 +0000 (11:59 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 6 Nov 2008 10:59:06 +0000 (11:59 +0100)
index/extract.c

index 82544f5..848f367 100644 (file)
@@ -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);
 }