You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: find_objects_via_solr_service.rb
    path of file: ./repos/hyrax/app/services/hyrax
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
  # @deprecated This class is being replaced by Hyrax::SolrQueryService #get_objects method.
  #
  # Methods in this class search solr to get the ids and then use the query service to find the objects.
  class FindObjectsViaSolrService
    class_attribute :solr_query_builder, :solr_service, :qu
    
      def find_for_model_by_field_pairs(model:, field_pairs:, join_with: ' OR ', type: 'field', use_valkyrie: Hyrax.config.use_valkyrie?)
        Deprecation.warn("'##{__method__}' will be removed in Hyrax 4.0.  " \
                         "Instead, use 'Hyrax::SolrQueryService.new.with_model(...).with_field_pairs(...).get_objects'.")

        solr_query_builder.new
                          .with_model(model: model)
                          .with_field_pairs(field_pairs: field_pairs, join_with: join_with, type: type)
                          .get_objects(use_valkyrie: use_valkyrie).to_a
      end