On 9/26/2013 10:15 AM, soumikghosh05 wrote:
I have a doc that contains "Hello World" in the title field and title is of
type of text_general.
When I am searching with
title:"Hello Wo*" -- not returning
title:"Hello World" -- returning
When you use wildcards, your analysis chain is not used, so the query
text won't be lowercased, which means that it won't match what's been
indexed.
You only included the index analyzer in what you pasted, but the fact
that it works without the wildcard suggests that your query analyzer has
the lowercase filter as well ... but with a wildcard search, that
doesn't get used. You'll need to handle lowercasing your query terms
yourself when wildcards are part of the picture.
I seem to remember something being discussed for fixing this a while
back, but I don't remember whether anything was actually implemented.
Thanks,
Shawn