package com.visenze.visearch;

import java.util.Map;

public class ImageResult {

    private final String imName;
    private final Map<String, String> metadata;
    private final Float score;

    public ImageResult(String imName, Map<String, String> metatdata, Float score) {
        this.imName = imName;
        this.metadata = metatdata;
        this.score = score;
    }

    public String getImName() {
        return imName;
    }

    public Map<String, String> getMetadata() {
        return metadata;
    }

    public Float getScore() {
        return score;
    }

}

package com.visenze.visearch;

import java.util.Map;

public class ImageResult {

    private final String imName;
    private final Map<String, Object> metadata;
    private final Float score;

    public ImageResult(String imName, Map<String, Object> metatdata, Float score) {
        this.imName = imName;
        this.metadata = metatdata;
        this.score = score;
    }

    public String getImName() {
        return imName;
    }

    public Map<String, Object> getMetadata() {
        return metadata;
    }

    public Float getScore() {
        return score;
    }

}

--- 
+++ 
@@ -5,10 +5,10 @@
 public class ImageResult {
 
     private final String imName;
-    private final Map<String, Object> metadata;
+    private final Map<String, String> metadata;
     private final Float score;
 
-    public ImageResult(String imName, Map<String, Object> metatdata, Float score) {
+    public ImageResult(String imName, Map<String, String> metatdata, Float score) {
         this.imName = imName;
         this.metadata = metatdata;
         this.score = score;
@@ -18,7 +18,7 @@
         return imName;
     }
 
-    public Map<String, Object> getMetadata() {
+    public Map<String, String> getMetadata() {
         return metadata;
     }
 
Use string value for metadata map in image result for now
