Caa52 commented on a change in pull request #529: URL: https://github.com/apache/solr/pull/529#discussion_r789811761
########## File path: solr/core/src/java/org/apache/solr/search/FunctionRangeQuery.java ########## @@ -42,7 +43,12 @@ public FunctionRangeQuery(ValueSourceRangeFilter filter) { @Override public DelegatingCollector getFilterCollector(IndexSearcher searcher) { Map<Object,Object> fcontext = ValueSource.newContext(searcher); - Weight weight = rangeFilt.createWeight(searcher, ScoreMode.COMPLETE, 1); + Weight weight = null; + try { + weight = rangeFilt.createWeight(searcher, ScoreMode.COMPLETE, 1); + } catch (IOException e) { + throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e); + } Review comment: Thanks for catching this, fixed! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org