-/* $Id: zebraapi.c,v 1.152 2005-01-23 12:36:27 adam Exp $
+/* $Id: zebraapi.c,v 1.155 2005-03-17 07:54:23 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
}
int zebra_search_RPN (ZebraHandle zh, ODR o,
- Z_RPNQuery *query, const char *setname, int *hits)
+ Z_RPNQuery *query, const char *setname, zint *hits)
{
const char *max;
zint maxhits;
zh->records_processed, zh->records_inserted,
zh->records_updated, zh->records_deleted);
- status->processed = zh->records_processed;
- status->inserted = zh->records_inserted;
- status->updated = zh->records_updated;
- status->deleted = zh->records_deleted;
+ status->processed = (int) zh->records_processed;
+ status->inserted = (int) zh->records_inserted;
+ status->updated = (int) zh->records_updated;
+ status->deleted = (int) zh->records_deleted;
zebra_get_state (zh, &val, &seqno);
if (val != 'd')
*/
int zebra_search_PQF (ZebraHandle zh, const char *pqf_query,
- const char *setname, int *numhits)
+ const char *setname, zint *numhits)
{
- int hits = 0;
+ zint hits = 0;
int res = -1;
Z_RPNQuery *query;
ODR odr = odr_createmem(ODR_ENCODE);
odr_destroy(odr);
- yaz_log(log_level, "Hits: %d",hits);
+ yaz_log(log_level, "Hits: " ZINT_FORMAT, hits);
if (numhits)
*numhits = hits;
return sort_status;
}
+struct BFile_struct *zebra_get_bfs(ZebraHandle zh)
+{
+ if (zh && zh->reg)
+ return zh->reg->bfs;
+ return 0;
+}