- ZebraService zs = start_up(0, argc, argv);
- ZebraHandle zh = zebra_open(zs);
-
- init_data(zh, recs);
-
- qry( zh, "@attr 1=1016 @attr 2=102 the",
- 3, "first title", 997 );
-
- qry( zh, "@attr 1=1016 @attr 2=102 foo",
- 3, "second title", 850 );
+ ZebraService zs = tl_start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs, 0);
+
+ YAZ_CHECK(tl_init_data(zh, recs));
+
+ YAZ_CHECK(tl_ranking_query(zh, "@attr 1=4 @attr 2=102 the",
+ 3, "first title", 936 ));
+
+ YAZ_CHECK(tl_ranking_query(zh, "@attr 1=62 @attr 2=102 foo",
+ 3, "second title", 850 ));
+
+ YAZ_CHECK(tl_close_down(zh, zs));
+}