text: public void setTokenStream(TokenStream tokenStream) {if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException("TokenStream fields must be indexed and tokenized");}this.tokenStream = tokenStream;}