projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
671844e
)
Add query with sort
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 16 Aug 2010 08:57:05 +0000
(10:57 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 16 Aug 2010 08:57:05 +0000
(10:57 +0200)
test/test_rpn2solr.c
patch
|
blob
|
history
diff --git
a/test/test_rpn2solr.c
b/test/test_rpn2solr.c
index
8367d8c
..
e9a87f7
100644
(file)
--- a/
test/test_rpn2solr.c
+++ b/
test/test_rpn2solr.c
@@
-56,6
+56,7
@@
static void tst1(void)
YAZ_CHECK(compare(ct, "@and a b", "a AND b"));
YAZ_CHECK(compare(ct, "@or a b", "a OR b"));
YAZ_CHECK(compare(ct, "@attr 1=field abc", "field:abc"));
YAZ_CHECK(compare(ct, "@and a b", "a AND b"));
YAZ_CHECK(compare(ct, "@or a b", "a OR b"));
YAZ_CHECK(compare(ct, "@attr 1=field abc", "field:abc"));
+ YAZ_CHECK(compare(ct, "@attr 1=field \"a b c\"", "field:\"a b c\""));
YAZ_CHECK(compare(ct, "@attr 1=4 abc", 0)); /* should fail */
solr_transform_define_pattern(ct, "index.title", "1=4");
YAZ_CHECK(compare(ct, "@attr 1=4 abc", 0)); /* should fail */
solr_transform_define_pattern(ct, "index.title", "1=4");
@@
-63,6
+64,9
@@
static void tst1(void)
solr_transform_define_pattern(ct, "index.foo", "1=bar");
YAZ_CHECK(compare(ct, "@attr 1=bar abc", "foo:abc"));
solr_transform_define_pattern(ct, "index.foo", "1=bar");
YAZ_CHECK(compare(ct, "@attr 1=bar abc", "foo:abc"));
+ /*
+ YAZ_CHECK(compare(ct, "@or @attr 1=1016 water @attr 7=1 @attr 1=4 0", "any:water rank:??");
+ */
solr_transform_close(ct);
}
solr_transform_close(ct);
}