java - Elastic Search prefix , suffix , EdgeGram -
java - Elastic Search prefix , suffix , EdgeGram -
how 1 can search word through middle or lastly english language alphabets letter. illustration corporation words , able search corporation initials cor, co, c etc using edgegram , prefix filter. not able search lastly letters or middle letters of corporation por or rati or ion. elastic search back upwards features? if yes how can resolve issue.
the ngram tokenizer want. it's edge-ngram tokenizer, except moves through whole word rather beingness anchored 1 edge.
$ curl localhost:9200/test/_analyze?tokenizer=ngram&pretty' -d 'corporation' | grep token "tokens" : [ { "token" : "c", "token" : "o", "token" : "r", "token" : "p", "token" : "o", "token" : "r", "token" : "a", "token" : "t", "token" : "i", "token" : "o", "token" : "n", "token" : "co", "token" : "or", "token" : "rp", "token" : "po", "token" : "or", "token" : "ra", "token" : "at", "token" : "ti", "token" : "io", "token" : "on",
java elasticsearch
Comments
Post a Comment