My mapping looks as below
"autocomplete_index":{
"type":"custom",
"tokenizer":"keyword",
"filter":[
"lowercase",
"syns_filter",
"my_edgeNgram"
]
}
Now when i analyze the configuration using analyze api the word after space
gets omitted . ie "university" is omitted
................../universityindextest2/_analyze?analyzer=autocomplete_index&text=yale%20university&pretty
output
----------
{ "tokens" : [ { "token" : "ya", "start_offset" : 0, "end_offset" : 15,"type" :
"word","position" : 1}, {"token" : "yal","start_offset" : 0,"end_offset" :
15,"type" : "word","position" : 2}, {"token" : "yale","start_offset" :
0,"end_offset" : 15,"type" : "word","position" : 3}, {"token" :
"yu","start_offset" : 0,"end_offset" : 15,"type" : "word","position" : 4} ]
}
--
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/d6bd7caa-b160-42ac-948c-6aab6884a51d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.