this.fieldNormalisations = new Normalisation[fieldCount];
try{
for(int fi=0;fi<fieldCount;fi++)
{
fieldWeights[fi] = Double.parseDouble(ApplicationSetup.getProperty("w."+ fi, ""+1.0));
final Normalisation nf = normClass.newInstance();
this.fieldNormalisations[fi] = nf;
final double param = Double.parseDouble(ApplicationSetup.getProperty("c."+ fi, ""+1.0));
nf.setParameter(param);
nf.setNumberOfDocuments(_cs.getNumberOfDocuments());
final long tokensf = _cs.getFieldTokens()[fi];
nf.setNumberOfTokens(tokensf);
nf.setAverageDocumentLength(_cs.getAverageFieldLengths()[fi]);
p[fi] = 1.0d / ((double)fieldCount * super.numberOfDocuments);
p[fi] = p[fi] / Double.parseDouble( ApplicationSetup.getProperty("p." + fi, "1.0d"));
}
} catch (Exception e) {