You don't get the boost back directly... it's folded into the "norm" for the
field and does affect the score when you search against the index.

-Yonik

On 9/21/05, Steve Gaunt <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I was hoping someone could shed some light on this?
> When I set a boost for a particular field during indexing, for example
>
> field.setBoost(1.5f);
> document.add(field);
>
> Then do a indexwriter.optimize();
>
> But when I do a search and get the document back, the boost value for
> that field has been reset back to the default value of 1.
>
> Has anyone else come across a similar situation??
>
>
> Cheers
>
> Steve
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-Yonik
Now hiring -- http://tinyurl.com/7m67g

Reply via email to