Enum ValueConvert

java.lang.Object
java.lang.Enum<ValueConvert>
org.hibernate.search.engine.search.common.ValueConvert
All Implemented Interfaces:
Serializable, Comparable<ValueConvert>

@Deprecated public enum ValueConvert extends Enum<ValueConvert>
Deprecated.
Use ValueModel instead.
Specifies whether values should be converted during search queries.
  • Enum Constant Details

    • YES

      @Deprecated public static final ValueConvert YES
      Deprecated.
      Use ValueModel.MAPPING instead.
      Enables value conversion.

      For field values passed to the DSL (for example the parameter of a match predicate), the DSL converter defined in the mapping will be used. This generally means values passed to the DSL will be expected to have the same type as the entity property used to populate the index field.

      For identifier values passed to the DSL (for example the parameter of an ID predicate), the identifier converter defined in the mapping will be used. This generally means values passed to the DSL will be expected to have the same type as the entity property used to generate document identifiers.

      For fields values returned by the backend (for example in projections), the projection converter defined in the mapping will be used. This generally means the projected values will have the same type as the entity property used to populate the index field.

      If no converter was defined in the mapping, this option won't have any effect.

      Please refer to the reference documentation for more information.

    • NO

      @Deprecated public static final ValueConvert NO
      Deprecated.
      Use ValueModel.INDEX instead.
      Disables value conversion.

      For field values passed to the DSL (for example the parameter of a match predicate), no converter will be used. This generally means values passed to the DSL will be expected to have the same type as the index field.

      For identifier values passed to the DSL (for example the parameter of an ID predicate), no converter will be used. This means values passed to the DSL will be expected to be strings that match document identifiers exactly.

      For fields values returned by the backend (for example in projections), no converter will be used. This generally means the projected values will have the same type as the index field.

      Please refer to the reference documentation for more information.

    • DEFAULT

      @Deprecated public static final ValueConvert DEFAULT
      Deprecated.
      The result of applying this constant is the same as YES.

      It should never be used explicitly, and is only added to help with migration purposes. It is used as default value in some annotations like FieldProjection to help determine if the attribute value was not set explicitly.

  • Method Details

    • values

      public static ValueConvert[] values()
      Deprecated.
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ValueConvert valueOf(String name)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toValueModel

      @Deprecated public static ValueModel toValueModel(ValueConvert valueConvert)
      Deprecated.