-/* $Id: pazpar2.c,v 1.38 2007-01-16 19:42:20 quinn Exp $ */
+/* $Id: pazpar2.c,v 1.39 2007-01-16 23:42:10 quinn Exp $ */
#include <stdlib.h>
#include <stdio.h>
normalize_mergekey(mergekey_norm, 0);
cluster = reclist_insert(se->reclist, res, mergekey_norm, &se->total_merged);
+ if (global_parameters.dump_records)
+ yaz_log(YLOG_LOG, "Cluster id %d from %s (#%d)", cluster->recid,
+ cl->database->url, cl->records);
if (!cluster)
{
/* no room for record */
{
Z_NamePlusRecord *npr = rlist->records[i];
+ cl->records++;
if (npr->which != Z_NamePlusRecord_databaseRecord)
{
yaz_log(YLOG_WARN, "Unexpected record type, probably diagnostic");
if (!*r->presentStatus && cl->state != Client_Error)
{
yaz_log(YLOG_DEBUG, "Good Present response");
- cl->records += *r->numberOfRecordsReturned;
ingest_records(cl, r->records);
cl->state = Client_Idle;
}
/*
- * $Id: termlists.c,v 1.5 2007-01-15 19:01:15 quinn Exp $
+ * $Id: termlists.c,v 1.6 2007-01-16 23:42:10 quinn Exp $
*/
#include <stdlib.h>
return;
strcpy(buf, term);
for (cp = buf + strlen(buf) - 1; cp > buf &&
- (*cp == ',' || *cp == '.' || *cp == ' '); cp--)
+ (*cp == ',' || *cp == '.' || *cp == ' ' || *cp == '-'); cp--)
*cp = '\0';
bucket = hash((unsigned char *)buf) & tl->hashmask;