Hi all,
Can Anybody tell me how me can search like that suppose we have two document like:-
1: {"doc":"sumit"}
2: {"doc":"sumeet"}
And when we search for {"term":"sumit"} we get both the document....is it possible in ES?
Thanx
Regards,
Sumit Gupta
dadoonet
(David Pilato)
September 6, 2012, 7:16am
2
Hi Sumit,
I think you should use edge ngrams:
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.
http://www.elasticsearch.org/guide/reference/index-modules/analysis/edgengram-tokenfilter.html
And/Or synonyms:
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.
http://www.elasticsearch.org/guide/reference/index-modules/analysis/synonym-tokenfilter.html
So search for sumit (sum) will hit docs containing sumeet (sum) but with a
lesser score than docs with sumit.
My 2 cents
HTH
David.
Le 6 septembre 2012 à 09:10, Sumit Guptaa sumit.gupta.ngi@gmail.com a écrit :
Hi all,
Can Anybody tell me how me can search like that suppose we have two document
like:-
1: {"doc":"sumit"}
2: {"doc":"sumeet"}
And when we search for {"term":"sumit"} we get both the document....is it
possible in ES?
Thanx
Regards,
Sumit Gupta
--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Spelling-Matching-Search-tp4022456.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com .
--
--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
--
amos_wood
(amos.wood)
September 6, 2012, 12:17pm
3
Sumit,
We have had success using the phonetic token filter too:
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.
This will mean that a search for "sumit" could match a record which was
"sumit" or the phonetically equivalent word "sumeet".
On Thursday, September 6, 2012 2:10:15 AM UTC-5, Sumit Gupta wrote:
Hi all,
Can Anybody tell me how me can search like that suppose we have two
document
like:-
1: {"doc":"sumit"}
2: {"doc":"sumeet"}
And when we search for {"term":"sumit"} we get both the document....is it
possible in ES?
Thanx
Regards,
Sumit Gupta
--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Spelling-Matching-Search-tp4022456.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com .
--
Thanx amos.wood and dadoonet.
i got it.
Regards,
Sumit Gupta