Skip to content

marko-php/marko-docs-fts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/docs-fts

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 search
  • marko docs-fts:build — Build or rebuild the FTS5 index

Documentation

Full configuration and usage: marko/docs-fts

About

[READ-ONLY] FTS5 lexical search driver for Marko documentation. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages