X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ft10.c;h=cd68776d15b24166c490eaba38abd06cff095d28;hb=aa9c7bcd6f5ec5a2523c40f929ebdc9d72c1b48a;hp=eb99c1b61a19fe65c71dd920245e440e3dd45d93;hpb=18525dd52e7b562b9ff31987fbee4be16c68f4b8;p=idzebra-moved-to-github.git diff --git a/test/api/t10.c b/test/api/t10.c index eb99c1b..cd68776 100644 --- a/test/api/t10.c +++ b/test/api/t10.c @@ -1,6 +1,6 @@ -/* $Id: t10.c,v 1.4 2004-11-04 13:09:49 heikki Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 - Index Data Aps +/* $Id: t10.c,v 1.7 2005-04-28 11:25:24 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -78,16 +78,16 @@ int main(int argc, char **argv) ZebraService zs = start_up("zebrazv.cfg", argc, argv); ZebraHandle zh = zebra_open (zs); - int loglevel=yaz_log_mask_str("zvrank,rank1,t10"); + int loglevel = yaz_log_mask_str("zvrank,rank1,t10"); init_data(zh, recs); zebra_close(zh); yaz_log_init_level(loglevel); - for (i=0; tests[i].schema; i++) + for (i = 0; tests[i].schema; i++) { zh = zebra_open (zs); zebra_select_database(zh, "Default"); zebra_set_resource(zh, "zvrank.weighting-scheme", tests[i].schema); - logf(LOG_LOG,"============%d: %s ============", i,tests[i].schema); + yaz_log(loglevel,"============%d: %s ===========", i, tests[i].schema); ranking_query( __LINE__, zh, "@attr 1=1016 @attr 2=102 the", 3, tests[i].hit1, tests[i].score1);