lib/inquisitio/searcher.rb in inquisitio-1.2.0 vs lib/inquisitio/searcher.rb in inquisitio-1.2.1
- old
+ new
@@ -150,13 +150,12 @@
end
SearchUrlBuilder.build(
query: params[:criteria],
filters: params[:filters],
- arguments: params[:with].merge({
- size: params[:per],
- start: params[:per] * params[:page]
- }),
+ arguments: params[:with],
+ size: params[:per],
+ start: params[:per] * (params[:page] - 1),
return_fields: return_fields
)
end
end