1 /* $Id: zinfo.h,v 1.32 2006-05-11 10:15:33 adam Exp $
2 Copyright (C) 1995-2006
5 This file is part of the Zebra server.
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with Zebra; see the file LICENSE.zebra. If not, write to the
19 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
28 #include <idzebra/api.h>
31 /* Compare string (ignore case) */
33 #define STRCASECMP stricmp
35 #define STRCASECMP strcasecmp
40 typedef struct zebraExplainInfo *ZebraExplainInfo;
41 typedef struct zebDatabaseInfo ZebDatabaseInfo;
42 ZebraExplainInfo zebraExplain_open (Records records, data1_handle dh,
46 int (*updateFunc)(void *handle,
49 void zebraExplain_close (ZebraExplainInfo zei);
50 int zebraExplain_curDatabase (ZebraExplainInfo zei, const char *database);
51 int zebraExplain_newDatabase (ZebraExplainInfo zei, const char *database,
52 int explain_database);
53 int zebraExplain_lookup_attr_su(ZebraExplainInfo zei, int index_type,
55 int zebraExplain_lookup_attr_su_any_index(ZebraExplainInfo zei,
57 int zebraExplain_add_attr_su(ZebraExplainInfo zei, int index_type,
59 int zebraExplain_lookup_attr_str(ZebraExplainInfo zei, int index_type,
61 int zebraExplain_add_attr_str(ZebraExplainInfo zei, int index_type,
63 void zebraExplain_addSchema (ZebraExplainInfo zei, Odr_oid *oid);
64 void zebraExplain_recordCountIncrement (ZebraExplainInfo zei, int adjust_num);
65 void zebraExplain_recordBytesIncrement (ZebraExplainInfo zei, int adjust_num);
66 zint zebraExplain_runNumberIncrement (ZebraExplainInfo zei, int adjust_num);
67 void zebraExplain_loadAttsets (data1_handle dh, Res res);
68 void zebraExplain_flush (ZebraExplainInfo zei, void *updateHandle);
70 int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord,
71 int *index_type, const char **db,
72 int *set, int *use, const char **string_index);
74 int zebraExplain_ord_adjust_occurrences(ZebraExplainInfo zei, int ord,
75 int term_delta, int doc_delta);
77 zint zebraExplain_ord_get_term_occurrences(ZebraExplainInfo zei, int ord);
78 zint zebraExplain_ord_get_doc_occurrences(ZebraExplainInfo zei, int ord);
80 int zebraExplain_trav_ord(ZebraExplainInfo zei, void *handle,
81 int (*f)(void *handle, int ord));
83 int zebraExplain_get_database_ord(ZebraExplainInfo zei);
84 int zebraExplain_removeDatabase(ZebraExplainInfo zei, void *updateHandle);
92 RecordAttr *rec_init_attr (ZebraExplainInfo zei, Record rec);
100 * indent-tabs-mode: nil
102 * vim: shiftwidth=4 tabstop=8 expandtab