Brazilian Portuguese Metaphone plugin 1.0.0

This is an implementation of the Metaphone algorithm for Brazilian Portuguese inspired by a number of works, chiefly among which is the "Portuguese Metaphone implementation in PHP" by "Prefeitura de Várzea Paulista"

github.com/anaelcarvalho/elasticsearch-analysis-metaphone_ptBR

A new token filter named 'br_metaphone' is made available for use with custom filters and analyzers.

Version 1.0.0 requires Elasticsearch 5.0.0.

Sample configuration:

{
  "settings": {
    "analysis": {
      "analyzer": {
        "myAnalyzer": {
          "tokenizer":  "standard",
          "filter": [
            "br_metaphone"
          ]
        }
      }
    }
  }
}

Feedback is very welcome - thanks!

1 Like