: Refactor :
:
: class DocumentWriter {
: private final void writeNorms(String segment) throws IOException {
: for(int n = 0; n < fieldInfos.size(); n++){
: FieldInfo fi = fieldInfos.fieldInfo(n);
: if(fi.isIndexed && !fi.omitNorms){
: float norm = fieldBoosts[n] * similarity.lengthNorm(fi.name,
:
: to this:
: float norm = fieldBoosts[n] * fi.similarity.lengthNorm(fi.name,
Why wouldn't you just provide your own Similarity instance that looked at
the fieldName passed to the lengthNorm method?
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]