51 log_level = yaz_log_module_level(
"rankstatic");
65 yaz_log(
log_level,
"rank-static destroy");
75 void *class_handle,
RSET rset, NMEM nmem,
76 TERMID *terms,
int numterms)
85 for (i = 0; i < numterms; i++)
89 yaz_log(
log_level,
"i=%d flags=%s '%s'", i,
90 terms[i]->flags, terms[i]->name );
92 for (; ol; ol = ol->
next)
94 const char *index_type = 0;
96 const char *string_index = 0;
101 ol->
ord, &index_type, &db, &string_index);
104 yaz_log(
log_level,
" ord=%d index_type=%s db=%s str-index=%s",
105 ol->
ord, index_type, db, string_index);
107 yaz_log(
log_level,
" ord=%d index_type=%s db=%s set=%d use=%d",
108 ol->
ord, index_type, db, set, use);
110 if (!strncmp (terms[i]->flags,
"rank,", 5))
131 static void add (
void *set_handle,
int seqno,
TERMID term)
151 if (staticrank >= INT_MAX)
static void * begin(struct zebra_register *reg, void *class_handle, RSET rset, NMEM nmem, TERMID *terms, int numterms)
static struct rank_control rank_control
static void end(struct zebra_register *reg, void *set_handle)
struct rank_control * rank_static_class
static void * create(ZebraHandle zh)
static int log_initialized
static void destroy(struct zebra_register *reg, void *class_handle)
static int calc(void *set_handle, zint sysno, zint staticrank, int *stop_flag)
static void add(void *set_handle, int seqno, TERMID term)
#define CAST_ZINT_TO_INT(x)
int zebraExplain_lookup_ord(ZebraExplainInfo zei, int ord, const char **index_type, const char **db, const char **string_index)