Eric_Sims
(Eric Sims)
April 28, 2014, 3:34pm
1
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 .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c4b78cef-e10c-4f0b-9b5f-07c7cc8d03f8%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
jpountz
(Adrien Grand)
May 1, 2014, 8:47pm
2
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]
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]
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 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 .
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 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 .
For more options, visit https://groups.google.com/d/optout .
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.
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
[2]
Elasticsearch Platform — Find real-time answers at scale | Elastic
On Mon, Apr 28, 2014 at 5:34 PM, Eric Sims <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 <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 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 .
For more options, visit https://groups.google.com/d/optout .
Hi @Eric_Sims ,
Can u please let me know how to install phonetic analyser plugin.
Thanks,
@vaniaravinda