I have an index containing lot's of streets. The index looks like this:
Mainstreet 42
Some other street 15
Foostr. 9
The default search query looks like this:
+QUERY_STRING*
So querying for foo
(sent as +foo*
) or foostr
(sent as +foostr*
) results in Foostr. 9
, which is correct. BUT querying for foostr.
(which get's sent to Elasticsearch as +foostr.*
) gives no results, but why?
I use standard analyzer and the query string with no special options. (This also returns 0 results when using http://127.0.0.1:9200/test/streets?q=+foostr.*
).
Btw. this: http://127.0.0.1:9200/test/streets?q=+foostr.
(same as above without the asterisk) finds the right results
Questions:
Why is this happening?
How to avoid this behavior?