nex_docus/docs/sdd/specs/DV-0005-fulltext-search/spec.md

26 lines
704 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# DV-0005全文检索 规格Spec
- **状态**Implemented
- **关联 ADR**ADR-0004
## 目标
基于本地 Whoosh 索引对文档内容/标题做中文关键词检索。
## 范围
- **In**:文档索引维护、关键词检索、重建索引。
- **Out**:语义向量检索(归 DV-0006
## 用户故事
> 作为用户,我希望按关键词搜到项目文档,以便快速定位。
## 功能需求FR
| ID | 需求 | 验收要点 |
| --- | --- | --- |
| FR-9 | Whoosh 中文检索 + 变更同步 + 重建 | 命中标题/内容jieba 中文分词 |
## 非功能需求NFR
| ID | 需求 |
| --- | --- |
| NFR-11 | 文档变更时同步索引ADR-0006 |