X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Frecord.h;h=2a46c2b8e7ef2a5094cad4ca7a9c6c77a034e835;hb=259a84d2e57ab4e3e37efbc9e57d1d91da91d072;hp=ae2a7b71b01b0aac6a50d3cbe07681e8885452fa;hpb=e107b0011a295ccc61502d6e5ea79d9125a3fbb4;p=pazpar2-moved-to-github.git diff --git a/src/record.h b/src/record.h index ae2a7b7..2a46c2b 100644 --- a/src/record.h +++ b/src/record.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2008 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; @@ -121,7 +129,9 @@ struct record_cluster /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +