# A question with wildcardQuery

**URL:** <https://discuss.elastic.co/t/a-question-with-wildcardquery/91361>\
**Category:** Elasticsearch\
**Created:** [June 30, 2017, 3:19am UTC](https://discuss.elastic.co/t/a-question-with-wildcardquery/91361 "2017-06-30T03:19:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubo3085632](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hubo3085632/32/23724_2.png) [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)\
**Post date:** [June 30, 2017, 3:19am UTC](https://discuss.elastic.co/t/a-question-with-wildcardquery/91361/1 "2017-06-30T03:19:18Z")

</div>

I saw concept of wildcard,the document gives an example that: query two phrase "W1F 7HW" and "W2F 8HW" can use this { "wildcard": { "postcode": "W?F\*HW" }}.  
i have a field names "company" it is not analyzed, values "HAPPY LOGISTICS",  
when i use wildcardQuery(company, "\*"+"PPY LOGIS"+"\*"); it can not find the doc, Why is this?

---

<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:** [July 28, 2017, 3:19am UTC](https://discuss.elastic.co/t/a-question-with-wildcardquery/91361/2 "2017-07-28T03:19:29Z")

</div>

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