X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Findex.h;h=da9c0423bb72b667610a40ff398db35912239b52;hp=2bbb61aab8171ad27fe88b031ea9cc47cffede4a;hb=97a7adeb9e5059463f039495cc01cfa448463a27;hpb=3731bdaf94aeba2550fc553aebe34831c203dc36 diff --git a/index/index.h b/index/index.h index 2bbb61a..da9c042 100644 --- a/index/index.h +++ b/index/index.h @@ -1,8 +1,5 @@ -/* $Id: index.h,v 1.210 2007-11-30 12:19:08 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1995-2008 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -363,7 +360,7 @@ ZEBRA_RES zebra_snippets_hit_vector(ZebraHandle zh, const char *setname, ZEBRA_RES zebra_extract_explain(void *handle, Record rec, data1_node *n); ZEBRA_RES zebra_extract_file(ZebraHandle zh, zint *sysno, const char *fname, - int deleteFlag); + enum zebra_recctrl_action_t action); ZEBRA_RES zebra_begin_read(ZebraHandle zh); ZEBRA_RES zebra_end_read(ZebraHandle zh); @@ -377,14 +374,14 @@ Dict dict_open_res(BFiles bfs, const char *name, int cache, int rw, void zebra_setError(ZebraHandle zh, int code, const char *addinfo); void zebra_setError_zint(ZebraHandle zh, int code, zint i); -void zebra_term_untrans_iconv(ZebraHandle zh, NMEM stream, - const char *index_type, - char **dst, const char *src); +int zebra_term_untrans_iconv(ZebraHandle zh, NMEM stream, + const char *index_type, + char **dst, const char *src); ZEBRA_RES zebra_get_hit_vector(ZebraHandle zh, const char *setname, zint sysno); -void zebra_term_untrans(ZebraHandle zh, const char *index_type, - char *dst, const char *src); +int zebra_term_untrans(ZebraHandle zh, const char *index_type, + char *dst, const char *src); ZEBRA_RES zebra_apt_get_ord(ZebraHandle zh, Z_AttributesPlusTerm *zapt, @@ -406,8 +403,8 @@ ZEBRA_RES zebra_sort_get_ord(ZebraHandle zh, int *numerical); ZEBRA_RES zebra_update_file_match(ZebraHandle zh, const char *path); -ZEBRA_RES zebra_update_from_path(ZebraHandle zh, const char *path); -ZEBRA_RES zebra_delete_from_path(ZebraHandle zh, const char *path); +ZEBRA_RES zebra_update_from_path(ZebraHandle zh, const char *path, + enum zebra_recctrl_action_t action); ZEBRA_RES zebra_remove_file_match(ZebraHandle zh); struct rpn_char_map_info @@ -437,18 +434,18 @@ ZEBRA_RES zebra_term_limits_APT(ZebraHandle zh, const char **term_ref_id_str, NMEM nmem); -ZEBRA_RES rpn_facet(ZebraHandle zh, ODR stream, - Z_AttributesPlusTerm *zapt, - const Odr_oid *attributeset, - int *position, int *num_entries, - ZebraScanEntry **list, - int *is_partial, const char *set_name); - ZEBRA_RES zebra_result_recid_to_sysno(ZebraHandle zh, const char *setname, zint recid, zint *sysnos, int *no_sysnos); +void zebra_count_set(ZebraHandle zh, RSET rset, zint *count, + zint approx_limit); + +RSET zebra_create_rset_isam(ZebraHandle zh, + NMEM rset_nmem, struct rset_key_control *kctl, + int scope, ISAM_P pos, TERMID termid); + YAZ_END_CDECL #endif