X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsession.h;h=886f1b61e8fd51ca8abb8e27bc5243dcdb021665;hb=a308a61764c5a8da2d386827d8574c45618d63de;hp=98057d66003ed91d6e60d27d72c08bc6c000bd5f;hpb=fb486d4fa4ebc56c76bbc8f25c819b1bb4a144f7;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index 98057d6..886f1b6 100644 --- a/src/session.h +++ b/src/session.h @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2012 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 @@ -102,7 +102,8 @@ struct client_list; struct session { struct conf_service *service; /* service in use for this session */ struct session_database *databases; // All databases, settings overriden - struct client_list *clients; // Clients connected for current search + struct client_list *clients_active; // Clients connected for current search + struct client_list *clients_cached; // Clients in cache NMEM session_nmem; // Nmem for session-permanent storage NMEM nmem; // Nmem for each operation (i.e. search, result set, etc) int num_termlists; @@ -117,6 +118,7 @@ struct session { normalize_cache_t normalize_cache; YAZ_MUTEX session_mutex; unsigned session_id; + int settings_modified; struct session_sorted_results *sorted_results; }; @@ -136,8 +138,11 @@ struct hitsbytarget { const char *id; const char *name; Odr_int hits; + Odr_int approximation; int diagnostic; + const char *addinfo; int records; + int filtered; const char *state; int connected; char *settings_xml; @@ -162,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, - 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, @@ -182,8 +187,7 @@ void session_alert_watch(struct session *s, int what); void add_facet(struct session *s, const char *type, const char *value, int count); -void perform_termlist(struct http_channel *c, struct session *se, - const char *name, int num); +void perform_termlist(struct http_channel *c, struct session *se, const char *name, int num, int version); void session_log(struct session *s, int level, const char *fmt, ...) #ifdef __GNUC__ __attribute__ ((format (printf, 3, 4)))