Class SearchMappingBuilder
java.lang.Object
org.hibernate.search.mapper.pojo.standalone.mapping.SearchMappingBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the search mapping.properties(Reader propertiesReader) Reads the properties from the reader and sets them as overrides for already configured properties.properties(Map<String, ?> map) Sets multiple configuration properties.Sets a configuration property.
-
Method Details
-
property
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
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.
-
properties
Reads the properties from the reader and sets them as overrides for already configured properties.Provided reader should be compatible with
Properties.load(Reader).Configuration properties are mentioned in
StandalonePojoMapperSettings, or in the reference documentation for backend-related properties.- Parameters:
propertiesReader- A configuration property source reader. Properties from it will be added as an override to previously set properties.- Returns:
this, for call chaining.- Throws:
IOException- See Also:
-
build
Builds the search mapping.- Returns:
- The
SearchMapping.
-