if (line.hasOption("snippets")) {
// shouldn't this be set based on storageValue?
indexer = new DocumentStoringIndexer(indexer, storage);
ie.setIndexer(indexer);
searcher = new SnippetSearcher(searcher, storage, ie.getParser());
}
if (line.hasOption("didyoumean")) {
if (suggest != SuggestValues.DOCUMENTS) {
throw new IllegalArgumentException("didyoumean requires --suggest documents");