What is the difference between document and query boosting?
Index time field boosts (doc.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”.