only send one boost value for multi-valued fields

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-06-18 07:09:26 +00:00
parent 045248e2c1
commit f475f5d76c
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ public class ClientUtils
Float boost = doc.getBoost( name );
for( Object o : doc.getFieldValues( name ) ) {
writeFieldValue(writer, name, boost, o );
// only write the boost for the first mulit-valued field
// otherwise, the used boost is the product of all the boost values
boost = null;
}
}
writer.write("</doc>");