X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Frecord.h;h=2a46c2b8e7ef2a5094cad4ca7a9c6c77a034e835;hb=2ee54f76ebb2510e313a0ad34d09a23d0d9c23ae;hp=08ce3f46af71355f1e18479bef8d66929001dea6;hpb=9267d02c3601122f74bdf3a9d21f30080a4a1a9a;p=pazpar2-moved-to-github.git diff --git a/src/record.h b/src/record.h index 08ce3f4..2a46c2b 100644 --- a/src/record.h +++ b/src/record.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2009 Index Data + Copyright (C) 2006-2010 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -37,11 +37,17 @@ union data_types { }; +struct record_metadata_attr { + char *name; + char *value; + struct record_metadata_attr *next; +}; struct record_metadata { union data_types data; // next item of this name struct record_metadata *next; + struct record_metadata_attr *attributes; }; union data_types * data_types_assign(NMEM nmem, @@ -106,8 +112,10 @@ struct record_cluster struct record_metadata **metadata; union data_types **sortkeys; char *merge_key; - int relevance; + int relevance_score; int *term_frequency_vec; + int *term_frequency_vec_tmp; + float *term_frequency_vecf; // Set-specific ID for this record char *recid; struct record *records;