solr_op = "select";
if (!srw_pdu->u.request->query)
return -1;
- /* not considering query type here ! */
+ yaz_add_name_value_str(encode, name, value, &i, "defType", "lucene");
yaz_add_name_value_str(encode, name, value, &i, "q", request->query);
if (srw_pdu->u.request->startRecord)
{
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"));
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"));
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"
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"