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, "\"");
-
+ if (strchr(values[i], ' '))
+ wrbuf_putc(ccl_w, '\"');
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: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" />