X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Frecord.h;h=2071621456d9b5de41229270740cbb98ee7c7e46;hb=d7dc14dcdfbd1ecdc805a0d649203f3b9888749c;hp=30effe6d7a2b768424b72e2c859f6e3c64b646ce;hpb=7a99aea06e5d23ce1320c4e3a368543c6a7ab1e4;p=pazpar2-moved-to-github.git diff --git a/src/record.h b/src/record.h index 30effe6..2071621 100644 --- a/src/record.h +++ b/src/record.h @@ -1,4 +1,4 @@ -/* $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. @@ -28,7 +28,10 @@ struct client; struct conf_service; union data_types { - char *text; + struct { + const char *disp; + const char *sort; + } text; struct { int min; int max; @@ -56,11 +59,13 @@ struct record { 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); @@ -106,7 +111,7 @@ struct record_cluster int relevance; int *term_frequency_vec; // Set-specific ID for this record - int recid; + char *recid; struct record *records; };