# TNTSearch

A fully featured full text search engine written in PHP

Repository: https://github.com/teamtnt/tntsearch
Canonical: https://ross.abutalabs.com/products/tntsearch
Homepage: https://tnt.studio/solving-the-search-problem-with-laravel-and-tntsearch
Language: PHP
License: MIT
License Family: permissive
Topics: php, fulltext, search, search-engine, full-text-search, fuzzy-search, geo-search, fuzzy, fuzzy-matching, tntsearch, laravel-scout, hacktoberfest
Last push: 2026-08-20T10:47:30+00:00
Link (homepage): https://tnt.studio/solving-the-search-problem-with-laravel-and-tntsearch

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 73, longevity 100
- inputs: {"age_days": 3841, "days_push": 13, "days_rel": 22, "gap_med": 110.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3196, forks 295 (observed 2026-08-28T04:07:48.361831+00:00)

## What it is
TNTSearch is a full-text search engine written entirely in PHP that builds inverted indexes stored in SQLite, MySQL, or Redis. It returns ranked document IDs for text queries, supporting fuzzy, boolean, and geo search with BM25/TF-IDF relevance scoring.

## Use cases
- add full-text search to a php website
- replace slow mysql LIKE queries with a proper search index
- add search to a laravel app without running elasticsearch
- implement fuzzy search-as-you-type suggestions
- index and search a few hundred thousand records quickly
- add geo-distance aware search to a php project

## When to choose
- you need search in a PHP project without deploying external services like Elasticsearch
- your dataset is small to medium and a single-server index suffices
- you want a Laravel Scout driver with minimal configuration

## When to avoid
- you need distributed, horizontally scalable search across many nodes
- you need advanced features like aggregations, faceting, or real-time multi-tenant indexing
- your stack is not PHP

## Facets
- artifact type: library
- maturity: active
- function: search-engine, nlp
- domain: web-development, developer-tools
- platform: php, self-hosted
- tags: full-text-search, fuzzy-search, laravel-scout, sqlite, bm25, geo-search, stemming, search

## Member repositories
- teamtnt/tntsearch (main) score 90
- teamtnt/laravel-scout-tntsearch-driver (plugin) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:48.361831+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:44:59.502487+00:00, confidence not recorded.
  - readme: https://github.com/teamtnt/tntsearch (fetched 2026-08-28T04:07:48.361831+00:00, sha 5837bfb7ae5a)
  - homepage: https://tnt.studio/solving-the-search-problem-with-laravel-and-tntsearch (fetched 2026-08-29T09:38:33.051317+00:00, sha 5289196da398)
- Data as of 2026-08-30T08:39:29.467469+00:00.
