lib/elasticsearch/persistence/model/find.rb in elasticsearch-persistence-5.0.0 vs lib/elasticsearch/persistence/model/find.rb in elasticsearch-persistence-5.0.1
- old
+ new
@@ -117,10 +117,11 @@
body = options
# Get the initial batch of documents and the scroll_id
#
- response = gateway.client.search( { index: gateway.index_name,
+ response = gateway.client.search( {
+ index: gateway.index_name,
type: gateway.document_type,
scroll: scroll,
sort: ['_doc'],
size: 20,
body: body }.merge(search_params) )