Minimum_should_match and partial word matching 5.x does not work

Hows does https://www.elastic.co/guide/en/elasticsearch/guide/current/ngrams-compound-words.html work with 5.x?

the ngram filter does actually work, but if I setup a query I want a minimum match of found ngrams otherwise I would get lots of useless documents in the result.

Actually the minimum_should_match just gets ignored with 5.2.2, this worked with 2.x very well.

field:
"name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
},
"analyzer" : "trigrams"
},

Index settings:
"analysis" : {
"filter" : {
"trigrams_filter" : {
"type" : "ngram",
"min_gram" : "3",
"max_gram" : "3"
}
},
"analyzer" : {
"trigrams" : {
"filter" : [
"lowercase",
"trigrams_filter"
],
"type" : "custom",
"tokenizer" : "standard"
}
}
},

any ideas?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.