How to prevent Elasticsearch match on only one character with multi_match

Hi there,

I'm using elasiticsearch-dsl and SmartCN analyzer:

from elasticsearch_dsl import analyzer
analyzer_cn = analyzer(

And I'm using multi_match to match on several terms:

from elasticsearch_dsl import Q
q_new = Q("multi_match", query="SOME_QUERY", fields=["FEIDL_NAME"])

The desired behavior is that ES only returns documents with at least two characters matched. I've looked through the documents but couldn't find a way to prevent Elasticsearch to match on a single character.

Any direction / suggestion is highly appreciated.

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