The CCL term is not quoted unless it includes blanks. This will ensure
that r=r is handled correctly. This changes behavior a bit. If term
should not be converted to @and, then instead of r=r one should use
r=o or r=3 instead.
struct ccl_rpn_node *cn;
wrbuf_rewind(ccl_w);
wrbuf_puts(ccl_w, ccl);
struct ccl_rpn_node *cn;
wrbuf_rewind(ccl_w);
wrbuf_puts(ccl_w, ccl);
- wrbuf_puts(ccl_w, "=\"");
+ wrbuf_putc(ccl_w, '=');
+ if (strchr(values[i], ' '))
+ wrbuf_putc(ccl_w, '\"');
wrbuf_puts(ccl_w, values[i]);
wrbuf_puts(ccl_w, values[i]);
- wrbuf_puts(ccl_w, "\"");
-
+ if (strchr(values[i], ' '))
+ wrbuf_putc(ccl_w, '\"');
cn = ccl_find_str(ccl_map, wrbuf_cstr(ccl_w),
&cerror, &cpos);
if (cn)
cn = ccl_find_str(ccl_map, wrbuf_cstr(ccl_w),
&cerror, &cpos);
if (cn)
<set name="pz:cclmap:author_phrase" value="1=author_exact 6=3"/>
<set name="pz:cclmap:term" value="1=text s=Dal" />
<set name="pz:cclmap:isbn" value="1=isbn" />
<set name="pz:cclmap:author_phrase" value="1=author_exact 6=3"/>
<set name="pz:cclmap:term" value="1=text s=Dal" />
<set name="pz:cclmap:isbn" value="1=isbn" />
- <set name="pz:cclmap:date_exact" value="1=date_exact r=r" />
+ <set name="pz:cclmap:date_exact" value="1=date_exact r=o" />
<set name="pz:xslt" value="solr-pz2.xsl" />
<set name="pz:queryencoding" value="UTF-8" />
<set name="pz:xslt" value="solr-pz2.xsl" />
<set name="pz:queryencoding" value="UTF-8" />