-
- zebra_begin_trans (zh);
- zebra_record_insert (zh, myrec, strlen(myrec));
+ zebra_select_database(zh, "Default");
+ zebra_init(zh);
+ zebra_begin_trans (zh, 1);
+
+ zebra_add_record (zh, myrec, strlen(myrec));
+
+ zebra_search_PQF (zh, "@attr 1=4 my", "set1", &hits);
+ if (hits != 1)
+ {
+ yaz_log(LOG_FATAL, "Expected 1 hit. Got %d", hits);
+ exit_code = 1;
+ }
+