This file is indexed.

/usr/lib/ruby/vendor_ruby/chef_zero/solr/query/phrase.rb is in chef-zero 5.1.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "chef_zero/solr/query/regexpable_query"

module ChefZero
  module Solr
    module Query
      class Phrase < RegexpableQuery
        def initialize(terms)
          # Phrase is terms separated by whitespace
          if terms.size == 0 && terms[0].literal_string
            literal_string = terms[0].literal_string
          else
            literal_string = nil
          end
          super(terms.map { |term| term.regexp_string }.join("#{NON_WORD_CHARACTER}+"), literal_string)
        end

        def to_s
          "Phrase(\"#{@regexp_string}\")"
        end
      end
    end
  end
end