How to boost score of documents with a field equal to a special value

2011-12-11 Thread Mohsen Saboorian
Hi,

I have documents with id, type, date and body fields. type has values from 1
to 10. I want to boos results with type=1,2 at query time. Is this possible
using function query or similar solr tricks?

I want something similar to this but for specific integer values:
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents

Thanks,
Mohsen

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-boost-score-of-documents-with-a-field-equal-to-a-special-value-tp3577477p3577477.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to boost score of documents with a field equal to a special value

2011-12-11 Thread Erick Erickson
Does adding something like bq=type:1^1.5 type:2^1.3 work?

Best
Erick

On Sun, Dec 11, 2011 at 10:19 AM, Mohsen Saboorian mohs...@gmail.com wrote:
 Hi,

 I have documents with id, type, date and body fields. type has values from 1
 to 10. I want to boos results with type=1,2 at query time. Is this possible
 using function query or similar solr tricks?

 I want something similar to this but for specific integer values:
 http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents

 Thanks,
 Mohsen

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/How-to-boost-score-of-documents-with-a-field-equal-to-a-special-value-tp3577477p3577477.html
 Sent from the Solr - User mailing list archive at Nabble.com.