Analyze_wildcard


(Sindre Sorhus) #1

From the docs:
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


(Shay Banon) #2

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.comwrote:

From the docs:

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: https://gist.github.com/1144444


(Sindre Sorhus) #3

Ok, got it thanks :wink:

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


(system) #4