From: Adam Dickmeiss Date: Wed, 18 May 2005 11:47:50 +0000 (+0000) Subject: Fixed bug #342: estimate hit not in effect for multi-ands. X-Git-Tag: snippet.version.1~23 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6d2647676d01d9493897295d1830badec3e4f27a;p=idzebra-moved-to-github.git Fixed bug #342: estimate hit not in effect for multi-ands. --- diff --git a/rset/rsmultiandor.c b/rset/rsmultiandor.c index 1af14c6..c0c48fc 100644 --- a/rset/rsmultiandor.c +++ b/rset/rsmultiandor.c @@ -1,4 +1,4 @@ -/* $Id: rsmultiandor.c,v 1.17 2005-05-03 09:11:36 adam Exp $ +/* $Id: rsmultiandor.c,v 1.18 2005-05-18 11:47:50 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -268,13 +268,14 @@ static RSET rsmulti_andor_create(NMEM nmem, int scope, int no_rsets, RSET* rsets, const struct rset_control *ctrl) { - RSET rnew = rset_create_base(ctrl, nmem, kcontrol, scope,0); + RSET rnew = rset_create_base(ctrl, nmem, kcontrol, scope, 0); struct rset_private *info; if (!log_level_initialized) { log_level = yaz_log_module_level("rsmultiandor"); log_level_initialized = 1; } + yaz_log(log_level, "rsmultiand_andor_create scope=%d", scope); info = (struct rset_private *) nmem_malloc(rnew->nmem,sizeof(*info)); info->no_rsets = no_rsets; info->rsets = (RSET*)nmem_malloc(rnew->nmem, no_rsets*sizeof(*rsets)); @@ -484,6 +485,7 @@ static int r_read_and (RSFD rfd, void *buf, TERMID *term) p->eof = 1; /* game over, once tails have been returned */ p->tailbits[mintail]=0; (p->tailcount)--; + (p->hits)++; return 1; } /* still a tail? */ @@ -492,6 +494,7 @@ static int r_read_and (RSFD rfd, void *buf, TERMID *term) p->tailbits[mintail]=0; (p->tailcount)--; } + (p->hits)++; return 1; } /* not tailing, forward until all reocrds match, and set up */