I think that is applicable only for the field level boosting and not at document level boosting.
Can you post your query, field definition and results you're expecting. I am using index and query time boosting without any issues so far. also which version of Solr you're using? On 22 May 2013 10:44, Oussama Jilal <[email protected]> wrote: > I don't know if this is the issue or not but, concidering this note from > the wiki : > > NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) > for any fields where the index-time boost should be stored. > > In my case where I only need to boost the whole document (not a specific > field), do I have to activate the << omitNorms="false" >> for all the > fields in the schema ? > > > > > On 05/22/2013 10:41 AM, Oussama Jilal wrote: > >> Thank you Sandeep, >> >> I did post the document like that (a minor difference is that I did not >> add the boost to the field since I don't want to boost on specific field, I >> boosted the whole document '<doc boost="2.0"> .... </doc>'), but the issue >> is that everything in the queries results has the same score even if they >> had been indexed with different boosts, and I can't sort on another field >> since this is independent from any field value. >> >> Any ideas ? >> >> On 05/22/2013 10:30 AM, Sandeep Mestry wrote: >> >>> Hi Oussama, >>> >>> This is explained very nicely on Solr Wiki.. >>> http://wiki.apache.org/solr/**SolrRelevancyFAQ#index-time_**boosts<http://wiki.apache.org/solr/SolrRelevancyFAQ#index-time_boosts> >>> http://wiki.apache.org/solr/**UpdateXmlMessages#Optional_** >>> attributes_for_.22add.22<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<http://wiki.apache.org/solr/CommonQueryParameters#sort> >>> >>> >>> HTH, >>> Sandeep >>> >>> >>> On 22 May 2013 09:21, Oussama Jilal <[email protected]> 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> >>>>> <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://nabble.com/Boosting-Documents-**tp4064955p4064966.html> >>>>> <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. >>>>> >>>>> >>>> >> >
