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: problem with get/setBoost of document fields
Date Wed, 29 Sep 2004 19:23:27 GMT
Bastian Grimm [Eastbeam GmbH] wrote:
> that works... but i have to do this setNorm() for each document, which 
> has been indexed up to now, right? there are round about 1 mio. docs in 
> the index... i dont think it's a good idea to perform a search and do it 
> for every doc (and every field of the doc...).
> is there any possibility to do something like: setNorm(alldocs, 
> "fieldX", 2.0f) - a global boost for a named field for every doc.

setNorm() is quite fast.  Calling it 1M times will not take long.

> a last question: lucene creates some .f[1-9]  after setNorm() has 
> finished. does this file remain all the time in this folder? i tried to 
> optimize and so one but nothing happend.

If you add or remove documents and optimize then these will go away.

Doug

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


Mime
View raw message