Hi Chris, thanks for replying!
OK, now I'm going to take the bait ;) I am talking about field boosting rather than document boosting, ie. I would like some fields (say eg. title) to be "louder" than others, across ALL documents. I believe you are at least partially talking about document boosting, which clearly applies on a per-document basis. If it helps, consider a schema version of the following, from org.apache.solr.common.SolrInputDocument: /** * Adds a field with the given name, value and boost. If a field with the name already exists, then it is updated to * the new value and boost. * * @param name Name of the field to add * @param value Value of the field * @param boost Boost value for the field */ public void addField(String name, Object value, float boost ) { SolrInputField field = _fields.get( name ); if( field == null || field.value == null ) { setField(name, value, boost); } else { field.addValue( value, boost ); } } Where a constant boost value is applied consistently to a given field. That is what I was mistakenly hoping to achieve in the schema. I still think it would be a good idea BTW. Regards, Ian. -----Original Message----- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: 23 November 2009 18:34 To: solr-user@lucene.apache.org Subject: RE: schema-based Index-time field boosting : Yeah, like I said, I was mistaken about setting field boost in : schema.xml - doesn't mean it's a bad idea though. At any rate, from : your penultimate sentence I reckon at least one of us is still confused : about field boosting, feel free to reply if you think it's me ;) Yeah ... i think it's you. like i said... : field boosting only makes sense if it's only applied to some of the : documents in the index, if every document has an index time boost on : fieldX, then that boost is meaningless. ...if there was a way to oost fields at index time that was configured in the schema.xml, then every doc would get that boost on it's instances of those fields but the only purpose of index time boosting is to indicate that one document is more significant then another doc -- if every doc gets the same boost, it becomes a No-OP. (think about the math -- field boosts become multipliers in the fieldNorm -- if every doc gets the same multiplier, then there is no net effect) -Hoss Web design and intelligent Content Management. www.twitter.com/gossinteractive Registered Office: c/o Bishop Fleming, Cobourg House, Mayflower Street, Plymouth, PL1 1LG. Company Registration No: 3553908 This email contains proprietary information, some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this email, please notify the author by replying to this email. If you are not the intended recipient you may not use, disclose, distribute, copy, print or rely on this email. Email transmission cannot be guaranteed to be secure or error free, as information may be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. This email and any files attached to it have been checked with virus detection software before transmission. You should nonetheless carry out your own virus check before opening any attachment. GOSS Interactive Ltd accepts no liability for any loss or damage that may be caused by software viruses.