X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=rset%2Frsrel.c;h=54b062e37f63e2f0c9832b2cd09b6c0eba3b6436;hb=f671b6881c99082e63161c46b254d15ca9a72f22;hp=16efb8e57dd1ecbdba13f0e7aa60a72d301b961d;hpb=80eb0a73f541530f383715296203036b3adbacc2;p=idzebra-moved-to-github.git diff --git a/rset/rsrel.c b/rset/rsrel.c index 16efb8e..54b062e 100644 --- a/rset/rsrel.c +++ b/rset/rsrel.c @@ -4,8 +4,12 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rsrel.c,v $ - * Revision 1.10 1996-06-11 10:54:29 quinn - * Relevance work + * Revision 1.12 1996-10-08 13:00:40 adam + * Bug fix: result sets with ranked operands in boolean operations weren't + * sorted. + * + * Revision 1.11 1996/10/07 16:05:29 quinn + * Work. * * Revision 1.9 1995/12/11 09:15:26 adam * New set types: sand/sor/snot - ranked versions of and/or/not in @@ -189,10 +193,10 @@ static void relevance (struct rset_rel_info *info, rset_relevance_parms *parms) co_oc = 1; } else if (!r && last_term != parms->term_no[i]) /* new occurrence */ - co_oc++; + co_oc++; last_term = parms->term_no[i]; } - + if (min < 0) break; memcpy (isam_tmp_buf, isam_buf[min], info->key_size); @@ -207,10 +211,6 @@ static void relevance (struct rset_rel_info *info, rset_relevance_parms *parms) r = (*parms->cmp)(isam_buf[i], isam_tmp_buf); else r = 2; -#if 0 - if (r > 1 || r < -1) - wgt[parms->term_no[i]] = 0.0; -#endif if (r <= 1 && r >= -1) { do