- zs = zebra_start("t2.cfg");
- zh = zebra_open (zs);
- zebra_select_database(zh, "Default");
- zebra_begin_trans (zh, 1);
- zebra_record_insert (zh, myrec, strlen(myrec));
-
- hits = zebra_search_PQF (zh, "@attr 1=4 my", "set1");
- if (hits < 1)
- {
- yaz_log(LOG_FATAL, "At least one hit expected");
- exit_code = 1;
- }
+int main(int argc, char **argv)
+{
+ ZebraService zs = start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs);