lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Boosting one copyField contributor
Date Fri, 02 Mar 2007 23:01:16 GMT
On 3/2/07, Ken Krugler <kkrugler_lists@transpac.com> 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

Mime
View raw message