Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

Make a document search results listing #1

Open
pudo opened this issue Apr 18, 2017 · 1 comment
Open

Make a document search results listing #1

pudo opened this issue Apr 18, 2017 · 1 comment

Comments

@pudo
Copy link
Contributor

pudo commented Apr 18, 2017

A simple react route that allows the user to input a search query, submit it and have a list of documents shown to them in response. Each document should be listed using it's title, source collection and other metadata such as update date and language. Within each document hit, a set of preview snippets for individual pages are to be shown.

  • Use the /api/2/search API endpoint. It accepts q= as a primary search query, and limit/offset for pagination.

  • Input form with search button (should also just search on form submit)

  • Pagination for result pages (or infinte scrolling)

  • Facet by schema and show them as tabs on top of the result list

  • Source selector? Maybe as an overlay or drop-down.

  • Clicking on a result should bring up a sidebar with document metadata or entity data, i.e. render Display entities and documents details #6 into a smaller form.

The current implementation of this (which also supports facets, sorting and alerts) is here:

https://data.occrp.org/documents?q=demo

@pudo
Copy link
Contributor Author

pudo commented Sep 14, 2017

@wpf500 Metadata details:

  • Entities: jurisdiction, birthDate, incorporationDate, registrationNumber, address
  • Documents: sourceUrl (as hostname), languages, summary (first n characters of..)

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

No branches or pull requests

2 participants