Skip to content

Commit

Permalink
unbreak ids_only option
Browse files Browse the repository at this point in the history
  • Loading branch information
grantr committed May 27, 2010
1 parent 57346b5 commit 2539782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elasticsearch/client/index.rb
Expand Up @@ -66,7 +66,7 @@ def search(query, options={})
search_options[:from] ||= search_options[:offset] if search_options[:offset]

response = execute(:search, options[:index], options[:type], query, search_options)
Hits.new(response, slice_hash(search_options, :per_page, :page, :ids_only)).freeze #ids_only returns array of ids instead of hits #TODO ids_only should only select _id field
Hits.new(response, slice_hash(options, :per_page, :page, :ids_only)).freeze #ids_only returns array of ids instead of hits #TODO ids_only should only select _id field
end

#df The default field to use when no field prefix is defined within the query.
Expand Down

0 comments on commit 2539782

Please sign in to comment.