# How to prevent Elasticsearch match on only one character with multi\_match

**URL:** <https://discuss.elastic.co/t/how-to-prevent-elasticsearch-match-on-only-one-character-with-multi-match/249441>\
**Category:** Elasticsearch\
**Created:** [September 22, 2020, 4:15am UTC](https://discuss.elastic.co/t/how-to-prevent-elasticsearch-match-on-only-one-character-with-multi-match/249441 "2020-09-22T04:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EHH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehh/32/64749_2.png) [@EHH](https://discuss.elastic.co/u/EHH)\
**Post date:** [September 22, 2020, 4:15am UTC](https://discuss.elastic.co/t/how-to-prevent-elasticsearch-match-on-only-one-character-with-multi-match/249441/1 "2020-09-22T04:15:43Z")

</div>

Hi there,

I'm using [elasiticsearch-dsl](https://elasticsearch-dsl.readthedocs.io/en/latest/persistence.html) and SmartCN analyzer:

```auto
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:

```auto
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.  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2020, 4:15am UTC](https://discuss.elastic.co/t/how-to-prevent-elasticsearch-match-on-only-one-character-with-multi-match/249441/2 "2020-10-20T04:15:43Z")

</div>

Closed on October 20, 2020, 4:15am UTC

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