projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use simpler var for timeout in event loop
[pazpar2-moved-to-github.git]
/
src
/
record.h
diff --git
a/src/record.h
b/src/record.h
index
f2761f5
..
cb8df1e
100644
(file)
--- a/
src/record.h
+++ b/
src/record.h
@@
-1,5
+1,5
@@
/* This file is part of Pazpar2.
/* 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
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
@@
-34,6
+34,7
@@
union data_types {
int min;
int max;
} number;
int min;
int max;
} number;
+ double fnumber;
};
};
@@
-65,6
+66,8
@@
struct record {
struct record *next;
// client result set position;
int position;
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;
};
// checksum
unsigned checksum;
};
@@
-82,7
+85,9
@@
struct record_cluster
// Array mirrors list of metadata fields in config
struct record_metadata **metadata;
union data_types **sortkeys;
// Array mirrors list of metadata fields in config
struct record_metadata **metadata;
union data_types **sortkeys;
- char *merge_key;
+ // char *merge_key;
+ struct record_metadata_attr *merge_keys;
+
int relevance_score;
int *term_frequency_vec;
float *term_frequency_vecf;
int relevance_score;
int *term_frequency_vec;
float *term_frequency_vecf;
@@
-91,6
+96,8
@@
struct record_cluster
WRBUF relevance_explain1;
WRBUF relevance_explain2;
struct record *records;
WRBUF relevance_explain1;
WRBUF relevance_explain2;
struct record *records;
+ struct record_cluster *sorted_next;
+ struct reclist_sortparms *sort_parms;
};
#endif // RECORD_H
};
#endif // RECORD_H