-/* $Id: t5.c,v 1.25 2007-12-03 14:33:35 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
/* simple term */
YAZ_CHECK(tl_query(zh, "@attr 1=4 notfound", 0));
YAZ_CHECK(tl_query(zh, "@attr 1=4 title", 3));
+ tl_fetch_compare(zh, 1, "zebra::facet::title:w", yaz_oid_recsyn_sutrs,
+ "term 3 3: my\n"
+ "term 3 3: title\n"
+ "term 2 2: x\n");
/* trunc right */
YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=1 titl", 3));
+
YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=1 x", 2));
+ tl_fetch_compare(zh, 1, "zebra::facet::title:w", yaz_oid_recsyn_sutrs,
+ "term 2 2: my\n"
+ "term 2 2: title\n"
+ "term 2 2: x\n");
/* trunc left */
YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=2 titl", 0));
YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 2=5 title", 2));
/* always-matches relation */
+ YAZ_CHECK(tl_query(zh, "@attr 1=_ALLRECORDS @attr 2=103 {ym}", 3));
YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 2=103 {x my}", 3));
YAZ_CHECK(tl_query_x(zh, "@attr 1=1 @attr 2=103 {x my}", 0, 114));