I wrote a small Chef library that looks like this:

```
module Test
  module Search
    extend self

    def single_node(type, value)
      result = Chef::Search::Query.new.search(:node, "#{type}:#{value}",
                                              filter_result: {
                                                'name' => ['name']
                                              }).map { |n| n['name'] }.first
      return result
    end

  end
end

```

When running test code against it I get the following error:

```
TypeError
---------
no implicit conversion of String into Integer

         1:  module Test
         2:    module Search
         3:      extend self
         4:      def single_node(type, value)
         5:        result = Chef::Search::Query.new.search(:node, "#{type}:#{value}",
         6:                                                filter_result: {
         7:                                                  'name' => ['name']
         8>>                                               }).map { |n| n['name'] }.first
         9:        return result
        10:      end

        13:  end
        14:

```

After some playing around I found that the search contained this information:

```
[[{"name"=>"influxdb.example.org"}], 0, 1].

```

This seems odd as the search options used return something different when searching from within the Chef DSL.