Hi Sangeetha,

If you need to boost based on date regardless of type, just use date boosting 
with a higher boost:

http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents
http://wiki.apache.org/solr/FunctionQuery#Date_Boosting



-----Original Message-----
From: Sangeetha [mailto:sangeetha...@gmail.com] 
Sent: Tuesday, December 11, 2012 4:29 AM
To: solr-user@lucene.apache.org
Subject: Boost docs which are posted recently

Hi,

I have a doc with the field type_s. The value can be news, photos and videos.

The priority will be given in this order, photos, videos then news using the 
below query,

q=sachin&defType=dismax&bq=type_s:photos^10&bq=type_s:videos^7&bq=type_s:news^5
 
eventhough it is giving more priority to photos, sometimes it needs to display 
the videos/news if it is posted recently.

How can i achieve this? Is it possible to use single bq for multiple field 
using space or "+"?

Thanks,
Sangeetha



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Boost-docs-which-are-posted-recently-tp4025955.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to