diff --git a/es.js b/es.js index b895988..718eab7 100644 --- a/es.js +++ b/es.js @@ -243,10 +243,10 @@ function elasticSearchQuery(params) { } // paging (number of results, and start cursor) - if (options.from) { + if (options.from !== undefined) { qs["from"] = options.from } - if (options.page_size) { + if (options.page_size !== undefined) { qs["size"] = options.page_size } diff --git a/jquery.reportview.js b/jquery.reportview.js index 547a78c..6674942 100644 --- a/jquery.reportview.js +++ b/jquery.reportview.js @@ -100,7 +100,11 @@ function theReportview(options) { */ // the reportview object to be appended to the page - var thereportview = '
'; + var thereportview = '