You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mohsen Saboorian <mo...@gmail.com> on 2011/12/11 16:19:51 UTC

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

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

Posted by Erick Erickson <er...@gmail.com>.
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 <mo...@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.