|
19 | 19 |
|
20 | 20 | package org.elasticsearch.index.mapper.attachment;
|
21 | 21 |
|
22 |
| -import static org.elasticsearch.index.mapper.MapperBuilders.dateField; |
23 |
| -import static org.elasticsearch.index.mapper.MapperBuilders.integerField; |
24 |
| -import static org.elasticsearch.index.mapper.MapperBuilders.stringField; |
25 |
| -import static org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField; |
26 |
| -import static org.elasticsearch.index.mapper.core.TypeParsers.parsePathType; |
27 |
| -import static org.elasticsearch.plugin.mapper.attachments.tika.TikaInstance.tika; |
28 |
| - |
29 |
| -import java.io.IOException; |
30 |
| -import java.util.Iterator; |
31 |
| -import java.util.List; |
32 |
| -import java.util.Map; |
33 |
| - |
34 | 22 | import org.apache.lucene.document.Field;
|
35 | 23 | import org.apache.lucene.document.FieldType;
|
36 | 24 | import org.apache.tika.language.LanguageIdentifier;
|
|
42 | 30 | import org.elasticsearch.common.xcontent.XContentBuilder;
|
43 | 31 | import org.elasticsearch.common.xcontent.XContentParser;
|
44 | 32 | import org.elasticsearch.index.fielddata.FieldDataType;
|
45 |
| -import org.elasticsearch.index.mapper.ContentPath; |
46 |
| -import org.elasticsearch.index.mapper.DocumentMapperParser; |
47 |
| -import org.elasticsearch.index.mapper.FieldMapperListener; |
48 |
| -import org.elasticsearch.index.mapper.Mapper; |
49 |
| -import org.elasticsearch.index.mapper.MapperParsingException; |
50 |
| -import org.elasticsearch.index.mapper.MergeContext; |
51 |
| -import org.elasticsearch.index.mapper.MergeMappingException; |
52 |
| -import org.elasticsearch.index.mapper.ObjectMapperListener; |
53 |
| -import org.elasticsearch.index.mapper.ParseContext; |
| 33 | +import org.elasticsearch.index.mapper.*; |
54 | 34 | import org.elasticsearch.index.mapper.core.AbstractFieldMapper;
|
55 | 35 |
|
| 36 | +import java.io.IOException; |
| 37 | +import java.util.Iterator; |
| 38 | +import java.util.List; |
| 39 | +import java.util.Map; |
| 40 | + |
| 41 | +import static org.elasticsearch.index.mapper.MapperBuilders.*; |
| 42 | +import static org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField; |
| 43 | +import static org.elasticsearch.index.mapper.core.TypeParsers.parsePathType; |
| 44 | +import static org.elasticsearch.plugin.mapper.attachments.tika.TikaInstance.tika; |
| 45 | + |
56 | 46 | /**
|
57 | 47 | * <pre>
|
58 | 48 | * "field1" : "..."
|
@@ -365,7 +355,7 @@ public AttachmentMapper(Names names, ContentPath.Type pathType, int defaultIndex
|
365 | 355 | Mapper dateMapper, Mapper titleMapper, Mapper nameMapper, Mapper authorMapper,
|
366 | 356 | Mapper keywordsMapper, Mapper contentTypeMapper, Mapper contentLengthMapper,
|
367 | 357 | Mapper languageMapper, MultiFields multiFields, CopyTo copyTo) {
|
368 |
| - super(names, 1.0f, AbstractFieldMapper.Defaults.FIELD_TYPE, false, null, null, null, null, null, null, null, |
| 358 | + super(names, 1.0f, AbstractFieldMapper.Defaults.FIELD_TYPE, false, null, null, null, null, null, |
369 | 359 | ImmutableSettings.EMPTY, multiFields, copyTo);
|
370 | 360 | this.pathType = pathType;
|
371 | 361 | this.defaultIndexedChars = defaultIndexedChars;
|
|
0 commit comments