You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/01/03 23:10:19 UTC

svn commit: r1054794 - /lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java

Author: yonik
Date: Mon Jan  3 22:10:19 2011
New Revision: 1054794

URL: http://svn.apache.org/viewvc?rev=1054794&view=rev
Log:
SOLR-1930: fully move from Field to Fieldable in interfaces

Modified:
    lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java?rev=1054794&r1=1054793&r2=1054794&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java Mon Jan  3 22:10:19 2011
@@ -258,7 +258,7 @@ public class DocumentBuilder {
         if (sfield != null && sfield.getType() instanceof BinaryField) {
           isBinaryField = true;
           BinaryField binaryField = (BinaryField) sfield.getType();
-          Field f = binaryField.createField(sfield,v,boost);
+          Fieldable f = binaryField.createField(sfield,v,boost);
           if(f != null){
             out.add(f);
           }
@@ -297,7 +297,7 @@ public class DocumentBuilder {
             if (destinationField.getType() instanceof BinaryField) {
               BinaryField binaryField = (BinaryField) destinationField.getType();
               //TODO: safe to assume that binary fields only create one?
-              fields = new Field[]{binaryField.createField(destinationField, v, boost)};
+              fields = new Fieldable[]{binaryField.createField(destinationField, v, boost)};
             }
           } else {
             fields = destinationField.createFields(cf.getLimitedValue(val), boost);