lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Underwood <wunderw...@netflix.com>
Subject Re: Boosting one copyField contributor
Date Fri, 02 Mar 2007 23:11:13 GMT
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" <yonik@apache.org> wrote:

> 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