Merge pull request #7117 from Budibase/fix/lucene-pagination
Insert table ID back into query for follow-up pagination query
This commit is contained in:
commit
d4fe21afaa
|
@ -423,6 +423,7 @@ exports.paginatedSearch = async (query, params) => {
|
||||||
// Try fetching 1 row in the next page to see if another page of results
|
// Try fetching 1 row in the next page to see if another page of results
|
||||||
// exists or not
|
// exists or not
|
||||||
const nextResults = await search
|
const nextResults = await search
|
||||||
|
.setTable(params.tableId)
|
||||||
.setBookmark(searchResults.bookmark)
|
.setBookmark(searchResults.bookmark)
|
||||||
.setLimit(1)
|
.setLimit(1)
|
||||||
.run()
|
.run()
|
||||||
|
|
Loading…
Reference in New Issue