X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=blobdiff_plain;f=src%2Frecord.h;h=95c470e4f4ebac721dc4e91e1953bf565bcc82c4;hp=fc01b5c07e0d5b1242e64d6ad8d0000e3ebeef52;hb=HEAD;hpb=7db45d2bc967511916800d163b2c3e290c62da40 diff --git a/src/record.h b/src/record.h index fc01b5c..95c470e 100644 --- a/src/record.h +++ b/src/record.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2013 Index Data + Copyright (C) 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 @@ -27,6 +27,7 @@ struct conf_service; union data_types { struct { const char *disp; + const char *norm; const char *sort; const char *snippet; } text; @@ -34,6 +35,7 @@ union data_types { int min; int max; } number; + double fnumber; }; @@ -65,6 +67,8 @@ struct record { struct record *next; // client result set position; int position; + // score for ranking, either native or our TF/IDF, or other + double score; // checksum unsigned checksum; }; @@ -90,9 +94,12 @@ struct record_cluster float *term_frequency_vecf; // Set-specific ID for this record char *recid; + int retrieval_position; WRBUF relevance_explain1; WRBUF relevance_explain2; struct record *records; + struct record_cluster *sorted_next; + struct reclist_sortparms *sort_parms; }; #endif // RECORD_H