srw_res->resultSetIdleTime =
odr_intdup(assoc->encode, *rr.srw_setnameIdleTime );
}
-
+
srw_res->facetList = yaz_oi_get_facetlist(&rr.search_info);
- yaz_log(YLOG_LOG, "facetList res = %p",srw_res->facetList);
if (start > rr.hits || start < 1)
{
/* if hits<=0 and start=1 we don't return a diagnostic */
t->term->u.general = o =
(Odr_oct *)odr_malloc(assoc->encode, sizeof(Odr_oct));
o->buf = (unsigned char *)
- odr_malloc(assoc->encode, o->len = o->size =
+ odr_malloc(assoc->encode, o->len =
strlen(bsrr->entries[i].term));
+#if OCT_SIZE
+ o->size = o->len;
+#endif
memcpy(o->buf, bsrr->entries[i].term, o->len);
yaz_log(YLOG_DEBUG, " term #%d: '%s' (" ODR_INT_PRINTF ")", i,
bsrr->entries[i].term, bsrr->entries[i].occurrences);