X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fzinfo.h;h=6f63d4c54c0e1fa59d4f49c8c1d37b218a1a87d2;hp=31225ce55efb4ed4e6e257c95d3cc032e0fd7425;hb=7598c76f1a4989a91003bd4fbd90f30a7c7255ef;hpb=4478d785b7769691261005c98063b98a5a5971b3 diff --git a/index/zinfo.h b/index/zinfo.h index 31225ce..6f63d4c 100644 --- a/index/zinfo.h +++ b/index/zinfo.h @@ -1,8 +1,5 @@ -/* $Id: zinfo.h,v 1.36 2006-08-14 10:40:15 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1995-2008 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -56,29 +53,38 @@ ZebraExplainInfo zebraExplain_open(Records records, data1_handle dh, void *updateHandle, ZebraExplainUpdateFunc *); -void zebraExplain_close (ZebraExplainInfo zei); -int zebraExplain_curDatabase (ZebraExplainInfo zei, const char *database); -int zebraExplain_newDatabase (ZebraExplainInfo zei, const char *database, +void zebraExplain_close(ZebraExplainInfo zei); +int zebraExplain_curDatabase(ZebraExplainInfo zei, const char *database); +int zebraExplain_newDatabase(ZebraExplainInfo zei, const char *database, int explain_database); int zebraExplain_add_attr_su(ZebraExplainInfo zei, int index_type, int set, int use); + +/** \brief lookup ordinal from string index + index type + \param zei explain info + \param cat category + \param index_type index type + \param str index string + \returns -1 no such index+type exist; ordinal otherwise +*/ + int zebraExplain_lookup_attr_str(ZebraExplainInfo zei, zinfo_index_category_t cat, - int index_type, + const char *index_type, const char *str); int zebraExplain_add_attr_str(ZebraExplainInfo zei, zinfo_index_category_t cat, - int index_type, + const char *index_type, const char *str); -void zebraExplain_addSchema (ZebraExplainInfo zei, Odr_oid *oid); -void zebraExplain_recordCountIncrement (ZebraExplainInfo zei, int adjust_num); -void zebraExplain_recordBytesIncrement (ZebraExplainInfo zei, int adjust_num); -zint zebraExplain_runNumberIncrement (ZebraExplainInfo zei, int adjust_num); -void zebraExplain_loadAttsets (data1_handle dh, Res res); -void zebraExplain_flush (ZebraExplainInfo zei, void *updateHandle); - -int zebraExplain_lookup_ord (ZebraExplainInfo zei, int ord, - int *index_type, const char **db, +void zebraExplain_addSchema(ZebraExplainInfo zei, Odr_oid *oid); +void zebraExplain_recordCountIncrement(ZebraExplainInfo zei, int adjust_num); +void zebraExplain_recordBytesIncrement(ZebraExplainInfo zei, int adjust_num); +zint zebraExplain_runNumberIncrement(ZebraExplainInfo zei, int adjust_num); +void zebraExplain_loadAttsets(data1_handle dh, Res res); +void zebraExplain_flush(ZebraExplainInfo zei, void *updateHandle); + +int zebraExplain_lookup_ord(ZebraExplainInfo zei, int ord, + const char **index_type, const char **db, const char **string_index); int zebraExplain_ord_adjust_occurrences(ZebraExplainInfo zei, int ord, @@ -99,7 +105,7 @@ typedef struct { zint runNumber; zint staticrank; } RecordAttr; -RecordAttr *rec_init_attr (ZebraExplainInfo zei, Record rec); +RecordAttr *rec_init_attr(ZebraExplainInfo zei, Record rec); YAZ_END_CDECL