X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=src%2Frecord.h;h=57a47896eab5a96a31d5077887ac8821ba6856d5;hb=ba5951a80fdd0da1d28c318852b69a1178cd6bfa;hp=0c9dff9ead5181f2d85e0daf70f612f6e725d0ba;hpb=2819110732a5e3cdc6de71333977ff39d7cf8bf3;p=pazpar2-moved-to-github.git diff --git a/src/record.h b/src/record.h index 0c9dff9..57a4789 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, @@ -108,6 +114,8 @@ struct record_cluster char *merge_key; int relevance; 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 */ +