/usr/lib/ruby/vendor_ruby/chef_zero/solr/query/subquery.rb is in chef-zero 4.5.0-2.
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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | module ChefZero
module Solr
module Query
class Subquery
def initialize(subquery)
@subquery = subquery
end
attr_reader :subquery
def to_s
"(#{subquery})"
end
def literal_string
subquery.literal_string
end
def regexp
subquery.regexp
end
def regexp_string
subquery.regexp_string
end
def matches_doc?(doc)
subquery.matches_doc?(doc)
end
def matches_values?(values)
subquery.matches_values?(values)
end
end
end
end
end
|