fix standalone and remove unecessary override
This commit is contained in:
parent
7ce86d95fe
commit
a83f98d018
|
@ -34,7 +34,6 @@ import org.elasticsearch.common.xcontent.XContentParser;
|
|||
import org.elasticsearch.index.fielddata.FieldDataType;
|
||||
import org.elasticsearch.index.mapper.*;
|
||||
import org.elasticsearch.index.mapper.core.AbstractFieldMapper;
|
||||
import org.elasticsearch.index.mapper.core.AbstractFieldMapper.CopyTo;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Iterator;
|
||||
|
@ -391,11 +390,6 @@ public class AttachmentMapper extends AbstractFieldMapper<Object> {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CopyTo copyTo() {
|
||||
return this.copyTo; // ask rjernst
|
||||
}
|
||||
|
||||
@Override
|
||||
public Mapper parse(ParseContext context) throws IOException {
|
||||
byte[] content = null;
|
||||
|
|
|
@ -83,7 +83,7 @@ public class StandaloneRunner extends CliTool {
|
|||
this.size = size;
|
||||
this.url = url;
|
||||
this.base64text = base64text;
|
||||
DocumentMapperParser mapperParser = MapperTestUtils.newMapperParser();
|
||||
DocumentMapperParser mapperParser = MapperTestUtils.newMapperParser(Paths.get(".")); // use CWD b/c it won't be used
|
||||
mapperParser.putTypeParser(AttachmentMapper.CONTENT_TYPE, new AttachmentMapper.TypeParser());
|
||||
|
||||
String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/attachment/test/standalone/standalone-mapping.json");
|
||||
|
|
Loading…
Reference in New Issue