X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frecgrs.c;h=ef0acb445b82de059a5a75c6914e9055f183fa64;hp=500a0b141e1b8272c271848ee90b4611e943c3eb;hb=96e4c5479e111511f5df3531b6648931251b9e5d;hpb=4815bf6068b5a2623c50475e0e5ec598709934e0 diff --git a/index/recgrs.c b/index/recgrs.c index 500a0b1..ef0acb4 100644 --- a/index/recgrs.c +++ b/index/recgrs.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 1994-2011 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -730,8 +733,6 @@ static void index_termlist(struct source_parser *sp, data1_node *par, struct recExtractCtrl *p, int level, RecWord *wrd) { data1_termlist *tlist = 0; - data1_datatype dtype = DATA1K_string; - /* * cycle up towards the root until we find a tag with an att.. * this has the effect of indexing locally defined tags with @@ -743,9 +744,6 @@ static void index_termlist(struct source_parser *sp, data1_node *par, break; if (!par || !(tlist = par->u.tag.element->termlists)) return; - if (par->u.tag.element->tag) - dtype = par->u.tag.element->tag->kind; - for (; tlist; tlist = tlist->next) { /* consider source */