IDZEBRA
2.2.7
|
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <yaz/diagbib1.h>
#include <yaz/snprintf.h>
#include "index.h"
#include <zebra_xpath.h>
#include <attrfind.h>
#include <charmap.h>
#include <rset.h>
Go to the source code of this file.
Data Structures | |
struct | grep_info |
Macros | |
#define | TERM_COUNT |
#define | REGEX_CHARS " ^[]()|.*+?!\"$\\" |
#define | MAX_XPATH_STEPS 10 |
Functions | |
static const char ** | rpn_char_map_handler (void *vp, const char **from, int len) |
void | rpn_char_map_prepare (struct zebra_register *reg, zebra_map_t zm, struct rpn_char_map_info *map_info) |
static int | add_isam_p (const char *name, const char *info, struct grep_info *p) |
static int | grep_handle (char *name, const char *info, void *p) |
static int | term_pre (zebra_map_t zm, const char **src, const char *ct1, int first) |
static void | esc_str (char *out_buf, size_t out_size, const char *in_buf, int in_size) |
static void | add_non_space (const char *start, const char *end, WRBUF term_dict, WRBUF display_term, const char **map, int q_map_match) |
static size_t | icu_basechars (const char *buf, size_t i) |
static int | term_102_icu (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) |
static int | term_100_icu (zebra_map_t zm, const char **src, WRBUF term_dict, WRBUF display_term, int mode, size_t token_number) |
static int | term_100 (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) |
static int | term_101 (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) |
static int | term_103 (zebra_map_t zm, const char **src, WRBUF term_dict, int *errors, int space_split, WRBUF display_term) |
static int | term_102 (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) |
static int | term_104 (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term) |
static int | term_105 (zebra_map_t zm, const char **src, WRBUF term_dict, int space_split, WRBUF display_term, int right_truncate) |
static void | gen_regular_rel (WRBUF dst, int val, int islt) |
void | string_rel_add_char (WRBUF term_p, WRBUF wsrc, int *indx) |
static int | string_relation (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char **term_sub, WRBUF term_dict, const Odr_oid *attributeSet, zebra_map_t zm, int space_split, WRBUF display_term, int *error_code) |
static ZEBRA_RES | string_term (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char **term_sub, WRBUF term_dict, const Odr_oid *attributeSet, NMEM stream, struct grep_info *grep_info, const char *index_type, int complete_flag, WRBUF display_term, const char *xpath_use, struct ord_list **ol, zebra_map_t zm, size_t token_number) |
ZEBRA_RES | zebra_term_limits_APT (ZebraHandle zh, Z_AttributesPlusTerm *zapt, zint *hits_limit_value, const char **term_ref_id_str, NMEM nmem) |
static ZEBRA_RES | search_term (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char **term_sub, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, struct grep_info *grep_info, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc, zebra_map_t zm, size_t token_number) |
search for term (which may be truncated) More... | |
static void | grep_info_delete (struct grep_info *grep_info) |
static ZEBRA_RES | grep_info_prepare (ZebraHandle zh, Z_AttributesPlusTerm *zapt, struct grep_info *grep_info, const char *index_type) |
static ZEBRA_RES | search_terms_chrmap (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET **result_sets, int *num_result_sets, struct rset_key_control *kc, zebra_map_t zm) |
static ZEBRA_RES | search_terms_list (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET **result_sets, int *num_result_sets, struct rset_key_control *kc) |
Create result set(s) for list of terms. More... | |
static RSET | search_group (ZebraHandle zh, const char *unit, const char *term, NMEM rset_nmem, struct rset_key_control *kc) |
static ZEBRA_RES | search_position (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeSet, const char *index_type, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
limit a search by position - returns result set More... | |
static ZEBRA_RES | rpn_search_APT_phrase (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz_org, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
returns result set for phrase search More... | |
static ZEBRA_RES | rpn_search_APT_or_list (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz_org, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
returns result set for or-list search More... | |
static ZEBRA_RES | rpn_search_APT_and_list (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz_org, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
returns result set for and-list search More... | |
static int | numeric_relation (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char **term_sub, WRBUF term_dict, const Odr_oid *attributeSet, struct grep_info *grep_info, int *max_pos, zebra_map_t zm, WRBUF display_term, int *error_code) |
static ZEBRA_RES | numeric_term (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char **term_sub, WRBUF term_dict, const Odr_oid *attributeSet, NMEM stream, struct grep_info *grep_info, const char *index_type, int complete_flag, WRBUF display_term, const char *xpath_use, struct ord_list **ol) |
static ZEBRA_RES | rpn_search_APT_numeric (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, const char *index_type, int complete_flag, const char *rank_type, const char *xpath_use, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_search_APT_local (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const char *termz, const Odr_oid *attributeSet, NMEM stream, const char *rank_type, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_sort_spec (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeSet, NMEM stream, Z_SortKeySpecList *sort_sequence, const char *rank_type, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
static int | rpn_check_xpath (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeSet, struct xpath_location_step *xpath, int max, NMEM mem) |
static RSET | xpath_trunc (ZebraHandle zh, NMEM stream, const char *index_type, const char *term, const char *xpath_use, NMEM rset_nmem, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_search_xpath (ZebraHandle zh, NMEM stream, const char *rank_type, RSET rset, int xpath_len, struct xpath_location_step *xpath, NMEM rset_nmem, RSET *rset_out, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_search_database (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, Z_SortKeySpecList *sort_sequence, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_search_APT (ZebraHandle zh, Z_AttributesPlusTerm *zapt, const Odr_oid *attributeSet, zint hits_limit, NMEM stream, Z_SortKeySpecList *sort_sequence, int num_bases, const char **basenames, NMEM rset_nmem, RSET *rset, struct rset_key_control *kc) |
static ZEBRA_RES | rpn_search_structure (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_sets, int *num_result_sets, Z_Operator *parent_op, struct rset_key_control *kc) |
ZEBRA_RES | rpn_get_top_approx_limit (ZebraHandle zh, Z_RPNStructure *zs, zint *approx_limit) |
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) |
Variables | |
static int | log_level_set = 0 |
static int | log_level_rpn = 0 |
#define MAX_XPATH_STEPS 10 |
Definition at line 2302 of file rpnsearch.c.
#define REGEX_CHARS " ^[]()|.*+?!\"$\\" |
Definition at line 206 of file rpnsearch.c.
#define TERM_COUNT |
Definition at line 73 of file rpnsearch.c.
|
static |
Definition at line 88 of file rpnsearch.c.
References grep_info::index_type, grep_info::isam_p_buf, grep_info::isam_p_indx, grep_info::isam_p_size, IT_MAX_WORD, key_SU_decode(), log_level_rpn, log_level_set, zebra_session::reg, resultSetAddTerm(), grep_info::term_no, grep_info::termset, grep_info::trunc_max, zebra_term_untrans(), zebraExplain_lookup_ord(), zebra_register::zei, and grep_info::zh.
Referenced by grep_handle().
|
static |
Definition at line 208 of file rpnsearch.c.
References end(), esc_str(), and REGEX_CHARS.
Referenced by term_100(), term_101(), term_103(), term_104(), and term_105().
|
static |
Definition at line 180 of file rpnsearch.c.
Referenced by add_non_space(), and string_term().
|
static |
Definition at line 628 of file rpnsearch.c.
Referenced by numeric_relation().
|
static |
Definition at line 153 of file rpnsearch.c.
References add_isam_p().
Referenced by numeric_relation(), string_term(), and xpath_trunc().
|
static |
Definition at line 1284 of file rpnsearch.c.
References grep_info::isam_p_buf, and grep_info::term_no.
Referenced by rpn_search_APT_numeric(), search_terms_chrmap(), and xpath_trunc().
|
static |
Definition at line 1292 of file rpnsearch.c.
References attr_find(), attr_find_ex(), attr_init_APT(), grep_info::index_type, grep_info::isam_p_buf, grep_info::isam_p_size, zebra_session::res, res_get_def(), grep_info::term_no, grep_info::termset, grep_info::trunc_max, ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), and grep_info::zh.
Referenced by rpn_search_APT_numeric(), search_terms_chrmap(), and xpath_trunc().
|
static |
Definition at line 241 of file rpnsearch.c.
Referenced by term_100_icu(), and term_102_icu().
|
static |
Definition at line 1731 of file rpnsearch.c.
References attr_find(), attr_init_APT(), zebra_register::dict, dict_lookup_grep(), gen_regular_rel(), grep_handle(), grep_info::isam_p_indx, log_level_rpn, zebra_session::reg, term_100(), zebra_set_partial_result(), and grep_info::zh.
Referenced by numeric_term().
|
static |
Definition at line 1829 of file rpnsearch.c.
References grep_info::isam_p_indx, key_SU_encode(), numeric_relation(), ord_list_append(), ord_list_create(), zebra_session::reg, rpn_char_map_prepare(), zebra_apt_get_ord(), ZEBRA_FAIL, zebra_map_get_or_add(), zebra_register::zebra_maps, ZEBRA_OK, zebra_setError(), and rpn_char_map_info::zm.
Referenced by rpn_search_APT_numeric().
|
static |
Definition at line 44 of file rpnsearch.c.
References zebra_maps_input(), and rpn_char_map_info::zm.
Referenced by rpn_char_map_prepare().
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().
|
static |
Definition at line 2091 of file rpnsearch.c.
References attr_find_ex(), attr_init_APT(), it_key::mem, and zebra_parse_xpath_str().
Referenced by rpn_search_database().
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().
|
static |
Definition at line 2313 of file rpnsearch.c.
References zebra_session::reg, rpn_search_database(), rset_create_null(), rset_create_or(), rset_delete(), rset_key_control::scope, ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), zebraExplain_curDatabase(), zebra_register::zei, and grep_info::zh.
Referenced by rpn_search_structure().
|
static |
returns result set for and-list search
Definition at line 1663 of file rpnsearch.c.
References grep_info::index_type, rset_create_and(), rset_create_null(), rset_create_prox(), rset_delete(), rset_key_control::scope, search_position(), search_terms_list(), ZEBRA_FAIL, ZEBRA_OK, and grep_info::zh.
Referenced by rpn_search_database().
|
static |
Definition at line 1980 of file rpnsearch.c.
References atozint(), it_key::len, it_key::mem, rec_free(), rec_get(), zebra_register::records, zebra_session::reg, zebra_session::res, res_get(), rset_close(), rset_create_null(), rset_create_temp(), rset_open, rset_write, RSETF_WRITE, rset_key_control::scope, and ZEBRA_OK.
Referenced by rpn_search_database().
|
static |
Definition at line 1891 of file rpnsearch.c.
References add(), grep_info_delete(), grep_info_prepare(), grep_info::index_type, grep_info::isam_p_buf, grep_info::isam_p_indx, log_level_rpn, numeric_term(), rset_create_and(), rset_create_null(), rset_trunc(), rset_key_control::scope, ZEBRA_FAIL, ZEBRA_OK, zebra_term_limits_APT(), and grep_info::zh.
Referenced by rpn_search_database().
|
static |
returns result set for or-list search
Definition at line 1595 of file rpnsearch.c.
References grep_info::index_type, rset_create_null(), rset_create_or(), rset_create_prox(), rset_delete(), rset_key_control::scope, search_position(), search_terms_list(), ZEBRA_FAIL, ZEBRA_OK, and grep_info::zh.
Referenced by rpn_search_database().
|
static |
returns result set for phrase search
Definition at line 1529 of file rpnsearch.c.
References grep_info::index_type, rset_create_null(), rset_create_prox(), rset_delete(), rset_key_control::scope, search_position(), search_terms_list(), ZEBRA_FAIL, ZEBRA_OK, and grep_info::zh.
Referenced by rpn_search_database().
|
static |
Definition at line 2360 of file rpnsearch.c.
References attr_find(), attr_init_APT(), grep_info::index_type, IT_MAX_WORD, log_level_rpn, log_level_set, MAX_XPATH_STEPS, xpath_location_step::part, zebra_session::reg, rpn_check_xpath(), rpn_search_APT_and_list(), rpn_search_APT_local(), rpn_search_APT_numeric(), rpn_search_APT_or_list(), rpn_search_APT_phrase(), rpn_search_xpath(), rpn_sort_spec(), zapt_term_to_utf8(), ZEBRA_FAIL, zebra_register::zebra_maps, zebra_maps_attr(), ZEBRA_OK, zebra_setError(), ZEBRA_XPATH_ATTR_CDATA, and ZEBRA_XPATH_CDATA.
Referenced by rpn_search_APT().
|
static |
Definition at line 2567 of file rpnsearch.c.
References resultSetRef(), rpn_search_APT(), rset_create_and(), rset_create_between(), rset_create_not(), rset_create_or(), rset_create_prox(), rset_delete(), rset_dup(), rset_key_control::scope, search_group(), ZEBRA_FAIL, ZEBRA_OK, zebra_setError(), and zebra_setError_zint().
Referenced by rpn_search_top().
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().
|
static |
Definition at line 2162 of file rpnsearch.c.
References zebra_register::dict, dict_grep_cmap(), log_level_rpn, xpath_location_step::part, xpath_location_step::predicate, zebra_session::reg, REGEX_CHARS, xpath_predicate::relation, rset_create_between(), rset_key_control::scope, xpath_predicate::u, XPATH_PREDICATE_RELATION, xpath_trunc(), ZEBRA_OK, ZEBRA_XPATH_ATTR_NAME, ZEBRA_XPATH_ELM_BEGIN, ZEBRA_XPATH_ELM_END, and grep_info::zh.
Referenced by rpn_search_database().
|
static |
Definition at line 2021 of file rpnsearch.c.
References attr_find(), attr_init_APT(), rset_create_null(), and ZEBRA_OK.
Referenced by rpn_search_database().
|
static |
Definition at line 1433 of file rpnsearch.c.
References zebra_register::dict, dict_lookup(), key_SU_encode(), zebra_session::reg, rset_key_control::scope, zebra_create_rset_isam(), ZEBRA_GROUP_INDEX_NAME, zebraExplain_lookup_attr_str(), zebra_register::zei, grep_info::zh, and zinfo_index_category_index.
Referenced by rpn_search_structure().
|
static |
limit a search by position - returns result set
Definition at line 1465 of file rpnsearch.c.
References attr_find(), attr_init_APT(), zebra_register::dict, dict_lookup(), FIRST_IN_FIELD_STR, grep_info::index_type, key_SU_encode(), zebra_session::reg, rset_key_control::scope, zebra_apt_get_ord(), zebra_create_rset_isam(), ZEBRA_FAIL, zebra_map_get_or_add(), zebra_register::zebra_maps, zebra_maps_is_first_in_field(), ZEBRA_OK, zebra_setError_zint(), and grep_info::zh.
Referenced by rpn_search_APT_and_list(), rpn_search_APT_or_list(), and rpn_search_APT_phrase().
|
static |
search for term (which may be truncated)
Definition at line 976 of file rpnsearch.c.
References grep_info::isam_p_buf, grep_info::isam_p_indx, log_level_rpn, rset_trunc(), rset_key_control::scope, string_term(), ZEBRA_FAIL, ZEBRA_OK, and zebra_term_limits_APT().
Referenced by search_terms_chrmap().
|
static |
Definition at line 1334 of file rpnsearch.c.
References add(), grep_info_delete(), grep_info_prepare(), grep_info::index_type, rset_delete(), search_term(), ZEBRA_FAIL, ZEBRA_OK, and grep_info::zh.
Referenced by search_terms_list().
|
static |
Create result set(s) for list of terms.
zh | Zebra Handle |
zapt | Attributes Plust Term (RPN leaf) |
termz | term as used in query but converted to UTF-8 |
attributeSet | default attribute set |
stream | memory for result |
index_type | register type ("w", "p",..) |
complete_flag | whether it's phrases or not |
rank_type | term flags for ranking |
xpath_use | use attribute for X-Path (-1 for no X-path) |
rset_nmem | memory for result sets |
result_sets | output result set for each term in list (output) |
num_result_sets | number of output result sets |
kc | rset key control to be used for created result sets |
Definition at line 1412 of file rpnsearch.c.
References grep_info::index_type, zebra_session::reg, search_terms_chrmap(), zebra_map_get_or_add(), zebra_register::zebra_maps, and grep_info::zh.
Referenced by rpn_search_APT_and_list(), rpn_search_APT_or_list(), and rpn_search_APT_phrase().
void string_rel_add_char | ( | WRBUF | term_p, |
WRBUF | wsrc, | ||
int * | indx | ||
) |
Definition at line 723 of file rpnsearch.c.
Referenced by string_relation().
|
static |
Definition at line 745 of file rpnsearch.c.
References attr_find(), attr_init_APT(), FIRST_IN_FIELD_CHAR, log_level_rpn, string_rel_add_char(), and term_100().
Referenced by string_term().
|
static |
Definition at line 1023 of file rpnsearch.c.
References attr_find(), attr_init_APT(), zebra_register::dict, dict_lookup_grep(), esc_str(), grep_handle(), grep_info::isam_p_indx, key_SU_encode(), log_level_rpn, ord_list_append(), ord_list_create(), zebra_session::reg, rpn_char_map_prepare(), string_relation(), term_100(), term_100_icu(), term_101(), term_102(), term_102_icu(), term_103(), term_104(), term_105(), zebra_apt_get_ord(), ZEBRA_FAIL, zebra_maps_is_icu(), ZEBRA_OK, zebra_set_partial_result(), zebra_setError(), zebra_setError_zint(), and rpn_char_map_info::zm.
Referenced by search_term().
|
static |
Definition at line 355 of file rpnsearch.c.
References add_non_space(), CHR_SPACE, REGEX_CHARS, term_pre(), and zebra_maps_search().
Referenced by numeric_relation(), string_relation(), and string_term().
|
static |
Definition at line 312 of file rpnsearch.c.
References icu_basechars(), REGEX_CHARS, zebra_map_tokenize_next(), and zebra_map_tokenize_start().
Referenced by string_term().
|
static |
Definition at line 411 of file rpnsearch.c.
References add_non_space(), CHR_SPACE, term_pre(), and zebra_maps_search().
Referenced by string_term().
|
static |
|
static |
Definition at line 250 of file rpnsearch.c.
References icu_basechars(), REGEX_CHARS, zebra_map_tokenize_next(), and zebra_map_tokenize_start().
Referenced by string_term().
|
static |
Definition at line 448 of file rpnsearch.c.
References add_non_space(), CHR_SPACE, term_pre(), and zebra_maps_search().
Referenced by string_term(), and term_102().
|
static |
Definition at line 502 of file rpnsearch.c.
References add_non_space(), CHR_SPACE, term_pre(), and zebra_maps_search().
Referenced by string_term().
|
static |
Definition at line 571 of file rpnsearch.c.
References add_non_space(), CHR_SPACE, term_pre(), and zebra_maps_search().
Referenced by string_term().
|
static |
Definition at line 158 of file rpnsearch.c.
References CHR_SPACE, and zebra_maps_input().
Referenced by term_100(), term_101(), term_103(), term_104(), and term_105().
|
static |
Definition at line 2111 of file rpnsearch.c.
References zebra_register::dict, dict_lookup_grep(), grep_handle(), grep_info_delete(), grep_info_prepare(), grep_info::index_type, grep_info::isam_p_buf, grep_info::isam_p_indx, key_SU_encode(), zebra_session::reg, rset_create_null(), rset_trunc(), rset_key_control::scope, ZEBRA_FAIL, zebraExplain_lookup_attr_str(), zebra_register::zei, grep_info::zh, and zinfo_index_category_index.
Referenced by rpn_search_xpath().
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().
|
static |
Definition at line 42 of file rpnsearch.c.
Referenced by add_isam_p(), numeric_relation(), rpn_search_APT_numeric(), rpn_search_database(), rpn_search_xpath(), search_term(), string_relation(), and string_term().
|
static |
Definition at line 41 of file rpnsearch.c.
Referenced by add_isam_p(), and rpn_search_database().