I'm using elasiticsearch-dsl and SmartCN analyzer:
from elasticsearch_dsl import analyzer analyzer_cn = analyzer( 'smartcn', tokenizer=tokenizer('smartcn_tokenizer'), filter=['lowercase'] )
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.