cluster.
-/* $Id: logic.c,v 1.42 2007-06-13 13:04:34 adam Exp $
+/* $Id: logic.c,v 1.43 2007-06-13 21:29:04 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
}
record = record_create(se->nmem,
- service->num_metadata, service->num_sortkeys, cl);
+ service->num_metadata, service->num_sortkeys, cl,
+ record_no);
mergekey_norm = (xmlChar *) nmem_strdup(se->nmem, (char*) mergekey);
xmlFree(mergekey);
-/* $Id: record.c,v 1.9 2007-06-07 12:27:03 adam Exp $
+/* $Id: record.c,v 1.10 2007-06-13 21:29:04 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
02111-1307, USA.
*/
-/* $Id: record.c,v 1.9 2007-06-07 12:27:03 adam Exp $ */
+/* $Id: record.c,v 1.10 2007-06-13 21:29:04 adam Exp $ */
#include <string.h>
struct record * record_create(NMEM nmem, int num_metadata, int num_sortkeys,
- struct client *client)
+ struct client *client, int position)
{
struct record * record = 0;
int i = 0;
sizeof(union data_types*) * num_sortkeys);
for (i = 0; i < num_sortkeys; i++)
record->sortkeys[i] = 0;
+
+ record->position = position;
return record;
}
-/* $Id: record.h,v 1.9 2007-06-07 12:27:03 adam Exp $
+/* $Id: record.h,v 1.10 2007-06-13 21:29:04 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
union data_types **sortkeys;
// Next in cluster of merged records
struct record *next;
+ // client result set position;
+ int position;
};
struct record * record_create(NMEM nmem, int num_metadata, int num_sortkeys,
- struct client *client);
+ struct client *client, int position);
struct record_metadata * record_metadata_create(NMEM nmem);