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

module Gitlab
  module Search
    class ParsedQuery
      include Gitlab::Utils::StrongMemoize

      attr_reader :term, :filters

      def initialize(term, filters)
        @term = term

    
      def filter_results(results)
        with_matcher = ->(filter) { filter[:matcher].present? }

        excluding = excluding_filters.select(&with_matcher)
        including = including_filters.select(&with_matcher)

        return unless excluding.any? || including.any?

        results.select! do |result|
          including.all? { |filter| filter[:matcher].call(filter, result) }
        end

        results.reject! do |result|
          excluding.any? { |filter| filter[:matcher].call(filter, result) }
        end

        results
      end