So now I did the following :     
http://localhost:8983/solr/select?indent=on&q=car%20power%20adaptor&sort=idRank%20desc&fl=id,score,name
  
Yet, it's not taking idRank into account, it's just giving the results 
according to the score.  
Also, when I try to output idRank by including it in the fl (i.e. fl=id, 
score,name,idRank), it does not display idRank (only displays the id, score and 
name)  
> Date: Wed, 11 May 2011 04:39:34 -0700
> From: iori...@yahoo.com
> Subject: RE: Boosting score of a document without deleting and adding another 
> document
> To: solr-user@lucene.apache.org
> 
> > I just want to confirm, (as I'm not quiet familiar with the
> > function query syntax) will the following query be alright
> > to search "car power adaptor", so that the entry with
> > highest idRank be displayed first?
> > http://localhost:8983/solr/select?indent=on&q=car%20power%20adaptor&fl=id,score,name&_val_:idRank
> 
> I haven't used it but _val_ hook should be the part of q parameter.
> 
> However if you are using solr3.1 or trunk I suggest you to use sort by 
> function instead.
> 
> http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function
> 
> > Also, will I need to set the value of idRank for ALL items?
> > Right now I have only set it for those items which are being
> > returned by this query.
> 
> Not necessary to set value for ALL items. You can define default value 
> (defVal="0") for missing items.
> 
> <fieldType name="file" keyField="urun_id" defVal="0" stored="false" 
> indexed="false" class="solr.ExternalFileField" valType="pfloat"/>
> 
                                          

Reply via email to