Skip to content

Commit

Permalink
Merge pull request #275 from chef/btm/search10k
Browse files Browse the repository at this point in the history
Reduce the search response limit from 100k to 10k
  • Loading branch information
btm authored May 3, 2017
2 parents f67b1a7 + 62fad3b commit d151d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef-vault/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def search_results(statement = search)
results_returned = false
results = []
query = Chef::Search::Query.new
query.search(:node, statement, filter_result: { name: ["name"] }, rows: 100000) do |node|
query.search(:node, statement, filter_result: { name: ["name"] }, rows: 10000) do |node|
results_returned = true
results << node["name"]
end
Expand Down

0 comments on commit d151d1f

Please sign in to comment.