projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cec0b36
)
Issue warning if scan term could not be determined
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 24 Jan 2008 16:17:03 +0000
(16:17 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 24 Jan 2008 16:17:03 +0000
(16:17 +0000)
index/rpnscan.c
patch
|
blob
|
history
diff --git
a/index/rpnscan.c
b/index/rpnscan.c
index
fa12bbd
..
1d6f628
100644
(file)
--- a/
index/rpnscan.c
+++ b/
index/rpnscan.c
@@
-1,4
+1,4
@@
-/* $Id: rpnscan.c,v 1.24 2007-12-13 11:09:20 adam Exp $
+/* $Id: rpnscan.c,v 1.25 2008-01-24 16:17:03 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
Copyright (C) 1995-2007
Index Data ApS
@@
-250,6
+250,10
@@
static int scan_save_set(ZebraHandle zh, ODR stream, NMEM nmem,
{
glist[pos].display_term = odr_strdup(stream, w->term);
}
{
glist[pos].display_term = odr_strdup(stream, w->term);
}
+ else
+ {
+ yaz_log(YLOG_WARN, "zebra_snippets_lookup failed for pos=%d", pos);
+ }
}
zebra_snippets_destroy(rec_snippets);
}
}
zebra_snippets_destroy(rec_snippets);
}
@@
-260,6
+264,12
@@
static int scan_save_set(ZebraHandle zh, ODR stream, NMEM nmem,
glist[pos].term = glist[pos].display_term;
}
glist[pos].term = glist[pos].display_term;
}
+ if (!glist[pos].term)
+ {
+ yaz_log(YLOG_WARN, "Could not generate scan term for pos=%d",
+ pos);
+ glist[pos].term = "None";
+ }
glist[pos].occurrences = count;
zebra_snippets_destroy(hit_snippets);
}
glist[pos].occurrences = count;
zebra_snippets_destroy(hit_snippets);
}