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]>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]. > 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/CAL6Z4j6PeGqeRPqt-ocuE_%2B-JbtxpqGMSPxrjxdDPmRpKxHh3Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
