public void addMatch(FlattenedItem item, String replaceString) {
        evaluation.makeParentMutable(item.getItem());
        Match match = new Match(item, replaceString);
        if (currentContext != null) {
            ReferencedMatches matches = getReferencedMatches(currentContext);
            if (matches == null) {
                matches = new ReferencedMatches(currentContext);
                referencedMatchesList.add(matches);
            }
            matches.addMatch(match);
        }
        else {
            nonreferencedMatches.add(match);
        }
    }
Adds a match

@param item the match to add
@param replaceString the string to replace this match by, usually the item.getIndexedValue()
container-search/src/main/java/com/yahoo/prelude/semantics/engine/RuleEvaluation.java