- do_query(__LINE__, zh, "@attr 1=1016 the", 1);
- do_query(__LINE__, zh, "@attr 1=1016 {the art}", 1);
- do_query(__LINE__, zh, "@attr 1=1016 {den gamle}", 1);
- do_query(__LINE__, zh, "@attr 1=1016 {the of}", 0);
+ do_query(__LINE__, zh, "@attr 1=any the", 3);
+ do_query(__LINE__, zh, "@attr 1=any {the art}", 1);
+ do_query(__LINE__, zh, "@attr 1=any {den gamle}", 0);
+ do_query(__LINE__, zh, "@attr 1=any {the gamle}", 1);
+ do_query(__LINE__, zh, "@attr 1=any {the of}", 0);
+
+ /* verify that we get these records exactly */
+ ids[0] = 24338;
+ ids[1] = 24339;
+ ids[2] = 24340;
+ meta_query(__LINE__, zh, "@attr 1=any mand", 3, ids);
+
+ /* limit to 125061 */
+ limits[0] = 125061;
+ limits[1] = 0;
+ zebra_set_limit(zh, 0, limits);
+ ids[0] = 24339;
+ meta_query(__LINE__, zh, "@attr 1=any mand", 1, ids);
+
+ /* limit to 125060, 125061 */
+ limits[0] = 125061;
+ limits[1] = 125060;
+ limits[2] = 0;
+ zebra_set_limit(zh, 0, limits);
+ ids[0] = 24338;
+ ids[1] = 24339;
+ meta_query(__LINE__, zh, "@attr 1=any mand", 2, ids);
+
+ /* all except 125062 */
+ limits[0] = 125062;
+ limits[1] = 0;
+ zebra_set_limit(zh, 1, limits);