From: Adam Dickmeiss Date: Tue, 18 Dec 2007 10:04:15 +0000 (+0000) Subject: Allow 'index' setting value 'none' for no index types. X-Git-Tag: ZEBRA.2.0.20~8 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=6ba2b233baf29688eb6e311f44a623890b604f3d Allow 'index' setting value 'none' for no index types. Using index:none in zebra.cfg is treated specially and is now allowed to be used to specify 'no index types specified'. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index d06dfe1..f709ee6 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.265 2007-11-30 12:19:08 adam Exp $ +/* $Id: zebraapi.c,v 1.266 2007-12-18 10:04:15 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -421,7 +421,7 @@ struct zebra_register *zebra_register_open(ZebraService zs, const char *name, { const char *index_fname = res_get_def(res, "index", "default.idx"); - if (index_fname && *index_fname) + if (index_fname && *index_fname && strcmp(index_fname, "none")) { if (zebra_maps_read_file(reg->zebra_maps, index_fname) != ZEBRA_OK) ret = ZEBRA_FAIL;