I'm "denormalizing" into copyfields, one per boost level, something like "text", "text_hi", and so on.
wunder On 3/2/07 3:01 PM, "Yonik Seeley" <[EMAIL PROTECTED]> wrote: > On 3/2/07, Ken Krugler <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> When creating a combo field for searching, is there any >> straight-forward way to boost the contribution of one of the fields >> being used to create the combined field? >> >> I'd read the past threads about this, and there didn't seem to be >> anything built in to Solr. >> >> A simple hack I did was to copy the field multiple times - e.g. have: >> >> <copyField source="field-to-boost" dest="combo-field"/> >> <copyField source="field-to-boost" dest="combo-field"/> >> <copyField source="field-to-boost" dest="combo-field"/> >> >> in the schema, so that "field-to-boost" has an effective boost of 3x. > > That's really the only way to do it. > Lucene boosts are per-field (not per-field-value) for a particular > document, so you can't have a multi-valued field with some values > boosted higher than others. > > -Yonik