#Portuguese Phonetic Plugin for ElasticSearch
A Phonetic plugin for portuguese languaged based on Phonetic Analysis plugin.
To install, clone this repository into your machine and run:
Here an example:
config/elasticsearch.yml configure an filter and an analyser like this:
index : analysis : analyzer : fonetico : type : custom tokenizer : standard filter : [ standard, lowercase, foneticaportuguesa_filter, asciifolding ] filter : foneticaportuguesa_filter: type : foneticaportuguesa replace : false
replaceparameter (defaults to
true) controls if the token processed should be replaced with the encoded one (set it to
true), or added (set it to
For best results never put
Then, you have to map your document to use this analyser.
scripts has some examples using a analyser with the plugin and without the plugin, go there and have some fun.
This plugin was created for elastic search 0.20 but i'm using it without problems with elastic search 1.7.1 on my pet project (http://feedsearch.me). There is only one little bug for this version, the
replace parameter is ignored and is always
Do whathever you want. I dont care.