Configuring Phonetic Matching?

I have the below logstash config file(windows) to index a csv, i have the address field and i want to use the phonetic matching in address field, may i know how to configure phonetic analyzer and define phonetic field via the config file

input {
file {
path => "C:/graph_demo_data_3.csv"
start_position => "beginning"
sincedb_path => "NUL"
}
}

filter {
csv {
separator => ","
skip_header => true
columns => [Mobile_Phone,Address,Company_Postcode,Company_Phone,Age_Of_Applicant,AppKey]
}
mutate { convert => ["Amount_Limit","float"] }

}
output {
elasticsearch {
hosts => "localhost:9200"
index => "graph_demo_3"
document_type => "graph_demo_doc_3"
}
stdout {}
}

Thanks

You do not need to configure this in logstash, but rather in Elasticsearch and its mapping.

You also need to install the plugin first in Elasticsearch, see https://www.elastic.co/guide/en/elasticsearch/plugins/7.0/analysis-phonetic.html

I have installed the plugin, indexed the csv, may i know how to change the Address Field as Phonetic field

The documentation contains exact examples how to configure the phonetic token filter. please take your time re-read the docs and ask more specific questions, if you hit another road block.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.