On solr3.6 search while giving query "black\ cat*"(as you mentioned in post),
I am not getting any result. 
Instead of "black\ cat*" if I am querying "black*\ cat*", its giving result
as
black forest cat
black cat
black color cat.

But I need only these type result i.e.
black cat
black cat is beautiful
black cat and dog 

Note: I am using solr3.6


Erick Erickson wrote
> Right, this is a quirk of phrase queries. For wildcards to work in phrase
> queries you need SOLR-1604 (ComplexPhraseQueryParser).
> 
> Or you need to escape your spaces, i.e.
> black\ cat*
> 
> Best,
> Erick
> 
> 
> On Tue, Aug 5, 2014 at 11:09 PM, zameer <

> zameerulhasan121@

> > wrote:
> 
>> If we search only "black*" it works but when we use search text "black
>> cat*"
>> or "(black cat)*" or "(black cat*)*" it come blank.
>>
>> 
> <fieldType name="text_general_long" class="solr.TextField"
>>
>  positionIncrementGap="100">
>>       
> <analyzer>
>>         
> <tokenizer class="solr.KeywordTokenizerFactory"/>
>>         
> <filter class="solr.LowerCaseFilterFactory"/>
>>       
> </analyzer>
>> 
> </fieldType>
>>
>> 
> <field indexed="true" name="my_name" stored="true"
>>
>  type="text_general_long"/>
>>
>> Thank you in advance
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/matching-starts-with-only-tp4094430p4151379.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>





--
View this message in context: 
http://lucene.472066.n3.nabble.com/matching-starts-with-only-tp4094430p4152662.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to