X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=8a48f7a31482b4c1ad0eed58d53e0a9a0b792690;hb=44082770642275dd993aa621d9dc5c5b0dc454d3;hp=8b393ec0a83a70c1df3868056eb143d952f48c3c;hpb=fe11c4b55fa92d5c3c768218580841e69665ed72;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 8b393ec..8a48f7a 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.181 2005-08-17 21:29:44 adam Exp $ +/* $Id: zebraapi.c,v 1.182 2005-08-18 12:50:17 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -126,6 +126,7 @@ ZebraHandle zebra_open (ZebraService zs) zh->lock_shadow = 0; zh->shadow_enable = 1; + zh->m_staticrank = 0; default_encoding = res_get_def(zs->global_res, "encoding", "ISO-8859-1"); @@ -699,6 +700,13 @@ static void zebra_select_register (ZebraHandle zh, const char *new_reg) if (res_get_int(zh->res, "estimatehits", &approx) == ZEBRA_OK) zebra_set_approx_limit(zh, approx); } + if (zh->res) + { + if (res_get_int(zh->res, "staticrank", &zh->m_staticrank) == ZEBRA_OK) + yaz_log(YLOG_LOG, "static rank set and is %d", zh->m_staticrank); + else + yaz_log(YLOG_LOG, "static rank unset"); + } } void map_basenames_func (void *vp, const char *name, const char *value)