X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=a3315ee35e174b2a659b48ec51342833283768c9;hb=ab5db8f3b991ecc823f92b3c8bfd22ede9b679df;hp=968de3ee3c6f7f36cfb86b617a881b55e4d9d1e5;hpb=9e430c87992b890d3911d415132cfa1b7f6b9ed3;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 968de3e..a3315ee 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 1994-2010 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 @@ -302,7 +302,7 @@ static void snippet_token_add(RecWord *p) { struct snip_rec_info *h = p->extractCtrl->handle; ZebraHandle zh = h->zh; - zebra_map_t zm = zebra_map_get(zh->reg->zebra_maps, p->index_type); + zebra_map_t zm = zebra_map_get_or_add(zh->reg->zebra_maps, p->index_type); if (zm) {