use attribute are incorrect.
--- 1.3.19 2004/XX/YY
+Fixed bug #248: hit counts in combinatoric (and) searches in specific ..
+
Avoid crash in ISAMB when isamb_pp_open gets ISAMB_POS = 0. In
this case EOF (no entries) is signalled. It fixes problem with
terms being deleted. See bug #109.
-/* $Id: rsisamb.h,v 1.2 2002-08-02 19:26:55 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+/* $Id: rsisamb.h,v 1.2.2.1 2005-01-14 14:32:25 adam Exp $
+ Copyright (C) 1995-2005
Index Data Aps
This file is part of the Zebra server.
#endif
extern const struct rset_control *rset_kind_isamb;
+extern const struct rset_control *rset_kind_isamb_forward;
typedef struct rset_isamb_parms
{
-/* $Id: trunc.c,v 1.28.2.1 2004-08-11 13:31:10 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+/* $Id: trunc.c,v 1.28.2.2 2005-01-14 14:32:25 adam Exp $
+ Copyright (C) 1995-2005
Index Data Aps
This file is part of the Zebra server.
parms.is = zi->reg->isamb;
parms.rset_term = rset_term_create (term, length, flags,
term_type);
- return rset_create (rset_kind_isamb, &parms);
+ if (res_get(zi->res, "isambforward"))
+ return rset_create (rset_kind_isamb_forward, &parms);
+ else
+ return rset_create (rset_kind_isamb, &parms);
}
qsort (isam_p, no, sizeof(*isam_p), isamd_trunc_cmp);
}
-/* $Id: rsisamb.c,v 1.10.2.1 2004-12-17 13:43:10 heikki Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
+/* $Id: rsisamb.c,v 1.10.2.2 2005-01-14 14:32:25 adam Exp $
+ Copyright (C) 1995-2005
Index Data Aps
This file is part of the Zebra server.
r_close,
r_delete,
r_rewind,
- r_forward, /* rset_default_forward, */
+ rset_default_forward,
+ r_pos,
+ r_read,
+ r_write,
+};
+
+static const struct rset_control control_forward =
+{
+ "isamb",
+ r_create,
+ r_open,
+ r_close,
+ r_delete,
+ r_rewind,
+ r_forward,
r_pos,
r_read,
r_write,
/* negates the speedup from forwarding */
const struct rset_control *rset_kind_isamb = &control;
+const struct rset_control *rset_kind_isamb_forward = &control_forward;
struct rset_pp_info {
ISAMB_PP pt;