Yes i did some changes with the requesthandler.I have added <str name="defType">edismax</str> and removed the df field specified there and Now its working as i expected. Thanks for the help ahmet.
> Date: Thu, 14 Feb 2013 01:31:14 -0800 > From: iori...@yahoo.com > Subject: RE: Why a phrase is getting searched against default fields in solr > To: solr-user@lucene.apache.org > > Hi, > > instead of &edismax=true can you try &defType=edismax > > ahmet > > --- On Thu, 2/14/13, Pragyanshis Pattanaik <pragyans...@outlook.com> wrote: > > > From: Pragyanshis Pattanaik <pragyans...@outlook.com> > > Subject: RE: Why a phrase is getting searched against default fields in solr > > To: "solr Forum" <solr-user@lucene.apache.org> > > Date: Thursday, February 14, 2013, 10:21 AM > > It is returning me all the documents > > which contains the phrase as it is searching against > > Defaultfield.my default field is like below > > <field name="SearchableField" type="text_general" > > indexed="true" stored="false" > > multiValued="true"/> <copyField > > source="Product-Name-*" > > dest="SearchableField"/> <copyField > > source="Product-Description-*" dest="SearchableField"/> > > I have defined SearchableField as default field. > > Thanks,Pragyanshis > > > Date: Wed, 13 Feb 2013 23:18:06 -0800 > > > From: iori...@yahoo.com > > > Subject: Re: Why a phrase is getting searched against > > default fields in solr > > > To: solr-user@lucene.apache.org > > > > > > Hi Pragyanshis, > > > > > > What happens when you remove bq parameter? > > > > > > --- On Thu, 2/14/13, Pragyanshis Pattanaik <pragyans...@outlook.com> > > wrote: > > > > > > > From: Pragyanshis Pattanaik <pragyans...@outlook.com> > > > > Subject: Why a phrase is getting searched against > > default fields in solr > > > > To: "solr Forum" <solr-user@lucene.apache.org> > > > > Date: Thursday, February 14, 2013, 8:24 AM > > > > Hi, > > > > This might be a very silly question but i want to > > know why > > > > this is happening.If i am using edismax query > > parser in solr > > > > and passing query something like below > > > > > > > > > > > > > > q=IPhone5&wt=xml&edismax=true&qf=Product-Name-0^100&bq=(Product-Rating-0%3A7^300+OR+Product-Rating-0%3A8^400+OR+Product-Rating-0%3A9^500+OR+Product-Rating-0%3A10^600+OR+Product-Rating-0%3A*) > > > > Then why it is searching in default fields ?As i > > am > > > > specifying qf,it should search in the fields > > specified in qf > > > > parameter and boost those documents which has a > > higher > > > > rating. > > > > Please correct me if my understanding is > > wrong.Note:-I am > > > > using SOLR 4.0 Alpha > > > > Thanks,Pragyanshis > > > > > > > > > > > > > > > > > > > >