From: Adam Dickmeiss Date: Wed, 20 Mar 2002 14:36:00 +0000 (+0000) Subject: Additional Search Info for GFS X-Git-Tag: YAZ.1.8.6~13 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=828c5ea4da2289925cbb665082b9e6df304812bb;p=yaz-moved-to-github.git Additional Search Info for GFS --- diff --git a/CHANGELOG b/CHANGELOG index 3c2cbe6..a6073c2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ Possible compatibility problems with earlier versions marked with '*'. --- 1.8.6 2002/MM/DD +Client displays USR.1:SearchResult-1 (hits per term). + +Additional Search Info for search in Generic Frontend Server. + Fixed CCL parsing of "field=s". WIN32 installer - using the excellent NSIS software from nullsoft. diff --git a/include/yaz/backend.h b/include/yaz/backend.h index 499b8d0..e8d8bc2 100644 --- a/include/yaz/backend.h +++ b/include/yaz/backend.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: backend.h,v $ - * Revision 1.13 2002-03-05 12:45:49 mike + * Revision 1.14 2002-03-20 14:36:00 adam + * Additional Search Info for GFS + * + * Revision 1.13 2002/03/05 12:45:49 mike * Add trivial support for implementation_id specified by backend. * * Revision 1.12 2001/03/25 21:55:12 adam @@ -137,6 +140,7 @@ typedef struct { int hits; /* number of hits */ int errcode; /* 0==OK */ char *errstring; /* system error string or NULL */ + Z_OtherInformation *search_info; /* additional search info */ } bend_search_rr; /* extended present handler. Does not replace bend_fetch. */ diff --git a/server/seshigh.c b/server/seshigh.c index 4af6e86..8d0f17f 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.127 2002-03-05 12:45:49 mike Exp $ + * $Id: seshigh.c,v 1.128 2002-03-20 14:36:00 adam Exp $ */ /* @@ -1023,6 +1023,7 @@ static Z_APDU *process_searchRequest(association *assoc, request *reqb, bsrr->errcode = 0; bsrr->hits = 0; bsrr->errstring = NULL; + bsrr->search_info = NULL; (assoc->init->bend_search)(assoc->backend, bsrr); if (!bsrr->request) return 0; @@ -1133,6 +1134,7 @@ static Z_APDU *response_searchRequest(association *assoc, request *reqb, resp->presentStatus = 0; } } + resp->additionalSearchInfo = bsrt->search_info; return apdu; }