SOLR-1930: fully move from Field to Fieldable in interfaces

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-01-03 22:10:19 +00:00
parent 3fa3cf5493
commit fad6912a46
1 changed files with 2 additions and 2 deletions

View File

@ -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);