Possible compatibility problems with earlier versions marked with '*'.
+Added support for specifying srw resultset id + resultset TTL in a
+Generic Frontend Server's search handler. Patch by Ko van der Sloot.
+
Do not build the separate Multi-threaded (MT) library libyazthread.la.
Instead make the library libyaz.la multi-threaded. Threading as a whole
can still be disabled by configure option --disable-threads. Previosly,
* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
- * $Id: backend.h,v 1.32 2005-06-25 15:46:01 adam Exp $
+ * $Id: backend.h,v 1.33 2005-09-11 18:39:11 adam Exp $
*/
/**
char *errstring; /* system error string or NULL */
Z_OtherInformation *search_info; /* additional search info */
char *srw_sortKeys; /* holds SRU/SRW sortKeys info */
+ char *srw_setname; /* holds SRU/SRW generated resultsetID */
+ int *srw_setnameIdleTime; /* holds SRU/SRW life-time */
} bend_search_rr;
/* extended present handler. Does not replace bend_fetch. */
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.60 2005-08-30 20:13:51 adam Exp $
+ * $Id: seshigh.c,v 1.61 2005-09-11 18:39:11 adam Exp $
*/
/**
* \file seshigh.c
rr.basenames = &srw_req->database;
rr.referenceId = 0;
rr.srw_sortKeys = 0;
-
+ rr.srw_setname = 0;
+ rr.srw_setnameIdleTime = 0;
rr.query = (Z_Query *) odr_malloc (assoc->decode, sizeof(*rr.query));
rr.query->u.type_1 = 0;
start, number, rr.hits);
srw_res->numberOfRecords = odr_intdup(assoc->encode, rr.hits);
+ if (rr.srw_setname)
+ {
+ srw_res->resultSetId =
+ odr_strdup(assoc->encode, rr.srw_setname );
+ srw_res->resultSetIdleTime =
+ odr_intdup(assoc->encode, *rr.srw_setnameIdleTime );
+ }
if (number > 0)
{
int i;
assoc->init->implementation_name,
odr_prepend(assoc->encode, "GFS", resp->implementationName));
- version = odr_strdup(assoc->encode, "$Revision: 1.60 $");
+ version = odr_strdup(assoc->encode, "$Revision: 1.61 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
resp->implementationVersion = odr_prepend(assoc->encode,
bsrr->referenceId = req->referenceId;
save_referenceId (reqb, bsrr->referenceId);
bsrr->srw_sortKeys = 0;
+ bsrr->srw_setname = 0;
+ bsrr->srw_setnameIdleTime = 0;
yaz_log (log_requestdetail, "ResultSet '%s'", req->resultSetName);
if (req->databaseNames)