Handle metadata_type in a few more places
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 13 Dec 2013 13:11:01 +0000 (14:11 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 13 Dec 2013 13:11:01 +0000 (14:11 +0100)
src/pazpar2_config.c
src/record.c

index 3255c08..4266275 100644 (file)
@@ -1047,6 +1047,7 @@ static void info_service_metadata(struct conf_service *service, WRBUF w)
             switch (md->type)
             {
             case Metadata_type_generic:
+            case Metadata_type_skiparticle:
                 break;
             case Metadata_type_year:
                 wrbuf_puts(w, " type=\"year\"");
@@ -1057,6 +1058,9 @@ static void info_service_metadata(struct conf_service *service, WRBUF w)
             case Metadata_type_float:
                 wrbuf_puts(w, " type=\"float\"");
                 break;
+            case Metadata_type_relevance:
+            case Metadata_type_position:
+                break;
             }
             switch (md->merge)
             {
index 1b9d1e3..cba903a 100644 (file)
@@ -114,6 +114,7 @@ int record_compare(struct record *r1, struct record *r2,
             switch (type)
             {
             case Metadata_type_generic:
+            case Metadata_type_skiparticle:
                 if (strcmp(m1->data.text.disp, m2->data.text.disp))
                     return 0;
                 break;
@@ -126,6 +127,9 @@ int record_compare(struct record *r1, struct record *r2,
             case Metadata_type_float:
                 if (m1->data.fnumber != m2->data.fnumber)
                     return 0;
+            case Metadata_type_position:
+            case Metadata_type_relevance:
+                break;
             }
             m1 = m1->next;
             m2 = m2->next;