Re: matching "starts with" only

2014-08-12 Thread zameer
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.
>>
>> 
> >
>  positionIncrementGap="100">
>>   
> 
>> 
> 
>> 
> 
>>   
> 
>> 
> 
>>
>> 
> >
>  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.


Re: matching "starts with" only

2014-08-05 Thread zameer
If we search only "black*" it works but when we use search text "black cat*"
or "(black cat)*" or "(black cat*)*" it come blank. 


  


  




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.