|
@@ -202,6 +202,11 @@ public class BinaryFieldMapper extends FieldMapper {
|
|
|
|
|
|
@Override
|
|
|
public SourceLoader.SyntheticFieldLoader syntheticFieldLoader() {
|
|
|
+ if (copyTo.copyToFields().isEmpty() != true) {
|
|
|
+ throw new IllegalArgumentException(
|
|
|
+ "field [" + name() + "] of type [" + typeName() + "] doesn't support synthetic source because it declares copy_to"
|
|
|
+ );
|
|
|
+ }
|
|
|
if (hasDocValues == false) {
|
|
|
throw new IllegalArgumentException(
|
|
|
"field [" + name() + "] of type [" + typeName() + "] doesn't support synthetic source because it doesn't have doc values"
|