X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ft17.c;h=1c1cc3c7f22b1d1b5d23a61f98cc116db42f11d9;hb=4717561b3bc0bcd508b5d017079bd99b3a27dd84;hp=57d57f27ef382fc081a6191f7b7d48d08873c969;hpb=e1be1f5267e2be257664ded166b6890e4f24db83;p=idzebra-moved-to-github.git diff --git a/test/api/t17.c b/test/api/t17.c index 57d57f2..1c1cc3c 100644 --- a/test/api/t17.c +++ b/test/api/t17.c @@ -1,8 +1,5 @@ -/* $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 @@ -104,6 +101,12 @@ static void tst(int argc, char **argv) /* 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 */