Re: Number of terms

2007-10-16 Thread sandeep chawla
Thanks a lot but one question- IndexOutput class doesn't have a method writeFloat ? How do u write float to index.. shall i create public method writeFloat as public void writeFloat(float f) { writeByte((byte)(f >>32); writeByte((byte)(f >>16); writeByte((byte)(f >>8); writeB

Re: Number of terms

2007-10-16 Thread Karl Wettin
16 okt 2007 kl. 13.07 skrev sandeep chawla: While calculating the lengthnorm- there is a precision-loss. http://lucene.apache.org/java/docs/scoring.html#Score%20Boosting How to avoid the precision loss? You replace the use of bytes to floats when storing the norms (DocumentsWriter) in the f