From 98573bbc35a5eea1df877e5c887ef909bfaceddd Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 16 Aug 2010 10:57:05 +0200 Subject: [PATCH] Add query with sort --- test/test_rpn2solr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_rpn2solr.c b/test/test_rpn2solr.c index 8367d8c..e9a87f7 100644 --- 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, "@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"); @@ -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")); + /* + YAZ_CHECK(compare(ct, "@or @attr 1=1016 water @attr 7=1 @attr 1=4 0", "any:water rank:??"); + */ solr_transform_close(ct); } -- 1.7.10.4