You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by sh...@apache.org on 2009/08/14 08:24:32 UTC

svn commit: r804088 - /lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java

Author: shalin
Date: Fri Aug 14 06:24:32 2009
New Revision: 804088

URL: http://svn.apache.org/viewvc?rev=804088&view=rev
Log:
SOLR-1361 -- Incorrect javadoc on SolrInputDocument addField

Modified:
    lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java

Modified: lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java?rev=804088&r1=804087&r2=804088&view=diff
==============================================================================
--- lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java (original)
+++ lucene/solr/trunk/src/common/org/apache/solr/common/SolrInputDocument.java Fri Aug 14 06:24:32 2009
@@ -122,7 +122,12 @@
   }
 
   /**
-   * 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 ) 
   {