SOLR-14465: Solr query handling code catches FuzzyTermsException

This reverts commit 7ea7ed72ac.
This commit is contained in:
Mike Drob 2020-05-07 17:47:03 -05:00
parent 726894f8c8
commit 03a60231e8
1 changed files with 7 additions and 2 deletions

View File

@ -215,7 +215,7 @@ public class QueryComponent extends SearchComponent
rb.setFilters( filters );
}
}
} catch (SyntaxError | FuzzyTermsEnum.FuzzyTermsException e) {
} catch (SyntaxError e) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
}
@ -1486,7 +1486,12 @@ public class QueryComponent extends SearchComponent
SolrQueryResponse rsp = rb.rsp;
SolrIndexSearcher searcher = req.getSearcher();
searcher.search(result, cmd);
try {
searcher.search(result, cmd);
} catch (FuzzyTermsEnum.FuzzyTermsException e) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
}
rb.setResult(result);
ResultContext ctx = new BasicResultContext(rb);