Hi Oussama, This is explained very nicely on Solr Wiki.. http://wiki.apache.org/solr/SolrRelevancyFAQ#index-time_boosts http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22add.22
All you need to do is something similar to below.. - <add> <doc boost="2.5"> <field name="employeeId">05991</field> <field name="office" boost="2.0">Bridgewater</field> </doc></add> What is not clear from your message is whether you need better scoring or better sorting. so, additionally, you can consider adding a secondary sort parameter for the docs having the same score. http://wiki.apache.org/solr/CommonQueryParameters#sort HTH, Sandeep On 22 May 2013 09:21, Oussama Jilal <jilal.ouss...@gmail.com> wrote: > Thank you for your reply bbarani, > > I can't do that because I want to boost some documents over others, > independing of the query. > > > On 05/21/2013 05:41 PM, bbarani wrote: > >> Why don't you boost during query time? >> >> Something like q=superman&qf=title^2 subject >> >> You can refer: >> http://wiki.apache.org/solr/**SolrRelevancyFAQ<http://wiki.apache.org/solr/SolrRelevancyFAQ> >> >> >> >> -- >> View this message in context: http://lucene.472066.n3.** >> nabble.com/Boosting-Documents-**tp4064955p4064966.html<http://lucene.472066.n3.nabble.com/Boosting-Documents-tp4064955p4064966.html> >> Sent from the Solr - User mailing list archive at Nabble.com. >> > >