# Analyze\_wildcard

**URL:** <https://discuss.elastic.co/t/analyze-wildcard/5156>\
**Category:** Elasticsearch\
**Created:** [August 14, 2011, 12:59am UTC](https://discuss.elastic.co/t/analyze-wildcard/5156 "2011-08-14T00:59:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sindre\_Sorhus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sindre_sorhus/32/3138_2.png) [@Sindre\_Sorhus](https://discuss.elastic.co/u/Sindre_Sorhus)\
**Post date:** [August 14, 2011, 12:59am UTC](https://discuss.elastic.co/t/analyze-wildcard/5156/1 "2011-08-14T00:59:48Z")

</div>

From the docs:  
[http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html](http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html)  
analyze\_wildcardBy default, wildcards terms in a query string are not  
analyzed. By setting this value to true, a best effort will be made to  
analyze those as well.  
Wildcards works for me, even though the docs say it not on by default.

Searching for "jo?n" gives me results with "john".

Is this a bug or am I doing something wrong?

My query: [https://gist.github.com/1144444](https://gist.github.com/1144444)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 14, 2011, 10:51pm UTC](https://discuss.elastic.co/t/analyze-wildcard/5156/2 "2011-08-14T22:51:42Z")

</div>

It does not mean that wildcard won't work, it just means that they the text  
will not be analyzed (though, by default, it is lowercased).

On Sun, Aug 14, 2011 at 3:59 AM, Sindre Sorhus [sindresorhus@gmail.com](mailto:sindresorhus@gmail.com)wrote:

> From the docs:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/query-string-query.html)  
> analyze\_wildcard By default, wildcards terms in a query string are not  
> analyzed. By setting this value to true, a best effort will be made to  
> analyze those as well.  
> Wildcards works for me, even though the docs say it not on by default.
> 
> Searching for "jo?n" gives me results with "john".
> 
> Is this a bug or am I doing something wrong?
> 
> My query: [1144444’s gists · GitHub](https://gist.github.com/1144444)

---

<div class="post-metadata">

**Author:** ![Sindre\_Sorhus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sindre_sorhus/32/3138_2.png) [@Sindre\_Sorhus](https://discuss.elastic.co/u/Sindre_Sorhus)\
**Post date:** [August 15, 2011, 7:27am UTC](https://discuss.elastic.co/t/analyze-wildcard/5156/3 "2011-08-15T07:27:03Z")

</div>

Ok, got it thanks 😉

When I read "analyzed" I immediately thought "interpreted".

---

<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 6, 2017, 3:57am UTC](https://discuss.elastic.co/t/analyze-wildcard/5156/4 "2017-07-06T03:57:00Z")

</div>


