use of org.springframework.data.elasticsearch.annotations.MultiField in project spring-data-elasticsearch by spring-projects.
the class MappingParametersTest method shouldCreateParametersForInnerFieldAnnotation.
// DATAES-621
@Test
public void shouldCreateParametersForInnerFieldAnnotation() {
MultiField multiField = entity.getRequiredPersistentProperty("mainField").findAnnotation(MultiField.class);
InnerField innerField = multiField.otherFields()[0];
MappingParameters mappingParameters = MappingParameters.from(innerField);
assertThat(mappingParameters).isNotNull();
}
Aggregations