Conversion Like Mysql in elasticsearch


(Simon Raynaud) #1

Hi,
I want conversion Like in Mysql in Elasticsearch

Exemple:
index element [ dev, developpeur, developpeuse, ]

My query "v" return [ dev, developpeur, developpeuse, ]
My query "de" return [ dev, developpeur, developpeuse, ]
My query "deve" return [ developpeur, developpeuse, ]

I think at nGram, is not fonction but my works.

Thank you to your help.


(David Pilato) #2

Yes n gram is the way to go.


(Simon Raynaud) #3

Hi dadoonet,

my mgram is not function

"ngram": {
"min_gram": "1",
"type": "edgeNGram",
"max_gram": "20" 
},

Where is my probleme in my elasticsearch 1.7.2.

Thank you :wink:


(David Pilato) #4

It looks good.


(system) #5