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
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.
> Date: Wed, 11 May 2011 03:52:36 -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 did exactly the stuff that was told in the link. I have
> > certain items with ids
> > 
> > In schema.xml:I have set a fieldtype with name = idRankFile
> > and keyField = id Also, a field with name idRank and type
> > idRankFile
> > In data directory, I made a text file external_idRankIn it,
> > I set 3007WFP = 10000.0where 3007WFP is the id of one of the
> > items.
> > However, on running java -jar ./post.jar *.xml, it gave me
> > the following error:
> > org.apache.solr.common.SolrException: Only float
> > (FloatField) is currently supported as external field
> > type.  
> > As you can see, I have assigned a float value to the
> > external field. Any ideas regarding the problem?
> 
> You need to use this type:
> 
> <fieldType name="pfloat" class="solr.FloatField" omitNorms="true"/>
                                          

Reply via email to