Skip to content

Apache Lucene open-source search software

SOLR-1361 -- Incorrect javadoc on SolrInputDocument addField

Shalin Shekhar Mangar175f81950e8e
diff --git a/src/common/org/apache/solr/common/SolrInputDocument.java b/src/common/org/apache/solr/common/SolrInputDocument.java
index 9126675a4d8..089f0e9b0b9 100644
--- a/src/common/org/apache/solr/common/SolrInputDocument.java
+++ b/src/common/org/apache/solr/common/SolrInputDocument.java
@@ -122,7 +122,12 @@ public class SolrInputDocument implements Map<String,SolrInputField>, Iterable<S
}
/**
- * Remove all fields and boosts from the document
+ * Adds a field with the given name, value and boost. If a field with the name already exists, then it is updated to
+ * the new value and boost.
+ *
+ * @param name Name of the field to add
+ * @param value Value of the field
+ * @param boost Boost value for the field
*/
public void addField(String name, Object value, float boost )
{