-
Notifications
You must be signed in to change notification settings - Fork 8
Cannot search for KVs or tags #270
Copy link
Copy link
Open
Labels
feature requestNew feature or requestNew feature or request
Milestone
Description
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 typeArray<{key: "_tag"; value: string[]}>. - We could allow users to search KVs with
key={x}; would expect the results to conform to the typeArray<{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 typeArray<{key: string; value: string[]}>. - Filter by project, so I can get a list of available keys for a single project
- Implicitly limit to documents a user can see
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request