# Trouble with plugins - phonetic, etc

**URL:** <https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238>\
**Category:** Elasticsearch\
**Created:** [April 28, 2014, 3:34pm UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238 "2014-04-28T15:34:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Sims](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@Eric\_Sims](https://discuss.elastic.co/u/Eric_Sims)\
**Post date:** [April 28, 2014, 3:34pm UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238/1 "2014-04-28T15:34:29Z")

</div>

sorry for a noob question. i'm trying to understand phonetic searches - how  
to install and use them.

perhaps phonetics isn't the right way for my instance.

i'm trying to return music artist results for 'lil wayne', but account for  
the user to type 'little wayne'.

i've created and populated an index called /music/artist

so i've installed the phonetic plugin and config is like so:

- (i created another index (since it won't allow me to put it into  
/music/artist))

PUT /music\_admin  
{  
"settings" : {  
"analysis" : {  
"analyzer" : {  
"my\_analyzer" : {  
"tokenizer" : "standard",  
"filter" : ["standard", "lowercase", "my\_metaphone"]  
}  
},  
"filter" : {  
"my\_metaphone" : {  
"type" : "phonetic",  
"encoder" : "metaphone",  
"replace" : false  
}  
}  
}  
}  
}

this feels wrong. i know. i'm confused at this point as to how to use the  
search. i have a field called 'artist' that i would be searching in.

please help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 1, 2014, 8:47pm UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238/2 "2014-05-01T20:47:34Z")

</div>

This looks good. Now you just need to create a string field with `analyzer: my_analyzer`[1]. Elasticsearch will then transparently search based on  
phonetic similarity when querying the `artist` field.

However, I would recommend on playing with the analyze[2] API. I'm not sure  
that `lil` and `little` would be analyzed to the same token with metaphone.

[1]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

[2]

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Mon, Apr 28, 2014 at 5:34 PM, Eric Sims [eric.sims.aent.com@gmail.com](mailto:eric.sims.aent.com@gmail.com)wrote:

> sorry for a noob question. i'm trying to understand phonetic searches -  
> how to install and use them.
> 
> perhaps phonetics isn't the right way for my instance.
> 
> i'm trying to return music artist results for 'lil wayne', but account for  
> the user to type 'little wayne'.
> 
> i've created and populated an index called /music/artist
> 
> so i've installed the phonetic plugin and config is like so:
> 
> - (i created another index (since it won't allow me to put it into  
> /music/artist))
> 
> PUT /music\_admin  
> {  
> "settings" : {  
> "analysis" : {  
> "analyzer" : {  
> "my\_analyzer" : {  
> "tokenizer" : "standard",  
> "filter" : ["standard", "lowercase", "my\_metaphone"]  
> }  
> },  
> "filter" : {  
> "my\_metaphone" : {  
> "type" : "phonetic",  
> "encoder" : "metaphone",  
> "replace" : false  
> }  
> }  
> }  
> }  
> }
> 
> this feels wrong. i know. i'm confused at this point as to how to use the  
> search. i have a field called 'artist' that i would be searching in.
> 
> please help!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6PeGqeRPqt-ocuE\_%2B-JbtxpqGMSPxrjxdDPmRpKxHh3Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6PeGqeRPqt-ocuE_%2B-JbtxpqGMSPxrjxdDPmRpKxHh3Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Rob\_Ottaway](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rob_ottaway/32/1597_2.png) [@Rob\_Ottaway](https://discuss.elastic.co/u/Rob_Ottaway)\
**Post date:** [May 1, 2014, 10:11pm UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238/3 "2014-05-01T22:11:01Z")

</div>

You would want to compile a list of music industry specific synonyms such  
as little -\> lil

Metaphone is works around how things "sound" not synonyms. For example  
Erika sounds like Erica.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Possible there are already some pretty good lists around. You will probably  
end up with a cycle of index, test/qa, update synonyms, index, test/qa. Can  
take a bit but your application is very domain specific.

cheers,  
Rob

On Thursday, May 1, 2014 1:47:34 PM UTC-7, Adrien Grand wrote:

> This looks good. Now you just need to create a string field with  
> `analyzer: my_analyzer`[1]. Elasticsearch will then transparently search  
> based on phonetic similarity when querying the `artist` field.
> 
> However, I would recommend on playing with the analyze[2] API. I'm not  
> sure that `lil` and `little` would be analyzed to the same token with  
> metaphone.
> 
> [1]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string)  
> [2]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html)
> 
> On Mon, Apr 28, 2014 at 5:34 PM, Eric Sims \<[eric.sims...@gmail.com](mailto:eric.sims...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > sorry for a noob question. i'm trying to understand phonetic searches -  
> > how to install and use them.
> > 
> > perhaps phonetics isn't the right way for my instance.
> > 
> > i'm trying to return music artist results for 'lil wayne', but account  
> > for the user to type 'little wayne'.
> > 
> > i've created and populated an index called /music/artist
> > 
> > so i've installed the phonetic plugin and config is like so:
> > 
> > - (i created another index (since it won't allow me to put it into  
> > /music/artist))
> > 
> > PUT /music\_admin  
> > {  
> > "settings" : {  
> > "analysis" : {  
> > "analyzer" : {  
> > "my\_analyzer" : {  
> > "tokenizer" : "standard",  
> > "filter" : ["standard", "lowercase", "my\_metaphone"]  
> > }  
> > },  
> > "filter" : {  
> > "my\_metaphone" : {  
> > "type" : "phonetic",  
> > "encoder" : "metaphone",  
> > "replace" : false  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > this feels wrong. i know. i'm confused at this point as to how to use the  
> > search. i have a field called 'artist' that i would be searching in.
> > 
> > please help!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3d1bafb8-496d-44c4-84b1-70be001efcb6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3d1bafb8-496d-44c4-84b1-70be001efcb6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vaniaravinda](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vaniaravinda](https://discuss.elastic.co/u/vaniaravinda)\
**Post date:** [April 3, 2016, 8:33am UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238/4 "2016-04-03T08:33:59Z")

</div>

Hi @Eric_Sims,

Can u please let me know how to install phonetic analyser plugin.

Thanks,  
@vaniaravinda

---

<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:** [July 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/trouble-with-plugins-phonetic-etc/17238/5 "2017-07-05T23:02:55Z")

</div>


