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: handle_faceting.rb
    path of file: ./repos/archivesspace/public/app/controllers/concerns
    
    the code of the file until where you have to start completion: module HandleFaceting
  extend ActiveSupport::Concern

  # does the fetches when you only want facet information

  def fetch_only_facets(query, facets_array, include_zero)
#    Rails.logger.debug("Finding facets for query '#{query}'")
    criteria = {}
    criteria[:page_size] = 1
    criteria['facet[]'] = facets_array
    crit
    
  def get_pretty_facet_value(k, v)
    pv = strip_mixed_content(v)
    if k == 'primary_type'
      pv = I18n.t("#{v}._singular")
    elsif k == 'langcode'
      # Lookup three-letter language codes
      pv = I18n.t("enumerations.language_iso639_2.#{v}", :default => v)
    elsif k == 'type_enum_s'
      # Lookup container type
      pv = I18n.t("enumerations.container_type.#{v}", :default => v)
    elsif %w(repository used_within_published_repository).include?(k)
      repos = Repository.get_repos
      if repos[v].nil?
        pv = v
      else
        pv = repos[v]['name'] || v
      end