mirror of https://github.com/apache/lucene.git
SOLR-14465: Solr query handling code catches FuzzyTermsException
This reverts commit 7ea7ed72ac
.
This commit is contained in:
parent
726894f8c8
commit
03a60231e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue