I believe it's min_gram:3 setting which prevents any terms shorter than 3
characters to be an ngram
On Thursday, February 28, 2013 10:22:15 AM UTC-5, Per Ekman wrote:
Hi
We are trying to use ngrams in our index. Currently we have this
configuration:"ngram":{ "tokenizer":"whitespace", "filter":[ "standard", "lowercase", "ngram", "catenate_words" ] },....
"ngram":{
"type":"nGram",
"min_gram":3,
"max_gram":50
},When looking at a term like "mc donalds" we see that the "mc" part is not
put into the index. Anybody have an idea of how to configure the index so
that we get "mc" as well as "don", "ald" etc (without changing the min_gram
setting)?/Per
--
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.