I solved a similar kind of issue (where I actually needed multi-valued 
attributes, e.g. people with multiple or hyphenated last names) by including 
PositionFilterFactory in the filter list for the analyzer in such fields' 
fieldType, thereby setting the position of each value to 1.

JRJ

-----Original Message-----
From: Aaron Bains [mailto:aaronba...@gmail.com] 
Sent: Thursday, September 01, 2011 2:00 PM
To: solr-user@lucene.apache.org
Subject: Re: Wildcard Query

I solved the problem by setting multiValued=false

On Thu, Sep 1, 2011 at 2:37 PM, Aaron  wrote:

> It seems to work correctly once I remove the brackets like this:
> q=keywords:symante* AND corporatio*
> But I don't understand why...
>
>
> On Thu, Sep 1, 2011 at 2:26 PM, Aaron wrote:
>
>> Hello,
>>
>> The keywords field type is "text_en_splitting"
>>
>> My query is as follows:    q=keywords:(symantec AND corporation)
>> Result: Documents are returned as normal
>>
>>
>> My wildcard query is as follows:      q=keywords:(symante* AND
>> corporation)
>> Result: Wildcard functions correctly, and documents are returned
>>
>>
>> When I try a wildcard on every term as follows:      q=keywords:(symante*
>> AND corporatio*)
>> Result: No documents are returned.
>>
>>

Reply via email to