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.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html

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] 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string
> [2] 
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html
>
>
> On Mon, Apr 28, 2014 at 5:34 PM, Eric Sims 
> <[email protected]<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 [email protected] <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?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/3d1bafb8-496d-44c4-84b1-70be001efcb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to