Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot search for KVs or tags #270

Open
allanlasser opened this issue Jan 16, 2025 · 0 comments
Open

Cannot search for KVs or tags #270

allanlasser opened this issue Jan 16, 2025 · 0 comments
Labels
feature request New feature or request shaping

Comments

@allanlasser
Copy link
Member

Challenge

Right now, there's no way to provide users with an index of tags/keys/values they've used (or explore tags across DocumentCloud independent of documents). If we want to provide tags as a search facet, we'll need a way to search against them.

Proposed solution

One way to implement this would be to add an endpoint that supports searching against keys and their values.

  • We could then use that endpoint from the frontend to present a tag search UI that searches KVs with key=_tag&value={x}; would expect the results to conform to the type Array<{key: "_tag"; value: string[]}>.
  • We could allow users to search KVs with key={x}; would expect the results to conform to the type Array<{key: string; value: string[]}>.
  • We could allow users to find a specific KV pair by value, like key={x}&value={y}; would expect the results to conform to the type Array<{key: string; value: string[]}>.
@allanlasser allanlasser added the feature request New feature or request label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request shaping
Projects
None yet
Development

No branches or pull requests

2 participants