Back to directory

TreeSearch

A structure-aware document and code retrieval library that searches by keyword over a document's tree structure using SQLite full-text search, without embeddings or chunking.

TreeSearch

TreeSearch retrieves matches from large codebases and structured documents using SQLite FTS5 keyword search over a preserved document tree, rather than splitting text into chunks and comparing vector embeddings. It supports Markdown, plain text, code files parsed with a Python abstract syntax tree or regex for languages such as Java, Go, JavaScript, and C++, HTML, XML, JSON, CSV, PDF, and DOCX, aiming for millisecond-latency search over tens of thousands of documents.

It is available as a Python library and CLI, installed with pip, and as a standalone Rust CLI binary called ts, installable through Homebrew, Cargo, or a prebuilt download for macOS, Linux, and Windows. Both CLIs support prefix and contains-style wildcard queries as well as raw regex or FTS5 expression queries.

It is written in Python and Rust, and released under the Apache-2.0 license.

More in Databases

See all 294
  • SQLBraid

    clickin.github.io

    A SQL-first data-access toolkit for TypeScript that keeps ordinary SQL visible in tagged template literals, binds interpolated values safely by default, supports readable conditional SQL directives, and lets a schema validate the returned rows.

  • A SQL-style query language and toolchain for the Qdrant vector database, covering dense, sparse and hybrid search, filtering and multitenancy, with the same grammar running from a CLI, Python, Node.js, Rust, WebAssembly and an in-process edge engine.

  • Fast Knowledge

    github.com

    A self-hosted, Java-based knowledge base for small and mid-sized organizations, turning internal documents into a searchable, question-answerable and audit-exportable knowledge asset with hybrid retrieval and Docker deployment.