IDZEBRA
2.2.7
|
#include <idzebra/util.h>
Go to the source code of this file.
Data Structures | |
struct | zebra_snippet_word |
Typedefs | |
typedef struct zebra_snippets | zebra_snippets |
typedef struct zebra_snippet_word | zebra_snippet_word |
Functions | |
zebra_snippets * | zebra_snippets_create (void) |
void | zebra_snippets_destroy (zebra_snippets *l) |
void | zebra_snippets_append (zebra_snippets *l, zint seqno, int ws, int ord, const char *term) |
void | zebra_snippets_appendn (zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len) |
void | zebra_snippets_append_match (zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len, int match) |
zebra_snippet_word * | zebra_snippets_list (zebra_snippets *l) |
const zebra_snippet_word * | zebra_snippets_constlist (const zebra_snippets *l) |
void | zebra_snippets_log (const zebra_snippets *l, int log_level, int all) |
zebra_snippets * | zebra_snippets_window (const zebra_snippets *doc, const zebra_snippets *hit, int window_size) |
void | zebra_snippets_ring (zebra_snippets *doc, const zebra_snippets *hit, int before, int after) |
const struct zebra_snippet_word * | zebra_snippets_lookup (const zebra_snippets *doc, const zebra_snippets *hit) |
typedef struct zebra_snippet_word zebra_snippet_word |
typedef struct zebra_snippets zebra_snippets |
void zebra_snippets_append | ( | zebra_snippets * | l, |
zint | seqno, | ||
int | ws, | ||
int | ord, | ||
const char * | term | ||
) |
Definition at line 51 of file snippet.c.
References zebra_snippets_append_match().
Referenced by get_first_snippet_from_rset(), zebra_rec_keys_to_snippets1(), and zebra_snippets_hit_vector().
void zebra_snippets_append_match | ( | zebra_snippets * | l, |
zint | seqno, | ||
int | ws, | ||
int | ord, | ||
const char * | term, | ||
size_t | term_len, | ||
int | match | ||
) |
Definition at line 65 of file snippet.c.
References zebra_snippets::front, zebra_snippet_word::mark, zebra_snippet_word::match, zebra_snippet_word::next, zebra_snippets::nmem, zebra_snippet_word::ord, zebra_snippet_word::prev, zebra_snippet_word::seqno, zebra_snippets::tail, zebra_snippet_word::term, and zebra_snippet_word::ws.
Referenced by zebra_snippets_append(), zebra_snippets_appendn(), and zebra_snippets_window().
void zebra_snippets_appendn | ( | zebra_snippets * | l, |
zint | seqno, | ||
int | ws, | ||
int | ord, | ||
const char * | term, | ||
size_t | term_len | ||
) |
Definition at line 57 of file snippet.c.
References zebra_snippets_append_match().
Referenced by snippet_add_complete_field(), snippet_add_icu(), and snippet_add_incomplete_field().
const zebra_snippet_word* zebra_snippets_constlist | ( | const zebra_snippets * | l | ) |
Definition at line 99 of file snippet.c.
References zebra_snippets::front.
Referenced by perform_facet(), snippet_check_fields(), snippet_xml_record(), special_index_xml_record(), zebra_snippets_lookup(), zebra_snippets_ring(), and zebra_snippets_window().
zebra_snippets* zebra_snippets_create | ( | void | ) |
Definition at line 36 of file snippet.c.
References zebra_snippets::front, zebra_snippets::nmem, and zebra_snippets::tail.
Referenced by perform_facet(), scan_save_set(), snippet_fetch(), special_index_fetch(), zebra_records_retrieve(), and zebra_snippets_window().
void zebra_snippets_destroy | ( | zebra_snippets * | l | ) |
Definition at line 45 of file snippet.c.
References zebra_snippets::nmem.
Referenced by perform_facet(), scan_save_set(), snippet_fetch(), special_index_fetch(), and zebra_records_retrieve().
zebra_snippet_word* zebra_snippets_list | ( | zebra_snippets * | l | ) |
Definition at line 94 of file snippet.c.
References zebra_snippets::front.
Referenced by zebra_snippets_clear(), and zebra_snippets_ring().
void zebra_snippets_log | ( | const zebra_snippets * | l, |
int | log_level, | ||
int | all | ||
) |
Definition at line 104 of file snippet.c.
References zebra_snippets::front, log_level, zebra_snippet_word::mark, zebra_snippet_word::match, zebra_snippet_word::next, zebra_snippet_word::ord, zebra_snippet_word::seqno, zebra_snippet_word::term, zebra_snippet_word::ws, and ZINT_FORMAT.
Referenced by perform_facet(), and snippet_fetch().
const struct zebra_snippet_word* zebra_snippets_lookup | ( | const zebra_snippets * | doc, |
const zebra_snippets * | hit | ||
) |
Definition at line 218 of file snippet.c.
References zebra_snippet_word::next, zebra_snippet_word::ord, zebra_snippet_word::seqno, zebra_snippet_word::ws, and zebra_snippets_constlist().
Referenced by scan_save_set().
void zebra_snippets_ring | ( | zebra_snippets * | doc, |
const zebra_snippets * | hit, | ||
int | before, | ||
int | after | ||
) |
Definition at line 237 of file snippet.c.
References zebra_snippet_word::mark, zebra_snippet_word::match, zebra_snippet_word::next, zebra_snippet_word::ord, zebra_snippet_word::prev, zebra_snippet_word::seqno, zebra_snippet_word::ws, zebra_snippets_clear(), zebra_snippets_constlist(), and zebra_snippets_list().
Referenced by snippet_fetch().
zebra_snippets* zebra_snippets_window | ( | const zebra_snippets * | doc, |
const zebra_snippets * | hit, | ||
int | window_size | ||
) |
Definition at line 121 of file snippet.c.
References zebra_snippet_word::match, zebra_snippet_word::next, zebra_snippet_word::ord, zebra_snippet_word::seqno, zebra_snippet_word::term, zebra_snippet_word::ws, zebra_snippets_append_match(), zebra_snippets_constlist(), zebra_snippets_create(), and ZINT_FORMAT.