private CompositeItem populate(CompositeItem parent, String fieldName, Map<Object,Integer> tokens) {
        for (Map.Entry<Object,Integer> entry : tokens.entrySet()) {
            WordItem wordItem = new WordItem(entry.getKey().toString(), fieldName);
            wordItem.setWeight(entry.getValue());
            wordItem.setStemmed(true);
            wordItem.setNormalizable(false);
            parent.addItem(wordItem);
        }
        return parent;
    }
Class to resolve the inputs used by this searcher.
container-search/src/main/java/com/yahoo/search/querytransform/WandSearcher.java