public void replace() {
                PhraseItem phrase=new PhraseItem();
                TermItem firstWord=(TermItem)owner.setItem(startIndex,phrase);
                replace(firstWord,0);
                phrase.setIndexName(firstWord.getIndexName());
                phrase.addItem(firstWord);
                for (int i=1; i<length; i++) {
                    TermItem followingWord=(TermItem)owner.removeItem(startIndex+1);
                    replace(followingWord,i);
                    phrase.addItem(followingWord);
                }
            }
The word to replace by at the given index, or null if none of the phrase words should be replaced
This is either null, or of length <code>length</code>, with null values where nothing should be replaced
container-search/src/main/java/com/yahoo/prelude/querytransform/PhraseMatcher.java