Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Return page numbers on main search results #442

Open
reefdog opened this issue Feb 2, 2017 · 0 comments
Open

Return page numbers on main search results #442

reefdog opened this issue Feb 2, 2017 · 0 comments

Comments

@reefdog
Copy link
Contributor

reefdog commented Feb 2, 2017

Consider WRAL's UNC doc searcher. When you perform a text search, it hits the main /api/search.json, collects all the resulting document IDs, and then ❌ performs an individual search against each resulting document with /documents/search.json. So, in that case, searching for something like "UNC" results in 1 ajax request for the initial search, then 1000 ajax requests to get the page numbers for where the text appears in each document.

This could all be collapsed if /api/search.json would go ahead and return what page numbers text appeared on (like /documents/search.json does) when text was one of the search facets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant