Repolode
teamtnt

teamtnt/laravel-scout-tntsearch-driver

A Laravel Scout driver that adds full-text search to Eloquent models using the TNTSearch PHP engine, with no external search server.

Stars
1,135
Forks
142
Open issues
1
Last commit
3 months ago

What is it?

This package plugs TNTSearch into Laravel Scout, so models that use the Searchable trait can be indexed and queried through Scout's standard API. Indexes are stored as local SQLite files, so no separate search server such as Elasticsearch or Meilisearch needs to run.

Search behavior is configurable per application or per model. Options include typo-tolerant fuzzy matching with adjustable edit distance, a prefix-based mode for as-you-type input, and boolean query parsing with AND, OR, NOT and grouping. Stopwords, a maximum document count per term, and a custom model path are also supported.

The package supports Laravel 5.3 through 13 and includes Artisan commands for importing records and checking index status.

Key features

  • 01Adds full-text search to Eloquent models through Laravel Scout.
  • 02Stores indexes as local SQLite files without a separate search server.
  • 03Offers typo-tolerant fuzzy matching with configurable edit distance.
  • 04Supports boolean queries with AND, OR, NOT and parentheses.
  • 05Provides an as-you-type prefix matching mode.
  • 06Includes Artisan commands for importing records and checking index status.

Use cases

  • Adding search to a small or medium Laravel app without running Elasticsearch or Meilisearch.
  • Enabling typo-tolerant product or article search in a Laravel site.
  • Building live search boxes that match partially typed words.
  • Keeping search indexes on a local volume for a self-contained deployment.

In collections

Topics

FAQ

What is laravel-scout-tntsearch-driver?
A Laravel Scout driver that adds full-text search to Eloquent models using the TNTSearch PHP engine, with no external search server. This package plugs TNTSearch into Laravel Scout, so models that use the Searchable trait can be indexed and queried through Scout's standard API. Indexes are stored as local SQLite files, so no separate search server such as Elasticsearch or Meilisearch needs to run.
Is laravel-scout-tntsearch-driver free to use? What license does it have?
laravel-scout-tntsearch-driver is open source under the MIT license. Check the license terms before using it in commercial products.
Is laravel-scout-tntsearch-driver still maintained?
Updated within 6 months. The last commit to laravel-scout-tntsearch-driver was on Aug 18, 2026.
What can I use laravel-scout-tntsearch-driver for?
Adding search to a small or medium Laravel app without running Elasticsearch or Meilisearch. Enabling typo-tolerant product or article search in a Laravel site. Building live search boxes that match partially typed words. Keeping search indexes on a local volume for a self-contained deployment.
Where can I get laravel-scout-tntsearch-driver?
The source code and installation instructions are on GitHub: https://github.com/teamtnt/laravel-scout-tntsearch-driver

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects