Cannot search for KVs or tags

未关闭
#270 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@duckduckgrayduck 已经在做这个了。

开始于 2025年4月3日。

  • #309 来自 @duckduckgrayduck —— 已关闭,未合并
  • #314 来自 @mitchelljkotler —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

feature request
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[]}>.
  • Filter by project, so I can get a list of available keys for a single project
  • Implicitly limit to documents a user can see
主要语言
Python
星标
55
派生
10
平均合并
1 天 13 小时
30 天内合并 PR
22

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MuckRock/documentcloud 的其他 Issue

查看 MuckRock/documentcloud 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。