Class SearchMappingBuilder

java.lang.Object
org.hibernate.search.mapper.pojo.standalone.mapping.SearchMappingBuilder

@Incubating public final class SearchMappingBuilder extends Object
  • Method Details

    • property

      public SearchMappingBuilder property(String name, Object value)
      Sets a configuration property.

      Configuration properties are mentioned in StandalonePojoMapperSettings, or in the reference documentation for backend-related properties.

      Parameters:
      name - The name (key) of the configuration property.
      value - The value of the configuration property.
      Returns:
      this, for call chaining.
    • properties

      public SearchMappingBuilder properties(Map<String,?> map)
      Sets multiple configuration properties.

      Configuration properties are mentioned in StandalonePojoMapperSettings, or in the reference documentation for backend-related properties.

      Parameters:
      map - A map containing property names (property keys) as map keys and property values as map values.
      Returns:
      this, for call chaining.
    • build

      public CloseableSearchMapping build()
      Builds the search mapping.
      Returns:
      The SearchMapping.