Interface IndexFieldTypeFactory

    • Method Detail

      • as

        <F> StandardIndexFieldTypeOptionsStep<?,​F> as​(Class<F> valueType)
        Define a field type whose values are represented as a given type in Hibernate Search.

        Note this method will return a "generic" DSL step that does not offer any type-specific options. When possible, prefer the other methods such as asString() or asInteger().

        Type Parameters:
        F - The type of values for this field type.
        Parameters:
        valueType - The type of values for this field type.
        Returns:
        A DSL step where the index field type can be defined in more details.
        Throws:
        SearchException - If the given inputType is not supported.
      • asString

        StringIndexFieldTypeOptionsStep<?> asString()
        Define a field type whose values are represented as a String in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asInteger

        StandardIndexFieldTypeOptionsStep<?,​Integer> asInteger()
        Define a field type whose values are represented as an Integer in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asLong

        StandardIndexFieldTypeOptionsStep<?,​Long> asLong()
        Define a field type whose values are represented as a Long in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asByte

        StandardIndexFieldTypeOptionsStep<?,​Byte> asByte()
        Define a field type whose values are represented as a Byte in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asShort

        StandardIndexFieldTypeOptionsStep<?,​Short> asShort()
        Define a field type whose values are represented as a Short in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asFloat

        StandardIndexFieldTypeOptionsStep<?,​Float> asFloat()
        Define a field type whose values are represented as a Float in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asDouble

        StandardIndexFieldTypeOptionsStep<?,​Double> asDouble()
        Define a field type whose values are represented as a Double in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asInstant

        StandardIndexFieldTypeOptionsStep<?,​Instant> asInstant()
        Define a field type whose values are represented as an Instant in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • asYear

        StandardIndexFieldTypeOptionsStep<?,​Year> asYear()
        Define a field type whose values are represented as a Year in Hibernate Search.
        Returns:
        A DSL step where the index field type can be defined in more details.
      • extension

        default <T> T extension​(IndexFieldTypeFactoryExtension<T> extension)
        Extend the current factory with the given extension, resulting in an extended factory offering more field types.
        Type Parameters:
        T - The type of factory provided by the extension.
        Parameters:
        extension - The extension to apply.
        Returns:
        The extended factory.
        Throws:
        SearchException - If the extension cannot be applied (wrong underlying technology, ...).