use of org.hibernate.search.engine.backend.types.Aggregable in project hibernate-search by hibernate.
the class AbstractNonFullTextFieldAnnotationProcessor method initStandardFieldMappingContext.
@Override
final PropertyMappingStandardFieldOptionsStep<?> initStandardFieldMappingContext(PropertyMappingStep mappingContext, A annotation, String fieldName) {
PropertyMappingNonFullTextFieldOptionsStep<?> fieldContext = initSortableFieldMappingContext(mappingContext, annotation, fieldName);
Sortable sortable = getSortable(annotation);
if (!Sortable.DEFAULT.equals(sortable)) {
fieldContext.sortable(sortable);
}
Aggregable aggregable = getAggregable(annotation);
if (!Aggregable.DEFAULT.equals(aggregable)) {
fieldContext.aggregable(aggregable);
}
String indexNullAs = getIndexNullAs(annotation);
if (indexNullAs != null && !AnnotationDefaultValues.DO_NOT_INDEX_NULL.equals(indexNullAs)) {
fieldContext.indexNullAs(indexNullAs);
}
return fieldContext;
}
Aggregations