X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fsession.h;h=07972beb19f08aa1cd640c83e99d9a9ac5509d1f;hb=4ae1e0582f66acaec33dca2c3b023d47d7f431af;hp=153c6ad7122499aea73a1339f8605c23fb6392b4;hpb=6c1c46b74d3c184cec3254f07a1f11344d63337e;p=pazpar2-moved-to-github.git diff --git a/src/session.h b/src/session.h index 153c6ad..07972be 100644 --- a/src/session.h +++ b/src/session.h @@ -112,7 +112,9 @@ struct session { int settings_modified; facet_limits_t facet_limits; int clients_starting; + int force_position; struct reclist_sortparms *sorted_results; + struct facet_id *facet_id_list; }; struct statistics { @@ -192,11 +194,15 @@ int ingest_record(struct client *cl, const char *rec, int record_no, NMEM nmem); int ingest_xml_record(struct client *cl, xmlDoc *xdoc, int record_no, NMEM nmem, int cached_copy); void session_alert_watch(struct session *s, int what); -void add_facet(struct session *s, const char *type, const char *value, int count); +void add_facet(struct session *s, const char *type, const char *value, int count, struct client *cl); int session_check_cluster_limit(struct session *se, struct record_cluster *rec); void perform_termlist(struct http_channel *c, struct session *se, const char *name, int num, int version); + +const char *session_lookup_id_facet(struct session *s, struct client *cl, + const char *type, const char *term); + void session_log(struct session *s, int level, const char *fmt, ...) #ifdef __GNUC__ __attribute__ ((format (printf, 3, 4)))