X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=d9ed54e1c81a5d69fc3d9799bb6c4d72142e8660;hb=d8e960f5f1060148a5fffa7a767c72391662fbdc;hp=c50a1b28a93aac834e016924660c4765bb08edaf;hpb=fee10afdae5bbc7cd0ea61dd6e74df579a20106f;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index c50a1b2..d9ed54e 100644 --- a/index/index.h +++ b/index/index.h @@ -1,4 +1,4 @@ -/* $Id: index.h,v 1.134 2005-04-25 11:54:08 adam Exp $ +/* $Id: index.h,v 1.137 2005-05-09 19:57:35 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -78,7 +78,7 @@ struct dirs_entry { void getFnameTmp (Res res, char *fname, int no); struct dirs_info *dirs_open (Dict dict, const char *rep, int rw); -struct dirs_info *dirs_fopen (Dict dict, const char *path); +struct dirs_info *dirs_fopen (Dict dict, const char *path, int rw); struct dirs_entry *dirs_read (struct dirs_info *p); struct dirs_entry *dirs_last (struct dirs_info *p); void dirs_mkdir (struct dirs_info *p, const char *src, time_t mtime); @@ -306,6 +306,11 @@ struct zebra_session { int m_explain_database; int m_flag_rw; int m_file_verbose_limit; + + void *store_data_buf; + size_t store_data_size; + + struct zebra_limit *m_limit; }; struct rank_control { @@ -335,6 +340,16 @@ struct term_set_list { struct term_set_entry *last; }; + +void zebra_limit_destroy(struct zebra_limit *zl); +struct zebra_limit *zebra_limit_create(int exclude_flag, zint *ids); +void zebra_limit_for_rset(struct zebra_limit *zl, + int (**filter_func)(const void *buf, void *data), + void (**filter_destroy)(void *data), + void **filter_data); + +struct rset_key_control *zebra_key_control_create(ZebraHandle zh); + ZEBRA_RES rpn_search_top(ZebraHandle zh, Z_RPNStructure *zs, oid_value attributeSet, NMEM stream, NMEM rset_nmem, @@ -351,7 +366,7 @@ ZEBRA_RES rpn_scan (ZebraHandle zh, ODR stream, Z_AttributesPlusTerm *zapt, RSET rset_trunc (ZebraHandle zh, ISAM_P *isam_p, int no, const char *term, int length_term, const char *flags, int preserve_position, int term_type, NMEM rset_nmem, - const struct key_control *kctrl, int scope); + struct rset_key_control *kctrl, int scope); void resultSetAddTerm (ZebraHandle zh, ZebraSet s, int reg_type, const char *db, int set,