Download the PHP package vladan-me/fingerprint-elasticsearch without Composer
On this page you can find all versions of the php package vladan-me/fingerprint-elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladan-me/fingerprint-elasticsearch
More information about vladan-me/fingerprint-elasticsearch
Files in vladan-me/fingerprint-elasticsearch
Package fingerprint-elasticsearch
Short Description Specifies advanced fingerprint analyzer for Elasticsearch index
License MIT
Informations about the package fingerprint-elasticsearch
Fingerprint Elasticsearch
This is a package that prepares Elasticsearch analyzers, filters and tokenizers to work with custom implementation of fingerprint algorithm. It is basically an improved version of fingerprint - official Elasticsearch documentation The difference is that custom analyzer that is created includes synonyms filter making the final combination something like this:
- lowercase
- asciifolding
- fp_X_syn (synonyms for specific type X)
- fp_X_rem (removals for specific type X)
- fingerprint
Available types are City, Company, Street and Title. That means, whenever you need to store cities, companies, street addresses or titles you likely need this analyzer that will help you sort them out. Otherwise, you'll end up with messy data.
Use cases
- Having complete Elasticsearch fingerprint analyzer
- Combined with fingerprint makes creation and testing fingerprint easier.
Documentation
City analyzer/filter/property can be get like this:
That creates analyzer with specific filters:
It is using same synonyms and removals from depending project.
And specific city property:
Please look at tests for more examples.
System Requirements
You need PHP >= 5.4.0. Even though there's no Elasticsearch dependency, fingerprint token filter is available from Elasticsearch version 5.0 Depending on fingerprint for synonyms/removals.
Install
Install fingerprint-elasticsearch
using Composer.
Additional Notes
This package contains additional analyzers (punctuation removal, 2gram and 3gram with punctuation) that might be useful depending on use case, but likely should be optional.
Contributing
Contributions are welcome and will be fully credited. Please see CONDUCT for details.
License
The MIT License (MIT). Please see LICENSE for more information.