How to send space in auto complete quires.
My Mapping and setting is as below
{
"settings":{
"index":{
"analysis":{
"analyzer":{
"autocomplete":{
"tokenizer":"engram",
"filter":[
"lowercase"
]
}
},
"tokenizer":{
"engram":{
"type":"edgeNGram",
"min_gram":3,
"max_gram":10
}
}
}
}
},
"mappings":{
"collegeName":{
"properties":{
"title":{
"type":"string",
"index_analyzer":"autocomplete",
"index":"analyzed",
"search_analyzer":"standard"
}
}
}
}
}
data in ES
{
"title":"mandala tech"
}
{
"title":"Mass Institute Technology"
}
{
"title":"Massach Institute of tech"
}
When i query as q=title:"Mass" i get the below results which is fine
- "Massach Institute of tech"
- "Mass Institute Technology"
When i query as q=title:"Mass I" i still get the below results but it
should be only one.
- "Massach Institute of tech"
- "Mass Institute Technology"
Regards
Paul
--
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.
For more options, visit https://groups.google.com/groups/opt_out.