lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to boost score of documents with a field equal to a special value
Date Sun, 11 Dec 2011 15:55:17 GMT
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 <mohsens@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.

Mime
View raw message