Interface HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.MappingConfig

Enclosing interface:
HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit

public static interface HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.MappingConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    One or more xref:hibernate-search-orm-elasticsearch.adoc#bean-reference-note-anchor[bean references] to the component(s) used to configure the Hibernate Search mapping, in particular programmatically.
  • Method Details

    • configurer

      Optional<List<String>> configurer()
      One or more xref:hibernate-search-orm-elasticsearch.adoc#bean-reference-note-anchor[bean references] to the component(s) used to configure the Hibernate Search mapping, in particular programmatically. The referenced beans must implement `HibernateOrmSearchMappingConfigurer`. See xref:hibernate-search-orm-elasticsearch.adoc#programmatic-mapping[Programmatic mapping] for an example on how mapping configurers can be used to apply programmatic mappings. [NOTE] ==== Instead of setting this configuration property, you can simply annotate your custom `HibernateOrmSearchMappingConfigurer` implementations with `@SearchExtension` and leave the configuration property unset: Hibernate Search will use the annotated implementation automatically. See xref:hibernate-search-orm-elasticsearch.adoc#plugging-in-custom-components[this section] for more information. If this configuration property is set, it takes precedence over any `@SearchExtension` annotation. ====