/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
solr_transform_define_pattern(ct, "index.foo", "1=bar");
YAZ_CHECK(compare(ct, "@attr 1=bar abc", "foo:abc"));
+
+ /* Truncation */
+ YAZ_CHECK(compare(ct, "@attr 5=1 water", "water*"));
+ YAZ_CHECK(compare(ct, "@attr 5=2 water", "*water"));
+ YAZ_CHECK(compare(ct, "@attr 5=3 water", "*water*"));
+
/*
YAZ_CHECK(compare(ct, "@or @attr 1=1016 water @attr 7=1 @attr 1=4 0", "any:water rank:??");
*/