projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 5.4.1
[yaz-moved-to-github.git]
/
test
/
test_solr.c
diff --git
a/test/test_solr.c
b/test/test_solr.c
index
6ea884c
..
a2bfc06
100644
(file)
--- a/
test/test_solr.c
+++ b/
test/test_solr.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@
-69,7
+69,8
@@
void tst_encoding(void)
sr->u.request->query = "title:solr";
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
sr->u.request->query = "title:solr";
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
- "GET Default/select?q=title%3Asolr HTTP/1.1\r\n"
+ "GET Default/select?defType=lucene&q=title%3Asolr "
+ "HTTP/1.1\r\n"
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
"Content-Type: text/xml\r\n\r\n"));
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
"Content-Type: text/xml\r\n\r\n"));
@@
-81,7
+82,8
@@
void tst_encoding(void)
sr->u.request->query = "title:solr";
YAZ_CHECK(compare_solr_req(
odr, sr, "utf-8",
sr->u.request->query = "title:solr";
YAZ_CHECK(compare_solr_req(
odr, sr, "utf-8",
- "GET Default/select?q=title%3Asolr HTTP/1.1\r\n"
+ "GET Default/select?defType=lucene&q=title%3Asolr "
+ "HTTP/1.1\r\n"
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
"Content-Type: text/xml; charset=utf-8\r\n\r\n"));
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
"Content-Type: text/xml; charset=utf-8\r\n\r\n"));
@@
-97,7
+99,8
@@
void tst_encoding(void)
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
- "GET Default/select?q=title%3Asolr&start=2&rows=10"
+ "GET Default/select?defType=lucene&q=title%3Asolr&"
+ "start=2&rows=10"
" HTTP/1.1\r\n"
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
" HTTP/1.1\r\n"
"User-Agent: YAZ/" YAZ_VERSION "\r\n"
"Host: localhost\r\n"
@@
-116,7
+119,8
@@
void tst_encoding(void)
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
YAZ_CHECK(compare_solr_req(
odr, sr, 0,
- "GET Default/select?q=title%3Asolr&start=2&rows=10"
+ "GET Default/select?defType=lucene&q=title%3Asolr&"
+ "start=2&rows=10"
"&facet=true&facet.mincount=1&facet.field=date"
"&facet.field=title_exact&f.title_exact.facet.limit=17"
" HTTP/1.1\r\n"
"&facet=true&facet.mincount=1&facet.field=date"
"&facet.field=title_exact&f.title_exact.facet.limit=17"
" HTTP/1.1\r\n"