Hi,

when I attached a boost value even the following query is not working:-

select?qt=dismaxboost&q=horticulture&version=2.2&start=0&rows=10&indent=on&bf=recip(rord(approval_dt),1,1000,1000)^110.0&fl=approval_dt,projname

When I hadnt provided the boost value for the approval_dt the above was
giving me proper sorted results. Could anyone suggest whether I am doing
something wrong.

thanks and rgds,

Anil.






---------- Forwarded message ----------
From: Anil Cherian <cherian.anil2...@gmail.com>
Date: Thu, Nov 19, 2009 at 12:25 PM
Subject: index-time boost ... query
To: solr-user@lucene.apache.org


Hi,

I am working on index-time boosting.
I have a field named approval_dt. I have created that <field> in my SOLR xml
to be uploaded, by sorting my query in ascending order of approval_dt and
then increasing the boost for this field by 0.1 as i encounter new records
from database. In my schema.xml that field has omitNorms=false (<field
name="approval_dt" type="date" indexed="true" stored="true"
omitNorms="false"/>)

Suppose I am searching for a keyword say *India*. I want my results to come
in such a way that the ones with latest/ recent approval_dt should come
first.

I achieved this using query-time boosting  bf parameter. I am not trying it
using the index-time approach.
Any help is appreciated.

Thank you.
Anil

Reply via email to