X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=index%2Fzebraapi.c;h=5352457ae28fb7d59d5d5f01ba5b1916d1d3f27b;hb=89895e559c05c44e538a732b1e072e28413ddc1f;hp=b4283b59f2551b9d28fcea2fb94bffa0dd051517;hpb=2da0f67191a2222daaecab6892082777b77b37f3;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index b4283b5..5352457 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.165 2005-05-06 18:59:35 adam Exp $ +/* $Id: zebraapi.c,v 1.167 2005-05-09 10:16:13 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -147,7 +147,7 @@ ZebraHandle zebra_open (ZebraService zs) zh->store_data_buf = 0; - zh->m_limit = zebra_limit_create(0, 0); + zh->m_limit = zebra_limit_create(1, 0); return zh; } @@ -665,8 +665,6 @@ static void zebra_select_register (ZebraHandle zh, const char *new_reg) zh->lock_shadow = 0; } zebra_close_res(zh); - - return -1; } } } @@ -2200,10 +2198,10 @@ struct BFiles_struct *zebra_get_bfs(ZebraHandle zh) /* --------------------------------------------------------------------------- Set limit for search/scan */ -ZEBRA_RES zebra_set_limit(ZebraHandle zh, int exclude_flag, zint *ids) +ZEBRA_RES zebra_set_limit(ZebraHandle zh, int complement_flag, zint *ids) { ASSERTZH; zebra_limit_destroy(zh->m_limit); - zh->m_limit = zebra_limit_create(exclude_flag, ids); + zh->m_limit = zebra_limit_create(complement_flag, ids); return ZEBRA_OK; }