IDZEBRA
2.2.7
|
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <yaz/diagbib1.h>
#include "index.h"
#include <zebra_xpath.h>
#include <yaz/wrbuf.h>
#include <yaz/snprintf.h>
#include <attrfind.h>
#include <charmap.h>
#include <rset.h>
#include <yaz/oid_db.h>
Go to the source code of this file.
Data Structures | |
struct | scan2_info_entry |
struct | scan1_info_entry |
struct | scan_info |
Macros | |
#define | RPN_MAX_ORDS 32 |
Functions | |
static ZEBRA_RES | trans_scan_term (ZebraHandle zh, Z_AttributesPlusTerm *zapt, char *termz, zebra_map_t zm) |
static void | get_first_snippet_from_rset (ZebraHandle zh, RSET rset, zebra_snippets *snippets, zint *sysno) |
static int | scan_handle2 (char *name, const char *info, int pos, void *client) |
static int | scan_save_set (ZebraHandle zh, ODR stream, NMEM nmem, struct rset_key_control *kc, Z_AttributesPlusTerm *zapt, RSET limit_set, const char *term, const char *index_type, struct scan2_info_entry *ar, int ord_no, ZebraScanEntry *glist, int pos) |
static ZEBRA_RES | rpn_scan_norm (ZebraHandle zh, ODR stream, NMEM nmem, struct rset_key_control *kc, Z_AttributesPlusTerm *zapt, int *position, int *num_entries, ZebraScanEntry **list, int *is_partial, RSET limit_set, const char *index_type, int ord_no, int *ords) |
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) |
|
static |
Definition at line 97 of file rpnscan.c.
References it_key::len, zebra_session::m_staticrank, it_key::mem, rset_term::name, ord_list::next, rset_term::ol, ord_list::ord, rset_close(), rset_open, rset_read, RSETF_READ, and zebra_snippets_append().
Referenced by scan_save_set().
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().
|
static |
deal with terms before position ..
Definition at line 285 of file rpnscan.c.
References zebra_register::dict, dict_scan(), scan2_info_entry::isam_p, IT_MAX_WORD, key_SU_encode(), scan2_info_entry::ord, scan2_info_entry::pos_to_save, zebra_session::reg, rpn_char_map_prepare(), scan_handle2(), scan_save_set(), trans_scan_term(), ZEBRA_FAIL, zebra_map_get_or_add(), zebra_register::zebra_maps, ZEBRA_OK, and rpn_char_map_info::zm.
Referenced by rpn_scan().
|
static |
Definition at line 142 of file rpnscan.c.
References scan_info::prefix.
Referenced by rpn_scan_norm().
|
static |
Definition at line 162 of file rpnscan.c.
References zebra_session::approx_limit, attr_find(), attr_init_APT(), ZebraScanEntry::display_term, FIRST_IN_FIELD_STR, get_first_snippet_from_rset(), scan2_info_entry::isam_p, ZebraScanEntry::occurrences, ord_list::ord, ord_list_append(), ord_list_create(), rset_create_and(), rset_create_or(), rset_delete(), rset_dup(), rset_trunc(), rset_key_control::scope, ZebraScanEntry::term, zebra_snippet_word::term, scan2_info_entry::term, zebra_count_set(), zebra_get_rec_snippets(), zebra_snippets_create(), zebra_snippets_destroy(), zebra_snippets_lookup(), and zebra_term_untrans_iconv().
Referenced by rpn_scan_norm().
|
static |
Definition at line 46 of file rpnscan.c.
References CHR_SPACE, IT_MAX_WORD, zapt_term_to_utf8(), ZEBRA_FAIL, zebra_map_tokenize_next(), zebra_map_tokenize_start(), zebra_maps_input(), zebra_maps_is_icu(), and ZEBRA_OK.
Referenced by rpn_scan_norm().