-/* $Id: index.h,v 1.157 2006-03-26 14:17:01 adam Exp $
+/* $Id: index.h,v 1.160 2006-05-10 08:13:21 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
struct zebra_limit *m_limit;
};
-struct rank_control {
- char *name;
- void *(*create)(ZebraHandle zh);
- void (*destroy)(struct zebra_register *reg, void *class_handle);
- void *(*begin)(struct zebra_register *reg,
- void *class_handle, RSET rset, NMEM nmem,
- TERMID *terms, int numterms);
- /* ### Could add parameters to begin:
- * char *index; // author, title, etc.
- * int dbsize; // number of records in database
- * int rssize; // number of records in result set (estimate?)
- */
- void (*end)(struct zebra_register *reg, void *set_handle);
- int (*calc)(void *set_handle, zint sysno, zint staticrank,
- int *stop_flag);
- void (*add)(void *set_handle, int seqno, TERMID term);
-};
struct term_set_entry {
char *term;
data1_local_attribute *local_attributes;
} attent;
-void zebraRankInstall (struct zebra_register *reg, struct rank_control *ctrl);
-ZebraRankClass zebraRankLookup (ZebraHandle zh, const char *name);
-void zebraRankDestroy (struct zebra_register *reg);
-
int att_getentbyatt(ZebraHandle zh, attent *res, oid_value set, int att,
const char *sattr);
-extern struct rank_control *rank_1_class;
-extern struct rank_control *rank_zv_class;
-extern struct rank_control *rank_static_class;
-
int zebra_record_fetch (ZebraHandle zh, SYSNO sysno, int score,
zebra_snippets *hit_snippet, ODR stream,
oid_value input_format, Z_RecordComposition *comp,
void extract_token_add (RecWord *p);
int explain_extract (void *handle, Record rec, data1_node *n);
-int fileExtract (ZebraHandle zh, SYSNO *sysno, const char *fname,
- int deleteFlag);
+ZEBRA_RES zebra_extract_file(ZebraHandle zh, SYSNO *sysno, const char *fname,
+ int deleteFlag);
ZEBRA_RES zebra_begin_read (ZebraHandle zh);
ZEBRA_RES zebra_end_read (ZebraHandle zh);
YAZ_END_CDECL
#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+