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: admin_search_query_wrapper.rb
    path of file: ./repos/workarea/core/app/queries/workarea
    
    the code of the file until where you have to start completion: # Query class for models to match the API of {Search::Query}.
# Used in exporting models that aren't put into Elasticsearch.
#
module Workarea
  class AdminSearchQueryWrapper
    include Search::Pagination
    include GlobalID::Identification

    attr_reader :params

    def self.find(id)
      new(JSON.parse(id))
    end

    def initial
    
    def scroll(options = {}, &block) # to match Search::Query method arguments
      # Without this call to clear cache, the mongo driver raises:
      #  NotImplementedError: Cannot restart iteration of a cursor which issued a getMore
      #
      # I think this is a bug in how the QueryCache works.
      Mongoid::QueryCache.clear_cache

      criteria = results
      criteria.total_pages.times do |page|
        yield criteria.page(page + 1).per(per_page).to_a
      end
    end