.field("store", "yes").field("index", "not_analyzed")
.endObject()
.endObject().endObject().string();
IndexService indexServices = createIndex("test");
DocumentMapper docMapper = indexServices.mapperService().documentMapperParser().parse("type", mapping);
assertThat(docMapper.boostFieldMapper().fieldType().stored(), equalTo(true));
assertEquals(IndexOptions.DOCS, docMapper.boostFieldMapper().fieldType().indexOptions());
docMapper.refreshSource();
docMapper = indexServices.mapperService().documentMapperParser().parse("type", docMapper.mappingSource().string());
assertThat(docMapper.boostFieldMapper().fieldType().stored(), equalTo(true));
assertEquals(IndexOptions.DOCS, docMapper.boostFieldMapper().fieldType().indexOptions());