marko/docs-fts
Composer 安装命令:
composer require marko/docs-fts
包简介
FTS5 lexical search driver for Marko documentation
README 文档
README
FTS5 lexical documentation search driver for Marko — fast, dependency-free full-text search over Marko docs.
Overview
marko/docs-fts implements DocsSearchInterface using SQLite's built-in FTS5 engine. It indexes the canonical documentation from marko/docs-markdown into a local SQLite database and answers queries with ranked keyword results. No external services, no model downloads — just SQLite. Use this driver when you want fast, lightweight search without semantic ranking.
Installation
composer require marko/docs-fts
Usage
Build the search index (run once, re-run after updating marko/docs-markdown):
marko docs-fts:build
The index is written to .marko/docs-fts.sqlite. Once built, search is available automatically through the DocsSearchInterface binding and via marko/mcp's search_docs tool.
use Marko\Docs\Contract\DocsSearchInterface; $results = $container->get(DocsSearchInterface::class)->search('rate limiting');
API Reference
FtsSearch::search(string $query, int $limit = 20)— BM25-ranked keyword searchmarko docs-fts:build— Build or rebuild the FTS5 index
Documentation
Full configuration and usage: marko/docs-fts
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-03