Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
4 stars 5 forks source link

Search: too many results, narrow by keyword #289

Open josh-chamberlain opened 6 months ago

josh-chamberlain commented 6 months ago

Context

Sometimes users will make a search with 100+ results, which is often too many no matter how you group them.

This can serve as a precursor to advanced search; if we capture what people use for keywords...could be useful.

Requirements

API

maxachis commented 2 days ago

@josh-chamberlain Considering our search endpoint now relies on locations, rather than keywords, does this logic still apply?

josh-chamberlain commented 1 day ago

@maxachis this idea doesn't conflict with that—we could still use keywords to narrow down a search. You could still create a search for a state x record category that gives 100 results; what if you just want to narrow down by "force" or "muckrock" or "2023" and search every column in the table...but only for the results on page...to narrow it down?

Might not be worth it, but not dead yet!

maxachis commented 1 day ago

@josh-chamberlain Got it! I will label this as post-v2, then!