Visitar URL original
Return page numbers on main search results · Issue #442 · documentcloud/documentcloud · GitHub
Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Return page numbers on main search results #442

Open

Description

@reefdog

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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions