lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1054794 - /lucene/dev/trunk/solr/src/java/org/apache/solr/update/DocumentBuilder.java
Date Mon, 03 Jan 2011 22:10:19 GMT
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);



Mime
View raw message