- int g = rset->rset_terms[i]->nn;
- if (!strncmp (rset->rset_terms[i]->flags, "rank,", 5))
+ zint g = rset_count(terms[i]->rset);
+ yaz_log(log_level, "i=%d flags=%s '%s'", i,
+ terms[i]->flags, terms[i]->name );
+ if (!strncmp (terms[i]->flags, "rank,", 5))