public List<Phrase> matchPhrases(Item queryItem) {
        if (matchSingleItems && (queryItem instanceof TermItem)) {
            return matchSingleItem((TermItem)queryItem);
        }
        else {
            MatchedPhrases phrases=new MatchedPhrases();
            recursivelyMatchPhrases(queryItem,phrases);
            return phrases.toList();
        }
    }
Finds all phrases (word sequences of length 1 or higher)
of the same index, not negative items of a notitem,
which constitutes a complete entry in the automaton of this matcher

@param queryItem the root query item in which to match phrases
@return the matched phrases, or <b>null</b> if there was no matches
container-search/src/main/java/com/yahoo/prelude/querytransform/PhraseMatcher.java