private Item sameElement(String indexName) {
        var same = new SameElementItem(indexName);
        while (tokens.hasNext() && ! tokens.currentIs(RCURLYBRACKET)) {
            Pair<Item, Boolean> item = null;
            if (tokens.currentIs(WORD)) {
                item = indexableItem(indexName + ".");
            }
            if (item != null && item.getSecond()) // Only if the field has an explicit index
                same.addItem(item.getFirst());
            else
                tokens.skip();
        }
        if (same.getItemCount() == 0)
            return null;
        return same;
    }
A phrase or word, either marked by quotes or by non-spaces between
words or by a combination.

@param indexName the index name which preceeded this phrase, or null if none
@return a word if there's only one word, a phrase if there is
        several quoted or non-space-separated words, or null otherwise
container-search/src/main/java/com/yahoo/prelude/query/parser/StructuredParser.java