lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eun Yong Kang <>
Subject giving different boost to different terms in a same document
Date Wed, 20 Dec 2006 08:39:58 GMT

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.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message