/* 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
#include <yaz/yaz-ccl.h>
#include "facet_limit.h"
-#include "termlists.h"
+#include "relevance.h"
#include "reclists.h"
-#include "http.h"
struct record;
struct client;
PAZPAR2_LAST_ERROR
};
-// Represents a database
-struct database {
- char *id;
- int num_settings;
- struct setting **settings;
- struct database *next;
-};
-
-
// Represents a database as viewed from one session, possibly with settings overriden
// for that session
struct session_database
struct hitsbytarget *get_hitsbytarget(struct session *s, int *count, NMEM nmem);
struct session *new_session(NMEM nmem, struct conf_service *service,
unsigned session_id);
+int sessions_count(void);
void session_destroy(struct session *s);
void session_init_databases(struct session *s);
void statistics(struct session *s, struct statistics *stat);
const char *maxrecs,
const char *filter, const char *limit,
const char **addinfo,
+ const char **addinfo2,
struct reclist_sortparms *sort_parm,
const char *mergekey,
const char *rank);
const char *session_setting_oneval(struct session_database *db, int offset);
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);