- zs = start_service(""); /* default to zebra.cfg */
- zh = zebra_open (zs);
- init_data(zh, recs);
-
- zebra_select_database(zh, "Default");
-
- 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 );
-
+ YAZ_CHECK(tl_ranking_query(zh, "@attr 1=4 @attr 2=102 the",
+ 3, "first title", 936 ));