lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: qf boost Versus field boost for Dismax queries
Date Tue, 23 Jun 2009 22:51:56 GMT

On Tue, 9 Jun 2009, ashokc wrote:

: When 'dismax' queries are use, where is the best place to apply boost
: values/factors? While indexing by supplying the 'boost' attribute to the
: field, or in solrconfig.xml by specifying the 'qf' parameter with the same
: boosts? What are the advantages/disadvantages to each? What happens if both

This is discussed in the Lucene-Java FAQ...

What is the difference between field (or document) boosting and query 

Index time field boosts (field.setBoost(boost)) are a way to express 
things like "this document's title is worth twice as much as the title of 
most documents". Query time boosts (query.setBoost(boost)) are a way to 
express "I care about matches on this clause of my query twice as much as 
I do about matches on other clauses of my query".

Index time field boosts are worthless if you set them on every document.

Index time document boosts (doc.setBoost(float)) are equivalent to setting 
a field boost on ever field in that document. 


View raw message