Fix SOLR_MAX_DOIS issue, and address incorrect use of the ActiveSupport::Instrumenter.