lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Fields with same name boosting
Date Fri, 15 Apr 2005 15:56:06 GMT
Peter Veentjer - Anchor Men wrote:
> I have question about field boosting.
>  
> If I have 2 (or more) fields with the same fieldname in a single
> document, and I boost one of those, than only that one will be boosted?
> Or will all fields with the same name be boosted? I guess only one field
> is boosted, but I want to be certain. 

http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Field.html#setBoost(float)

"If a document has multiple fields with the same name, all such values 
are multiplied together."

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message