You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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[]}>.
The text was updated successfully, but these errors were encountered:
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.
key=_tag&value={x}
; would expect the results to conform to the typeArray<{key: "_tag"; value: string[]}>
.key={x}
; would expect the results to conform to the typeArray<{key: string; value: string[]}>
.key={x}&value={y}
; would expect the results to conform to the typeArray<{key: string; value: string[]}>
.The text was updated successfully, but these errors were encountered: