lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Changing index-time boosts without reindexing
Date Tue, 06 Sep 2011 16:42:59 GMT

: You can use IndexReader's setNorm method?
: 
: It's an expert method, and accepts a new byte norm value for the doc X
: field, ie you'll have to compute the right byte value.

In particular, you should take a look at the FieldNormModifier utility.  
It was created for the purpose of trying out different 
similarity implementations based on field length (when index boosts 
aren't used) but even if it doesn't serve your exact purpose, the way the 
code works should be educational to serving your goal.

https://lucene.apache.org/java/3_3_0/api/all/org/apache/lucene/index/FieldNormModifier.html



-Hoss

---------------------------------------------------------------------
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