protected FilteredTermEnum getEnum(IndexReader reader) throws IOException {
return new WildcardTermEnum(reader, field, tvf, pattern, transform);
}
};
try {
multiTermQuery = stdWildcardQuery.rewrite(reader);
return multiTermQuery;
} catch (BooleanQuery.TooManyClauses e) {
// MultiTermQuery not possible
log.debug("Too many terms to enumerate, using custom WildcardQuery.");
return this;