lib/elastic_search/query_builder.rb in elasticsearch-query-builder-0.6 vs lib/elastic_search/query_builder.rb in elasticsearch-query-builder-0.6.1
- old
+ new
@@ -51,10 +51,10 @@
end
def multisearch_results
raise 'client: should be set in order to fetch multisearch_results' unless client
- client&.msearch(mopts)&.results
+ client&.msearch(body: mopts)&.dig('responses')
end
def add_to_multisearch(index: {})
mopts << index
mopts << opts