public void setWord(String word) {
        Validator.ensureNotNull("The word of a word item", word);
        Validator.ensureNonEmpty("The word of a word item", word);
        this.word = word;
    }
The word as it should be searched, never null
container-search/src/main/java/com/yahoo/prelude/query/WordItem.java