IDZEBRA
2.2.7
|
#include <time.h>
#include <stdlib.h>
#include <idzebra/version.h>
#include <idzebra/util.h>
#include <idzebra/flock.h>
#include <sortidx.h>
#include <sys/stat.h>
#include <yaz/timing.h>
#include <idzebra/dict.h>
#include <idzebra/isams.h>
#include <idzebra/isamc.h>
#include <idzebra/isamb.h>
#include <d1_absyn.h>
#include <idzebra/recgrs.h>
#include "recindex.h"
#include <idzebra/api.h>
#include "zinfo.h"
#include <passwddb.h>
#include <rset.h>
#include <zebramap.h>
#include <it_key.h>
#include <su_codec.h>
#include "reckeys.h"
#include "key_block.h"
Go to the source code of this file.
Data Structures | |
struct | dir_entry |
struct | dirs_entry |
struct | zebra_rank_class |
struct | zebra_register |
struct | zebra_service |
struct | zebra_session |
struct | term_set_entry |
struct | term_set_list |
struct | rpn_char_map_info |
Macros | |
#define | ISAM_DEFAULT "b" |
#define | FNAME_DICT "dict" |
#define | FNAME_ISAM "isam" |
#define | FNAME_ISAMC "isamc" |
#define | FNAME_ISAMS "isams" |
#define | FNAME_CONFIG "zebra.cfg" |
#define | GMATCH_DICT "gmatch" |
#define | FMATCH_DICT "fmatch%d" |
#define | FNAME_MAIN_LOCK "zebraidx.LCK" |
#define | FNAME_COMMIT_LOCK "zebracmt.LCK" |
#define | FNAME_ORG_LOCK "zebraorg.LCK" |
#define | FNAME_TOUCH_TIME "zebraidx.time" |
#define | FIRST_IN_FIELD_STR "\001^" |
#define | FIRST_IN_FIELD_CHAR 1 |
#define | FIRST_IN_FIELD_LEN 2 |
Typedefs | |
typedef struct zebra_set * | ZebraSet |
typedef struct zebra_rank_class * | ZebraRankClass |
Enumerations | |
enum | dirsKind { dirs_dir , dirs_file } |
Functions | |
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, 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) |
void | dirs_rmdir (struct dirs_info *p, const char *src) |
void | dirs_add (struct dirs_info *p, const char *src, zint sysno, time_t mtime) |
void | dirs_del (struct dirs_info *p, const char *src) |
void | dirs_free (struct dirs_info **pp) |
struct dir_entry * | dir_open (const char *rep, const char *base, int follow_links) |
void | dir_sort (struct dir_entry *e) |
void | dir_free (struct dir_entry **e_p) |
void | repositoryUpdate (ZebraHandle zh, const char *path) |
void | repositoryAdd (ZebraHandle zh, const char *path) |
void | repositoryDelete (ZebraHandle zh, const char *path) |
void | repositoryShow (ZebraHandle zh, const char *path) |
void | inv_prstat (ZebraHandle zh) |
void | inv_compact (BFiles bfs) |
void | key_input (ZebraHandle zh, int nkeys, int cache, Res res) |
ISAMS_M * | key_isams_m (Res res, ISAMS_M *me) |
ISAMC_M * | key_isamc_m (Res res, ISAMC_M *me) |
void | zebra_lock_prefix (Res res, char *dst) |
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, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, NMEM rset_nmem, Z_SortKeySpecList *sort_sequence, int num_bases, const char **basenames, RSET *result_set) |
ZEBRA_RES | rpn_get_top_approx_limit (ZebraHandle zh, Z_RPNStructure *zs, zint *approx_limit) |
ZEBRA_RES | rpn_scan (ZebraHandle zh, ODR stream, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeset, int num_bases, char **basenames, int *position, int *num_entries, ZebraScanEntry **list, int *is_partial, const char *set_name) |
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, struct rset_key_control *kctrl, int scope, struct ord_list *ol, const char *index_type, zint hits_limit, const char *term_ref_id) |
ZEBRA_RES | resultSetGetBaseNames (ZebraHandle zh, const char *setname, const char ***basenames, int *num_bases) |
void | resultSetAddTerm (ZebraHandle zh, ZebraSet s, int reg_type, const char *db, const char *index_name, const char *term) |
ZebraSet | resultSetAdd (ZebraHandle zh, const char *name, int ov) |
ZebraSet | resultSetGet (ZebraHandle zh, const char *name) |
ZEBRA_RES | resultSetAddRPN (ZebraHandle zh, NMEM m, Z_RPNQuery *rpn, int num_bases, char **basenames, const char *setname, zint *hits, int *estimated_hit_count) |
RSET | resultSetRef (ZebraHandle zh, const char *resultSetId) |
void | resultSetDestroy (ZebraHandle zh, int num_names, char **names, int *statuses) |
ZEBRA_RES | resultSetSort (ZebraHandle zh, NMEM nmem, int num_input_setnames, const char **input_setnames, const char *output_setname, Z_SortKeySpecList *sort_sequence, int *sort_status) |
ZEBRA_RES | resultSetSortSingle (ZebraHandle zh, NMEM nmem, ZebraSet sset, RSET rset, Z_SortKeySpecList *sort_sequence, int *sort_status) |
ZEBRA_RES | resultSetRank (ZebraHandle zh, ZebraSet zebraSet, RSET rset, NMEM nmem) |
void | resultSetInvalidate (ZebraHandle zh) |
int | zebra_record_fetch (ZebraHandle zh, const char *setname, zint sysno, int score, ODR stream, const Odr_oid *input_format, Z_RecordComposition *comp, const Odr_oid **output_format, char **rec_bufp, int *rec_lenp, char **basenamep, WRBUF addinfo_w) |
void | extract_get_fname_tmp (ZebraHandle zh, char *fname, size_t fname_size, int no) |
void | extract_snippet (ZebraHandle zh, zebra_snippets *sn, struct ZebraRecStream *stream, RecType rt, void *recTypeClientData) |
int | zebra_get_rec_snippets (ZebraHandle zh, zint sysno, zebra_snippets *snippets) |
void | zebra_index_merge (ZebraHandle zh) |
ZEBRA_RES | zebra_buffer_extract_record (ZebraHandle zh, const char *buf, size_t buf_size, enum zebra_recctrl_action_t action, const char *recordType, zint *sysno, const char *match_criteria, const char *fname) |
void | zebra_create_stream_mem (struct ZebraRecStream *stream, const char *buf, size_t sz) |
void | zebra_create_stream_fd (struct ZebraRecStream *stream, int fd, off_t start_offset) |
void | print_rec_keys (ZebraHandle zh, zebra_rec_keys_t reckeys) |
ZEBRA_RES | zebra_rec_keys_to_snippets (ZebraHandle zh, zebra_rec_keys_t reckeys, zebra_snippets *snippets) |
ZEBRA_RES | zebra_snippets_hit_vector (ZebraHandle zh, const char *setname, zint sysno, zebra_snippets *snippets) |
ZEBRA_RES | zebra_extract_explain (void *handle, Record rec, data1_node *n) |
ZEBRA_RES | zebra_extract_file (ZebraHandle zh, zint *sysno, const char *fname, enum zebra_recctrl_action_t action) |
ZEBRA_RES | zebra_begin_read (ZebraHandle zh) |
ZEBRA_RES | zebra_end_read (ZebraHandle zh) |
int | zebra_file_stat (const char *file_name, struct stat *buf, int follow_links) |
Dict | dict_open_res (BFiles bfs, const char *name, int cache, int rw, int compact_flag, Res res) |
void | zebra_setError (ZebraHandle zh, int code, const char *addinfo) |
void | zebra_setError_zint (ZebraHandle zh, int code, zint i) |
int | zebra_term_untrans_iconv (ZebraHandle zh, NMEM stream, const char *index_type, char **dst, const char *src) |
void | zebra_term_untrans_iconv2 (ZebraHandle zh, NMEM stream, char **dst, const char *src) |
ZEBRA_RES | zebra_get_hit_vector (ZebraHandle zh, const char *setname, zint sysno) |
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, const char *index_type, const char *xpath_use, const Odr_oid *curAttributeSet, int *ord) |
ZEBRA_RES | zebra_attr_list_get_ord (ZebraHandle zh, Z_AttributeList *attr_list, zinfo_index_category_t cat, const char *index_type, const Odr_oid *curAttributeSet, int *ord) |
ZEBRA_RES | zebra_sort_get_ord (ZebraHandle zh, Z_SortAttributes *sortAttributes, int *ord, int *numerical) |
ZEBRA_RES | zebra_update_file_match (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) |
void | rpn_char_map_prepare (struct zebra_register *reg, zebra_map_t zm, struct rpn_char_map_info *map_info) |
ZEBRA_RES | zapt_term_to_utf8 (ZebraHandle zh, Z_AttributesPlusTerm *zapt, char *termz) |
void | zebra_set_partial_result (ZebraHandle zh) |
int | zebra_check_res (Res res) |
ZEBRA_RES | zebra_term_limits_APT (ZebraHandle zh, Z_AttributesPlusTerm *zapt, zint *hits_limit_value, const char **term_ref_id_str, NMEM nmem) |
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) |
void | zebra_it_key_str_dump (ZebraHandle zh, struct it_key *key, const char *str, size_t slen, NMEM nmem, int level) |
typedef struct zebra_rank_class * ZebraRankClass |
Definition at line 321 of file zebraapi.c.
References zebra_register::bfs, dict_open(), zebra_register::name, res_get_int(), and ZEBRA_OK.
Referenced by repositoryShow(), zebra_open_fmatch(), and zebra_register_open().
void dir_free | ( | struct dir_entry ** | e_p | ) |
Definition at line 146 of file dir.c.
References dir_entry::name.
Referenced by file_update_r(), and repositoryExtractR().
struct dir_entry* dir_open | ( | const char * | rep, |
const char * | base, | ||
int | follow_links | ||
) |
Definition at line 48 of file dir.c.
References dirs_dir, dirs_file, dir_entry::kind, dir_entry::mtime, dir_entry::name, and zebra_file_stat().
Referenced by file_update_r(), and repositoryExtractR().
void dir_sort | ( | struct dir_entry * | e | ) |
Definition at line 138 of file dir.c.
References dir_cmp(), and dir_entry::name.
Referenced by file_update_r().
Definition at line 190 of file dirs.c.
References dirs_info::dict, dict_insert(), DIRS_MAX_PATH, dirs_entry::mtime, dirs_entry::path, dirs_info::prefix, dirs_info::rw, and dirs_entry::sysno.
Referenced by file_update_r(), and file_update_top().
void dirs_del | ( | struct dirs_info * | p, |
const char * | src | ||
) |
Definition at line 203 of file dirs.c.
References dirs_info::dict, dict_delete(), DIRS_MAX_PATH, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by file_update_r(), and fileDelete_r().
Definition at line 105 of file dirs.c.
References dict, dirs_info::dict, dict_lookup(), dirs_file, dirs_info::entries, dirs_entry::kind, dirs_entry::mtime, dirs_info::no_cur, dirs_info::no_max, dirs_info::no_read, dirs_entry::path, dirs_info::prefix, dirs_info::rw, and dirs_entry::sysno.
Referenced by file_update_top().
void dirs_free | ( | struct dirs_info ** | pp | ) |
Definition at line 217 of file dirs.c.
References dirs_info::entries.
Referenced by file_update_top(), and repositoryShow().
struct dirs_entry* dirs_last | ( | struct dirs_info * | p | ) |
Definition at line 165 of file dirs.c.
References dirs_info::last_entry.
Referenced by file_update_r().
void dirs_mkdir | ( | struct dirs_info * | p, |
const char * | src, | ||
time_t | mtime | ||
) |
Definition at line 170 of file dirs.c.
References dirs_info::dict, dict_insert(), DIRS_MAX_PATH, dirs_entry::mtime, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by file_update_r().
Definition at line 83 of file dirs.c.
References dict, dirs_info::dict, dict_scan(), dirs_client_proc(), dirs_info::entries, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_info::no_cur, dirs_info::no_max, dirs_info::no_read, dirs_info::prefix, dirs_info::prelen, and dirs_info::rw.
Referenced by file_update_top(), and repositoryShow().
struct dirs_entry* dirs_read | ( | struct dirs_info * | p | ) |
Definition at line 134 of file dirs.c.
References dirs_info::dict, dict_scan(), dirs_client_proc(), dirs_info::entries, dirs_info::last_entry, dirs_info::nextpath, dirs_info::nextpath_deleted, dirs_info::no_cur, dirs_info::no_max, and dirs_info::no_read.
Referenced by file_update_r(), file_update_top(), fileDelete_r(), and repositoryShow().
void dirs_rmdir | ( | struct dirs_info * | p, |
const char * | src | ||
) |
Definition at line 180 of file dirs.c.
References dirs_info::dict, dict_delete(), DIRS_MAX_PATH, dirs_entry::path, dirs_info::prefix, and dirs_info::rw.
Referenced by fileDelete_r().
void extract_get_fname_tmp | ( | ZebraHandle | zh, |
char * | fname, | ||
size_t | fname_size, | ||
int | no | ||
) |
Definition at line 69 of file kinput.c.
References key_file::no, zebra_session::res, and res_get_def().
Referenced by zebra_index_merge().
void extract_snippet | ( | ZebraHandle | zh, |
zebra_snippets * | sn, | ||
struct ZebraRecStream * | stream, | ||
RecType | rt, | ||
void * | recTypeClientData | ||
) |
Definition at line 323 of file extract.c.
References recExtractCtrl::action, action_insert, recExtractCtrl::dh, zebra_register::dh, recType::extract, extract_init(), recExtractCtrl::first_record, recExtractCtrl::handle, recExtractCtrl::init, init_extractCtrl(), recExtractCtrl::match_criteria, zebra_session::reg, recExtractCtrl::schemaAdd, recExtractCtrl::setStoreData, snippet_schema_add(), snippet_token_add(), snip_rec_info::snippets, recExtractCtrl::staticrank, recExtractCtrl::stream, recExtractCtrl::tokenAdd, and snip_rec_info::zh.
Referenced by zebra_get_rec_snippets().
void getFnameTmp | ( | Res | res, |
char * | fname, | ||
int | no | ||
) |
void inv_compact | ( | BFiles | bfs | ) |
Definition at line 31 of file compact.c.
References dict_copy_compact(), and FNAME_DICT.
Referenced by zebra_compact().
void inv_prstat | ( | ZebraHandle | zh | ) |
void key_input | ( | ZebraHandle | zh, |
int | nkeys, | ||
int | cache, | ||
Res | res | ||
) |
Definition at line 49 of file isam_methods.c.
References ISAMC_M_s::codec, ISAMC_M_s::compare_item, ISAMC_M_s::debug, ISAM_CODEC::decode, ISAM_CODEC::encode, isamc_getmethod(), iscz1_decode(), iscz1_encode(), iscz1_reset(), iscz1_start(), iscz1_stop(), key_compare(), key_logdump_txt(), ISAMC_M_s::log_item, res_get_def(), ISAM_CODEC::reset, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by zebra_register_open().
Definition at line 31 of file isam_methods.c.
References ISAMS_M_s::codec, ISAMS_M_s::compare_item, ISAMS_M_s::debug, ISAM_CODEC::decode, ISAM_CODEC::encode, isams_getmethod(), iscz1_decode(), iscz1_encode(), iscz1_reset(), iscz1_start(), iscz1_stop(), key_compare(), key_logdump_txt(), ISAMS_M_s::log_item, res_get_def(), ISAM_CODEC::reset, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by zebra_register_open().
void print_rec_keys | ( | ZebraHandle | zh, |
zebra_rec_keys_t | reckeys | ||
) |
Definition at line 1539 of file extract.c.
References CAST_ZINT_TO_INT, IT_KEY_LEVEL_MAX, IT_MAX_WORD, it_key::len, it_key::mem, zebra_session::reg, zebra_rec_keys_read(), zebra_rec_keys_rewind(), zebra_term_untrans(), zebraExplain_lookup_ord(), zebra_register::zei, and ZINT_FORMAT.
void repositoryAdd | ( | ZebraHandle | zh, |
const char * | path | ||
) |
void repositoryDelete | ( | ZebraHandle | zh, |
const char * | path | ||
) |
void repositoryShow | ( | ZebraHandle | zh, |
const char * | path | ||
) |
Definition at line 77 of file update_path.c.
References zebra_register::bfs, dict, dict_close(), dict_open_res(), dirs_free(), dirs_open(), dirs_read(), FMATCH_DICT, zebra_session::m_flag_rw, dirs_entry::path, zebra_session::reg, and zebra_session::res.
Referenced by zebra_repository_show().
void repositoryUpdate | ( | ZebraHandle | zh, |
const char * | path | ||
) |
ZebraSet resultSetAdd | ( | ZebraHandle | zh, |
const char * | name, | ||
int | ov | ||
) |
Definition at line 215 of file zsets.c.
References zset_sort_info::all_entries, zebra_session::approx_limit, zebra_set::approx_limit, zebra_set::cache_position, zebra_set::cache_rfd, zset_sort_info::entries, zebra_set::estimated_hit_count, zebra_set::hits, zebra_set::locked, log_level_resultsets, log_level_set, loglevels(), zset_sort_info::max_entries, zebra_set::name, zebra_set::next, zebra_set::nmem, zebra_set::rpn, zebra_set::rset, rset_close(), rset_delete(), zebra_set::rset_nmem, zebra_session::sets, zebra_set::sort_info, zebra_set::sortSpec, zebra_set::term_entries, and zebra_get_resource().
Referenced by resultSetAddRPN(), and resultSetClone().
ZEBRA_RES resultSetAddRPN | ( | ZebraHandle | zh, |
NMEM | m, | ||
Z_RPNQuery * | rpn, | ||
int | num_bases, | ||
char ** | basenames, | ||
const char * | setname, | ||
zint * | hits, | ||
int * | estimated_hit_count | ||
) |
Definition at line 148 of file zsets.c.
References zebra_set::basenames, zebra_set::estimated_hit_count, zebra_set::hits, zebra_set::locked, zebra_set::nmem, zebra_set::num_bases, resultSetAdd(), resultSetSearch(), zebra_set::rpn, zebra_set::rset, zebra_set::rset_nmem, and ZEBRA_FAIL.
Referenced by zebra_search_RPN_x().
void resultSetAddTerm | ( | ZebraHandle | zh, |
ZebraSet | s, | ||
int | reg_type, | ||
const char * | db, | ||
const char * | index_name, | ||
const char * | term | ||
) |
Definition at line 188 of file zsets.c.
References zebra_set_term_entry::db, zebra_set::hits, zebra_set_term_entry::index_name, zebra_set::nmem, zebra_set_term_entry::reg_type, zebra_set_term_entry::term, zebra_set::term_entries, and zebra_set::term_entries_max.
Referenced by add_isam_p().
void resultSetDestroy | ( | ZebraHandle | zh, |
int | num_names, | ||
char ** | names, | ||
int * | statuses | ||
) |
Definition at line 344 of file zsets.c.
References zset_sort_info::all_entries, zebra_set::cache_rfd, zset_sort_info::entries, zebra_set::name, zebra_set::next, zebra_set::nmem, zebra_set::rset, rset_close(), rset_delete(), zebra_set::rset_nmem, zebra_session::sets, and zebra_set::sort_info.
Referenced by zebra_close(), and zebra_deleteResultSet().
ZebraSet resultSetGet | ( | ZebraHandle | zh, |
const char * | name | ||
) |
Definition at line 282 of file zsets.c.
References log_level_resultsets, zebra_set::name, zebra_set::next, resultSetSearch(), resultSetSortSingle(), zebra_set::rpn, zebra_set::rset, zebra_set::rset_nmem, zebra_session::sets, zebra_set::sortSpec, and zebra_set::term_entries.
Referenced by resultSetGetBaseNames(), resultSetRef(), resultSetSort(), zebra_meta_records_create(), zebra_result_set_term_info(), zebra_result_set_term_no(), and zebra_snippets_hit_vector().
ZEBRA_RES resultSetGetBaseNames | ( | ZebraHandle | zh, |
const char * | setname, | ||
const char *** | basenames, | ||
int * | num_bases | ||
) |
Definition at line 310 of file zsets.c.
References zebra_set::basenames, zebra_set::num_bases, resultSetGet(), ZEBRA_FAIL, and ZEBRA_OK.
Referenced by zebra_result_recid_to_sysno().
void resultSetInvalidate | ( | ZebraHandle | zh | ) |
Definition at line 322 of file zsets.c.
References zebra_set::cache_position, zebra_set::cache_rfd, log_level_resultsets, zebra_set::next, zebra_set::rset, rset_close(), rset_delete(), zebra_set::rset_nmem, and zebra_session::sets.
Referenced by zebra_begin_trans(), zebra_end_transaction(), and zebra_select_register().
ZEBRA_RES resultSetRank | ( | ZebraHandle | zh, |
ZebraSet | zebraSet, | ||
RSET | rset, | ||
NMEM | nmem | ||
) |
Definition at line 1084 of file zsets.c.
References rank_control::add, rank_control::begin, zebra_session::break_handler_data, zebra_session::break_handler_func, rank_control::calc, CAST_ZINT_TO_INT, zebra_rank_class::class_handle, zebra_rank_class::control, rsfd::counted_items, rank_control::end, zebra_set::estimated_hit_count, zebra_set::hits, rset::hits_count, rset::hits_limit, key_logdump_txt(), it_key::len, log_level_searchhits, log_level_searchterms, log_level_set, loglevels(), zebra_session::m_staticrank, it_key::mem, rank_control::name, zset_sort_info::num_entries, zebra_session::reg, zebra_session::res, res_get_def(), resultSetInsertRank(), rset_close(), rset_getterms, rset_open, rset_read, RSETF_READ, zebra_set::sort_info, ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), zebraRankLookup(), and ZINT_FORMAT.
Referenced by resultSetSearch().
RSET resultSetRef | ( | ZebraHandle | zh, |
const char * | resultSetId | ||
) |
Definition at line 1075 of file zsets.c.
References resultSetGet(), and zebra_set::rset.
Referenced by perform_facet(), rpn_scan(), and rpn_search_structure().
ZEBRA_RES resultSetSort | ( | ZebraHandle | zh, |
NMEM | nmem, | ||
int | num_input_setnames, | ||
const char ** | input_setnames, | ||
const char * | output_setname, | ||
Z_SortKeySpecList * | sort_sequence, | ||
int * | sort_status | ||
) |
Definition at line 826 of file zsets.c.
References copy_SortKeySpecList(), log_level_set, log_level_sort, loglevels(), zebra_set::nmem, resultSetClone(), resultSetGet(), resultSetSortSingle(), zebra_set::rset, zebra_set::sortSpec, ZEBRA_FAIL, and zebra_setError().
Referenced by zebra_sort(), and zebra_sort_by_specstr().
ZEBRA_RES resultSetSortSingle | ( | ZebraHandle | zh, |
NMEM | nmem, | ||
ZebraSet | sset, | ||
RSET | rset, | ||
Z_SortKeySpecList * | sort_sequence, | ||
int * | sort_status | ||
) |
Definition at line 868 of file zsets.c.
References zebra_session::basenames, zebra_session::break_handler_data, zebra_session::break_handler_func, zebra_set::hits, rset::hits_count, sortKeyInfo::index_type, key_logdump_txt(), log_level_searchhits, log_level_sort, zebra_session::m_staticrank, zset_sort_info::max_entries, it_key::mem, rset_term::name, zebra_session::num_basenames, zset_sort_info::num_entries, sortKeyInfo::numerical, rset_term::ol, ord_list::ord, sortKeyInfo::ord, ord_list_print(), zebra_session::reg, sortKeyInfo::relation, resultSetInsertSort(), rset_close(), rset_getterms, rset_open, rset_read, rset_set_hits_limit(), RSETF_READ, SORT_IDX_ENTRYSIZE, zebra_set::sort_info, ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), zebra_sort_get_ord(), zebraExplain_curDatabase(), zebraExplain_lookup_attr_str(), zebraExplain_lookup_ord(), zebra_register::zei, zinfo_index_category_sort, ZINT_FORMAT, and ZSET_SORT_MAX_LEVEL.
Referenced by resultSetGet(), resultSetSearch(), and resultSetSort().
void rpn_char_map_prepare | ( | struct zebra_register * | reg, |
zebra_map_t | zm, | ||
struct rpn_char_map_info * | map_info | ||
) |
Definition at line 63 of file rpnsearch.c.
References zebra_register::dict, dict_grep_cmap(), rpn_char_map_handler(), zebra_maps_is_icu(), and rpn_char_map_info::zm.
Referenced by numeric_term(), rpn_scan_norm(), and string_term().
ZEBRA_RES rpn_get_top_approx_limit | ( | ZebraHandle | zh, |
Z_RPNStructure * | zs, | ||
zint * | approx_limit | ||
) |
Definition at line 2498 of file rpnsearch.c.
References attr_find(), attr_init_APT(), rpn_get_top_approx_limit(), and ZEBRA_OK.
Referenced by resultSetSearch(), and rpn_get_top_approx_limit().
ZEBRA_RES rpn_scan | ( | ZebraHandle | zh, |
ODR | stream, | ||
Z_AttributesPlusTerm * | zapt, | ||
const Odr_oid * | attributeset, | ||
int | num_bases, | ||
char ** | basenames, | ||
int * | position, | ||
int * | num_entries, | ||
ZebraScanEntry ** | list, | ||
int * | is_partial, | ||
const char * | set_name | ||
) |
Definition at line 470 of file rpnscan.c.
References attr_find_ex(), attr_init_APT(), rset_key_control::dec, zebra_session::reg, resultSetRef(), RPN_MAX_ORDS, rpn_scan_norm(), zebra_apt_get_ord(), ZEBRA_FAIL, zebra_key_control_create(), zebra_register::zebra_maps, zebra_maps_attr(), ZEBRA_OK, zebra_setError(), zebraExplain_curDatabase(), and zebra_register::zei.
Referenced by zebra_scan().
ZEBRA_RES rpn_search_top | ( | ZebraHandle | zh, |
Z_RPNStructure * | zs, | ||
const Odr_oid * | attributeSet, | ||
zint | hits_limit, | ||
NMEM | stream, | ||
NMEM | rset_nmem, | ||
Z_SortKeySpecList * | sort_sequence, | ||
int | num_bases, | ||
const char ** | basenames, | ||
RSET * | result_set | ||
) |
Definition at line 2529 of file rpnsearch.c.
References rset_key_control::dec, rpn_search_structure(), rset_delete(), zebra_key_control_create(), and ZEBRA_OK.
Referenced by resultSetSearch().
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, | ||
struct rset_key_control * | kctrl, | ||
int | scope, | ||
struct ord_list * | ol, | ||
const char * | index_type, | ||
zint | hits_limit, | ||
const char * | term_ref_id | ||
) |
Definition at line 403 of file trunc.c.
References zebra_register::isamb, zebra_register::isamc, isamc_trunc_cmp(), isams_trunc_cmp(), zebra_session::reg, zebra_session::res, res_get_def(), rset_create_null(), rset_create_or(), rset_term_create(), rset_trunc_r(), rsisamb_create(), scope, and zebra_create_rset_isam().
Referenced by rpn_search_APT_numeric(), scan_save_set(), search_term(), and xpath_trunc().
ZEBRA_RES zapt_term_to_utf8 | ( | ZebraHandle | zh, |
Z_AttributesPlusTerm * | zapt, | ||
char * | termz | ||
) |
Definition at line 32 of file zaptterm.c.
References zebra_session::iconv_to_utf8, IT_MAX_WORD, ZEBRA_FAIL, ZEBRA_OK, and zebra_setError().
Referenced by rpn_search_database(), and trans_scan_term().
ZEBRA_RES zebra_apt_get_ord | ( | ZebraHandle | zh, |
Z_AttributesPlusTerm * | zapt, | ||
const char * | index_type, | ||
const char * | xpath_use, | ||
const Odr_oid * | curAttributeSet, | ||
int * | ord | ||
) |
Definition at line 135 of file attribute.c.
References attr_find(), attr_init_APT(), zebra_session::reg, zebra_attr_list_get_ord(), ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), zebra_setError_zint(), zebraExplain_lookup_attr_str(), zebra_register::zei, zinfo_index_category_alwaysmatches, and zinfo_index_category_index.
Referenced by numeric_term(), rpn_scan(), search_position(), and string_term().
ZEBRA_RES zebra_attr_list_get_ord | ( | ZebraHandle | zh, |
Z_AttributeList * | attr_list, | ||
zinfo_index_category_t | cat, | ||
const char * | index_type, | ||
const Odr_oid * | curAttributeSet, | ||
int * | ord | ||
) |
Definition at line 69 of file attribute.c.
References att_getentbyatt(), attr_find(), attr_find_ex(), attr_init_AttrList(), zebra_session::reg, ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), zebra_setError_zint(), zebraExplain_lookup_attr_str(), and zebra_register::zei.
Referenced by zebra_apt_get_ord(), and zebra_sort_get_ord().
ZEBRA_RES zebra_begin_read | ( | ZebraHandle | zh | ) |
Definition at line 1671 of file zebraapi.c.
References zebra_begin_trans().
Referenced by zebra_deleteResultSet(), zebra_records_retrieve(), zebra_register_check(), zebra_register_statistics(), zebra_scan(), zebra_search_RPN_x(), zebra_sort(), and zebra_sort_by_specstr().
ZEBRA_RES zebra_buffer_extract_record | ( | ZebraHandle | zh, |
const char * | buf, | ||
size_t | buf_size, | ||
enum zebra_recctrl_action_t | action, | ||
const char * | recordType, | ||
zint * | sysno, | ||
const char * | match_criteria, | ||
const char * | fname | ||
) |
Definition at line 725 of file extract.c.
References ZebraRecStream::destroy, log_level_extract, zebra_session::m_record_type, recType_byName(), zebra_register::recTypes, zebra_session::reg, zebra_session::res, zebra_create_stream_mem(), zebra_extract_records_stream(), and ZEBRA_FAIL.
Referenced by zebra_update_record().
int zebra_check_res | ( | Res | res | ) |
Definition at line 30 of file check_res.c.
References res_add(), res_check(), res_close(), and res_open().
Referenced by zebra_start_res().
void zebra_count_set | ( | ZebraHandle | zh, |
RSET | rset, | ||
zint * | count, | ||
zint | approx_limit | ||
) |
Definition at line 1498 of file zsets.c.
References rset::hits_count, rset::hits_limit, it_key::mem, rset_close(), rset_open, rset_read, and RSETF_READ.
Referenced by freq_term(), and scan_save_set().
RSET zebra_create_rset_isam | ( | ZebraHandle | zh, |
NMEM | rset_nmem, | ||
struct rset_key_control * | kctl, | ||
int | scope, | ||
ISAM_P | pos, | ||
TERMID | termid | ||
) |
Definition at line 32 of file rset_isam.c.
References zebra_register::isamb, zebra_register::isamc, zebra_register::isams, zebra_session::reg, rset_create_null(), rsisamb_create(), rsisamc_create(), rsisams_create(), and scope.
Referenced by freq_term(), rset_trunc(), search_group(), and search_position().
void zebra_create_stream_fd | ( | struct ZebraRecStream * | stream, |
int | fd, | ||
off_t | start_offset | ||
) |
Definition at line 140 of file stream.c.
References ZebraRecStream::destroy, ZebraRecStream::endf, zebra_ext_control::fd, fd, ZebraRecStream::fh, zebra_ext_control::offset_end, ZebraRecStream::readf, zebra_ext_control::record_offset, ZebraRecStream::seekf, ZebraRecStream::tellf, zebra_ext_destroy(), zebra_ext_end(), zebra_ext_read(), zebra_ext_seek(), and zebra_ext_tell().
Referenced by zebra_create_record_stream(), and zebra_extract_file().
void zebra_create_stream_mem | ( | struct ZebraRecStream * | stream, |
const char * | buf, | ||
size_t | sz | ||
) |
Definition at line 123 of file stream.c.
References ZebraRecStream::destroy, ZebraRecStream::endf, ZebraRecStream::fh, zebra_mem_control::offset_end, ZebraRecStream::readf, zebra_mem_control::record_int_buf, zebra_mem_control::record_int_len, zebra_mem_control::record_int_pos, ZebraRecStream::seekf, ZebraRecStream::tellf, zebra_mem_destroy(), zebra_mem_end(), zebra_mem_read(), zebra_mem_seek(), and zebra_mem_tell().
Referenced by zebra_buffer_extract_record(), and zebra_create_record_stream().
ZEBRA_RES zebra_end_read | ( | ZebraHandle | zh | ) |
Definition at line 1676 of file zebraapi.c.
References zebra_end_trans().
Referenced by zebra_deleteResultSet(), zebra_records_retrieve(), zebra_register_check(), zebra_register_statistics(), zebra_scan(), zebra_search_RPN_x(), zebra_sort(), and zebra_sort_by_specstr().
ZEBRA_RES zebra_extract_explain | ( | void * | handle, |
Record | rec, | ||
data1_node * | n | ||
) |
Definition at line 1224 of file extract.c.
References recExtractCtrl::action, action_update, recExtractCtrl::dh, zebra_register::dh, extract_flush_record_keys2(), extract_flush_sort_keys(), extract_init(), extract_schema_add(), extract_set_store_data_prepare(), extract_token_add(), recExtractCtrl::first_record, recExtractCtrl::flagShowRecords, grs_extract_tree(), recExtractCtrl::handle, record_info::info, recExtractCtrl::init, init_extractCtrl(), zebra_register::keys, recExtractCtrl::match_criteria, recInfo_databaseName, recInfo_delKeys, recInfo_sortKeys, zebra_session::reg, recExtractCtrl::schemaAdd, record_info::size, zebra_register::sortKeys, recExtractCtrl::staticrank, record_info::sysno, recExtractCtrl::tokenAdd, ZEBRA_OK, zebra_rec_keys_close(), zebra_rec_keys_get_buf(), zebra_rec_keys_open(), zebra_rec_keys_reset(), zebra_rec_keys_set_buf(), zebraExplain_curDatabase(), zebraExplain_newDatabase(), and zebra_register::zei.
Referenced by zebra_register_open().
ZEBRA_RES zebra_extract_file | ( | ZebraHandle | zh, |
zint * | sysno, | ||
const char * | fname, | ||
enum zebra_recctrl_action_t | action | ||
) |
Definition at line 609 of file extract.c.
References action_a_delete, action_delete, check_log_limit(), ZebraRecStream::destroy, fd, log_level_extract, zebra_session::m_file_verbose_limit, zebra_session::m_group, zebra_session::m_record_id, zebra_session::m_record_type, O_BINARY, zebra_session::path_reg, zebra_session::records_processed, zebra_session::records_skipped, recType_byName(), zebra_register::recTypes, zebra_session::reg, zebra_session::res, res_get(), recType::version, zebra_create_stream_fd(), zebra_extract_records_stream(), ZEBRA_FAIL, zebra_init_log_level(), and ZEBRA_OK.
Referenced by file_update_r(), file_update_top(), fileDelete_r(), repositoryExtract(), and repositoryExtractR().
int zebra_file_stat | ( | const char * | file_name, |
struct stat * | buf, | ||
int | follow_links | ||
) |
Definition at line 38 of file dir.c.
Referenced by dir_open(), file_update_top(), and repositoryExtract().
ZEBRA_RES zebra_get_hit_vector | ( | ZebraHandle | zh, |
const char * | setname, | ||
zint | sysno | ||
) |
int zebra_get_rec_snippets | ( | ZebraHandle | zh, |
zint | sysno, | ||
zebra_snippets * | snippets | ||
) |
Definition at line 465 of file retrieve.c.
References ZebraRecStream::destroy, extract_snippet(), record_info::info, log_level_mod, log_level_set, rec_free(), rec_get(), recInfo_fileType, zebra_register::records, recType_byName(), zebra_register::recTypes, zebra_session::reg, zebra_session::res, zebra_create_record_stream(), and ZINT_FORMAT.
Referenced by perform_facet(), scan_save_set(), snippet_fetch(), and special_index_fetch().
void zebra_index_merge | ( | ZebraHandle | zh | ) |
Definition at line 709 of file kinput.c.
References key_file::buf_size, heap_cread_info::cur_name, extract_get_fname_tmp(), heap_cread_info::first_in_list, heap_inpb(), heap_inpc(), heap_inps(), heap_read_one(), heap_cread_info::hi, zebra_register::isamb, zebra_register::isamc, zebra_register::isams, heap_cread_info::key, heap_cread_info::key_1, heap_cread_info::key_2, zebra_register::key_block, key_block_destroy(), key_block_get_no_files(), key_file_destroy(), key_file_init(), key_file_read(), key_heap_destroy(), key_heap_init_file(), key_heap_insert(), key_qsort_compare(), KEY_SIZE, progressInfo::lastTime, key_file::length, heap_cread_info::look_level, heap_cread_info::more, heap_info::no_deletions, heap_info::no_diffs, heap_info::no_insertions, heap_info::no_iterations, heap_info::no_updates, progressFunc(), R_OK, key_file::readHandler, key_file::readInfo, zebra_session::reg, heap_info::reg, zebra_session::res, heap_cread_info::ret, progressInfo::startTime, progressInfo::totalBytes, progressInfo::totalOffset, and ZINT_FORMAT.
Referenced by zebra_flush_reg().
void zebra_it_key_str_dump | ( | ZebraHandle | zh, |
struct it_key * | key, | ||
const char * | str, | ||
size_t | slen, | ||
NMEM | nmem, | ||
int | level | ||
) |
Definition at line 1299 of file extract.c.
References CAST_ZINT_TO_INT, CHR_BASE_CHAR, CHR_SPACE, CHR_UNKNOWN, FIRST_IN_FIELD_STR, it_key::len, it_key::mem, zebra_session::reg, zebra_term_untrans_iconv(), zebraExplain_lookup_ord(), zebra_register::zei, and ZINT_FORMAT.
Referenced by extract_rec_keys_log(), and zebra_record_check().
struct rset_key_control* zebra_key_control_create | ( | ZebraHandle | zh | ) |
Definition at line 57 of file kcontrol.c.
References rset_key_control::cmp, rset_key_control::context, rset_key_control::dec, rset_key_control::filter_data, context_control::filter_destroy, rset_key_control::filter_func, rset_key_control::get_segment, rset_key_control::getseq, rset_key_control::inc, key_compare(), key_get_segment(), key_get_seq(), key_logdump_txt(), rset_key_control::key_logdump_txt, rset_key_control::key_size, zebra_session::m_limit, zebra_session::m_segment_indexing, my_dec(), my_inc(), context_control::ref_count, rset_key_control::scope, and zebra_limit_for_rset().
Referenced by freq_term(), rpn_scan(), rpn_search_top(), and zebra_snippets_hit_vector().
struct zebra_limit* zebra_limit_create | ( | int | exclude_flag, |
zint * | ids | ||
) |
Definition at line 46 of file limit.c.
References zebra_limit::complement_flag, and zebra_limit::ids.
Referenced by zebra_limit_for_rset(), zebra_open(), and zebra_set_limit().
void zebra_limit_destroy | ( | struct zebra_limit * | zl | ) |
Definition at line 37 of file limit.c.
References zebra_limit::ids.
Referenced by zebra_close(), zebra_limit_destroy_cb(), and zebra_set_limit().
void zebra_limit_for_rset | ( | struct zebra_limit * | zl, |
int(**)(const void *buf, void *data) | filter_func, | ||
void(**)(void *data) | filter_destroy, | ||
void ** | filter_data | ||
) |
Definition at line 96 of file limit.c.
References zebra_limit::complement_flag, filter_destroy(), zebra_limit::ids, zebra_limit_create(), zebra_limit_destroy_cb(), and zebra_limit_filter_cb().
Referenced by zebra_key_control_create().
void zebra_lock_prefix | ( | Res | res, |
char * | dst | ||
) |
Definition at line 2774 of file zebraapi.c.
References res_get_def().
Referenced by zebra_pidfname().
ZEBRA_RES zebra_rec_keys_to_snippets | ( | ZebraHandle | zh, |
zebra_rec_keys_t | reckeys, | ||
zebra_snippets * | snippets | ||
) |
int zebra_record_fetch | ( | ZebraHandle | zh, |
const char * | setname, | ||
zint | sysno, | ||
int | score, | ||
ODR | stream, | ||
const Odr_oid * | input_format, | ||
Z_RecordComposition * | comp, | ||
const Odr_oid ** | output_format, | ||
char ** | rec_bufp, | ||
int * | rec_lenp, | ||
char ** | basenamep, | ||
WRBUF | addinfo_w | ||
) |
Definition at line 1197 of file retrieve.c.
References recRetrieveCtrl::addinfo, recRetrieveCtrl::comp, ZebraRecStream::destroy, recRetrieveCtrl::dh, zebra_register::dh, recRetrieveCtrl::diagnostic, recRetrieveCtrl::encoding, recRetrieveCtrl::fname, recRetrieveCtrl::handle, record_info::info, recRetrieveCtrl::input_format, recRetrieveCtrl::localno, log_level_mod, log_level_set, MAX_SYSNOS_PER_RECORD, special_fetch_s::nmem, recRetrieveCtrl::odr, recRetrieveCtrl::output_format, recRetrieveCtrl::rec_buf, rec_free(), rec_get(), rec_init_attr(), recRetrieveCtrl::rec_len, recInfo_databaseName, recInfo_filename, recInfo_fileType, zebra_session::record_encoding, zebra_register::records, recRetrieveCtrl::recordSize, recType_byName(), zebra_register::recTypes, zebra_session::reg, recRetrieveCtrl::res, zebra_session::res, recType::retrieve, recRetrieveCtrl::score, special_fetch_s::score, special_fetch_s::setname, recRetrieveCtrl::special_fetch, recRetrieveCtrl::staticrank, recRetrieveCtrl::stream, special_fetch_s::sysno, zebra_create_record_stream(), ZEBRA_FAIL, ZEBRA_OK, zebra_result_recid_to_sysno(), zebra_special_fetch(), zebra_register::zei, special_fetch_s::zh, and ZINT_FORMAT.
Referenced by zebra_records_retrieve().
ZEBRA_RES zebra_remove_file_match | ( | ZebraHandle | zh | ) |
Definition at line 294 of file update_file.c.
References dict, dict_clean(), dict_close(), ZEBRA_FAIL, ZEBRA_OK, and zebra_open_fmatch().
Referenced by zebra_drop_database().
ZEBRA_RES zebra_result_recid_to_sysno | ( | ZebraHandle | zh, |
const char * | setname, | ||
zint | recid, | ||
zint * | sysnos, | ||
int * | no_sysnos | ||
) |
Definition at line 1481 of file zsets.c.
References resultSetGetBaseNames(), ZEBRA_FAIL, ZEBRA_OK, and zebra_recid_to_sysno().
Referenced by perform_facet_index(), and zebra_record_fetch().
void zebra_set_partial_result | ( | ZebraHandle | zh | ) |
Definition at line 1064 of file zebraapi.c.
References zebra_session::partial_result, and map_baseinfo::zh.
Referenced by numeric_relation(), and string_term().
void zebra_setError | ( | ZebraHandle | zh, |
int | code, | ||
const char * | addinfo | ||
) |
Definition at line 2755 of file zebraapi.c.
References zebra_session::errCode, zebra_session::errString, and zebra_session::nmem_error.
Referenced by grep_info_prepare(), numeric_term(), resultSetRank(), resultSetSort(), resultSetSortSingle(), rpn_scan(), rpn_search_APT(), rpn_search_database(), rpn_search_structure(), string_term(), zapt_term_to_utf8(), zebra_apt_get_ord(), zebra_attr_list_get_ord(), zebra_begin_trans(), zebra_create_database(), zebra_drop_database(), zebra_end_transaction(), zebra_init(), and zebra_records_retrieve().
void zebra_setError_zint | ( | ZebraHandle | zh, |
int | code, | ||
zint | i | ||
) |
Definition at line 2764 of file zebraapi.c.
References zebra_session::errCode, zebra_session::errString, zebra_session::nmem_error, and ZINT_FORMAT.
Referenced by rpn_search_structure(), search_position(), string_term(), zebra_apt_get_ord(), zebra_attr_list_get_ord(), and zebra_records_retrieve().
ZEBRA_RES zebra_snippets_hit_vector | ( | ZebraHandle | zh, |
const char * | setname, | ||
zint | sysno, | ||
zebra_snippets * | snippets | ||
) |
Definition at line 1340 of file zsets.c.
References rset_key_control::dec, it_key::len, it_key::mem, rset_term::name, ord_list::next, rset_term::ol, ord_list::ord, zebra_session::res, res_get(), resultSetGet(), zebra_set::rset, rset_close(), rset_create_and(), rset_create_temp(), rset_delete(), rset_dup(), rset_open, rset_read, rset_write, RSETF_READ, RSETF_WRITE, rset_key_control::scope, ZEBRA_FAIL, zebra_key_control_create(), ZEBRA_OK, zebra_snippets_append(), and ZINT_FORMAT.
Referenced by snippet_fetch(), and zebra_records_retrieve().
ZEBRA_RES zebra_sort_get_ord | ( | ZebraHandle | zh, |
Z_SortAttributes * | sortAttributes, | ||
int * | ord, | ||
int * | numerical | ||
) |
Definition at line 190 of file attribute.c.
References attr_find(), attr_init_AttrList(), zebra_attr_list_get_ord(), ZEBRA_FAIL, ZEBRA_OK, and zinfo_index_category_sort.
Referenced by resultSetSortSingle().
ZEBRA_RES zebra_term_limits_APT | ( | ZebraHandle | zh, |
Z_AttributesPlusTerm * | zapt, | ||
zint * | hits_limit_value, | ||
const char ** | term_ref_id_str, | ||
NMEM | nmem | ||
) |
Definition at line 943 of file rpnsearch.c.
References attr_find(), attr_find_ex(), attr_init_APT(), ZEBRA_OK, and ZINT_FORMAT.
Referenced by rpn_search_APT_numeric(), and search_term().
int zebra_term_untrans | ( | ZebraHandle | zh, |
const char * | index_type, | ||
char * | dst, | ||
const char * | src | ||
) |
Definition at line 31 of file untrans.c.
References IT_MAX_WORD, zebra_session::reg, zebra_map_get(), zebra_register::zebra_maps, zebra_maps_is_icu(), and zebra_maps_output().
Referenced by add_isam_p(), print_dict_item(), print_rec_keys(), resultSetInsertSort(), sort_fetch(), zebra_log_dict_entry(), and zebra_term_untrans_iconv().
int zebra_term_untrans_iconv | ( | ZebraHandle | zh, |
NMEM | stream, | ||
const char * | index_type, | ||
char ** | dst, | ||
const char * | src | ||
) |
Definition at line 96 of file untrans.c.
References IT_MAX_WORD, zebra_term_untrans(), and zebra_term_untrans_iconv2().
Referenced by perform_facet(), scan_save_set(), zebra_it_key_str_dump(), and zebra_rec_keys_to_snippets1().
void zebra_term_untrans_iconv2 | ( | ZebraHandle | zh, |
NMEM | stream, | ||
char ** | dst, | ||
const char * | src | ||
) |
Definition at line 64 of file untrans.c.
References zebra_session::iconv_from_utf8, and IT_MAX_WORD.
Referenced by perform_facet(), and zebra_term_untrans_iconv().
ZEBRA_RES zebra_update_file_match | ( | ZebraHandle | zh, |
const char * | path | ||
) |
Definition at line 307 of file update_file.c.
References zebra_session::basenames, dict, dict_close(), file_update_top(), dirs_entry::path, zebra_session::reg, ZEBRA_FAIL, ZEBRA_OK, zebra_open_fmatch(), zebraExplain_curDatabase(), zebraExplain_newDatabase(), and zebra_register::zei.
Referenced by zebra_repository_index().
ZEBRA_RES zebra_update_from_path | ( | ZebraHandle | zh, |
const char * | path, | ||
enum zebra_recctrl_action_t | action | ||
) |
Definition at line 143 of file update_path.c.
References repositoryExtract(), and ZEBRA_OK.
Referenced by zebra_repository_index().