@@ -0,0 +1,566 @@
+package rivet.adapt;%0A%0Aimport java.util.Collection;%0Aimport java.util.Iterator;%0A%0Aimport rivet.core.labels.MapRIV;%0A%0Apublic class SOLR %7B%0A    public static MapRIV mapRIVFromCollections(final Collection%3CObject%3E indices,%0A            final Collection%3CObject%3E values, final int size) %7B%0A        final MapRIV res = MapRIV.empty(size);%0A        final Iterator%3CObject%3E is = indices.iterator();%0A        final Iterator%3CObject%3E vs = values.iterator();%0A        while (is.hasNext() && vs.hasNext())%0A            res.put((int) is.next(), (double) vs.next());%0A        return res;%0A    %7D%0A%7D%0A

add static class for SOLR helper functions