mirror of https://github.com/apache/lucene.git
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:
parent
3fa3cf5493
commit
fad6912a46
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue