Download the PHP package jaafarazizi/aseclassification without Composer
On this page you can find all versions of the php package jaafarazizi/aseclassification. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaafarazizi/aseclassification
More information about jaafarazizi/aseclassification
Files in jaafarazizi/aseclassification
Package aseclassification
Short Description A fully featured full text search engine written in PHP
License MIT
Homepage https://github.com/teamtnt/tntsearch
Informations about the package aseclassification
TNTSearch
TNTSearch is a fully featured full text search engine written entirely in PHP. It's simple configuration allows you to add an amazing search experience to your site in just minutes. It has also a build in geo-search and a text classifier. Other features are
- fuzzy search
- as you type functionality
- geo-search
- text-classification
- stemming
- custom tokenizers
- bm25 ranking algorithm
- boolean search
- result highlighting
We created also some demo pages that show tolerant retrieval with n-grams in action. The package has bunch of helper functions like jaro-winkler and cosine similarity for distance calculations. It supports stemming for English, Croatian, Arabic, Italian, Russian, Portuguese and Ukrainian. If the built in stemmers aren't enough, the engine lets you easily plugin any compatible snowball stemmer. Some forks of the package even support Chinese.
Unlike many other engines, the index can be easily updated without doing a reindex or using deltas.
View online demo | Follow us on Twitter, or Facebook | Visit our sponsors:
Demo
Tutorials
- Solving the search problem with Laravel and TNTSearch
- Searching for Bobby Fisher with Laravel 5
- Did you mean functionality with Laravel Scout
Support us on Open Collective
Installation
The easiest way to install TNTSearch is via composer:
Requirements
Before you proceed make sure your server meets the following requirements:
- PHP >= 7.1
- PDO PHP Extension
- SQLite PHP Extension
- mbstring PHP Extension
Examples
Creating an index
In order to be able to make full text search queries you have to create an index.
Usage:
Important: "storage" settings marks the folder where all of your indexes will be saved so make sure to have permission to write to this folder otherwise you might expect the following exception thrown:
- [PDOException] SQLSTATE[HY000] [14] unable to open database file *
Note: If your primary key is different than id
set it like:
Making the primary key searchable
By default the primary key is not searchable, if you wanna make it searchable simply run:
Searching
Searching for a phrase or keyword is trivial
The ORDER BY FIELD clause is important otherwise the database engine will not return the results in required order
Boolean Search
Fuzzy Search
The fuzziness can be tweaked by setting the following member variables:
Updating the index
Once you created an index you don't need to reindex it each time you make some changes to your document collection. TNTSearch supports dynamic index updates.
Custom Tokenizer
First, create your own Tokenizer class that implements TokenizerInterface:
The only difference here from the original is that the regex contains a dash [^\p{L}\p{N}-]
After you have the tokenizer ready, your TNTIndexer
and TNTSearch
class should consume it.
And in the TNTSearch
class you do the same
Geo Search
Indexing
Searching
Classification
Saving the classifier
Loading the classifier
Drivers
PS4Ware
You're free to use this package, but if it makes it to your production environment we would highly appreciate you sending us a PS4 game of your choise. This way you support us to further develop and add new features to this package.
Our address is: TNT Studio, Sv. Mateja 19, 10010 Zagreb, Croatia.
We'll publish all received games on our company website.
Support
Backers
Support us with a monthly donation and help us continue our activities. [Become a backer]
Sponsors
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Credits
- Nenad Tičarić
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
From Croatia with ♥ by TNT Studio (@tntstudiohr, blog)
All versions of aseclassification with dependencies
ext-pdo_sqlite Version *
ext-sqlite3 Version *
ext-mbstring Version *