: 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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org