Annotation Type GenericField

    • Element Detail

      • name

        String name
        Returns:
        The name of the index field.
        Default:
        ""
      • projectable

        Projectable projectable
        Returns:
        Whether projections are enabled for this field.
        Default:
        org.hibernate.search.engine.backend.types.Projectable.DEFAULT
      • sortable

        Sortable sortable
        Returns:
        Whether this field should be sortable.
        Default:
        org.hibernate.search.engine.backend.types.Sortable.DEFAULT
      • searchable

        Searchable searchable
        Returns:
        Whether this field should be searchable.
        See Also:
        Searchable
        Default:
        org.hibernate.search.engine.backend.types.Searchable.DEFAULT
      • aggregable

        Aggregable aggregable
        Returns:
        Whether aggregations are enabled for this field.
        See Also:
        Aggregable
        Default:
        org.hibernate.search.engine.backend.types.Aggregable.DEFAULT
      • indexNullAs

        String indexNullAs
        Returns:
        A value used instead of null values when indexing.
        Default:
        "__HibernateSearch_indexNullAs_default"
      • valueBridge

        ValueBridgeRef valueBridge
        Returns:
        A reference to the value bridge to use for this field. Must not be set if valueBinder() is set.
        See Also:
        ValueBridgeRef
        Default:
        @org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBridgeRef
      • valueBinder

        ValueBinderRef valueBinder
        Returns:
        A reference to the value binder to use for this field. Must not be set if valueBridge() is set.
        See Also:
        ValueBinderRef
        Default:
        @org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBinderRef
      • extraction

        ContainerExtraction extraction
        Returns:
        A definition of container extractors to be applied to the property, allowing the binding of a value bridge to container elements. This is useful when the property is of container type, for example a Map<TypeA, TypeB>: defining the extraction as @ContainerExtraction(BuiltinContainerExtractors.MAP_KEY) allows binding the field to the map keys instead of the map values. By default, Hibernate Search will try to apply a set of extractors for common container types.
        See Also:
        ContainerExtraction
        Default:
        @org.hibernate.search.mapper.pojo.extractor.mapping.annotation.ContainerExtraction