- si->entries[i].rank_weight = atoi (rset->rset_terms[i]->flags+5);
- yaz_log (LOG_LOG, " weight=%d", i, si->entries[i].rank_weight);
+ if (cp)
+ si->entries[i].rank_weight = atoi (cp+3);
+ else
+ si->entries[i].rank_weight = 34;
+#if DEBUG_RANK
+ yaz_log (LOG_LOG, " i=%d weight=%d", i,
+ si->entries[i].rank_weight);
+#endif