If you want different boosts for different documents, then use the "boost" 
parameter in edismax. You can store the factor in a field, then use it to 
affect the score.

If you store it in a field named "docboost", you could use this in an edismax 
config in your solrconfig.xml.

       <str name="boost">log(max(docboost,1))</str>

This will be multiplied into the score for each document. I use the max() 
function to avoid problems with zero and negative values.

wunder

On May 24, 2012, at 8:19 AM, Chamnap Chhorn wrote:

> I need to do index-time field boosting because the client buy position
> asset. Therefore, some document when matched are more important than
> others. That's what index time boost does, right?
> 
> On Thu, May 24, 2012 at 10:10 PM, Walter Underwood 
> <wun...@wunderwood.org>wrote:
> 
>> Why? Query-time boosting is fast and more flexible.
>> 
>> wunder
>> Search Guy, Netflix & Chegg
>> 
>> On May 24, 2012, at 6:11 AM, Chamnap Chhorn wrote:
>> 
>>> Anyone could help me? I really need index-time field-boosting.
>>> 
>>> On Thu, May 24, 2012 at 4:21 PM, Chamnap Chhorn <chamnapchh...@gmail.com
>>> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I want to do index-time boost field on DIH. Is there any way to do
>> this? I
>>>> see on this documentation, there is only $docBoost. How about field
>> boost?
>>>> Is it possible?
>>>> 
>>>> Thanks
>>>> http://chamnap.github.com/
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Chhorn Chamnap
>>> http://chamnapchhorn.blogspot.com/
>> 
>> 
>> 
>> 
>> 
> 
> 
> -- 
> Chhorn Chamnap
> http://chamnapchhorn.blogspot.com/

--
Walter Underwood
wun...@wunderwood.org



Reply via email to