mirror of https://github.com/apache/lucene.git
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:
parent
045248e2c1
commit
f475f5d76c
|
@ -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>");
|
||||
|
|
Loading…
Reference in New Issue