Not creating a temporary file when indexing, if there would only
[idzebra-moved-to-github.git] / index / apitest.c
index 787a6ac..2694eb8 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: apitest.c,v 1.12 2002-08-02 19:26:55 adam Exp $
+/* $Id: apitest.c,v 1.15 2004-01-22 11:27:21 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -140,7 +140,7 @@ int main (int argc, char **argv)
     odr_input = odr_createmem (ODR_DECODE);    
     odr_output = odr_createmem (ODR_ENCODE);    
     
-    zs = zebra_start ("zebra.cfg");
+    zs = zebra_start ("zebra.cfg", 0, 0);
     if (!zs)
     {
        printf ("zebra_start failed; missing zebra.cfg?\n");
@@ -197,7 +197,7 @@ int main (int argc, char **argv)
        sprintf (setname, "%d", argno);
 
        /* fire up the search */
-       zebra_search_rpn (zh, odr_input, odr_output, query, setname, &hits);
+       zebra_search_RPN (zh, odr_input, query, setname, &hits);
        
        /* status ... */
         zebra_result (zh, &errCode, &errString);