# Phase 6 Search Logic

1. Search input (`q`) checks both `title` and `content`.
2. Optional `type` filter narrows records by documentation type.
3. Optional `tag` filter matches through `knowledge_article_tag` relation.
4. Results are sorted by latest update and paginated.
5. Published flag is preserved to support future public/private visibility split.

Implementation lives in `KnowledgeBaseService::search()`.
