X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=094764b1e4479dba4d989980d0efc7191c07eb6b;hb=05b9b8ed020c5bfa48a913d6a2e2b50ddf1bab8e;hp=dcc1246f2e644ec4e54c2dabe42fdf7b69f94114;hpb=a4b443f306e458e42811b332b0bb75affa1a2e46;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index dcc1246..094764b 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,4 +1,4 @@ -/* $Id: extract.c,v 1.168 2004-12-01 11:37:45 adam Exp $ +/* $Id: extract.c,v 1.169 2004-12-02 14:05:03 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -1454,7 +1454,7 @@ void extract_add_index_string (RecWord *p, const char *str, int length) key.mem[2] = p->section_id; key.mem[3] = p->seqno; -#if 0 +#if 1 /* just for debugging .. */ yaz_log(YLOG_LOG, "add: set=%d use=%d " "record_id=%lld section_id=%lld seqno=%lld", @@ -1516,6 +1516,8 @@ static void extract_add_incomplete_field (RecWord *p) const char *b = p->string; int remain = p->length; const char **map = 0; + + yaz_log(YLOG_DEBUG, "Incomplete field, w='%.*s'", p->length, p->string); if (remain > 0) map = zebra_maps_input(p->zebra_maps, p->reg_type, &b, remain, 0); @@ -1564,7 +1566,7 @@ static void extract_add_complete_field (RecWord *p) int i = 0, remain = p->length; int first; /* first position */ -yaz_log(YLOG_DEBUG, "Complete field, w='%.*s'", p->length, p->string); + yaz_log(YLOG_DEBUG, "Complete field, w='%.*s'", p->length, p->string); if (remain > 0) map = zebra_maps_input (p->zebra_maps, p->reg_type, &b, remain, 1);