A Laravel Scout driver that adds full-text search to Eloquent models using the TNTSearch engine.
The TNTSearch Driver for Laravel Scout is a PHP package that integrates the TNTSearch full-text search engine with Laravel Scout. It allows developers to add fast, self-hosted search functionality to their Eloquent models without depending on external services. The driver supports features like fuzzy search, boolean queries, and real-time indexing.
Laravel developers building applications that require embedded full-text search capabilities, particularly those who prefer self-hosted solutions over cloud-based services like Algolia.
It provides a lightweight, performant alternative to commercial search services, with deep integration into Laravel's ecosystem, including support for Eloquent constraints, relationships, and Artisan commands for easy management.
Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Seamlessly works with Eloquent models and Scout's Searchable trait, allowing complex constraints and relationships in search queries, as demonstrated in the usage examples with where() and orderBy().
Provides a file-based, lightweight search solution that eliminates external service dependencies, reducing costs and setup complexity with easy configuration via Laravel's config files.
Offers configurable fuzzy search for typo tolerance and optional as-you-type suggestions, enabling real-time search experiences directly within Laravel models.
Includes commands like scout:import and tntsearch:import for efficient indexing, and scout:status for monitoring search indices, streamlining maintenance with visual feedback in the terminal.
Indexes are stored as files, which can become a bottleneck for large datasets, lack built-in support for distributed setups, and require manual management to avoid repository commits (as noted in the .gitignore advice).
Applying complex Eloquent constraints to search queries can impact performance, and the driver requires careful handling where constraints must be added after search initialization, as shown in the controller example.
Lacks built-in support for advanced search capabilities like geospatial queries, faceted search, or extensive multi-language processing, making it less suitable for feature-rich applications compared to engines like Elasticsearch.
TNTSearch driver is an open-source alternative to the following products:
Meilisearch is an open-source, fast, and relevant search engine that's easy to deploy and integrate, offering typo-tolerant full-text search capabilities.
Algolia is a search-as-a-service platform that provides developers with APIs to build fast, relevant search experiences across web and mobile applications.