Search in sources :

Example 1 with Aggregable

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;
}
Also used : Sortable(org.hibernate.search.engine.backend.types.Sortable) Aggregable(org.hibernate.search.engine.backend.types.Aggregable)

Aggregations

Aggregable (org.hibernate.search.engine.backend.types.Aggregable)1 Sortable (org.hibernate.search.engine.backend.types.Sortable)1