-/* $Id: record.h,v 1.9 2007-06-07 12:27:03 adam Exp $
+/* $Id: record.h,v 1.12 2007-09-10 16:25:50 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
struct conf_service;
union data_types {
- char *text;
+ struct {
+ const char *disp;
+ const char *sort;
+ } text;
struct {
int min;
int max;
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);
int relevance;
int *term_frequency_vec;
// Set-specific ID for this record
- int recid;
+ char *recid;
struct record *records;
};