IDZEBRA
2.2.7
|
Go to the source code of this file.
Data Structures | |
struct | rank_class_info |
struct | rank_term_info |
struct | rank_set_info |
Functions | |
static int | log2_int (zint g) |
static void * | create (ZebraHandle zh) |
static void | destroy (struct zebra_register *reg, void *class_handle) |
static void * | begin (struct zebra_register *reg, void *class_handle, RSET rset, NMEM nmem, TERMID *terms, int numterms) |
static void | end (struct zebra_register *reg, void *set_handle) |
static void | add (void *set_handle, int seqno, TERMID term) |
static int | calc_1 (void *set_handle, zint sysno, zint staticrank, int *stop_flag) |
static int | calc_2 (void *set_handle, zint sysno, zint staticrank, int *stop_flag) |
Variables | |
static int | log_level = 0 |
static int | log_initialized = 0 |
static struct rank_control | rank_1_control |
struct rank_control * | rank_1_class = &rank_1_control |
static struct rank_control | rank_2_control |
struct rank_control * | rank_2_class = &rank_2_control |
|
static |
add: Called for each word occurence in a result set. This routine should be as fast as possible. This routine should "incrementally" update the score.
Definition at line 168 of file rank1.c.
References rank_set_info::last_pos, rank_term_info::local_occur, log_level, rset_term::name, rset_term::rankpriv, and rank_term_info::term.
Referenced by main(), rpn_search_APT_numeric(), and search_terms_chrmap().
|
static |
begin: Prepares beginning of "real" ranking. Called once for each result set. The returned handle is a "set handle" and will be used in each of the handlers below.
Definition at line 107 of file rank1.c.
References rank_set_info::entries, rank_term_info::global_inv, rank_term_info::global_occur, rank_term_info::local_occur, log2_int(), log_level, rank_set_info::nmem, rank_set_info::no_entries, rank_set_info::no_rank_entries, rank_term_info::rank_flag, rank_term_info::rank_weight, rset_term::rankpriv, rset_count(), rank_term_info::term, rank_term_info::term_index, and ZINT_FORMAT.
Referenced by scan_string().
Definition at line 192 of file rank1.c.
References rank_set_info::entries, rank_term_info::global_inv, rank_set_info::last_pos, rank_term_info::local_occur, log2_int(), log_level, rank_set_info::no_entries, rank_set_info::no_rank_entries, rank_term_info::rank_flag, rank_term_info::rank_weight, and ZINT_FORMAT.
Referenced by calc_2().
|
static |
Definition at line 74 of file rank1.c.
References log_initialized, and log_level.
|
static |
|
static |
Definition at line 156 of file rank1.c.
References log_level.
Referenced by add_non_space(), mc_getinterval(), and scan_string().
|
static |
|
static |
struct rank_control* rank_1_class = &rank_1_control |
Definition at line 254 of file rank1.c.
Referenced by zebra_register_open().
|
static |
struct rank_control* rank_2_class = &rank_2_control |
Definition at line 266 of file rank1.c.
Referenced by zebra_register_open().