From: Adam Dickmeiss Date: Mon, 13 Oct 2008 11:45:52 +0000 (+0200) Subject: Fixed bug 2021: non-merged , brief meta data not included. X-Git-Tag: v1.1.0~109 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=3488eb700179e7e0f472a711796aa8ef376e6528;p=pazpar2-moved-to-github.git Fixed bug 2021: non-merged , brief meta data not included. Fixed bug 2021/2272. For non-merged meta data is also included in cluster when merge is set to 'no'. --- diff --git a/src/logic.c b/src/logic.c index 70b3879..4ac92f0 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1086,7 +1086,6 @@ struct record *ingest_record(struct client *cl, const char *rec, wheretoput = &record->metadata[md_field_id]; while (*wheretoput) wheretoput = &(*wheretoput)->next; - rec_md->next = 0; *wheretoput = rec_md; // merged metadata @@ -1096,6 +1095,12 @@ struct record *ingest_record(struct client *cl, const char *rec, // and polulate with data: // assign cluster or record based on merge action + if (ser_md->merge == Metadata_merge_no) + { + while (*wheretoput) + wheretoput = &(*wheretoput)->next; + *wheretoput = rec_md; + } if (ser_md->merge == Metadata_merge_unique) { struct record_metadata *mnode;