I want to calculate average document length for document collection which
each document having 3 different fields(filed1, field2,field3)
This is the program to calculate average length when only one field is
there.
private byte[] normsDocLengthArr = null;
private double avgDocLength;
normsDocLen
I found this is the correct way of calculating Average Document length of
document having tree fields
byte[] normsDocLengthArrField1 = indexReader.norms("filed1");
byte[] normsDocLengthArrField2 = indexReader.norms("filed2");
byte[] normsDocLengthArrField3 = indexReader.norms("filed3");
double s