private void writeContrastString(Map<Cols, String> data, Cols col, TokenIntPair[] tokenIntPairs) {

        int i = 0;
        StringBuilder sb = new StringBuilder();
        for (TokenIntPair p : tokenIntPairs) {
            if (i++ > 0) {
                sb.append(" | ");
            }
            sb
                    .append(p.getToken())
                    .append(": ")
                    .append(p.getValue());
        }
        data.put(col, sb.toString());
    }
Try to find the matching metadata based on the AbstractRecursiveParserWrapperHandler.EMBEDDED_RESOURCE_PATH
If you can't find it, return -1;

@param aIndex        index for match in metadataListA
@param metadataListA
@param metadataListB
@return
tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/ExtractComparer.java