# Configuring Phonetic Matching?

**URL:** <https://discuss.elastic.co/t/configuring-phonetic-matching/179640>\
**Category:** Elasticsearch\
**Created:** [May 4, 2019, 9:43pm UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640 "2019-05-04T21:43:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apremgeorge](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@apremgeorge](https://discuss.elastic.co/u/apremgeorge)\
**Post date:** [May 4, 2019, 9:43pm UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640/1 "2019-05-04T21:43:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 6, 2019, 8:16am UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640/2 "2019-05-06T08:16:35Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/plugins/7.0/analysis-phonetic.html)

---

<div class="post-metadata">

**Author:** ![apremgeorge](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@apremgeorge](https://discuss.elastic.co/u/apremgeorge)\
**Post date:** [May 7, 2019, 1:07am UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640/3 "2019-05-07T01:07:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 7, 2019, 9:34am UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640/4 "2019-05-07T09:34:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 4, 2019, 9:34am UTC](https://discuss.elastic.co/t/configuring-phonetic-matching/179640/5 "2019-06-04T09:34:21Z")

</div>

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