# Elasticsearch query like not working when search number and string in 1 words using wildcardquery and match\_phrase

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-like-not-working-when-search-number-and-string-in-1-words-using-wildcardquery-and-match-phrase/196499>\
**Category:** Elasticsearch\
**Created:** [August 23, 2019, 10:43am UTC](https://discuss.elastic.co/t/elasticsearch-query-like-not-working-when-search-number-and-string-in-1-words-using-wildcardquery-and-match-phrase/196499 "2019-08-23T10:43:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asep\_Kusnandar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asep_kusnandar/32/52901_2.png) [@Asep\_Kusnandar](https://discuss.elastic.co/u/Asep_Kusnandar)\
**Post date:** [August 23, 2019, 10:43am UTC](https://discuss.elastic.co/t/elasticsearch-query-like-not-working-when-search-number-and-string-in-1-words-using-wildcardquery-and-match-phrase/196499/1 "2019-08-23T10:43:36Z")

</div>

How can i search query like with match\_phrase query when i search key example : "50Fit bintaro"

my mapping  
`{ "settings": { "analysis": { "analyzer": { "my_analyzer": { "tokenizer": "standard", "filter": ["lowercase", "ngram"] } }, "filter": { "ngram": { "type": "edge_ngram", "min_gram": 1, "max_gram": 20, "token_chars": ["letter", "digit"] } } } }, "mappings": { "establishment": { "properties": { "searchWords": { "properties": { "secureId": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }, "modificationDate": { "type": "long" }, "createdBy": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }, "words": { "type": "text", "analyzer": "my_analyzer", "search_analyzer": "simple", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }, "modifiedBy": { "type": "text", "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } } }, "id": { "type": "long" }, "creationDate": { "type": "long" }, "version": { "type": "long" } } } } } } }`

---

<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:** [September 20, 2019, 10:52am UTC](https://discuss.elastic.co/t/elasticsearch-query-like-not-working-when-search-number-and-string-in-1-words-using-wildcardquery-and-match-phrase/196499/2 "2019-09-20T10:52:25Z")

</div>

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