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 ry...@apache.org on 2007/07/08 20:34:52 UTC

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

Author: ryan
Date: Sun Jul  8 11:34:52 2007
New Revision: 554405

URL: http://svn.apache.org/viewvc?view=rev&rev=554405
Log:
have remove( name ) return the SolrInputField rather then true/false

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

Modified: lucene/solr/trunk/src/java/org/apache/solr/common/SolrInputDocument.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/common/SolrInputDocument.java?view=diff&rev=554405&r1=554404&r2=554405
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/common/SolrInputDocument.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/common/SolrInputDocument.java Sun Jul  8 11:34:52 2007
@@ -162,13 +162,14 @@
   }
 
   /**
-   * Remove a field
+   * Remove a field from the document
    * 
-   * @param the field name
-   * @return true if a field was removed
+   * @param key The field name whose field is to be removed from the document
+   * @return the previous field with <tt>name</tt>, or
+   *         <tt>null</tt> if there was no field for <tt>key</tt>.
    */
-  public boolean removeField(String name) {
-    return _fields.remove( name ) != null;
+  public SolrInputField removeField(String name) {
+    return _fields.remove( name );
   }
   
   /**