-/* $Id: t17.c,v 1.12 2008-01-26 15:51:00 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 1995-2008 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
/* complete-subfield search */
YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 6=2 {my computer}", 1));
YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 6=2 {my}", 0));
+
+ /* always matches */
+ YAZ_CHECK(tl_query(zh, "@attr 1=_ALLRECORDS @attr 2=103 {}", 5));
+ YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 2=103 {}", 5));
+ YAZ_CHECK(tl_query(zh, "@attr 1=abstract @attr 2=103 {}", 1));
+ YAZ_CHECK(tl_query(zh, "@attr 1=abstract @attr 2=103 {does not match}", 1));
/* scan */
{ /* word search */