/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
if (!r)
{
ret = 0;
- yaz_log(YLOG_WARN, "cql: diff %s", cql);
+ yaz_log(YLOG_WARN, "cql: diff: %s", cql);
yaz_log(YLOG_WARN, " exp error");
yaz_log(YLOG_WARN, " got ccl %s", wrbuf_cstr(w));
}
YAZ_CHECK(tst_query("title any x", "title=\"x\""));
YAZ_CHECK(tst_query("title any x y", "title=\"x\" or title=\"y\""));
YAZ_CHECK(tst_query("title any \"x y\"", "title=\"x\" or title=\"y\""));
+
+ YAZ_CHECK(tst_query("title = \"x y\"", "title=\"x y\""));
+ YAZ_CHECK(tst_query("title = x y", "title=\"x\" \"y\""));
+
YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs",
"(dc.title=\"encyclopedia\") % (\"dinosaurs\")"));
YAZ_CHECK(tst_query("dc.title=encyclopedia prox/distance<=3 dinosaurs",
"title,,1,0,lowValue"));
YAZ_CHECK(tst_query_s("a sortby title/missingHigh", "\"a\"",
"title,,1,0,highValue"));
+ YAZ_CHECK(tst_query_s("a sortby title/sort.missingHigh", "\"a\"",
+ "title,,1,0,highValue"));
YAZ_CHECK(tst_query_s("a sortby title/bogus", "\"a\"", 0));
YAZ_CHECK(tst_query_s("a sortby dc.year dc.author", "\"a\"",