Certain parts of the analysis chain can be
included in wildcard processing, see
anything impolementing MultiTermAware. See:
http://wiki.apache.org/solr/MultitermQueryAnalysis

But phrases are different, and as Shawn says the
analysis chain isn't applied similarly. The data is
lowercased, but the wildcard is stripped.

Best,
Erick

On Thu, Sep 26, 2013 at 3:09 PM, Shawn Heisey <s...@elyograg.org> wrote:
> 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
>

Reply via email to