- 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", 872 );
-
- qry( zh, "@attr 1=1016 @attr 2=102 foo",
- 3, "second title", 850 );
-
- /* get the record with the most significant hit, that is the 'bar' */
- /* as that is the rarest of my search words */
- qry( zh, "@attr 1=1016 @attr 2=102 @or @or the foo bar",
- 3, "third title", 895 );
+ ZebraService zs = tl_start_up(0, argc, argv);
+ ZebraHandle zh = zebra_open(zs, 0);