Creating search terms, and passing them around in searches. Not yet actually
[idzebra-moved-to-github.git] / test / api / t5.c
index cd9e0e6..e5f4334 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t5.c,v 1.4 2004-07-28 08:15:47 adam Exp $
+/* $Id: t5.c,v 1.7 2004-10-20 14:32:29 heikki Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -22,7 +22,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 
 #include <yaz/log.h>
 #include <yaz/pquery.h>
-#include <zebraapi.h>
+#include <idzebra/api.h>
 
 /* read zebra.cfg from env var srcdir if it exists; otherwise current dir */
 static ZebraService start_service()
@@ -52,7 +52,7 @@ static void expect(ZebraHandle zh, const char *pqf, int hits_expect,
 
 int main(int argc, char **argv)
 {
-    int i, hits = -1;
+    int i;
     int exit_code = 0;
     ZebraService zs;
     ZebraHandle zh;
@@ -64,6 +64,7 @@ int main(int argc, char **argv)
     ;
 
     yaz_log_init_file("t5.log");
+    yaz_log_init_level(LOG_ALL);
 
     nmem_init ();