mirror of
https://github.com/apache/lucene.git
synced 2025-02-08 02:58:58 +00:00
LUCENE-9068: Solr query handling code catches FuzzyTermsException
This commit is contained in:
parent
543505470c
commit
7ea7ed72ac
@ -215,7 +215,7 @@ public class QueryComponent extends SearchComponent
|
||||
rb.setFilters( filters );
|
||||
}
|
||||
}
|
||||
} catch (SyntaxError e) {
|
||||
} catch (SyntaxError | FuzzyTermsEnum.FuzzyTermsException e) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
|
||||
}
|
||||
|
||||
@ -1484,12 +1484,7 @@ public class QueryComponent extends SearchComponent
|
||||
SolrQueryResponse rsp = rb.rsp;
|
||||
|
||||
SolrIndexSearcher searcher = req.getSearcher();
|
||||
|
||||
try {
|
||||
searcher.search(result, cmd);
|
||||
} catch (FuzzyTermsEnum.FuzzyTermsException e) {
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
|
||||
}
|
||||
searcher.search(result, cmd);
|
||||
rb.setResult(result);
|
||||
|
||||
ResultContext ctx = new BasicResultContext(rb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user