Complete record match does not serve as error
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 31 Jan 2013 15:59:24 +0000 (16:59 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 31 Jan 2013 15:59:24 +0000 (16:59 +0100)
src/session.c

index 0817d8e..d4e4a3c 100644 (file)
@@ -1843,7 +1843,7 @@ static int ingest_to_cluster(struct client *cl,
     cluster = reclist_insert(se->reclist, service, record,
                              mergekey_norm, &se->total_merged);
     if (!cluster)
-        return -1;
+        return 0; // complete match with existing record
 
     {
         const char *use_term_factor_str =