magibney commented on code in PR #1488: URL: https://github.com/apache/solr/pull/1488#discussion_r1151969626
########## solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java: ########## @@ -197,9 +197,17 @@ private static DirectoryReader getReader( private static DirectoryReader wrapReader(SolrCore core, DirectoryReader reader) throws IOException { assert reader != null; - return ExitableDirectoryReader.wrap( - UninvertingReader.wrap(reader, core.getLatestSchema().getUninversionMapper()), - SolrQueryTimeoutImpl.getInstance()); + switch (IndexSchema.getUninvertibleSupport()) { + case DEFAULT_FALSE: + case DEFAULT_TRUE: + reader = UninvertingReader.wrap(reader, core.getLatestSchema().getUninversionMapper()); Review Comment: 👍 I'll look into this. Maybe worth doing if there's an easy way to track this, but if not I'm not sure it'd be worth the effort (the cost of wrapping presumably being relatively low -- I just did it here because it was easy 🙂). -- 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