-/* $Id: t7.c,v 1.4 2004-10-29 13:02:39 heikki Exp $
- Copyright (C) 2004
- Index Data Aps
+/* $Id: t7.c,v 1.8 2005-03-09 12:14:42 adam Exp $
+ Copyright (C) 1995-2005
+ Index Data ApS
This file is part of the Zebra server.
"@attr 1=4 my");
Z_SortKeySpecList *spec =
yaz_sort_spec (odr_output, "@attr 1=4 id");
- int hits;
+ zint hits;
- init_data(zh,recs);
+ init_data(zh, recs);
-
- zebra_begin_trans (zh, 0);
+ zebra_begin_trans(zh, 0);
- zebra_search_RPN (zh, odr_input, query, setname1, &hits);
+ zebra_search_RPN(zh, odr_input, query, setname1, &hits);
rc=zebra_sort(zh, odr_output, 1, &setname1, setname2, spec, &status);
if (rc)
exit(1);
}
- zebra_end_trans (zh);
+ zebra_end_trans(zh);
yaz_pqf_destroy(parser);
/*
- zebra_deleleResultSet(zh, Z_DeleteRequest_list,
+ zebra_deleteResultSet(zh, Z_DeleteRequest_list,
1, &setnamep, &status);
*/
- odr_destroy (odr_input);
- odr_destroy (odr_output);
+ odr_destroy(odr_input);
+ odr_destroy(odr_output);
- zebra_commit (zh);
+ zebra_commit(zh);
- return close_down(zh,zs,0);
+ return close_down(zh, zs, 0);
}