Package org.elasticsearch.index.mapper

Examples of org.elasticsearch.index.mapper.FieldMapper.fieldType()


        DocumentMapper mapper = createIndex("test").mapperService().documentMapperParser().parse(mapping);

        FieldMapper fieldMapper = mapper.mappers().smartNameFieldMapper("field");
        assertThat(fieldMapper, instanceOf(BinaryFieldMapper.class));
        assertThat(fieldMapper.fieldType().stored(), equalTo(false));
    }

}
View Full Code Here


            FieldDataType dataType = fieldMapper.fieldDataType();
            if (dataType != null) {
                mapper.put("fieldDataType", dataType.getType());
            }

            FieldType type = fieldMapper.fieldType();
            if (type != null) {
                mapper.put("indexed", type.indexed());
                mapper.put("stored", type.stored());
                mapper.put("tokenized", type.tokenized());
                mapper.put("omitNorms", type.omitNorms());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.