lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: giving different boost to different terms in a same document
Date Wed, 20 Dec 2006 13:47:29 GMT
I don't think you want to do this at index time, but rather search time.
Quoting from Hoss (?)...

Index time field boosts are a way to express things like "this documents
title is worth twice as much as the title of most documents". Query time
boosts are a way to express "I care about matches on this clause of my query
twice as much as I do about matches to other clauses of my query".

>From your example, it looks like you want query time boosts rather than
index time boosts....


On 12/20/06, Eun Yong Kang <> wrote:
> Hi,
> I am trying to figure out how to give different weights to different
> terms in a same document.
> Anybody knows how to do this?
> For example,
> doc A   contains  field1 : term1  (weight C)   field1 : term2 (weight F)
> If I use setBoost(float)  function in the Field Object, I cannot give
> different weight to
> term1 and term2.
> Thanks,
> Eun
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message