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: search.rb
    path of file: ./repos/motor-admin-rails/lib/motor/api_query
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Motor
  module ApiQuery
    module Search
      STRING_COLU
    
      def build_arel_filters(model, column_names, keyword)
        arel_table = model.arel_table

        column_names.map do |name|
          column_type = model.columns_hash[name]&.type

          next unless column_type

          if STRING_COLUMN_TYPES.include?(column_type)
            arel_table[name].matches("%#{keyword}%")
          elsif NUMBER_COLUMN_TYPES.include?(column_type)
            arel_table[name].eq(keyword.to_f) if keyword.match?(/\A\d/)
          else
            arel_table[name].eq(keyword)
          end
        end.compact
      end