-
- zebra_begin_trans (zh);
- zebra_record_insert (zh, myrec, strlen(myrec));
+ zebra_select_database(zh, "Default");
+ 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, "At least one hit expected");
+ exit_code = 1;
+ }
+