# Using wildcard in the prefix not working

**URL:** <https://discuss.elastic.co/t/using-wildcard-in-the-prefix-not-working/232279>\
**Category:** Elasticsearch\
**Created:** [May 12, 2020, 5:14pm UTC](https://discuss.elastic.co/t/using-wildcard-in-the-prefix-not-working/232279 "2020-05-12T17:14:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivaranjani](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Sivaranjani](https://discuss.elastic.co/u/Sivaranjani)\
**Post date:** [May 12, 2020, 5:14pm UTC](https://discuss.elastic.co/t/using-wildcard-in-the-prefix-not-working/232279/1 "2020-05-12T17:14:18Z")

</div>

Below is the query string we are trying to use. But It's not working correctly,

((`*`meat`*`) AND (`*`garlics`*`)) -\> it's not returning garlic in the data. when i remove \* before the word garlics, it's showing.

---

<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:** [June 9, 2020, 5:14pm UTC](https://discuss.elastic.co/t/using-wildcard-in-the-prefix-not-working/232279/2 "2020-06-09T17:14:18Z")

</div>

Closed on June 9, 2020, 5:14pm UTC

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