projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6576c41
)
Approximation support
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 16:11:51 +0000
(18:11 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 16:11:51 +0000
(18:11 +0200)
src/session.h
patch
|
blob
|
history
diff --git
a/src/session.h
b/src/session.h
index
209b33c
..
886f1b6
100644
(file)
--- a/
src/session.h
+++ b/
src/session.h
@@
-138,6
+138,7
@@
struct hitsbytarget {
const char *id;
const char *name;
Odr_int hits;
const char *id;
const char *name;
Odr_int hits;
+ Odr_int approximation;
int diagnostic;
const char *addinfo;
int records;
int diagnostic;
const char *addinfo;
int records;
@@
-166,7
+167,7
@@
enum pazpar2_error_code session_search(struct session *s, const char *query,
struct record_cluster **show_range_start(struct session *s,
struct reclist_sortparms *sp,
int start,
struct record_cluster **show_range_start(struct session *s,
struct reclist_sortparms *sp,
int start,
- int *num, int *total, Odr_int *sumhits);
+ int *num, int *total, Odr_int *sumhits, Odr_int *approximation);
void show_range_stop(struct session *s, struct record_cluster **recs);
struct record_cluster *show_single_start(struct session *s, const char *id,
void show_range_stop(struct session *s, struct record_cluster **recs);
struct record_cluster *show_single_start(struct session *s, const char *id,