private static Map<Integer, Double> getSimilarityResult(double[] docScore) {
        Map<Integer, Double> resultList = new TreeMap<Integer, Double>();
        List<Metadata> metadataList = getMetaDataList();
        Collections.sort(metadataList, new Comparator<Metadata>() {
            @Override
            public int compare(Metadata o1, Metadata o2) {
                return o1.getID() == o2.getID() ? 1 : 0;
            }
        });

        for (int i = 0; i < metadataList.size(); i++) {
            Metadata metadata = (Metadata) metadataList.get(i);
            resultList.put(metadata.getID(), docScore[i]);
        }
        return resultList;
    }