project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

BUG - totalItems is 0 when page number exceeds number of pages #104

Open clarkepeterf opened 2 months ago

clarkepeterf commented 2 months ago

Problem Description: When executing a search against the ds/lux/search.mjs endpoint, if the page number exceeds number of pages for the search, the totalItems returned is 0. However, the totalItems should represent the estimated total number of documents which match the search, regardless of page number.

Expected Behavior/Solution: totalItems returns the estimated number of documents matching the search, even if the page number exceeds the total pages.

Requirements:

Needed for promotion:

- [ ] Wireframe/Mockup - Mike - [ ] Committee discussions - Sarah - [ ] Feasibility/Team discussion - Sarah - [ ] Backend requirements - TBD - [ ] Frontend requirements- TBD - [ ] Questions - List of questions for discussions. Answers should be documented within the issue.

UAT/LUX Examples:

Dependencies/Blocks:

- Blocked By: Issues that are blocking the completion of the current issue. - Blocking: Issues being blocked by the completion of the current issue.

Related Github Issues:

- Issues that contain similar work but are not blocking or being blocked by the current issue.

Related links:

- These links can consist of resources, bugherds, etc.

Wireframe/Mockup: Place wireframe/mockup for the proposed solution at end of ticket.